From danmo at videotron.ca Wed Jul 5 11:00:04 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 05 Jul 2000 14:00:04 -0400 Subject: DOS CR/LF in .MAP and .SYM files Message-ID: <396377A4.A9FC5AEE@videotron.ca> Hi, Is there any way that the MapServer .MAP and .SYM parser could be modified so that it is not sensitive to the difference between DOS and Unix linefeeds. It looks to me like every new MapServer user goes through the following error message when they try to get MapServer running the first time: msLoadSymbolFile(): Unknown identifier. ( ):(0) or msLoadMap(): Unknown identifier. ( ):(5) and most of the time, it's because MapServer is running on Unix and the .MAP or .SYM file contains DOS ^M chars... either because the original file came from Windows, or because a Windows tool was used to extract the archive and then copy the files to Unix. I'm not a flex/bison expert, so I don't know if it's easy to fix... Anyone has ideas? -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bowenj at peligroso.gaiaenv.com Wed Jul 5 11:59:36 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Wed, 05 Jul 2000 12:59:36 -0600 Subject: DOS CR/LF in .MAP and .SYM files References: <396377A4.A9FC5AEE@videotron.ca> Message-ID: <39638598.43B0DAE1@gaiaenv.com> Hi Daniel and others, This is a common one (we were nailed by it too when we first began). I like your idea to modify the parser, but I cannot offer much help. Here are some alternate pointers for those interested: * use a decent ftp programme that strips/adds CR to LF (most popular programmes do this for you) * don't forget...if you zip the files before transferring, your ftp prog. will *not* alter the newline characters * if you are running SAMBA, remember that text files are *not* modified by default * use a text editor like UltraEdit (or equivalent) and convert your files once they are on your SAMBA drive or write your files from ArcView with only LF (or vice-versa) * run a script on your files each time they are transferred * in ksh, run SED (e.g., sed "s/$/`echo -e \\\r`/") [convert Unix LF to CR/LF] * in ksh, run SED (e.g., sed 's/.$//') [convert CR/LF to Unix LF...this assumes all lines end in CR/LF] I know this is not what you were looking for, but hopefully it may help some. Cheers, Jim Daniel Morissette wrote: > > Hi, > > Is there any way that the MapServer .MAP and .SYM parser could be > modified so that it is not sensitive to the difference between DOS and > Unix linefeeds. > > It looks to me like every new MapServer user goes through the following > error message when they try to get MapServer running the first time: > > msLoadSymbolFile(): Unknown identifier. ( ):(0) > or > msLoadMap(): Unknown identifier. ( ):(5) > > and most of the time, it's because MapServer is running on Unix and the > .MAP or .SYM file contains DOS ^M chars... either because the original > file came from Windows, or because a Windows tool was used to extract > the archive and then copy the files to Unix. > > I'm not a flex/bison expert, so I don't know if it's easy to fix... > Anyone has ideas? > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- _______________________________________ In order to reduce SPAM (i.e., junk e-mail), all e-mail to me must include the following somewhere in the body of the message: J*I*M _______________________________________ _______________________________________ Jim T. Bowen, M.Sc., President Suite 306, 822-11th Ave. S.W. Calgary, Alberta, Canada T2R 0E5 Ph: 403-571-7213 Fax: 403-571-7211 bowenj at gaiaenv.com http://www.gaiaenv.com _______________________________________ From devoilp at dpi.qld.gov.au Wed Jul 5 16:57:52 2000 From: devoilp at dpi.qld.gov.au (Peter deVoil) Date: Thu, 06 Jul 2000 09:57:52 +1000 Subject: DOS CR/LF in .MAP and .SYM files References: <396377A4.A9FC5AEE@videotron.ca> <39638598.43B0DAE1@gaiaenv.com> Message-ID: <3963CB80.4D92DDB3@dpi.qld.gov.au> Hi, I did this in an earlier version by telling the lexer to ignore "\r" characters, I'm guessing the newer syntax would require adding a line something like --- \r {} --- to maplexer.l Of course, if you use cygwin, it does the translation automatically. Yours, PdeV. "Jim T. Bowen (GAIA Consultants Inc.)" wrote: > > Hi Daniel and others, > > This is a common one (we were nailed by it too when we first began). I > like your idea to modify the parser, but I cannot offer much help. Here > are some alternate pointers for those interested: > > * use a decent ftp programme that strips/adds CR to LF (most popular > programmes do this for you) > * don't forget...if you zip the files before transferring, your ftp > prog. will *not* alter the newline characters > > * if you are running SAMBA, remember that text files are *not* modified > by default > * use a text editor like UltraEdit (or equivalent) and convert your > files once they are on your SAMBA drive or write your files from ArcView > with only LF (or vice-versa) > > * run a script on your files each time they are transferred > * in ksh, run SED (e.g., sed "s/$/`echo -e \\\r`/") [convert Unix LF > to CR/LF] > * in ksh, run SED (e.g., sed 's/.$//') [convert CR/LF to Unix > LF...this assumes all lines end in CR/LF] > > I know this is not what you were looking for, but hopefully it may help > some. > > Cheers, > Jim > > Daniel Morissette wrote: > > > > Hi, > > > > Is there any way that the MapServer .MAP and .SYM parser could be > > modified so that it is not sensitive to the difference between DOS and > > Unix linefeeds. > > > > It looks to me like every new MapServer user goes through the following > > error message when they try to get MapServer running the first time: > > > > msLoadSymbolFile(): Unknown identifier. ( ):(0) > > or > > msLoadMap(): Unknown identifier. ( ):(5) > > > > and most of the time, it's because MapServer is running on Unix and the > > .MAP or .SYM file contains DOS ^M chars... either because the original > > file came from Windows, or because a Windows tool was used to extract > > the archive and then copy the files to Unix. > > > > I'm not a flex/bison expert, so I don't know if it's easy to fix... > > Anyone has ideas? > > -- > > ------------------------------------------------------------ > > Daniel Morissette danmo at videotron.ca > > http://pages.infinit.net/danmo/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > -- > _______________________________________ > In order to reduce SPAM (i.e., junk > e-mail), all e-mail to me must include > the following somewhere in the body > of the message: J*I*M > _______________________________________ > > _______________________________________ > Jim T. Bowen, M.Sc., President > > Suite 306, 822-11th Ave. S.W. > Calgary, Alberta, Canada T2R 0E5 > Ph: 403-571-7213 Fax: 403-571-7211 > bowenj at gaiaenv.com > > http://www.gaiaenv.com > _______________________________________ From schu at gaf.de Thu Jul 6 01:07:18 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Thu, 06 Jul 2000 10:07:18 +0200 Subject: license - zoom to selected Message-ID: <39643E36.9917C7E5@gaf.de> Hello, I have two questions regarding Map Server: 1) Are there any license regulations for using Map Server 2) I am thinking of adding the capability to a Map Server application to mark selected features (selected via the attributes) and do a 'zoom to selected'. Does anyone know of an approach or have an idea how to implement this ? Thanks, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From seano at metavera.com Thu Jul 6 10:35:36 2000 From: seano at metavera.com (Sean O'Hagan) Date: Thu, 6 Jul 2000 13:35:36 -0400 Subject: Formatting Text for Feature Labelling Message-ID: <042501bfe770$988a5820$0582a8c0@karkalis.com> Hello list, Has anyone messed around with the appropriate Mapserver code to allow first-letter capitalization for feature labelling? I thought about updating the DBF file, but if it's been done within Mapserver already I'd rather take advantage of that. Thanks, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From vanderwalm at peligroso.gaiaenv.com Thu Jul 6 11:01:33 2000 From: vanderwalm at peligroso.gaiaenv.com (Mel VanderWal) Date: Thu, 06 Jul 2000 12:01:33 -0600 Subject: Formatting Text for Feature Labelling References: <042501bfe770$988a5820$0582a8c0@karkalis.com> Message-ID: <3964C97D.FDAC34C6@gaiaenv.com> Sean; If you do end up having to edit the dbf, the easy way is to use ArcView's Field Calculator, and type in: [YourField].Proper, which will capitalize the first letter of all words. Regards, Mel Sean O'Hagan wrote: > Hello list, > > Has anyone messed around with the appropriate Mapserver code to allow > first-letter capitalization for feature labelling? I thought about updating > the DBF file, but if it's been done within Mapserver already I'd rather take > advantage of that. > > Thanks, > Sean O'Hagan > > Metavera Solutions, Inc. > 192 Spadina Ave., Suite 405 > Toronto, ON > M5T 2C2 > Tel: (416) 504-8351 > Fax: (416) 364-2636 > Email: seano at metavera.com -- Mel VanderWal GIS Programmer / Manager GAIA Consultants Inc. Suite 306, 822-11th Avenue SW Calgary, Alberta Canada T2R 0E5 Phone: (403) 571-7216 Fax: (403) 571-7211 www.gaiaenv.com vanderwalm at gaiaenv.com From steve.lime at dnr.state.mn.us Thu Jul 6 13:05:26 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 06 Jul 2000 15:05:26 -0500 Subject: DOS CR/LF in .MAP and .SYM files Message-ID: This is fixed in 3.3.011 and the fix applies to map and symbol files. Geotiff world and font set files will still need conversion since they are not parsed by the lexer. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Peter deVoil 07/05/00 06:57PM >>> Hi, I did this in an earlier version by telling the lexer to ignore "\r" characters, I'm guessing the newer syntax would require adding a line something like --- \r {} --- to maplexer.l Of course, if you use cygwin, it does the translation automatically. Yours, PdeV. "Jim T. Bowen (GAIA Consultants Inc.)" wrote: > > Hi Daniel and others, > > This is a common one (we were nailed by it too when we first began). I > like your idea to modify the parser, but I cannot offer much help. Here > are some alternate pointers for those interested: > > * use a decent ftp programme that strips/adds CR to LF (most popular > programmes do this for you) > * don't forget...if you zip the files before transferring, your ftp > prog. will *not* alter the newline characters > > * if you are running SAMBA, remember that text files are *not* modified > by default > * use a text editor like UltraEdit (or equivalent) and convert your > files once they are on your SAMBA drive or write your files from ArcView > with only LF (or vice-versa) > > * run a script on your files each time they are transferred > * in ksh, run SED (e.g., sed "s/$/`echo -e \\\r`/") [convert Unix LF > to CR/LF] > * in ksh, run SED (e.g., sed 's/.$//') [convert CR/LF to Unix > LF...this assumes all lines end in CR/LF] > > I know this is not what you were looking for, but hopefully it may help > some. > > Cheers, > Jim > > Daniel Morissette wrote: > > > > Hi, > > > > Is there any way that the MapServer .MAP and .SYM parser could be > > modified so that it is not sensitive to the difference between DOS and > > Unix linefeeds. > > > > It looks to me like every new MapServer user goes through the following > > error message when they try to get MapServer running the first time: > > > > msLoadSymbolFile(): Unknown identifier. ( ):(0) > > or > > msLoadMap(): Unknown identifier. ( ):(5) > > > > and most of the time, it's because MapServer is running on Unix and the > > .MAP or .SYM file contains DOS ^M chars... either because the original > > file came from Windows, or because a Windows tool was used to extract > > the archive and then copy the files to Unix. > > > > I'm not a flex/bison expert, so I don't know if it's easy to fix... > > Anyone has ideas? > > -- > > ------------------------------------------------------------ > > Daniel Morissette danmo at videotron.ca > > http://pages.infinit.net/danmo/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > -- > _______________________________________ > In order to reduce SPAM (i.e., junk > e-mail), all e-mail to me must include > the following somewhere in the body > of the message: J*I*M > _______________________________________ > > _______________________________________ > Jim T. Bowen, M.Sc., President > > Suite 306, 822-11th Ave. S.W. > Calgary, Alberta, Canada T2R 0E5 > Ph: 403-571-7213 Fax: 403-571-7211 > bowenj at gaiaenv.com > > http://www.gaiaenv.com > _______________________________________ From steve.lime at dnr.state.mn.us Thu Jul 6 14:25:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 06 Jul 2000 16:25:25 -0500 Subject: Formatting Text for Feature Labelling Message-ID: Nope, hasn't been done. Best place to implement would be as an expression function (i.e. TEXT (firstcap([NAME))) or something like that. mapparser.y is the place to start. O'Reilly has a good book on lex and yacc that details how to add functions to a yacc grammar. Of course, this is expensive to do each time you make a map so changing the data would yield the best performance. The arcview method mentioned previously works well as would a simple perl script. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Sean O'Hagan" 07/06/00 12:35PM >>> Hello list, Has anyone messed around with the appropriate Mapserver code to allow first-letter capitalization for feature labelling? I thought about updating the DBF file, but if it's been done within Mapserver already I'd rather take advantage of that. Thanks, Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From fsvpss at eng.chula.ac.th Fri Jul 7 06:04:08 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Fri, 07 Jul 2000 20:04:08 +0700 Subject: license - zoom to selected Message-ID: <3965D548.E33DFC68@eng.chula.ac.th> Hi, >I have two questions regarding Map Server: >1) Are there any license regulations for using Map Server Yap! It is MIT License , see www.gnu.org for definition >2) I am thinking of adding the capability to a Map Server application to >mark selected features (selected via the attributes) and do a 'zoom to >selected'. Does anyone know of an approach or have an idea how to >implement this ? already there ! see http://arachnid.dnr.state.mn.us/ms_test/ Schau! -- Phisan Santitamnont, Dr.-Ing. Survey Engineering Department Chulalongkorn University Pathumwan Rd, Bangkok 10330 Tel. +66 (2) 218 66 61 Fax. +66 (2) 218 66 53 mailto:fsvpss at eng.chula.ac.th http://www.sv.eng.chula.ac.th/Staff/Phisan From steve.lime at dnr.state.mn.us Fri Jul 7 12:31:00 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 07 Jul 2000 14:31:00 -0500 Subject: Visual map file builder Message-ID: Hello users: I'm starting a new project to aid in building map files. The plan now is to use MapScript and Perl/Tk to build a GUI for creation and editing map files. I wanted to find out what, if anything, others are doing in this area. I know there are a couple of folks using ArcView to create map files but I think we need something a bit more MapServer centric. Lemme know... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From danmo at videotron.ca Fri Jul 7 13:33:56 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 07 Jul 2000 16:33:56 -0400 Subject: Visual map file builder References: Message-ID: <39663EB4.10BD19E4@videotron.ca> Stephen Lime wrote: > > Hello users: I'm starting a new project to aid in building map files. The plan now is to > use MapScript and Perl/Tk to build a GUI for creation and editing map files. I wanted > to find out what, if anything, others are doing in this area. I know there are a couple > of folks using ArcView to create map files but I think we need something a bit more > MapServer centric. Lemme know... > Steve, We have started working on a similar idea, but that would be written using PHP and MapScript. Our plan is to build a set of simple web interfaces to navigate in the .MAP file, make changes, do previews of maps, and save modified .MAP file. The same way as you, we do not want something based on ArcView or any other GIS... we want it 100% MapServer-based, and we also want something that works on any OS where MapServer can run. However, this is a low priority project for us at the moment, so I'm not sure when we would have something useful available. If you guys get something working before we do and it is in the same style as what we want to build, then we might decide to use your version instead. As usual, I would rather spend our time improving your tool than reinventing the wheel. Please keep us posted. BTW, would it be a good idea to have a page on the MapServer web site with a wish-list, and a list of features planned or currently being added to MapServer? This would give all users an idea of what's coming, and when it might be available. And it would definitely help preventing duplication of efforts. Anyways... just a thought. Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Fri Jul 7 14:08:58 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Fri, 7 Jul 2000 17:08:58 -0400 Subject: Visual map file builder Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C0DA@s5-ccr-r1> Well, as you might remember I'm using a database back end to handle all the various configuration information that would normally be stored in a map file (With mapscript for perl). This is because one of the possible applications I have for it could be handling hundreds of layers and shape files, and managing a map file for this could get very complicated, especially since there are various people managing the content. I therefore also plan on creating a decent web based admin interface to it (The database, really). It should proove quite nice once it's done, you'll be able to add layers, change colors, add/remove/edit classes, work with labels, etc ... In theory anything mapscript can handle I could manage through the DB Backend and the web interface. It's not exactly what you're working on ... but serves a similar purpose. Like Daniel, I'll probably use PHP to do it, taking advantage of the PHP Module to do things like layer/map previews and so on ... My .02$ ! J.F. > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Friday, July 07, 2000 3:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Visual map file builder > > Hello users: I'm starting a new project to aid in building map files. The > plan now is to > use MapScript and Perl/Tk to build a GUI for creation and editing map > files. I wanted > to find out what, if anything, others are doing in this area. I know there > are a couple > of folks using ArcView to create map files but I think we need something a > bit more > MapServer centric. Lemme know... > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > From jan at intevation.de Sat Jul 8 08:50:33 2000 From: jan at intevation.de (Jan-Oliver Wagner) Date: Sat, 8 Jul 2000 17:50:33 +0200 Subject: license - zoom to selected In-Reply-To: <3965D548.E33DFC68@eng.chula.ac.th>; from fsvpss@eng.chula.ac.th on Fri, Jul 07, 2000 at 08:04:08PM +0700 References: <3965D548.E33DFC68@eng.chula.ac.th> Message-ID: <20000708175033.E22342@cheops.usf.Uni-Osnabrueck.DE> Dear all, On Fri, Jul 07, 2000 at 08:04:08PM +0700, Phisan Santitamnont wrote: > >1) Are there any license regulations for using Map Server > Yap! It is MIT License , see www.gnu.org for definition in early May there was a thread on this subject. Just in short: MapServer is VERY close to the MIT license, but is not identical. Thus you will not find it at www.gnu.org. I consider the difference as neglectable unless you are planning *big business* with the map server. However, Map Server is Free Software!. In that thread in May, there was the proposal to put the license online. It would really help to provide an answer to this FAQ. BTW: I am really impressed by all of your intense work on MapServer. Keep up! Cheers Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From RAldridge at linuxstart.com Sat Jul 8 11:06:44 2000 From: RAldridge at linuxstart.com (RAldridge) Date: Sat, 8 Jul 2000 14:06:44 -0400 Subject: Visual map file builder Message-ID: <200007081806.e68I6iu23865@tbird.iworld.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Sat Jul 8 13:43:56 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Sat, 8 Jul 2000 16:43:56 -0400 Subject: Visual map file builder Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C0DC@s5-ccr-r1> Since someone asked, I just thought I'd post what I'm doing exactly as far as a DB Backend : Because maintaing a HUGE mapfile (100's of layers, 100's of shapefiles, and possibly 1000's of classes) would be a big problem in the environment where I work, due to the fact that there are several people involved in maintenance and development of the content, server administration, etc ... I had to find a way to simplify the management of all the data. One of the mapping tools we currently use has such a system, which uses a Database backend to store all configuration data, and then provides a web interface to this Database backend, effectively giving users a web interface to the administration of the mapserver. Since MapServer comes with the ever-so-great Perl and PHP wrappers/API's ... Integrating the mapserver with a database becomes almost trivial. So I simply created a database which stores all vareity of objects that can exist within a map file. There are tables for layers, classes, labels, etc ... And each table contains all possible parameters for the said object (So for the layers, there's "data", "maxscale", "maxfeatures", etc ...). Some basic relationship design allows me to relate a label to a class, and a class to a layer. A layer can have several classes of course, and so on ... There's more details, and a few exceptions of course, but that's the jist of it. Currently I'm using this as a backend to an OGC/WMT compliant server (http://www.opengis.org) ... And it is all written in perl. I'll soon be implementing a web/php based admin interface to this RDB ... Right now I just use SQL syntax to add layers, change colors, etc ... Which is still simpler than editing a potentially huge mapfile, and the web interface will give me the flexibility of de-centralized management of the data/content, leaving me to worry about systems/design issues. I'm working right now on potentially getting a page up where all my work would be posted and so on, and I don't think opening up my work under the GPL should not be a problem, gotta ask the bosses first though, although this is my ultimate goal. I'm using PostgreSQL as back end ... It has a lot of features I like that MySQL doesn't, including those nifty geometric datatypes, which I'll probably make use of soon. There, now everybody knows ! :) Comment suggestions and questions are allways welcome ! J.F. > ---------- > From: Doyon, > Jean-Francois[SMTP:Jean-Francois.Doyon at CCRS.NRCan.gc.ca] > Sent: Friday, July 07, 2000 5:08 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: Visual map file builder > > Well, as you might remember I'm using a database back end to handle all > the > various configuration information that would normally be stored in a map > file (With mapscript for perl). > > This is because one of the possible applications I have for it could be > handling hundreds of layers and shape files, and managing a map file for > this could get very complicated, especially since there are various people > managing the content. > > I therefore also plan on creating a decent web based admin interface to it > (The database, really). It should proove quite nice once it's done, you'll > be able to add layers, change colors, add/remove/edit classes, work with > labels, etc ... In theory anything mapscript can handle I could manage > through the DB Backend and the web interface. > > It's not exactly what you're working on ... but serves a similar purpose. > > Like Daniel, I'll probably use PHP to do it, taking advantage of the PHP > Module to do things like layer/map previews and so on ... > > My .02$ ! > > J.F. > > > ---------- > > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > > Sent: Friday, July 07, 2000 3:31 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Visual map file builder > > > > Hello users: I'm starting a new project to aid in building map files. > The > > plan now is to > > use MapScript and Perl/Tk to build a GUI for creation and editing map > > files. I wanted > > to find out what, if anything, others are doing in this area. I know > there > > are a couple > > of folks using ArcView to create map files but I think we need something > a > > bit more > > MapServer centric. Lemme know... > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > From cameron at socialchange.net.au Sat Jul 8 21:02:29 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sun, 09 Jul 2000 14:02:29 +1000 Subject: Shapefile builders (was Visual map file builder) References: <200007081806.e68I6iu23865@tbird.iworld.com> Message-ID: <3967F955.75B10728@socialchange.net.au> I started working on a web based shapefile builder in my spare time before taking up a job full time in the web mapping area. Hopefully I will eventually get to finish it and get paid for my work too. So far I have almost finished a server side cgi interface to the shapelib APIs used and distributed by mapserv. (Just one or 2 bugs not ironed out.) If you want for info, or want to take the project further, then get in touch. A rough design page can be found at: http://cat.org.au/updatemap/doc/design.html The source can be found at: http://cat.org.au/cgi-bin/cvsweb.cgi/updatemap/ It is not tarred up, but I can do that on request. --- PS, I suggest you also check out freegis.org for a free gis listing. RAldridge wrote: > On a similar thread...Are there any free (preferably open source) graphic shapefile create/edit tools available? This would be excellent for small projects. I'd considered at one time diving into shapelib and trying to build a simple viewer/editor myself, but I haven't made the time. > > Thanks, > > Robert > ---------------------- > Do you do Linux? :) > Get your FREE @linuxstart.com email address at: http://www.linuxstart.com -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From danmo at videotron.ca Sun Jul 9 07:56:47 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Sun, 09 Jul 2000 10:56:47 -0400 Subject: license - zoom to selected References: <3965D548.E33DFC68@eng.chula.ac.th> <20000708175033.E22342@cheops.usf.Uni-Osnabrueck.DE> Message-ID: <396892AF.B6FBE15F@videotron.ca> Jan-Oliver Wagner wrote: > > Just in short: MapServer is VERY close to the MIT license, but is > not identical. Thus you will not find it at www.gnu.org. > I consider the difference as neglectable unless you are planning > *big business* with the map server. However, Map Server > is Free Software!. > Jan-Oliver, You have a good eye... when I first looked at the license I didn't notice the subtle difference: The X/MIT license says: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. MapServer's license says: The above copyright notice and this permission notice shall be included in all copies of this Software or works derived from this Software. My understanding is that UMN asks for their copyright notice to be included with the source code for all derived work (makes sense!), but unlike the GPL, that should not force you to make your derived work Open Source or to include the copyright notice in end-user accessable documentation (like GD asks you to do). Which means that the impact is minimal. Am I right? Or is there something else that I missed? > > In that thread in May, there was the proposal to put the license > online. It would really help to provide an answer to this FAQ. > I still think that it would make sense to make the licensing easily accessable on the web site and make it clear that this is a "Modified X/MIT license"... While I don't think that the UMN license is restrictive at all, it would still be better if new users could easily find the licensing terms before they decide to adopt MapServer. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pgallen at randomlogic.com Sun Jul 9 14:10:51 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Sun, 09 Jul 2000 14:10:51 -0700 Subject: quest References: <001f01bfe95c$cbcc7360$94b4fea9@sadf> Message-ID: <3968EA5B.960CA2F3@randomlogic.com> > Marcelo Jury wrote: > > Hello sr. > > I read something about 5 mins to wait!! this is too much time, why? > I wonder if mapserver software is suitable to use in big sites like > yellow pages, in comparison to objectfx. How do you compare those > products? > The computer that my site is running on (http://24.5.14.144:80 - yes, it needs to be updated) is very slow by today's standards, and is not only my map and web server, but a file server, mail server, and the machine I do most of my work on (including writing this e-mail). In other words, it's slow because it's not very powerful and it's generally real busy. In comparison, my private mapserver machine - a 433MHz Alpha system that I use for development and proprietary work - takes only a few seconds to generate a map while the slower machine would take 5 minutes or more. As compared to a map server such as MapQuest (www.mapquest.com), MapServer is far better. MapQuest runs ~$50,000 for the server, and an additional $20,000/year for licensing the map data. It also has many limitations (such as using port 80 to send/received data from the web server - a Very Bad Thing(tm) ) and a limited number of platforms on which it will run. The company I used to work for - I am now self employed as a consultant - purchased MapQuest last year and continues to have problems with it to this day. I paid no money for MapServer and had a couple of operational sites (including my private one) up and running with no problems (other than my own scripting mistakes ;) within a week after I compiled the code. My private site has the entire US and territories (well over 10GB of map data) online with database support for dynamic map content using MapServer and MapScript. All the map data was aquired for free and is current as of 1998. PGA From aborruso at spaziogis.it Mon Jul 10 02:43:21 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 10 Jul 2000 11:43:21 +0200 Subject: Error when I put EMPTY in web object!!! Message-ID: Dear users, when I put in the definition of the web object a line like EMPTY "http://nadir/mapserver/portale/template/oops.htm/", I have: "mapserv.exe - Application error - The instruction at 0x004606a8 has made reference to the memory at 0x00007932. The memory could not be "written" (sorry for this bad translation from italian). After this message I have the right web-page, but this message is a bad thing. I'm using mapserver under Microsoft Windows Nt, I'm viewing the pages with IE5, and I'm using either PWS or IWS. I have attached map and template files. Thanks a lot, Andrea (See attached file: portale.map)(See attached file: portale.htm) -------------- next part -------------- A non-text attachment was scrubbed... Name: portale.map Type: application/octet-stream Size: 1799 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Mon Jul 10 07:10:53 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Jul 2000 09:10:53 -0500 Subject: Error when I put EMPTY in web object!!! Message-ID: That option works ok on UNIX/LINUX, but I'll have a look and will have it fixed in 3.3.011 later this week. Until then the old saying "then don't do that..." applies. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/10/00 04:43AM >>> Dear users, when I put in the definition of the web object a line like EMPTY "http://nadir/mapserver/portale/template/oops.htm/", I have: "mapserv.exe - Application error - The instruction at 0x004606a8 has made reference to the memory at 0x00007932. The memory could not be "written" (sorry for this bad translation from italian). After this message I have the right web-page, but this message is a bad thing. I'm using mapserver under Microsoft Windows Nt, I'm viewing the pages with IE5, and I'm using either PWS or IWS. I have attached map and template files. Thanks a lot, Andrea (See attached file: portale.map)(See attached file: portale.htm) From steve.lime at dnr.state.mn.us Mon Jul 10 08:41:17 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Jul 2000 10:41:17 -0500 Subject: license - zoom to selected Message-ID: The University will have to comment on why simply the MIT license wasn't used. I believe it centered on what exactly "substantial portions" means. An effort has been made to get OSI certification but those folks aren't real speedy. The release of 3.3.011 will be accompanied by a refreshed website that will contain links to the license on all pages. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 07/09/00 09:56AM >>> Jan-Oliver Wagner wrote: > > Just in short: MapServer is VERY close to the MIT license, but is > not identical. Thus you will not find it at www.gnu.org. > I consider the difference as neglectable unless you are planning > *big business* with the map server. However, Map Server > is Free Software!. > Jan-Oliver, You have a good eye... when I first looked at the license I didn't notice the subtle difference: The X/MIT license says: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. MapServer's license says: The above copyright notice and this permission notice shall be included in all copies of this Software or works derived from this Software. My understanding is that UMN asks for their copyright notice to be included with the source code for all derived work (makes sense!), but unlike the GPL, that should not force you to make your derived work Open Source or to include the copyright notice in end-user accessable documentation (like GD asks you to do). Which means that the impact is minimal. Am I right? Or is there something else that I missed? > > In that thread in May, there was the proposal to put the license > online. It would really help to provide an answer to this FAQ. > I still think that it would make sense to make the licensing easily accessable on the web site and make it clear that this is a "Modified X/MIT license"... While I don't think that the UMN license is restrictive at all, it would still be better if new users could easily find the licensing terms before they decide to adopt MapServer. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Jul 10 08:52:24 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Jul 2000 10:52:24 -0500 Subject: Visual map file builder Message-ID: I wanted to try and use a web interface but maintaining state is such a headache. Perl/Tk is pretty easy (already have much of the interface done) and will run just about anywhere. As for editors, I'm not aware of any. OpenMap may be a possibility http://openmap.bbn.com/ but I've not used it. MapScript can certainly be used for writing and reading shapefiles if someone could put together a client... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> RAldridge 07/08/00 01:06PM >>> Steve, Sounds like a useful tool. I'd definitely be interested. I've really gotten behind on the latest MapServer developments. I like using PHP w/ MySql for database stuff, so I've got to check out the PHP/MapScript stuff. On a similar thread...Are there any free (preferably open source) graphic shapefile create/edit tools available? This would be excellent for small projects. I'd considered at one time diving into shapelib and trying to build a simple viewer/editor myself, but I haven't made the time. Thanks, Robert ---------------------- Do you do Linux? :) Get your FREE @linuxstart.com email address at: http://www.linuxstart.com From steve.lime at dnr.state.mn.us Mon Jul 10 09:30:35 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 10 Jul 2000 11:30:35 -0500 Subject: Visual map file builder Message-ID: I hope to have something in the next couple of weeks (early August). I already see the need for some core mods to mapserver such as replacing arrays of layers or classes with linked lists. Otherwise layer order changes and deletes are problematic. I've already got it reading and rendering files and need help developing Perl/Tk widgets to control layer/class/scalebar settings. Mapfile writing is already working so it's mostly an interface problem. Anyone with Perl/Tk experience that could help with developing some compound widgets, please let me know. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 07/07/00 03:33PM >>> Stephen Lime wrote: > > Hello users: I'm starting a new project to aid in building map files. The plan now is to > use MapScript and Perl/Tk to build a GUI for creation and editing map files. I wanted > to find out what, if anything, others are doing in this area. I know there are a couple > of folks using ArcView to create map files but I think we need something a bit more > MapServer centric. Lemme know... > Steve, We have started working on a similar idea, but that would be written using PHP and MapScript. Our plan is to build a set of simple web interfaces to navigate in the .MAP file, make changes, do previews of maps, and save modified .MAP file. The same way as you, we do not want something based on ArcView or any other GIS... we want it 100% MapServer-based, and we also want something that works on any OS where MapServer can run. However, this is a low priority project for us at the moment, so I'm not sure when we would have something useful available. If you guys get something working before we do and it is in the same style as what we want to build, then we might decide to use your version instead. As usual, I would rather spend our time improving your tool than reinventing the wheel. Please keep us posted. BTW, would it be a good idea to have a page on the MapServer web site with a wish-list, and a list of features planned or currently being added to MapServer? This would give all users an idea of what's coming, and when it might be available. And it would definitely help preventing duplication of efforts. Anyways... just a thought. Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From aborruso at spaziogis.it Mon Jul 10 10:21:32 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Mon, 10 Jul 2000 19:21:32 +0200 Subject: QueryMaps & mapext=shapes & point??? Message-ID: Dear users, I have tryed querymap function and it's great, but when I want to zoom to a point feature, the ponit appears in the upper left corner of my image. Is it normal? Why? Is it necessary to use lat and long to zooming to a point ? The problem is that I would like to hilight the object that I'm querying to differentiate it from the others. Thanks a lot, Andrea From rravi at gis.umn.edu Mon Jul 10 10:43:50 2000 From: rravi at gis.umn.edu (Ravi Rajamani) Date: Mon, 10 Jul 2000 12:43:50 -0500 Subject: Visual map file builder In-Reply-To: Message-ID: Hi All, I was introduced to Mapsscript and Perl just a couple of weeks back and i am now comfortable writing mapscript applications using Perl. In the next couple of weeks(August) i hope to write a client application to download geotiff files .As soon as i do that, I would like to try and put together a client for writing and reading shapefiles. I look forward to help and advice from you all in my endeavour. thanks ravi Ravi Rajamani GIS Remote Sensing Lab Dept of Forest Resources University of Minnesota On Mon, 10 Jul 2000, Stephen Lime wrote: > I hope to have something in the next couple of weeks (early August). I already > see the need for some core mods to mapserver such as replacing arrays of > layers or classes with linked lists. Otherwise layer order changes and deletes > are problematic. I've already got it reading and rendering files and need help > developing Perl/Tk widgets to control layer/class/scalebar settings. Mapfile > writing is already working so it's mostly an interface problem. Anyone with > Perl/Tk experience that could help with developing some compound widgets, > please let me know. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Daniel Morissette 07/07/00 03:33PM >>> > Stephen Lime wrote: > > > > Hello users: I'm starting a new project to aid in building map files. The plan now is to > > use MapScript and Perl/Tk to build a GUI for creation and editing map files. I wanted > > to find out what, if anything, others are doing in this area. I know there are a couple > > of folks using ArcView to create map files but I think we need something a bit more > > MapServer centric. Lemme know... > > > > Steve, > > We have started working on a similar idea, but that would be written > using PHP and MapScript. Our plan is to build a set of simple web > interfaces to navigate in the .MAP file, make changes, do previews of > maps, and save modified .MAP file. The same way as you, we do not want > something based on ArcView or any other GIS... we want it 100% > MapServer-based, and we also want something that works on any OS where > MapServer can run. > > However, this is a low priority project for us at the moment, so I'm not > sure when we would have something useful available. If you guys get > something working before we do and it is in the same style as what we > want to build, then we might decide to use your version instead. As > usual, I would rather spend our time improving your tool than > reinventing the wheel. Please keep us posted. > > > BTW, would it be a good idea to have a page on the MapServer web site > with a wish-list, and a list of features planned or currently being > added to MapServer? This would give all users an idea of what's coming, > and when it might be available. And it would definitely help preventing > duplication of efforts. Anyways... just a thought. > > Regards, > -- > ------------------------------------------------------------ > Daniel Morissette danmo at videotron.ca > http://pages.infinit.net/danmo/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Mon Jul 10 11:24:45 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 10 Jul 2000 14:24:45 -0400 Subject: Visual map file builder Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C0E2@s5-ccr-r1> BTW, since I've seen it brought up a few times ... I've written a perl program to read shapefiles natively. I just have to turn it into a proper Perl module before I release it. I also plan on adding writing functionality to it ... Although this is not a huge priority for me right now ... If anybody is interested in this, e-mail me directly. J.F. > ---------- > From: Ravi Rajamani[SMTP:rravi at gis.umn.edu] > Sent: Monday, July 10, 2000 1:43 PM > To: Stephen Lime > Cc: danmo at videotron.ca; mapserver-users at lists.gis.umn.edu > Subject: Re: Visual map file builder > > Hi All, > I was introduced to Mapsscript and Perl just a couple of weeks back and i > am now comfortable writing mapscript applications using Perl. In the next > couple of weeks(August) i hope to write a client application to download > geotiff files .As soon as i do that, I would like to try and put together > a client for writing and reading shapefiles. I look forward to help and > advice from you all in my endeavour. > thanks > ravi > > > Ravi Rajamani > > GIS Remote Sensing Lab > Dept of Forest Resources > University of Minnesota > > > On Mon, 10 Jul 2000, Stephen Lime wrote: > > > I hope to have something in the next couple of weeks (early August). I > already > > see the need for some core mods to mapserver such as replacing arrays of > > > layers or classes with linked lists. Otherwise layer order changes and > deletes > > are problematic. I've already got it reading and rendering files and > need help > > developing Perl/Tk widgets to control layer/class/scalebar settings. > Mapfile > > writing is already working so it's mostly an interface problem. Anyone > with > > Perl/Tk experience that could help with developing some compound > widgets, > > please let me know. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Daniel Morissette 07/07/00 03:33PM >>> > > Stephen Lime wrote: > > > > > > Hello users: I'm starting a new project to aid in building map files. > The plan now is to > > > use MapScript and Perl/Tk to build a GUI for creation and editing map > files. I wanted > > > to find out what, if anything, others are doing in this area. I know > there are a couple > > > of folks using ArcView to create map files but I think we need > something a bit more > > > MapServer centric. Lemme know... > > > > > > > Steve, > > > > We have started working on a similar idea, but that would be written > > using PHP and MapScript. Our plan is to build a set of simple web > > interfaces to navigate in the .MAP file, make changes, do previews of > > maps, and save modified .MAP file. The same way as you, we do not want > > something based on ArcView or any other GIS... we want it 100% > > MapServer-based, and we also want something that works on any OS where > > MapServer can run. > > > > However, this is a low priority project for us at the moment, so I'm not > > sure when we would have something useful available. If you guys get > > something working before we do and it is in the same style as what we > > want to build, then we might decide to use your version instead. As > > usual, I would rather spend our time improving your tool than > > reinventing the wheel. Please keep us posted. > > > > > > BTW, would it be a good idea to have a page on the MapServer web site > > with a wish-list, and a list of features planned or currently being > > added to MapServer? This would give all users an idea of what's coming, > > and when it might be available. And it would definitely help preventing > > duplication of efforts. Anyways... just a thought. > > > > Regards, > > -- > > ------------------------------------------------------------ > > Daniel Morissette danmo at videotron.ca > > http://pages.infinit.net/danmo/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > > > > From steve.lime at dnr.state.mn.us Tue Jul 11 15:10:46 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 11 Jul 2000 17:10:46 -0500 Subject: QueryMaps & mapext=shapes & point??? Message-ID: The mapext=shapes was intended for a) groups of features or b) single line or polygon features. Doesn't surprise me that a single point would yield strange results since the map extent essentially becomes a point. Instead you can use mapxy=shapes and then buffer= or scale= to set the map dimesions. The mapxy=shapes calcs a simple centroid based on the set of selected features. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/10/00 12:21PM >>> Dear users, I have tryed querymap function and it's great, but when I want to zoom to a point feature, the ponit appears in the upper left corner of my image. Is it normal? Why? Is it necessary to use lat and long to zooming to a point ? The problem is that I would like to hilight the object that I'm querying to differentiate it from the others. Thanks a lot, Andrea From shayes at bigpond.net.au Wed Jul 12 00:28:26 2000 From: shayes at bigpond.net.au (Steven Hayes) Date: Wed, 12 Jul 2000 17:28:26 +1000 Subject: returning a feature id from a grid ref Message-ID: <003c01bfebd2$c4dcd6d0$92938490@nsw.bigpond.net.au> Hi, does anyone know if it is possible to pass an x,y value and a layer name to mapserv and get returned the feature id at that grid reference ? Also, I have a database of points which I would like to project onto a map but do not want to turn them into a point layer as the change often. I can easily call the x,y values from my database but am I wasting my time trying to project them on the map using the webuser layer feature (note, there may be up to 50 points). Regards Steven Hayes ---------------------------------------------- http://www.tnd.com.au From jrf at segovia.mit.edu Wed Jul 12 10:20:07 2000 From: jrf at segovia.mit.edu (John Frank) Date: Wed, 12 Jul 2000 13:20:07 -0400 (EDT) Subject: quakes.map in MapScript example? Message-ID: Hi -- I'm new to mapscript and am trying to run the mapquakes.pl example locally. Does this line _create_ quakes.map or open an existing .map file? die $mapscript::ms_error->{message} unless $map = new mapObj("mypath/quakes.map"); If it opens an existing one, is that file available somewhere? I see that as of last December, new mapObj does not create an "empty" mapObj. Is this still true? Thanks! John _____________________________________________________________________ John R. Frank Ecology! Solar! N9WLY www.mit.edu/~jrf jrf at mit.edu cell: (617) 283-3999 jrf at joyce.eng.yale.edu fax: (253) 390-4974 jrf at 4dobe.com To: Subject: MapScript example... From: "Stephen Lime" Date: Tue, 16 Nov 1999 15:08:58 -0600 Content-Disposition: inline Got a simple MapScript example running at http://arachnid.dnr.state.mn.us/ms_test. It's a perl script that uses remote data from the USGS (gathered using the perl Net::Finger module) to plot the last 21 semi-major earth quakes around the world. I swiped the world DEM from Doug Nebert's prototype, pretty image. Everything is handled in perl using a few MapScript calls to manipulate map file settings, draw the basemap, map the quake locations and to add a timestamp. It may be slow depending on how busy the USGS servers are cause each pan or zoom executes a finger request. In a production mode you'd probably nab the data every hour or so and work from the copy, still no need to create a shapefile. I'll glady share any details of this script. Yes, documentation is in the works. I hope to have at least some up tonite at the main MapServer site. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From schu at gaf.de Wed Jul 12 11:47:04 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Wed, 12 Jul 2000 20:47:04 +0200 Subject: limitations ? Message-ID: <396CBD28.D97D6EBB@gaf.de> Hi there, is there a limitation on the cgi-parameters sent to the mapserver or some other limitation to the number of shapefiles (features). Switching all layers on in my application sometimes causes a server error. This occurs especially with two layers which are displayed depending on the scale and are relative big. The error log of my Apache server says: Premature end of script headers: ../mapserv. It would even help me if someone would tell me if there exist any limitations, so it will be more easy to find the error. Or might it be a server problem ? I am looking forward to any suggestions, thanks, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From seano at metavera.com Wed Jul 12 13:26:28 2000 From: seano at metavera.com (Sean O'Hagan) Date: Wed, 12 Jul 2000 16:26:28 -0400 Subject: Coverage vs. Shapefile? Message-ID: <010901bfec3f$757686a0$0582a8c0@karkalis.com> Can someone explain what a coverage is with respect to a shapefile? Is it a different format? Is it simply a collection of shapefiles? Thanks! Sean O'Hagan Metavera Solutions, Inc. 192 Spadina Ave., Suite 405 Toronto, ON M5T 2C2 Tel: (416) 504-8351 Fax: (416) 364-2636 Email: seano at metavera.com From danmo at videotron.ca Wed Jul 12 13:55:30 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 12 Jul 2000 16:55:30 -0400 Subject: Coverage vs. Shapefile? References: <010901bfec3f$757686a0$0582a8c0@karkalis.com> Message-ID: <396CDB42.DCA29573@videotron.ca> Sean O'Hagan wrote: > > Can someone explain what a coverage is with respect to a shapefile? Is it a > different format? Is it simply a collection of shapefiles? > Coverages and shapefiles are different things. Shapefiles are ArcView's native file format and are usually composed of 3 files with the same basename and extensions .shp, .shx and .dbf. Shapefiles do not contain any topology... e.g. in a shapefile the shared boundaries between 2 polygons are duplicated. Also, ESRI has published the shapefile format specs so several applications (like MapServer) can deal with shapefiles. Coverages are Arc/Info's native format... every coverage comes as a directory in which most of the files have a .adf extension, and the attributes come in an info directory. Coverages can contain topology and thus allow you to do more advanced analysis in Arc/Info. You can open coverages in ArcView but I don't think that you can take advantage of the topology in ArcView (but I could be wrong). I hope that helps! P.S. The coverage specs are not published by ESRI, but have been reverse-engineered... :-) http://pages.infinit.net/danmo/e00/docs/v7_bin_cover.html -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sphillip at mail.esrp.org Wed Jul 12 14:15:51 2000 From: sphillip at mail.esrp.org (Scott Phillips) Date: Wed, 12 Jul 2000 14:15:51 PDT Subject: Coverage vs. Shapefile? In-Reply-To: <010901bfec3f$757686a0$0582a8c0@karkalis.com>; from "Sean O'Hagan" at Jul 12, 100 4:26 pm Message-ID: <200007122115.OAA03602@mail.esrp.org> Sean, There is a web site called: ANALYSIS OF ARC EXPORT FILE FORMAT (E00 file) FOR ARC/INFO (REV 6.1.1) http://www.ccwr.ac.za/~lynch2/arc_e00.html It goes into the details on the ARC/INFO Coverage file format if you are interested. Regards, Scott Phillips, ESRP sphillip at esrp.org > > Can someone explain what a coverage is with respect to a shapefile? Is it a > different format? Is it simply a collection of shapefiles? > > Thanks! > Sean O'Hagan > Metavera Solutions, Inc. > 192 Spadina Ave., Suite 405 > Toronto, ON > M5T 2C2 > Tel: (416) 504-8351 > Fax: (416) 364-2636 > Email: seano at metavera.com > > > From schu at gaf.de Thu Jul 13 02:09:01 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Thu, 13 Jul 2000 11:09:01 +0200 Subject: scale Message-ID: <396D872D.107C4BFC@gaf.de> Hello, I am trying to use the "scale" cgi-parameter in combination with "mapxy" but actualy the new image extent always adjusts around the point -1 -1 -1 -1 (scale is fine). I am working with shapes in decimal degree. Does anyone have an idea about this ? Thanks alot, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From aborruso at spaziogis.it Thu Jul 13 02:13:46 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 13 Jul 2000 11:13:46 +0200 Subject: Some little questions!! Message-ID: Dear users, I have for you some little question: - Is it possible to point to the label of an object (in example not to a point) to go toward an URL? - I have a point layer with SYMBOLSCALE 200000, MINSIZE 6, MAXSIZE 14 and I would not that the relate symbol in the legend becomes more or less big when I zoom in or out. How can I do? Thank you very much, Andrea From david.fawcett at moea.state.mn.us Thu Jul 13 07:43:17 2000 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Thu, 13 Jul 2000 09:43:17 -0500 Subject: Some little questions!! Message-ID: It sounds like you would like a static legend for your map. If this is the case, zoom in on your map until the legend looks good. Click on the image that contains the legend. It will have a long name, something like "myapplication2556330.gif". Save it to the directory that contains your application, and give it a more reasonable name. In main template file for your application, instead of referring to your legend like this:
Point directly to the image that you just saved to your server, like this:
If you want to, you can also get fancy and pull the image into Photoshop to clean it up and make it prettier. I hope that this helps, David. > ---------- > From: aborruso at spaziogis.it[SMTP:aborruso at spaziogis.it] > Sent: Thursday, July 13, 2000 4:13 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Some little questions!! > > Dear users, > I have for you some little question: > - Is it possible to point to the label of an object (in example not to a > point) to go toward an URL? > - I have a point layer with SYMBOLSCALE 200000, MINSIZE 6, MAXSIZE 14 > and I would not that the relate symbol in the legend becomes more or less > big when I zoom in or out. How can I do? > > Thank you very much, > > Andrea > From steve.lime at dnr.state.mn.us Thu Jul 13 08:45:06 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 13 Jul 2000 10:45:06 -0500 Subject: Some little questions!! Message-ID: >>> 07/13/00 04:13AM >>> > Dear users, > I have for you some little question: > - Is it possible to point to the label of an object (in example not to apoint) to go toward an URL? No, you query the GIS data not the map. This is true for the standard CGI application. There are workarounds. For example, using MapScript you can post-process the label cache and use it to answer subsequent queries or create a client side image map. Note that an image map is not usable with a form element. This is certainly an area that could use some work. Caching the label cache is probably the best solution. > - I have a point layer with SYMBOLSCALE 200000, MINSIZE 6, MAXSIZE 14 > and I would not that the relate symbol in the legend becomes more or less > big when I zoom in or out. How can I do? I believe this is fixed (i.e. legends don't scale) in the new version (out tomorrow!) but I'll have to check. > Thank you very much, > Andrea Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From jornelas at antares.inegi.gob.mx Thu Jul 13 12:32:22 2000 From: jornelas at antares.inegi.gob.mx (Jose L. Ornelas de Anda) Date: Thu, 13 Jul 2000 14:32:22 -0500 Subject: Large data sets References: Message-ID: <00071314364904.14783@antares> Hello everybody, Where can I find documentation about setting up large data sets (there is no link in the documentation page). I am trying to set up access to topographical data in the 1:1,000,000 scale (and later 1:250,000) for all of Mexico using Mapserver, but if possible I will try to have several data sets (tiles), instead of a single big one. Thanks, Jose L. Ornelas de Anda DGG-INEGI Av Heroe de Nacozari Sur 2301 20290, Aguascalientes, Ags Mexico jornelas at antares.inegi.gob.mx From sphillip at mail.esrp.org Thu Jul 13 12:59:01 2000 From: sphillip at mail.esrp.org (Scott Phillips) Date: Thu, 13 Jul 2000 12:59:01 PDT Subject: Large data sets In-Reply-To: <00071314364904.14783@antares>; from "Jose L. Ornelas de Anda" at Jul 13, 100 2:32 pm Message-ID: <200007131959.MAA05623@mail.esrp.org> Hello Jose, The map file documentation has a little information on using tiles for shapefiles, but it doesn't mention that you can do the same thing for tiles of raster data. I tried it with a set of scanned topographic maps (about 500 maps) and it worked fine. What I did was set up an index shapefile of the map tiles. I added a field to this shape file called "LOCATION". In that field, I put the full path to the image tile, such as: "/data/gis/data/drg/files/o37121h8.tif" In my map file, I added this entry: layer name "drg" type raster status on offsite 2 tileindex /data/gis/data/drg/tiles maxscale 24000 end If you have ArcView files showing where the map tiles are, you can modify this and use it for the tile index. Hope this helps, Scott Phillips scott at phillipsgis.com > > Hello everybody, > > Where can I find documentation about setting up large data sets (there is no > link in the documentation page). > > I am trying to set up access to topographical data in the 1:1,000,000 scale > (and later 1:250,000) for all of Mexico using Mapserver, but if possible I will > try to have several data sets (tiles), instead of a single big one. > > Thanks, > > Jose L. Ornelas de Anda > DGG-INEGI > Av Heroe de Nacozari Sur 2301 > 20290, Aguascalientes, Ags > Mexico > jornelas at antares.inegi.gob.mx > > From MirandaCook at auslig.gov.au Thu Jul 13 16:58:08 2000 From: MirandaCook at auslig.gov.au (Cook, Miranda) Date: Fri, 14 Jul 2000 09:58:08 +1000 Subject: geoTIFFs and Rectification Message-ID: <53273E187450D311ACF6009027927B12962860@AUSLIGMAIL1> Hi, Do geoTIFF files need to be projected to a square grid or only if we are going to be tiling them together? Thanks, Miranda From rday at pa.net Thu Jul 13 23:22:51 2000 From: rday at pa.net (Robert Day) Date: Fri, 14 Jul 2000 02:22:51 -0400 Subject: Query on a dates????????? Message-ID: <002401bfed5c$042263c0$f2281bac@pa.net> Dear users, I have included a segment of my map file that is not working. The problem is the date, but I can't find anything on date formats related to the map server's mapfile. I know that this is very simple, but were do I look. Thank You, Robert Day LAYER NAME gammadata TYPE POINT STATUS ON MAXSCALE 5500 DATA gammamastervp10 SYMBOLSCALE 1200 CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] LT 9000 AND [GPS_DATE] EQ 19991229) Name ""0 - 9000"" COLOR 0 0 255 END ## CLASS CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] GT 9000 AND [CPM] LT 11000 AND [GPS_DATE] EQ 19991229) Name ""9000 - 11000"" COLOR 0 255 0 END ## CLASS CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] GT 13000 AND [CPM] LT 13000 AND [GPS_DATE] EQ 19991229) Name ""11000 - 13000"" COLOR 255 192 1 END ## CLASS CLASS symbol 4 SIZE 1 EXPRESSION ([CPM] GT 13000 AND [GPS_DATE] EQ 19991229) Name ""greater than 13000"" COLOR 255 0 0 END ## CLASS END Robert Day robert.day at konsalt.com www.konsalt.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aborruso at spaziogis.it Fri Jul 14 01:21:38 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 14 Jul 2000 10:21:38 +0200 Subject: Define a variable Message-ID: Dear user, my map file and my template file and ... are in a folder with a long path (something like /lotus/domino/data/domino/spaziogisit/mapserver/cartsic/symbols/line.sym); can I define a variable like mapserver= /lotus/domino/data/domino/spaziogisit/mapserver/ to point more easily to my work folder?? Thank you, Andrea From fsvpss at eng.chula.ac.th Fri Jul 14 02:23:29 2000 From: fsvpss at eng.chula.ac.th (Phisan Santitamnont) Date: Fri, 14 Jul 2000 16:23:29 +0700 Subject: A question and a tippo Message-ID: <396EDC11.8028972E@eng.chula.ac.th> Hi Steve, Thank you for release 3.3.011 Don't you want to release code of Java code of 'Land-view' application at this time ? BTW on the page http://mapserver.gis.umn.edu/doc.html there is a tippo. you 've linked php to www.php.com ! 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 aborruso at spaziogis.it Fri Jul 14 07:30:57 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 14 Jul 2000 16:30:57 +0200 Subject: Line symbols?? Message-ID: Dear users, could some explain me the syntax to create line symbols? Are line symbols scalable? Could you give an example of line symbol (in a map file) to see a line with dinamic scaling? Thank you, Andrea From steve.lime at dnr.state.mn.us Fri Jul 14 07:46:19 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Jul 2000 09:46:19 -0500 Subject: Define a variable Message-ID: You can define a var when the application is first accessed and use it as a "pass-through" var, but in this case it's sort of unnecessary. Symbol set paths etc can all be defined relative to the location of your mapfile. So in your mapfile there is really no reason to have full paths. Using your example and assuming the mapfile is: /lotus/domino/data/domino/spaziogisit/mapserver/cartsic/mymap.map then you'd define: LINESET symbols/line.sym MARKERSET symbols/marker.sym and so on... Your mapfile location only really need be specified once, on the initial call to the application, either a url or a start page. In your template files you can use substitutions like: to pass through the mapfile path information. In most of my apps I have to set path values for one file (the mapfile) in one spot and that's it. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/14/00 03:21AM >>> Dear user, my map file and my template file and ... are in a folder with a long path (something like /lotus/domino/data/domino/spaziogisit/mapserver/cartsic/symbols/line.sym); can I define a variable like mapserver= /lotus/domino/data/domino/spaziogisit/mapserver/ to point more easily to my work folder?? Thank you, Andrea From steve.lime at dnr.state.mn.us Fri Jul 14 08:05:22 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Jul 2000 10:05:22 -0500 Subject: Query on a dates????????? Message-ID: MapServer doesn't support date types in shapefiles mainly because the underlying shapefile library doesn't. (does ArcView?) Now, if you store your dates as another type, say int or char, then there's hope. If using numeric types the below code should work. If using a char field then you would need to quote the target date: EXPRESSION ([CPM] LT 9000 AND [GPS_DATE] EQ '19991229') Lemme know what your particular setup is like. Steve >>> "Robert Day" 07/14/00 01:22AM >>> Dear users, I have included a segment of my map file that is not working. The problem is the date, but I can't find anything on date formats related to the map server's mapfile. I know that this is very simple, but were do I look. Thank You, Robert Day LAYER NAME gammadata TYPE POINT STATUS ON MAXSCALE 5500 DATA gammamastervp10 SYMBOLSCALE 1200 CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] LT 9000 AND [GPS_DATE] EQ 19991229) Name ""0 - 9000"" COLOR 0 0 255 END ## CLASS CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] GT 9000 AND [CPM] LT 11000 AND [GPS_DATE] EQ 19991229) Name ""9000 - 11000"" COLOR 0 255 0 END ## CLASS CLASS SYMBOL 4 SIZE 1 EXPRESSION ([CPM] GT 13000 AND [CPM] LT 13000 AND [GPS_DATE] EQ 19991229) Name ""11000 - 13000"" COLOR 255 192 1 END ## CLASS CLASS symbol 4 SIZE 1 EXPRESSION ([CPM] GT 13000 AND [GPS_DATE] EQ 19991229) Name ""greater than 13000"" COLOR 255 0 0 END ## CLASS END Robert Day robert.day at konsalt.com www.konsalt.com From steve.lime at dnr.state.mn.us Fri Jul 14 07:59:50 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Jul 2000 09:59:50 -0500 Subject: geoTIFFs and Rectification Message-ID: All raster files must exist in the output projection of the desired map. In other words, they are used as is. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Cook, Miranda" 07/13/00 06:58PM >>> Hi, Do geoTIFF files need to be projected to a square grid or only if we are going to be tiling them together? Thanks, Miranda From m_anderson14 at hotmail.com Fri Jul 14 09:01:14 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Fri, 14 Jul 2000 09:01:14 PDT Subject: add point to a shapefile Message-ID: <20000714160114.87965.qmail@hotmail.com> Hello, I am trying to add points to a shapefile and am having problems. When I make a new shapeObj and try to add the coordinates with this line: $pt->{x} = 456848.34843; I get this error "Undefined subroutine &mapscript::shapeObj_x_set called at ...". So I tried making $pt a pointObj() instead. I can set it's coordinates, but the add method of shapefileObjs expects a shapeObj instead of a pointObj. So my question is, how do I set the x,y coordinates of a shapeObj that represents a point. This is my first day with Perl so I apologize if the answer is obvious. Thanks. Mike Anderson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From steve.lime at dnr.state.mn.us Fri Jul 14 14:30:41 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 14 Jul 2000 16:30:41 -0500 Subject: add point to a shapefile Message-ID: Remember, a shape is made up of lines (parts) that are in turn made up of points. So, you need to do something like this: $part = new lineObj(); $shape = new shapeObj(); $point->{x} = $x; $point->{y} = $y; $part->add($point); $shape->add($part); $shapefile->add($shape); I might add a "addPoint" method to the shapefileObj to simplify life... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 07/14/00 11:01AM >>> Hello, I am trying to add points to a shapefile and am having problems. When I make a new shapeObj and try to add the coordinates with this line: $pt->{x} = 456848.34843; I get this error "Undefined subroutine &mapscript::shapeObj_x_set called at ...". So I tried making $pt a pointObj() instead. I can set it's coordinates, but the add method of shapefileObjs expects a shapeObj instead of a pointObj. So my question is, how do I set the x,y coordinates of a shapeObj that represents a point. This is my first day with Perl so I apologize if the answer is obvious. Thanks. Mike Anderson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From rlieuws at cura.net Sun Jul 16 08:04:41 2000 From: rlieuws at cura.net (Ronald Lieuw) Date: Sun, 16 Jul 2000 11:04:41 -0400 Subject: mapserver demo problems Message-ID: <000901bfef37$2bca9640$501432c8@r> Hi, I am new to webpublishing but know GIS. Configuration: I am using NT4.0 (SP4), IIS & IE4.1 and the NT server (named //aptiva) console to run the mapserver demo. I installed mapserv.exe in c:/cgi-bin and the other files in InetPub\wwwroot\ms_demo. >From the demo on the internet I understand that to start the demo you have to call the initfile in IE, in my case c:\inetpub\wwwroot\ms_demo\demo_t2.html (see below,I changed the contents of the original demo_init.html file I downloaded) demo_t2.html source: ---------------------------- MapServer Demo Interface

MapServer Demo Interface



----------------------------- When I press initialize, I get the following errormsg -> File download (you have choosen to download a file mapserv.exe from c:\cgi-bin bla bla bla) Alternatively when I change in demo_t2.html:
and press initialize, I get the following errormsg ->HTTP/1.0 500 Server Error (The system cannot find the path specified. ) Question: What am I doing wrong? Question: 1. From the source of demo.html online I notice the mentioning of a demo.layout file, which I don't have in my files. Do I need that file? 2. I also read in the creating applications page about the use of either the GET or the POST cgi request. The online demo uses POST and some other commands. Which should I use? TIA, Ronald Lieuw Curacao, Neth. Antilles -------------- next part -------------- An HTML attachment was scrubbed... URL: From schu at gaf.de Mon Jul 17 08:38:52 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Mon, 17 Jul 2000 17:38:52 +0200 Subject: itemnquery & points Message-ID: <3973288B.7F4CA871@gaf.de> Hello, I am still having some trouble with the itemnquery mode and points, dislaying the selected features if only one point is in the result set. Using an URL like http://pc37.gaf.de/cgi-bin/ChileWWW/mapserv?map=%2Fusr%2Flocal%2Fhttpd%2Fhtdocs%2FChileWWW%2Fchilewww6_ns.map&mode=browse&mapxy=-71+-33&scale=1000000&qlayer=obrasp&item=PROVINCIA&value=L&layer=obrase&layer=comunas is working but changing the mode to itemnquery and mapxy to shapes then buffer or scale don't work anymore. If the query results in two points then there is no problem, but with one point there is no feedback from mapserver. Does anyone have an example with this kind of query working or an idea what is going wrong ? Thanks, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From ender at titan.lab.csuchico.edu Mon Jul 17 01:35:27 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Mon, 17 Jul 2000 08:35:27 +0000 (/etc/localtime) Subject: Symbols Message-ID: Steven, Others: I have been working on a project where I am taking ArcView APRs and converting them into map files. I have a perl script that I have been using, but I have been running into a couple of problems with incompatible symbol methodologies. One of the things that ArcView does that I actually like is the way it stores symbols. I would like to start working to add symbol definitions to the mapfile itself, as well as allowing composite symbols and stipples. I have many clients who wish for their online maps to use the same symbols as their paper maps, and modifying the symbol structure is the only way I can see it happening. I am willing to do much of the programming to add this functionality to the mapserver base, but I don't know what your policy is on updating the code. So far, it appears that Steve and his team at UMN are the only ones involved in updating the code and making design decisions. I would like some kind of assurance that I'm not stepping on anyone's toes if I do add this to the code base, and that it can actually be put into the production version of the code if it is approved. -Aaron Stafford California State University, Chico Department of Geography and Planning From Tim.Mackey at agso.gov.au Mon Jul 17 18:22:03 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Tue, 18 Jul 2000 11:22:03 +1000 Subject: link to SDE Message-ID: <52113C81E9ACD31182D40060B0570D9B176864@agsomail1.agso.gov.au> Hi, I've got heaps of data stored in SDE format and am keen to test Mapserver 3.3.011 to access this data. Does anyone have a simple mapfile example which accesses SDE data that I can have a look at? Is there info anywhere describing the syntax for accessing SDE data using Mapserver? thanks, 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/ From rday at pa.net Mon Jul 17 21:01:42 2000 From: rday at pa.net (Robert Day) Date: Tue, 18 Jul 2000 00:01:42 -0400 Subject: Fw: mapserver demo problems Message-ID: <003301bff06c$e58b7780$f2281bac@pa.net> ----- Original Message ----- From: Ronald Lieuw-Sjong To: Robert Day Sent: Monday, July 17, 2000 2:18 PM Subject: Re: mapserver demo problems Robert, that did the trick an it works beautifully. Many thanks. I noted the time you sent the email. Do you sleep at all :-) Ronald ---------- From: Robert Day To: Ronald Lieuw Subject: Re: mapserver demo problems Date: Monday, July 17, 2000 1:40 AM Ron, Try this in your HTML : Remember that the web server has it's own directory structure. As it's default IIS root is [drive letter]:\inetpub\wwwroot\ that means that anything in here is reached with your browser as http://aptiva /[FILE name] or [DIR Name/FILE name] now the scripts directory is virtual and as far as the web server cares is under the wwwroot. Example: http://aptiva/scripts . In your NT structure it is actually C:\inetpub\scripts\ . It is like UNIX's symbolic paths. Robert Day robert.day at konsalt.com www.konsalt.com ----- Original Message ----- From: Ronald Lieuw To: Robert Day Sent: Sunday, July 16, 2000 11:18 PM Subject: Re: mapserver demo problems Robert, Thanks for yr prompt reply, I followed yr advice about the predefined cgi-bin, which is InetPub\scripts. I changed the code as below, but now I receive an error -> HTTP/1.0 404 Object Not Found in the IE window the following code: http://aptiva/inetpub/scripts/mapserv.exe?map=c%3A%5Cinetpub%5Cwwwroot%5Cms_demo%5Cdemo.map&layer=lakes&layer=streams&zoomsize=2 I've checked as far as I could and it seems as all the files are present What's missing? Ronald Lieuw -------------------------- MapServer Demo Interface

MapServer Demo Interface



----------------------- -----Original Message----- From: Robert Day > To: Ronald Lieuw > Date: Sunday, July 16, 2000 4:37 PM Subject: Re: mapserver demo problems Ronald Lieuw, In the IIS admin tools do you have {execute(including scripts)} checked for the dir c:/cgi-bin? If you don't IE4.1 will try to download the file instead of execute it. There is a predefined cgi_bin in the (InetPub\wwwroot\) dir. This is were you should but the mapserver.exe. Also ensure that that dir is shared to the web server. It will also be a good idea to install the SP6 and OP4 to the server due to numerous bugs in SP4. These are downloads from MS's site. I don't remember the URL, but I will look and send it to you. I have had great success with IIS and the mapserver. Robert Day robert.day at konsalt.com www.konsalt.com ----- Original Message ----- From: Ronald Lieuw To: mapserver Sent: Sunday, July 16, 2000 11:04 AM Subject: mapserver demo problems Hi, I am new to webpublishing but know GIS. Configuration: I am using NT4.0 (SP4), IIS & IE4.1 and the NT server (named file://aptiva ) console to run the mapserver demo. I installed mapserv.exe in c:/cgi-bin and the other files in InetPub\wwwroot\ms_demo. From the demo on the internet I understand that to start the demo you have to call the initfile in IE, in my case c:\inetpub\wwwroot\ms_demo\demo_t2.html (see below,I changed the contents of the original demo_init.html file I downloaded) demo_t2.html source: ---------------------------- MapServer Demo Interface

MapServer Demo Interface



----------------------------- When I press initialize, I get the following errormsg -> File download (you have choosen to download a file mapserv.exe from c:\cgi-bin bla bla bla) Alternatively when I change in demo_t2.html:
and press initialize, I get the following errormsg ->HTTP/1.0 500 Server Error (The system cannot find the path specified. ) Question: What am I doing wrong? Question: 1. From the source of demo.html online I notice the mentioning of a demo.layout file, which I don't have in my files. Do I need that file? 2. I also read in the creating applications page about the use of either the GET or the POST cgi request. The online demo uses POST and some other commands. Which should I use? TIA, Ronald Lieuw Curacao, Neth. Antilles -------------- next part -------------- An HTML attachment was scrubbed... URL: From kibez at gilan.uar.net Tue Jul 18 18:27:25 2000 From: kibez at gilan.uar.net (kibez) Date: Wed, 19 Jul 2000 00:27:25 -0100 Subject: ArcView projection & mapserver projection Message-ID: <397503FD.88098A24@gilan.uar.net> I had problem with installation necessary proektsii for a map In ArcView it is described so: Projection: Transverse Mercator Spheroid: Krasovsky Central Meridian: 33.0 Reference Latitude: 0.0 Scale Factor: 1.0 False Easting: 6500.0 False Northing: 0.0 It is possible - whether to describe such projection a map-file??? PROJECTION "PROJ = tmerk" "ELLPS = krass" ??????????????????? END From mjury at impsat1.com Wed Jul 19 13:22:16 2000 From: mjury at impsat1.com (marcelo jury) Date: Wed, 19 Jul 2000 17:22:16 -0300 Subject: Map coordinates to image coordinates Message-ID: <002701bff1bf$089519e0$b91c29c8@marcelo> I would like to create "bubble tips" embeded in HTML tag "areas". For this I would need to know how to transform from map coords. to image coords. Any ideas about how to implement this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Mon Jul 17 18:50:25 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 17 Jul 2000 20:50:25 -0500 Subject: link to SDE Message-ID: There's an example at: http://arachnid.dnr.state.mn.us/ms_test Steve >>> 07/17/00 20:21 PM >>> Hi, I've got heaps of data stored in SDE format and am keen to test Mapserver 3.3.011 to access this data. Does anyone have a simple mapfile example which accesses SDE data that I can have a look at? Is there info anywhere describing the syntax for accessing SDE data using Mapserver? thanks, 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/ From schu at gaf.de Thu Jul 20 03:12:09 2000 From: schu at gaf.de (Matthias Schulz at GAF) Date: Thu, 20 Jul 2000 12:12:09 +0200 Subject: maxscale Message-ID: <3976D079.28F928C7@gaf.de> Hi, I have run into problems with the new mapserver 3.3.011 using two layers with a 'maxscale' option. This was no problem with the old version and is none with only one layer having the maxscale option. Did anyone make similar experiences ? Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From rlieuws at cura.net Thu Jul 20 06:19:37 2000 From: rlieuws at cura.net (Ronald Lieuw-Sjong) Date: Thu, 20 Jul 2000 09:19:37 -0400 Subject: Problems with inline feature Message-ID: <200007201314.JAA16828@tula.cura.net> Hi mapserver list, I have installed mapdemo and trying to 'learn' and understand the proper syntax. Right now I am having problems understanding the following code from the demo.html file:

specifically the SRC="[img]" and src="[scalebar]" I understand from browsing the archives that the [img] will be replaced by this: http://128.101.73.80/cgi-bin/mapserv.exe?imgxy=299.5+299.5&imgext=477610.519 153+4969319.036682+505753.480847+4997508.307318& map=c%3A%5Cinetpub%5Cwwwroot%5Cms_demo%5Cdemo.map&mode=browse&layer=lakes&la yer=streams&zoomdir=0&zoomsize=2&img.x=283&img.y=222 Can some explain me the above or point me to an archive explaining this more in depth. TIA Ronald Lieuw-Sjong Curacao, Neth. Antilles -------------- next part -------------- An HTML attachment was scrubbed... URL: From imap at chesapeake.net Thu Jul 20 06:26:11 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 20 Jul 2000 09:26:11 -0400 Subject: Map coordinates to image coordinates References: <002701bff1bf$089519e0$b91c29c8@marcelo> Message-ID: <3976FDF3.94E0E7FF@chesapeake.net> Marcelo, After you render all of the layers, just extract the contents of the labelcache with mapscript. open(LABELS,"> /tmp/labelcache.test"); # testing labelCacheExtract while ($label = $map->nextLabel()) { if($label->{status}) { $shape = $label->{poly}; print LABELS "$label->{string} numlines: $shape->{numlines}\n"; for($i=0; $i<$shape->{numlines}; $i++) { $part = $shape->get($i); for($j=0; $j<$part->{numpoints}; $j++) { $point = $part->get($j); print LABELS $point->{x} .",". $point->{y} ." "; } print LABELS "\n"; } } } close(LABELS); This should give you the bounding rectangle (in image X/Y coordinates) of the the markers and annotation dumped into a file. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410.257.3187 > marcelo jury wrote: > > I would like to create "bubble tips" embeded in HTML tag "areas". For this I > would need to know how to transform from map coords. to image coords. Any > ideas about how to implement this? From aborruso at spaziogis.it Thu Jul 20 09:06:51 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 20 Jul 2000 18:06:51 +0200 Subject: BACKGROUNDSHADOWCOLOR??? Message-ID: Dear users, is it possible to use functions like BACKGROUNDSHADOWCOLOR in Mapserver for Windows NT? Does someone have compiled the new Linux Mapserver release for Windows NT? If it's yes, is it possible to have it? Thank you very much, Andrea From Robin.Ellis at dnr.qld.gov.au Thu Jul 20 19:24:35 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Fri, 21 Jul 2000 12:24:35 +1000 Subject: multiple query templates Message-ID: I want to be able to specify different query templates for a single layer based on query type (eg 'query' vs 'nquery'). Has anybody thought of a way to do this? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ 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 ddnebert at fgdc.gov Fri Jul 21 12:20:07 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Fri, 21 Jul 2000 15:20:07 -0400 Subject: Transparency Message-ID: <3978A267.21911F80@fgdc.gov> All: I would like to manufacture certain layers as being transparent outside of the opaque features so they can be overlain on similar maps from other servers. I want roads opaque, background transparent. Is there a correct way to specify the transparent color bin to use, through mapfile or other setting? I am using mapserv with the old gd that supports GIF format. I understand that the PNG files use a different method for transparency, but would hope that this is defined in a single way via map file. Is it defined at all? Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From bfraser at geoanalytic.com Fri Jul 21 13:17:52 2000 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 21 Jul 2000 14:17:52 -0600 Subject: Transparency References: <3978A267.21911F80@fgdc.gov> Message-ID: <01fe01bff350$bfa61890$390002c0@servo> Doug, Transparency for raster layers is defined with the OFFSITE keyword. The value is the color number the image's palette. e.g. LAYER NAME ortho TYPE RASTER STATUS DEFAULT DATA "83P_01s_10TM.tif" OFFSITE 2 END means the third color (since there is a color index 0) in the image's pallete for this layer is to be considered transparent when reading the tif file and writing the pixels into the target GIF (i.e tif pixels with color index 3 are not written into the GIF). Funny thing is, this is from old mapserver 3.2 documentation (and email). I couldn't find it in the 3.3 doc. Hope this helps... Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Doug Nebert" To: "Mapserver Users" Sent: Friday, July 21, 2000 1:20 PM Subject: Transparency > All: > > I would like to manufacture certain layers as being transparent outside > of the opaque features so they can be overlain on similar maps from > other servers. I want roads opaque, background transparent. > > Is there a correct way to specify the transparent color bin to use, > through mapfile or other setting? I am using mapserv with the old > gd that supports GIF format. I understand that the PNG files use a > different method for transparency, but would hope that this is > defined in a single way via map file. Is it defined at all? > > Doug. > > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ddnebert at fgdc.gov Fri Jul 21 13:43:50 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Fri, 21 Jul 2000 16:43:50 -0400 Subject: Transparency behind rendered vectors References: <3978A267.21911F80@fgdc.gov> <01fe01bff350$bfa61890$390002c0@servo> Message-ID: <3978B606.B6758AEF@fgdc.gov> This is close, but not quite. I am rendering line data from a shapefile, but through mapserver it is sent as an opaque GIF. I need the background to be a transparent GIF. Can the invocation of GD be tweaked to make this work from a setting in the map file? Doug. owner-mapserver-users at lists.gis.umn.edu wrote: > > Doug, > > Transparency for raster layers is defined with the > OFFSITE keyword. The value is the color number > the image's palette. > > e.g. > LAYER > NAME ortho > TYPE RASTER > STATUS DEFAULT > DATA "83P_01s_10TM.tif" > OFFSITE 2 > END > > means the third color (since there is a color index 0) > in the image's pallete for this layer is to be considered > transparent when reading the tif file and writing the > pixels into the target GIF (i.e tif pixels with color index 3 > are not written into the GIF). > > Funny thing is, this is from old mapserver 3.2 > documentation (and email). I couldn't find it in the 3.3 > doc. > > Hope this helps... > > Brent Fraser > > bfraser at geoanalytic.com > GeoAnalytic Inc. > #300 , 700 - 4th Avenue SW Calgary, AB > Canada T2P 3J4 > Tel: (403)213-2700 Fax: (403)213-2707 > www.geoanalytic.com > > ----- Original Message ----- > From: "Doug Nebert" > To: "Mapserver Users" > Sent: Friday, July 21, 2000 1:20 PM > Subject: Transparency > > > All: > > > > I would like to manufacture certain layers as being transparent outside > > of the opaque features so they can be overlain on similar maps from > > other servers. I want roads opaque, background transparent. > > > > Is there a correct way to specify the transparent color bin to use, > > through mapfile or other setting? I am using mapserv with the old > > gd that supports GIF format. I understand that the PNG files use a > > different method for transparency, but would hope that this is > > defined in a single way via map file. Is it defined at all? > > > > Doug. > > > > -- > > Douglas D. Nebert > > Geospatial Data Clearinghouse Coordinator > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ender at titan.lab.csuchico.edu Fri Jul 21 05:41:07 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Fri, 21 Jul 2000 12:41:07 +0000 (/etc/localtime) Subject: Transparency behind rendered vectors In-Reply-To: <3978B606.B6758AEF@fgdc.gov> Message-ID: I believe what you want is the image produced by the mapserver to have a transparent background. If this is so, you only need to put a transparent tag in the map object: map ... map settings ... transparent on ... more map settings ... Layer ... blah, blah, blah ... end end This will set the background color to be transparent. -Aaron On Fri, 21 Jul 2000, Doug Nebert wrote: > This is close, but not quite. I am rendering line data from a > shapefile, but through mapserver it is sent as an opaque GIF. I need > the background to be a transparent GIF. Can the invocation of GD be > tweaked to make this work from a setting in the map file? > > Doug. > > owner-mapserver-users at lists.gis.umn.edu wrote: > > > > Doug, > > > > Transparency for raster layers is defined with the > > OFFSITE keyword. The value is the color number > > the image's palette. > > > > e.g. > > LAYER > > NAME ortho > > TYPE RASTER > > STATUS DEFAULT > > DATA "83P_01s_10TM.tif" > > OFFSITE 2 > > END > > > > means the third color (since there is a color index 0) > > in the image's pallete for this layer is to be considered > > transparent when reading the tif file and writing the > > pixels into the target GIF (i.e tif pixels with color index 3 > > are not written into the GIF). > > > > Funny thing is, this is from old mapserver 3.2 > > documentation (and email). I couldn't find it in the 3.3 > > doc. > > > > Hope this helps... > > > > Brent Fraser > > > > bfraser at geoanalytic.com > > GeoAnalytic Inc. > > #300 , 700 - 4th Avenue SW Calgary, AB > > Canada T2P 3J4 > > Tel: (403)213-2700 Fax: (403)213-2707 > > www.geoanalytic.com > > > > ----- Original Message ----- > > From: "Doug Nebert" > > To: "Mapserver Users" > > Sent: Friday, July 21, 2000 1:20 PM > > Subject: Transparency > > > > > All: > > > > > > I would like to manufacture certain layers as being transparent outside > > > of the opaque features so they can be overlain on similar maps from > > > other servers. I want roads opaque, background transparent. > > > > > > Is there a correct way to specify the transparent color bin to use, > > > through mapfile or other setting? I am using mapserv with the old > > > gd that supports GIF format. I understand that the PNG files use a > > > different method for transparency, but would hope that this is > > > defined in a single way via map file. Is it defined at all? > > > > > > Doug. > > > > > > -- > > > Douglas D. Nebert > > > Geospatial Data Clearinghouse Coordinator > > > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > > > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > From pgallen at randomlogic.com Sun Jul 23 09:36:03 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Sun, 23 Jul 2000 09:36:03 -0700 Subject: Mapserver compiled for Alpha References: Message-ID: <397B1EF2.A9103215@randomlogic.com> Maybe a little late to respond, but since I have been engaged in other projects, I haven't been working on my mapping app. nor following the list in a couple months. I'm once again working on my app though, and I saw these posts. I am currently running MapServer on my Alpha 433au using Compaq's math library for Linux (it's actually been running on it since the latter part of last year). I am running Red Hat Linux 6.0 for Alpha. I am extensively using MapScript and Perl 5.005_03 and Apache 1.3x for the application (all web pages are created on the fly for every individual user). The server is private for now and requires a login or I'd give you the URL (this should change soon), but the bottom line is everything works fine. If you have any questions I'll try to help. Now, to get these damn point objects working...:) PGA Stephen Lime wrote: > > We've got it running here on an alpha with redhat 6 something. Compiled out-of-the-box > with no problems. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Patrick McGlamery 06/13/00 01:57PM >>> > I seem to remember a while back someone mentioned installing Mapserver > on an Alpha. I will be installing on an Alpha either Tru64 or Linux. > Would anyone out there like to serve as a resource person? > > Thanks very much, > > Patrick McGlamery > Map librarian > UConn MAGIC > http://magic.lib.uconn.edu -- -------------Putting Your Black Budget Dollars to Work---------------- FBI CIA NSA IRS ATF BATF DOD WACO RUBY RIDGE OKC OKLAHOMA CITY MILITIA GUN HANDGUN MILGOV ASSAULT RIFLE TERRORISM BOMB DRUG HORIUCHI KORESH DAVIDIAN KAHL POSSE COMITATUS RANDY WEAVER VICKIE WEAVER SPECIAL FORCES LINDA THOMPSON SPECIAL OPERATIONS GROUP SOG SOF DELTA FORCE CONSTITUTION BILL OF RIGHTS WHITEWATER POM PARK ON METER ARKANSIDE IRAN CONTRAS OLIVER NORTH VINCE FOSTER PROMIS MOSSAD NASA MI5 ONI CID AK47 M16 C4 MALCOLM X REVOLUTION CHEROKEE HILLARY BILL CLINTON GORE GEORGE BUSH WACKENHUT TERRORIST TASK FORCE 160 SPECIAL OPS 12TH GROUP 5TH GROUP SF ---------------------------------------------------------------------- From pgallen at randomlogic.com Sun Jul 23 09:46:10 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Sun, 23 Jul 2000 09:46:10 -0700 Subject: Powered by MapServer... References: Message-ID: <397B2152.6C900342@randomlogic.com> Stephen Lime wrote: > > I'm interested in creating a "powered by" logo for folks to display should they > choose (i.e. like Apache). Might as well go to the users for some ideas. Send > me your graphics! > Anyone come up with anything yet? PGA From steve.lime at dnr.state.mn.us Sun Jul 23 15:14:31 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Sun, 23 Jul 2000 17:14:31 -0500 Subject: Fwd: Data file Message-ID: Anybody help? -------------- next part -------------- An embedded message was scrubbed... From: Randy Appleton Subject: Data file Date: Sat, 22 Jul 2000 16:46:27 -0400 Size: 2582 URL: From marin at here.is Mon Jul 24 04:27:21 2000 From: marin at here.is (Ma) Date: Mon, 24 Jul 2000 11:27:21 +0000 Subject: Fwd: Data file References: Message-ID: <397C2818.A39AEF55@here.is> You can download for FREE the World countries in SHP format plus very nice attribute data from ESRI: http://mapserver2.esri.com/adol/work/data/esriAAA0eOXcEgreenmap.zip (more about this dataset here: http://www.esri.com/data/online/newsweek/index.html) They are also more detailed free world datasets from other sources. --- Ma Stephen Lime wrote: > Anybody help? > > ---------------------------------------------------------------- > > Subject: Data file > Date: Sat, 22 Jul 2000 16:46:27 -0400 > From: Randy Appleton > To: mapserver-info at lists.gis.umn.edu > > Hi! > > I'm a computer science professor, trying to do a project with > mapserv. But for this project I need a world map in a compatable > format (Shapelib??). > Can you help, or provide a pionter. > > -Much Thanks > -Randy > > > > -- > ======================================================================== > || Randy Appleton, Professor of Computer Science at Northern Michigan || > || University. And a big fan of Linux! || > ================= mailto:randy at euclid.nmu.edu ========================== > From teb at mallit.fr.umn.edu Mon Jul 24 06:48:21 2000 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 24 Jul 2000 08:48:21 -0500 (CDT) Subject: Powered by MapServer... Message-ID: <200007241348.IAA10708@mallit.fr.umn.edu> >Date: Sun, 23 Jul 2000 09:46:10 -0700 >From: "Paul G. Allen" >X-Accept-Language: en >MIME-Version: 1.0 >To: Mapserver-Users >Subject: Re: Powered by MapServer... >Content-Transfer-Encoding: 7bit > >Stephen Lime wrote: >> >> I'm interested in creating a "powered by" logo for folks to display should they >> choose (i.e. like Apache). Might as well go to the users for some ideas. Send >> me your graphics! >> > >Anyone come up with anything yet? > >PGA It's on the ToDo list but won't get to it until fall at earliest. Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at forestry.umn.edu From bowenj at peligroso.gaiaenv.com Mon Jul 24 07:28:14 2000 From: bowenj at peligroso.gaiaenv.com (Jim T. Bowen (GAIA Consultants Inc.)) Date: Mon, 24 Jul 2000 08:28:14 -0600 Subject: Powered by MapServer... References: <397B2152.6C900342@randomlogic.com> Message-ID: <397C527E.1763A871@gaiaenv.com> I thought I saw something on a page Daniel Morissette referred to recently. Perhaps he would consider including his logo for consideration. It looks like a pretty good start to me! :) Cheers, Jim "Paul G. Allen" wrote: > > Stephen Lime wrote: > > > > I'm interested in creating a "powered by" logo for folks to display should they > > choose (i.e. like Apache). Might as well go to the users for some ideas. Send > > me your graphics! > > > > Anyone come up with anything yet? > > PGA From ddnebert at fgdc.gov Mon Jul 24 07:42:29 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Mon, 24 Jul 2000 10:42:29 -0400 Subject: ICA Maps on Internet Conference Message-ID: <397C55D5.10D48FD4@fgdc.gov> Maps and the Internet 2001 AAG Annual Meeting New York City, NY 27 February - 3 March 2001 Co-sponsored by the AAG Cartography Specialty Group AAG Worldwide Web Specialty Group and the International Cartography Association's Commission on Maps and the Internet The Internet is helping to redefine how maps are used. No longer restricted to paper, maps are now transmitted almost instantly and delivered to the user in a fraction of the time required to distribute maps on paper. They are viewed in a more timely fashion. Weather maps, for example, are updated continuously throughout the day. Most importantly, maps on the Internet are more interactive. They are accessed through a user on a higher-level than is possible with a map on paper. Finally, the Internet is making it possible to more easily distribute different kinds of cartographic displays such as animations. The Internet presents the map user with both a faster method of map distribution and different forms of mapping. The Maps and Internet Commission of the International Cartographic Association provides a global forum for discussion and facilitates the transfer of new cartographic technology and knowledge between researchers in different countries. This commission promotes international cartographic research to address scientific and applied problems related to web-based cartography. The planned sessions at the AAG meeting in NYC are being co-sponsored with the Cartography and Worldwide Web specialty groups. The location of the meetings in New York will encourage attendance from commission members in other parts of the world, particularly Europe. The commission was formed in 1999 at meetings of the International Cartographic Association in Ottawa, Canada. Six initial terms of reference were identified: 1. Focus attention on disseminating maps and spatial data through distributed electronic networks. 2. Examine Internet map usage and project future areas of growth. 3. Examine web map user issues to better serve user needs. Product: Oral or published report. 4. Promote the exchange of information about effective Internet mapping for an international audience. 5. Improve user access to maps by examining the potential of Internet map metadata. 6. Promote instruction on Internet mapping The specialty groups and commission invite papers that address these general areas of research. Rex Cammack from Southwest Missouri State University is organizing these sessions. Rex's DEADLINE for receiving all application materials (including registration form, fee, e-mail, and paper copy of abstract): August 23, 2000. Dr. Rex Cammack (Primary Contact) Dr. Michael Peterson Department of Geography Department of Geography / Geology Southwest Missouri State Univ. University of Nebraska at Omaha Springfield, MO 65804 Omaha, NE 68182 Phone: (417) 836-5173 Phone: 402-554-4805 Fax: (417) 836-6006 Fax: 402-554-3518 Email: rexcammack at mail.smsu.edu Email: geolib at unomaha.edu From steve.lime at dnr.state.mn.us Mon Jul 24 08:06:58 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 10:06:58 -0500 Subject: multiple query templates Message-ID: It's not possible at the map file layer. However (there's always an however) you can deal with it using Javascript in the template(s). Consider this javascript code: var mode = '[mode]'; if(mode == 'query') { ...do something for a single result... } else { ...do something for multiple results... } The url below contains templates that change their behavior depending on the number of results found which is probably what you really want. http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=/terrasipProjects/tutorial/example5.map&layer=state_parks&layer=counties&layer=lakes Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/20/00 09:24PM >>> I want to be able to specify different query templates for a single layer based on query type (eg 'query' vs 'nquery'). Has anybody thought of a way to do this? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ 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 bfischer at usgs.gov Mon Jul 24 08:12:24 2000 From: bfischer at usgs.gov (bfischer at usgs.gov) Date: Mon, 24 Jul 2000 10:12:24 -0500 Subject: Powered by MapServer... Message-ID: I am using Daniel's logo he created. I like what he has put together. If anyone wants to see what it looks like: here is an URL to my website I am putting together. The logo is on their as well as Daniel's site. http://nt49dmnspl.cr.usgs.gov/watershed/start_page.htm But I am willing to change if you go a different route. I agree the point is to give mapserver some much deserved created. Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 |--------+---------------------------------------> | | "Jim T. Bowen (GAIA | | | Consultants Inc.)" | | | | | | Sent by: | | | owner-mapserver-users at lists.g| | | is.umn.edu | | | | | | | | | 07/24/2000 09:28 AM | | | | |--------+---------------------------------------> >-----------------------------------------------------------------------------------------------------| | | | To: "Paul G. Allen" | | cc: Mapserver-Users | | Subject: Re: Powered by MapServer... | >-----------------------------------------------------------------------------------------------------| I thought I saw something on a page Daniel Morissette referred to recently. Perhaps he would consider including his logo for consideration. It looks like a pretty good start to me! :) Cheers, Jim "Paul G. Allen" wrote: > > Stephen Lime wrote: > > > > I'm interested in creating a "powered by" logo for folks to display should they > > choose (i.e. like Apache). Might as well go to the users for some ideas. Send > > me your graphics! > > > > Anyone come up with anything yet? > > PGA From steve.lime at dnr.state.mn.us Mon Jul 24 08:21:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 10:21:09 -0500 Subject: Powered by MapServer... Message-ID: I like the DMSolutions logo but would like something that will reduce in size a bit better (with fewer colors too) so that it could be included in maps as well as at the bottom of the page. Just my 2 cents anyway. s. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/24/00 10:12AM >>> I am using Daniel's logo he created. I like what he has put together. If anyone wants to see what it looks like: here is an URL to my website I am putting together. The logo is on their as well as Daniel's site. http://nt49dmnspl.cr.usgs.gov/watershed/start_page.htm But I am willing to change if you go a different route. I agree the point is to give mapserver some much deserved created. Brian Brian Fischer bfischer at usgs.gov USGS WRD 2280 Woodale Dr. Mounds View, MN (612) 783-3133 |--------+---------------------------------------> | | "Jim T. Bowen (GAIA | | | Consultants Inc.)" | | | | | | Sent by: | | | owner-mapserver-users at lists.g| | | is.umn.edu | | | | | | | | | 07/24/2000 09:28 AM | | | | |--------+---------------------------------------> >-----------------------------------------------------------------------------------------------------| | | | To: "Paul G. Allen" | | cc: Mapserver-Users | | Subject: Re: Powered by MapServer... | >-----------------------------------------------------------------------------------------------------| I thought I saw something on a page Daniel Morissette referred to recently. Perhaps he would consider including his logo for consideration. It looks like a pretty good start to me! :) Cheers, Jim "Paul G. Allen" wrote: > > Stephen Lime wrote: > > > > I'm interested in creating a "powered by" logo for folks to display should they > > choose (i.e. like Apache). Might as well go to the users for some ideas. Send > > me your graphics! > > > > Anyone come up with anything yet? > > PGA From steve.lime at dnr.state.mn.us Mon Jul 24 09:38:12 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 11:38:12 -0500 Subject: maxscale Message-ID: Ok, we need to standardize on bug reports a bit. When submitting one please include: - mapserver version - scripting language and version if using mapscript - platform and os (browser too if applicable) - a detailed description of the error (cause and effect) If possible it would be great to get sample data and config files to allow us to recreate the problem on our end. Matthias, please send more info and I'll have a look. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Matthias Schulz at GAF 07/20/00 05:12AM >>> Hi, I have run into problems with the new mapserver 3.3.011 using two layers with a 'maxscale' option. This was no problem with the old version and is none with only one layer having the maxscale option. Did anyone make similar experiences ? Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schu at gaf.de URL: http://www.gaf.de From steve.lime at dnr.state.mn.us Mon Jul 24 09:45:17 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 11:45:17 -0500 Subject: ArcView projection & mapserver projection Message-ID: If ArcView can handle it then I imagine Proj.4 can. Unfourtunately you'll have to figure out the correct proj parameters on your own. The manuals help a bit but I've found that some trial and error is necessary. The docs and most recent code are at: http://www.remotesensing.org/proj/ Good luck! Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> kibez 07/18/00 08:27PM >>> I had problem with installation necessary proektsii for a map In ArcView it is described so: Projection: Transverse Mercator Spheroid: Krasovsky Central Meridian: 33.0 Reference Latitude: 0.0 Scale Factor: 1.0 False Easting: 6500.0 False Northing: 0.0 It is possible - whether to describe such projection a map-file??? PROJECTION "PROJ = tmerk" "ELLPS = krass" ??????????????????? END From steve.lime at dnr.state.mn.us Mon Jul 24 10:39:39 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 12:39:39 -0500 Subject: GIS algorithms Message-ID: Greetings: I'm wondering if anyone knows of sources for common GIS algorithms (especially buffering)? C code would be the best but text algorithms would work too. I can always swipe stuff from the latest version of Grass I suppose. Lemme know if anyone has come across other sources. Thanks- Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From cjtaylor at wcities.com Mon Jul 24 11:59:10 2000 From: cjtaylor at wcities.com (Carl Taylor) Date: Mon, 24 Jul 2000 19:59:10 +0100 Subject: Map Data for Budapest Message-ID: Hi, This is not quite a mapserver question directly, but I hope some one can help. I am looking for a source for mapping information for Budapest to first of all Geocode a database and then hopefully produce maps of the town. Thanks in advance, Regards, Carl Taylor Director of New Media Technologies WCITIES.COM - The Worlds first globally local news, information, commerce and community site Service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjtaylor at wcities.com Mon Jul 24 12:09:18 2000 From: cjtaylor at wcities.com (Carl Taylor) Date: Mon, 24 Jul 2000 20:09:18 +0100 Subject: PHP Mapscript examples to add anotations to a map In-Reply-To: Message-ID: Hi, The example below is very informative and I wondered if there are any similar examples for PHP/Mapscript. In particular I am using MySQL to hold a large database of information and I would like to be able to annotate maps with place names and notes regarding information from the DB. I have tried working through the Perl information but I have started to get myself confused converting to PHP. > The url below contains templates that change their behavior > depending on the number > of results found which is probably what you really want. > > http://terrasip.gis.umn.edu/cgi-bin/mapserv?map=/terrasipProjects/ tutorial/example5.map&layer=state_parks&layer=counties&layer=lakes Thanks in advance for any advice people can supply, Regards Carl. From syurman at mindspring.com Mon Jul 24 14:43:22 2000 From: syurman at mindspring.com (Sara Yurman) Date: Mon, 24 Jul 2000 17:43:22 -0400 Subject: Mapimage problem Message-ID: <397CB87A.A493971A@mindspring.com> I'm having a tough time getting the mapimage applet going. When I use the mapimage.class in the mapimage.zip file it can't find the JIT compiler. When I compile the .java code the applet won't start. I'm running Redhat 6.2, with the Blackdown JDK and TYA JIT compiler. I had read about the deprecation messages on the list, but understood that it was known to work regardless. Would some change in my environment (a different JIT perhaps?) do the trick? I've listed relevant lines from my /etc/profile, as well as my error messages below. Many thanks for any help you can give me, Sara ****************** My Environment********************************************************************* /etc/profile includes: JAVA_HOME=/usr/local/jdk1.1.7 JAVA_COMPILER=tya CLASSPATH=$CLASSPATH:/usr/lib/netscape/java/classes/java40.jar LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib echo $CLASSPATH produces: .:/usr/local/jdk1.1.7/lib:/usr/local/jdk1.1.7/lib/classes.zip:/usr/lib/netscape/java/classes/java40.jar ********************Compiling Mapimage*************************************************************** When I enter javac -verbose -deprecation mapimage.java I get: TYA: #### 74087 byte for java/text/resources/LocaleElements.getContents (()[[Ljava/lang/Object;) [parsed mapimage.java in 74 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/applet/Applet.class) in 9 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Panel.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Container.class) in 8 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Component.class) in 15 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Object.class) in 1 ms] [checking class mapimage] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/image/ImageObserver.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/MenuContainer.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/io/Serializable.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/String.class) in 5 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Image.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Dimension.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Graphics.class) in 3 ms] [loaded /usr/lib/netscape/java/classes/java40.jar(netscape/javascript/JSObject.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Color.class) in 3 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/MediaTracker.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/net/URL.class) in 5 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/net/MalformedURLException.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/io/IOException.class) in 0 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Exception.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Throwable.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Error.class) in 0 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/RuntimeException.class) in 0 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/InterruptedException.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Math.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/util/StringTokenizer.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Integer.class) in 2 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Number.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/NumberFormatException.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/IllegalArgumentException.class) in 0 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/Double.class) in 1 ms] [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/awt/Event.class) in 4 ms] TYA: #### 23417 byte for sun/tools/javac/SourceClass.compileClass ((Lsun/tools/java/Environment;Ljava/io/OutputStream;)V) [loaded /usr/local/jdk1.1.7/lib/classes.zip(java/lang/StringBuffer.class) in 4 ms] [wrote mapimage.class] mapimage.java:28: Note: The method java.awt.Dimension size() in class java.awt.Component has been deprecated. screenSize = this.size(); // nab the applet size ^ mapimage.java:133: Note: The method boolean mouseDown(java.awt.Event, int, int) in class java.awt.Component has been deprecated, and class mapimage (which is not deprecated) overrides it. public boolean mouseDown(Event e, int x, int y) { ^ mapimage.java:139: Note: The method boolean mouseDrag(java.awt.Event, int, int) in class java.awt.Component has been deprecated, and class mapimage (which is not deprecated) overrides it. public boolean mouseDrag(Event e, int x, int y) { ^ mapimage.java:150: Note: The method boolean mouseUp(java.awt.Event, int, int) in class java.awt.Component has been deprecated, and cl ass mapimage (which is not deprecated) overrides it. public boolean mouseUp(Event e, int x, int y) { ^ Note: mapimage.java uses a deprecated API. Please consult the documentation for a better alternative. 5 warnings [done in 567 ms] *****************************Testing mapimage.class in the appletviewer********************************************************* Both versions produce the same messages. The console says: TYA 1.2 (for J117 / Linux). Copyright (c) 1997,98 The TYA Team Contact The TYA Team via Albrecht Kleine TYA: #### 28930 byte for sun/applet/resources/MsgAppletViewer. (()V) TYA: #### 74087 byte for java/text/resources/LocaleElements.getContents (()[[Ljava/lang/Object;) java.lang.UnsatisfiedLinkError: getWindow at mapimage.init(Compiled Code) at sun.applet.AppletPanel.run(Compiled Code) at java.lang.Thread.run(Compiled Code) The viewer says: Start: applet not initialized -- Sara Yurman Spatial Focus, Inc. syurman at spatialfocus.com Voice: 404-378-0989 Fax: 209-254-9531 -------------- next part -------------- A non-text attachment was scrubbed... Name: syurman.vcf Type: text/x-vcard Size: 326 bytes Desc: Card for Sara Yurman URL: From johnh at erin.gov.au Mon Jul 24 15:41:52 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 25 Jul 2000 08:41:52 +1000 (EST) Subject: Powered by MapServer... Message-ID: <200007242241.IAA23244@eos.erin.gov.au> I agree with Steve. The image should be the smallest possible to reduce bandwidth demands. I think an 8 bit colour image should be good enough, maybe a gif with compression (if you have the licencing to do so). Johnh Stephen Lime wrote: > I like the DMSolutions logo but would like something that will reduce in size a > bit better (with fewer colors too) so that it could be included in maps as well > as at the bottom of the page. Just my 2 cents anyway. > > s. > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> 07/24/00 10:12AM >>> > > I am using Daniel's logo he created. I like what he has put together. If > anyone wants to see what it looks like: here is an URL to my website I am > putting together. The logo is on their as well as Daniel's site. > http://nt49dmnspl.cr.usgs.gov/watershed/start_page.htm > > But I am willing to change if you go a different route. I agree the point > is to give mapserver some much deserved created. > > Brian > > > Brian Fischer > bfischer at usgs.gov > USGS WRD > 2280 Woodale Dr. > Mounds View, MN > (612) 783-3133 > > > > > > > > > > > > > |--------+---------------------------------------> > | | "Jim T. Bowen (GAIA | > | | Consultants Inc.)" | > | | | | > | > | | Sent by: | > | | owner-mapserver-users at lists.g| > | | is.umn.edu | > | | | > | | | > | | 07/24/2000 09:28 AM | > | | | > |--------+---------------------------------------> > >------------------------------------------------------------------------------- ----------------------| > | | > | To: "Paul G. Allen" | > | cc: Mapserver-Users | > | Subject: Re: Powered by MapServer... | > >------------------------------------------------------------------------------- ----------------------| > > > > I thought I saw something on a page Daniel Morissette referred to > recently. Perhaps he would consider including his logo for > consideration. It looks like a pretty good start to me! :) > > > Cheers, > Jim > > "Paul G. Allen" wrote: > > > > Stephen Lime wrote: > > > > > > I'm interested in creating a "powered by" logo for folks to display > should they > > > choose (i.e. like Apache). Might as well go to the users for some > ideas. Send > > > me your graphics! > > > > > > > Anyone come up with anything yet? > > > > PGA > > > > > From rob at cabrion.com Mon Jul 24 17:11:45 2000 From: rob at cabrion.com (rob) Date: Mon, 24 Jul 2000 20:11:45 -0400 Subject: Powered by MapServer... References: <200007242241.IAA23244@eos.erin.gov.au> Message-ID: <000601bff5cc$ed658490$4100fd0a@cabrion.org> I like Daniel's work, and I think there is definitely need for a nice, quality color logo. And you guys deserve it! For display on the maps I would suggest a simple embossed logo. [like a notary stamp] Just the icon from the color version. You could include it in a map without loosing the image's real-estate. A compass (fleur de lis style?) might be an alternative to the globe & serve a dual purpose. The two, color & embossed, need to share a common identity for continuity. --rob ----- Original Message ----- From: "John Hockaday" To: Sent: Monday, July 24, 2000 6:41 PM Subject: Re: Powered by MapServer... > I agree with Steve. The image should be the smallest possible to > reduce bandwidth demands. I think an 8 bit colour image should be good > enough, maybe a gif with compression (if you have the licencing to do > so). > > > Johnh > > Stephen Lime wrote: > > > I like the DMSolutions logo but would like something that will reduce in size > a > > bit better (with fewer colors too) so that it could be included in maps as > well > > as at the bottom of the page. Just my 2 cents anyway. > > > > s. > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> 07/24/00 10:12AM >>> > > > > I am using Daniel's logo he created. I like what he has put together. If > > anyone wants to see what it looks like: here is an URL to my website I am > > putting together. The logo is on their as well as Daniel's site. > > http://nt49dmnspl.cr.usgs.gov/watershed/start_page.htm > > > > But I am willing to change if you go a different route. I agree the point > > is to give mapserver some much deserved created. > > > > Brian > > > > > > Brian Fischer > > bfischer at usgs.gov > > USGS WRD > > 2280 Woodale Dr. > > Mounds View, MN > > (612) 783-3133 > > > > > > > > > > > > > > > > > > > > > > > > > > |--------+---------------------------------------> > > | | "Jim T. Bowen (GAIA | > > | | Consultants Inc.)" | > > | | > | | > | > > | | Sent by: | > > | | owner-mapserver-users at lists.g| > > | | is.umn.edu | > > | | | > > | | | > > | | 07/24/2000 09:28 AM | > > | | | > > |--------+---------------------------------------> > > > >--------------------------------------------------------------------------- ---- > ----------------------| > > | > | > > | To: "Paul G. Allen" > | > > | cc: Mapserver-Users > | > > | Subject: Re: Powered by MapServer... > | > > > >--------------------------------------------------------------------------- ---- > ----------------------| > > > > > > > > I thought I saw something on a page Daniel Morissette referred to > > recently. Perhaps he would consider including his logo for > > consideration. It looks like a pretty good start to me! :) > > > > > > Cheers, > > Jim > > > > "Paul G. Allen" wrote: > > > > > > Stephen Lime wrote: > > > > > > > > I'm interested in creating a "powered by" logo for folks to display > > should they > > > > choose (i.e. like Apache). Might as well go to the users for some > > ideas. Send > > > > me your graphics! > > > > > > > > > > Anyone come up with anything yet? > > > > > > PGA > > > > > > > > > > > From m_anderson14 at hotmail.com Mon Jul 24 17:45:29 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 25 Jul 2000 00:45:29 GMT Subject: MapScript: Turn layers on/off Message-ID: Hello, I am trying to use MapScript to turn layers on and off and am having no luck. I have a feeling the problem may be the order I an doing things, but I have tried several combinations with no luck. Here is what I want to do $map=new MapObj("anymap.map") $img=$map->draw() $layer=$map->getLayerByName("layerName") $layer->draw($map,$img) mapscript::msSaveImage($img,"image.gif",1,1) I am using Python, not Perl, so there may be a few errors in the code. I don't really know Perl. I have tried using prepareImage before making the image, redoing the $map->draw()after turning the layer on, and a few other combinations I can't remmeber now. Can someone set me straight? Tomorrow I am plan to try to add layers to a map using MapScript. Is this possible? Thanks, Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From steve.lime at dnr.state.mn.us Mon Jul 24 19:47:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 24 Jul 2000 21:47:09 -0500 Subject: MapScript: Turn layers on/off Message-ID: To turn a layer on you must explicitly set its status to ON. In perl the syntax is $layer->{status} = $mapscript::MS_ON; then you can draw and so on. And, yes you can create lauers using MapScript. See the example perl script in the new demo (in the perl sub-directory) for an example. Steve >>> "Michael Anderson" 07/24/00 19:44 PM >>> Hello, I am trying to use MapScript to turn layers on and off and am having no luck. I have a feeling the problem may be the order I an doing things, but I have tried several combinations with no luck. Here is what I want to do $map=new MapObj("anymap.map") $img=$map->draw() $layer=$map->getLayerByName("layerName") $layer->draw($map,$img) mapscript::msSaveImage($img,"image.gif",1,1) I am using Python, not Perl, so there may be a few errors in the code. I don't really know Perl. I have tried using prepareImage before making the image, redoing the $map->draw()after turning the layer on, and a few other combinations I can't remmeber now. Can someone set me straight? Tomorrow I am plan to try to add layers to a map using MapScript. Is this possible? Thanks, Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From danmo at videotron.ca Mon Jul 24 21:36:12 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Tue, 25 Jul 2000 00:36:12 -0400 Subject: Powered by MapServer... References: <200007242241.IAA23244@eos.erin.gov.au> Message-ID: <397D193C.B6BE4FB7@videotron.ca> Hi, Before going too far, I would like to clarify that I did not create the logo myself... the one who deserves the credit is Fred Warnock, our graphics designer. I agree with the comments that were made on the list, and would like to suggest that we could have 2 or 3 logos to pick from with different sizes and numbers of colors, a bit like the PHP logos at http://php.net/download-logos.php I will pass along all the comments and suggestions about the logo to Fred and hopefully he can come up with a couple of new designs to submit to the MapServer team at UMN. Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. John Hockaday wrote: > > I agree with Steve. The image should be the smallest possible to > reduce bandwidth demands. I think an 8 bit colour image should be good > enough, maybe a gif with compression (if you have the licencing to do > so). > > Johnh > > Stephen Lime wrote: > > > I like the DMSolutions logo but would like something that will reduce in size > a > > bit better (with fewer colors too) so that it could be included in maps as > well > > as at the bottom of the page. Just my 2 cents anyway. > > > > s. > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> 07/24/00 10:12AM >>> > > > > I am using Daniel's logo he created. I like what he has put together. If > > anyone wants to see what it looks like: here is an URL to my website I am > > putting together. The logo is on their as well as Daniel's site. > > http://nt49dmnspl.cr.usgs.gov/watershed/start_page.htm > > > > But I am willing to change if you go a different route. I agree the point > > is to give mapserver some much deserved created. > > > > Brian > > > > > > Brian Fischer > > bfischer at usgs.gov > > USGS WRD > > 2280 Woodale Dr. > > Mounds View, MN > > (612) 783-3133 > > > > > > > > > > > > > > > > > > > > > > > > > > |--------+---------------------------------------> > > | | "Jim T. Bowen (GAIA | > > | | Consultants Inc.)" | > > | | > | | > | > > | | Sent by: | > > | | owner-mapserver-users at lists.g| > > | | is.umn.edu | > > | | | > > | | | > > | | 07/24/2000 09:28 AM | > > | | | > > |--------+---------------------------------------> > > > >------------------------------------------------------------------------------- > ----------------------| > > | > | > > | To: "Paul G. Allen" > | > > | cc: Mapserver-Users > | > > | Subject: Re: Powered by MapServer... > | > > > >------------------------------------------------------------------------------- > ----------------------| > > > > > > > > I thought I saw something on a page Daniel Morissette referred to > > recently. Perhaps he would consider including his logo for > > consideration. It looks like a pretty good start to me! :) > > > > > > Cheers, > > Jim > > > > "Paul G. Allen" wrote: > > > > > > Stephen Lime wrote: > > > > > > > > I'm interested in creating a "powered by" logo for folks to display > > should they > > > > choose (i.e. like Apache). Might as well go to the users for some > > ideas. Send > > > > me your graphics! > > > > > > > > > > Anyone come up with anything yet? > > > > > > PGA > > > > > > > > > > From archer at cablesoft.com.tw Tue Jul 25 00:40:32 2000 From: archer at cablesoft.com.tw (Archer) Date: Tue, 25 Jul 2000 15:40:32 +0800 Subject: msSaveImage error Message-ID: <000801bff60b$9d699a00$84a203ca@w2kserver> Hi there, I'm a new user and have just finished installing on my Windows2000 system. I am having a problem with demo_init.html executing . msSaveImage(): Unable to access file. (/ms_demo/tmp/DEMO9645102052056.gif) Thanks. Archer Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From jedgar at fxp.org Tue Jul 25 03:53:43 2000 From: jedgar at fxp.org (Chris D. Faulhaber) Date: Tue, 25 Jul 2000 06:53:43 -0400 (EDT) Subject: msSaveImage error In-Reply-To: <000801bff60b$9d699a00$84a203ca@w2kserver> Message-ID: On Tue, 25 Jul 2000, Archer wrote: > Hi there, > > I'm a new user and have just finished installing on my Windows2000 system. > I am having a problem with demo_init.html executing . > > msSaveImage(): Unable to access file. (/ms_demo/tmp/DEMO9645102052056.gif) > Does the /*mumble*/ms_demo/tmp/ directory exist? ----- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From m_anderson14 at hotmail.com Tue Jul 25 05:52:48 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 25 Jul 2000 12:52:48 GMT Subject: MapScript: Turn layers on/off Message-ID: Thanks alot. Its working great. >From: "Stephen Lime" >To: >CC: >Subject: Re: MapScript: Turn layers on/off >Date: Mon, 24 Jul 2000 21:47:09 -0500 > >To turn a layer on you must explicitly set its status to ON. In perl the >syntax is $layer->{status} = $mapscript::MS_ON; then you can draw and so >on. > >And, yes you can create lauers using MapScript. See the example perl script >in the new demo (in the perl sub-directory) for an example. > >Steve > > >>> "Michael Anderson" 07/24/00 19:44 PM >>> >Hello, > >I am trying to use MapScript to turn layers on and off and am having no >luck. I have a feeling the problem may be the order I an doing things, but >I >have tried several combinations with no luck. Here is what I want to do > >$map=new MapObj("anymap.map") >$img=$map->draw() >$layer=$map->getLayerByName("layerName") >$layer->draw($map,$img) >mapscript::msSaveImage($img,"image.gif",1,1) > >I am using Python, not Perl, so there may be a few errors in the code. I >don't really know Perl. I have tried using prepareImage before making the >image, redoing the $map->draw()after turning the layer on, and a few other >combinations I can't remmeber now. Can someone set me straight? > >Tomorrow I am plan to try to add layers to a map using MapScript. Is this >possible? > >Thanks, >Mike > > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From peepk at ekk.ee Tue Jul 25 08:40:26 2000 From: peepk at ekk.ee (Peep Krusberg) Date: Tue, 25 Jul 2000 18:40:26 +0300 Subject: GIS algorithms References: Message-ID: <397DB4EA.CC8631FF@ekk.ee> Stephen Lime wrote: > > Greetings: I'm wondering if anyone knows of sources for common > GIS algorithms (especially buffering)? C code would be the best but > text algorithms would work too. I can always swipe stuff from the > latest version of Grass I suppose. Lemme know if anyone has come > across other sources. Hello! 1) Look at http://hissa.nist.gov/dads Not GIS specific, but tons of algorithms etc, incl. those usable in GISs. 2) Search at http://www.ead.anl.gov They had a page called 'algorithms for spatial data structures', but couldn't find it last time. Hope these help, Peep -- Peep Krusberg Projektijuht / Project Manager, MSc AS Eesti Kaardikeskus / Estonian Map Centre, Ltd. Mustamae tee 33, 10616 Tallinn, Estonia Tel: +(372) 6529 976; Fax: +(372) 6542 108 E-mail: peepk at ekk.ee From m_anderson14 at hotmail.com Tue Jul 25 09:18:59 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 25 Jul 2000 16:18:59 GMT Subject: MapScript: index of new layers Message-ID: Hello, When you add a new layer to a map using MapScript, how can you control the new layers index relative to the existing layers in the .map file? The new layer is drawing on top and obscuring the rest of the layers. Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From m_anderson14 at hotmail.com Tue Jul 25 09:31:40 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 25 Jul 2000 16:31:40 GMT Subject: MapScript: index of new layer Message-ID: Hello, I got it right after I sent the message. They draw in the order that you draw the layers. The example below will draw layer2 on top of layer1. layer1.draw(map,image) layer2.draw(map,image) Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From steve.lime at dnr.state.mn.us Tue Jul 25 09:32:57 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 25 Jul 2000 11:32:57 -0500 Subject: MapScript: index of new layers Message-ID: Finally someone noticed. Right now you can't. This is an artifact of the original code that uses an array of layers rather than a linked list. It's on the "todo" list. It is possible to work around it as there is nothing that says that you must draw layers in the order that they appear. The main $map->draw() method assumes this but you can step through the layers in any order you wish and use $layer->draw() to build up the map. For example you could maintain an array of layer names in the order they should be drawn: # load map and add to it (layers, extents, etc...) @layers = {'county', 'water', 'places', 'roads'}; $img = $map->prepareImage(); foreach $name (@layers) { $layer = $map->getLayerByName($name); $layer->draw(...); } $map->drawLabelCache($img); Another possiblity is to store 'dummy' layers as placeholders in the main map file and then edit their definitions instead of starting from scratch. This way the main $map->draw() method will work since the order was set in the map file. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 07/25/00 11:18AM >>> Hello, When you add a new layer to a map using MapScript, how can you control the new layers index relative to the existing layers in the .map file? The new layer is drawing on top and obscuring the rest of the layers. Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From pgallen at randomlogic.com Tue Jul 25 23:21:18 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Tue, 25 Jul 2000 23:21:18 -0700 Subject: Dynamic point labeling Message-ID: <397E835D.D2E9DA92@randomlogic.com> My application plots points on a map from data retrieved from a DB2 database. No problem here, I can plot points 'til my heart's content. How do I label these points from data retreived from the same database? The mapfile layer definitions from my current mapfile for the points and labels are below. Note that the "DATA field" entry in the LAYER definitions is now meaningless as I am no longer using this to define the points and labels. I am still using MapServer v. 3.3.001 (or whatever the first MapScript version was :) PGA # FIELD UNITS (Dynamically plotted using Perl, MapScript, and DB2) LAYER NAME field_units TYPE POINT STATUS ON DATA field # Depricated for this application TOLERANCE 4 CLASS COLOR 255 0 0 SYMBOL 6 NAME "Field Units" SIZE 4 MAXSIZE 7 END QUERY TEMPLATE units.html END END # Layer # FIELD UNIT IDENTIFICATION LAYER NAME unit_names TYPE ANNOTATION STATUS OFF DATA field # Depricated for this application TOLERANCE 2 LABELITEM "id" # Depricated for this application CLASS SIZE 8 COLOR 3 0 128 SYMBOL 0 LABEL BACKGROUNDCOLOR -1 -1 -1 COLOR 255 0 0 TYPE BITMAP SIZE TINY POSITION UC WRAP " " END # Label END # Class END # Layer LAYER NAME unit_names TYPE ANNOTATION STATUS OFF DATA field # Depricated for this application TOLERANCE 2 LABELITEM "msg_time" # Depricated for this application CLASS SIZE 8 COLOR 3 0 128 SYMBOL 0 LABEL BACKGROUNDCOLOR -1 -1 -1 COLOR 255 0 0 TYPE BITMAP SIZE TINY POSITION LC WRAP " " END # Label END # Class END # Layer END # Map File From imap at chesapeake.net Wed Jul 26 00:38:24 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Wed, 26 Jul 2000 03:38:24 -0400 Subject: installation w/configure Message-ID: <397E9570.F74B4E4D@chesapeake.net> On RedHat 6.2, there is a file /usr/lib/libgd.so that gets linked into mapserver. In my case, this is not what I wanted, and I have a different version of GD compiled. I had to manually rename the file, compile mapserver and later restore. Is there any way to tell 'configure' to ignore/exclude this specific library filespec? Thanks, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. From bowlin at sirius.com Wed Jul 26 00:53:36 2000 From: bowlin at sirius.com (Jim Bowlin) Date: Wed, 26 Jul 2000 07:53:36 +0000 Subject: Dynamic point labeling References: <397E835D.D2E9DA92@randomlogic.com> Message-ID: <397E98FF.D69D1050@sirius.com> "Paul G. Allen" wrote: > > My application plots points on a map from data retrieved from a DB2 > database. No problem here, I can plot points 'til my heart's content. > How do I label these points from data retreived from the same > database? The mapfile layer definitions from my current mapfile for > the points and labels are below. Note that the "DATA field" entry in > the LAYER definitions is now meaningless as I am no longer using this > to define the points and labels. I am still using MapServer v. 3.3.001 > (or whatever the first MapScript version was :) Here is some "stripped down" Perl code I used to plot either plain points or labeled points depending on the number of points on the map. ~~~~~~~~~~~~~~~~~~~~~~~ my $map = new mapObj($mapfile) or cgi_err($mapscript::ms_error->{code}.": ".$mapscript::ms_error->{message}); my $img = $map->prepareImage() or cgi_err ("Unable to prepareImage $mapscript::ms_error->{message}"); for my $i (0 .. ($map->{numlayers}-1)) { my $layer = $map->getLayer($i); $layer->draw($map, $img); # if $layer->{status}; } my $array_refref = $db->selectall_arrayref($sql) || []; my $count = @$array_refref; my $class = "class1"; if ($use_labels && $count <= 25) { my $labs = "labels"; my $layer = $map->getLayerByName($labs) or cgi_err("Unable to getLayerByName($labs) $mapscript::ms_error->{message}"); for my $row (@$array_refref) { my $point = new pointObj(); $point->{x} = $row->[1]; $point->{y} = $row->[0]; my $label = $row->[2]; $point->draw($map, $layer, $img, $class, $label); } $layer->draw($map, $img); } else { my $labs = "no_labels"; my $layer = $map->getLayerByName($labs) or cgi_err("Unable to getLayerByName($labs) $mapscript::ms_error->{message}"); for my $row (@$array_refref) { my $point = new pointObj(); $point->{x} = $row->[1]; $point->{y} = $row->[0]; $point->draw($map, $layer, $img, $class, undef); } $layer->draw($map, $img); } $map->drawLabelCache($img); mapscript::msSaveImage($img, $full_file, 0, 0); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Below are the relevant layers from the .map file. The key difference is the "TYPE POINT" versus the "TYPE ANNOTATION". I don't claim to understand all of this. I just sort of fusted with it until it did what I wanted. The $db thingy is a DBI object. The SQL statement selected on lat/lon and other criteria and returned three fields per row: lat, lon and the text for the label. I was writing the image to a file for server-side caching but mostly because this was running under FastCGI (which means the process was persistent) and I think there was a bug somewhere that was closing STDOUT if I let mapscript write directly to STDOUT. HTH -- Jim Bowlin LAYER NAME no_labels TYPE POINT STATUS DEFAULT PROJECTION geographic END MAXSCALE 100000000 CLASS NAME "class1" SYMBOL 16 COLOR 0 0 0 LABEL TYPE TRUETYPE ANTIALIAS FONT arial-bold BUFFER 4 SIZE 8 POSITION AUTO COLOR 0 0 0 BACKGROUNDCOLOR 255 255 204 END END END LAYER NAME labels TYPE ANNOTATION STATUS DEFAULT PROJECTION geographic END MAXSCALE 100000000 CLASS NAME "class1" SYMBOL 16 # red ball COLOR 0 0 0 LABEL TYPE TRUETYPE ANTIALIAS FONT arial-bold BUFFER 4 SIZE 8 POSITION AUTO COLOR 220 0 0 BACKGROUNDCOLOR 255 255 204 END END END From danmo at videotron.ca Wed Jul 26 06:03:57 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 26 Jul 2000 09:03:57 -0400 Subject: installation w/configure References: <397E9570.F74B4E4D@chesapeake.net> Message-ID: <397EE1BD.75D4EBC0@videotron.ca> imap at chesapeake.net wrote: > > On RedHat 6.2, there is a file /usr/lib/libgd.so that gets linked > into mapserver. In my case, this is not what I wanted, and I have > a different version of GD compiled. I had to manually rename the > file, compile mapserver and later restore. Is there any way to tell > 'configure' to ignore/exclude this specific library filespec? > You should be able to control which GD is compiled in using the --with-gd=DIR configure option. For instance, if the GD you want to use is in /home/chris/gd-1.8 then the following configure command will do the trick: ./configure --with-gd=/home/chris/gd-1.8 If you've already tried that and it didn't work then Email me directly and we'll have a deeper look at the problem. Regards, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cameron at socialchange.net.au Wed Jul 26 06:24:49 2000 From: cameron at socialchange.net.au (Cameron Shorter) Date: Wed, 26 Jul 2000 23:24:49 +1000 Subject: PROJECTION bug for geographic->geographic References: <397E9570.F74B4E4D@chesapeake.net> Message-ID: <397EE6A1.370AAE91@socialchange.net.au> Stephen, I think I've found a bug when you set up a layer projection to geographic and the map projection to geographic as well. What happens is the program core dumps ungracefully in the PROJ4 code. Note that mapserv does not crash if the layer has a projection of utm, or if the layer has no projection tags at all. I've added a bit of debugging info. Hope it helps. Debugging Info: =============== Mapserver Version: 3.3.010 Proj4 Version: PROJ.4.3.3.tar.gz Operating System: Redhat 6.1 Key parts of the mapfile: NAME npws.map SIZE 550 370 EXTENT 141.745 -37.970 153.783 -27.785 SHAPEPATH /www/hosted/linuxdev/htdocs/webmap/npws/maps #UNITS meters PROJECTION geographic END ... LAYER NAME threatfa TYPE Point STATUS on PROJECTION geographic END #PROJECTION # "proj=utm" #END DATA threatfa HEADER 'threatfa.shp_header.html' QUERY TEMPLATE threatfa.shp_query.html END # QUERY CLASS Name 'Threatfa' COLOR 16 242 77 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER ==================== Have attached gdb to mapserv and got the following call stack: (gdb) r Starting program: /usr/local/src/ms_3.3.010/mapserv Program received signal SIGSEGV, Segmentation fault. pj_fwd (lp={lam = 2.4469395500776421, phi = -0.66270151698224689}, P=0x0) at pj_fwd.c:22 22 pj_fwd.c: No such file or directory. (gdb) bt #0 pj_fwd (lp={lam = 2.4469395500776421, phi = -0.66270151698224689}, P=0x0) at pj_fwd.c:22 #1 0x8069749 in msProjectPoint (in=0x0, out=0x0, point=0xbfffe428) at mapproject.c:24 #2 0x8069784 in msProjectRect (in=0x0, out=0x0, rect=0xbfffe45c) at mapproject.c:40 #3 0x8054914 in msWhichShapesProj (shp=0xbfffee04, window={ minx = 140.19930894308945, miny = -37.969999999999999, maxx = 155.32869105691054, maxy = -27.785}, in=0x80bfda0, out=0x4020e834) at mapsearch.c:332 #4 0x805ed88 in msDrawShapefileLayer (map=0x401e4008, layer=0x80bfd00, img=0x80f12a0, query_status=0x0) at maputil.c:1136 #5 0x805c7e1 in msDrawMap (map=0x401e4008) at maputil.c:401 #6 0x8050002 in main (argc=1, argv=0xbffff6c4) at mapserv.c:2160 (gdb) (gdb) p P $1 = (PJ *) 0x0 ================== pj_fwd.c contains: /* general forward projection */ #ifndef lint static const char SCCSID[]="@(#)pj_fwd.c 4.4 93/06/12 GIE REL"; #endif #define PJ_LIB__ #include #include # define EPS 1.0e-12 XY /* forward projection entry */ pj_fwd(LP lp, PJ *P) { XY xy; double t; /* check for forward and latitude or longitude overange */ if ((t = fabs(lp.phi)-HALFPI) > EPS || fabs(lp.lam) > 10.) { xy.x = xy.y = HUGE_VAL; pj_errno = -14; } else { /* proceed with projection */ errno = pj_errno = 0; if (fabs(t) <= EPS) lp.phi = lp.phi < 0. ? -HALFPI : HALFPI; <22> else if (P->geoc) lp.phi = atan(P->rone_es * tan(lp.phi)); lp.lam -= P->lam0; /* compute del lp.lam */ if (!P->over) lp.lam = adjlon(lp.lam); /* adjust del longitude */ xy = (*P->fwd)(lp, P); /* project */ if (pj_errno || (pj_errno = errno)) xy.x = xy.y = HUGE_VAL; /* adjust for major axis and easting/northings */ else { xy.x = P->fr_meter * (P->a * xy.x + P->x0); xy.y = P->fr_meter * (P->a * xy.y + P->y0); } } return xy; } Note on line 22 (where the error occurs) that P=NULL. My guess is that there is a logic problem in mapproject.c -- Cameron Shorter Web Mapping Manager Social Change Online 6A Nelson Street Tel: +61 (0) 2 9557 6500 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia http://online.socialchange.net.au From jmaes at riparia.net Wed Jul 26 13:55:35 2000 From: jmaes at riparia.net (Jason Maestri) Date: Wed, 26 Jul 2000 14:55:35 -0600 Subject: PHP4 and Mapscript... Message-ID: <397F5047.D57D4753@riparia.net> Does anybody know if the PHP/Mapscript module will compile properly with PHP4? I can't seem to make it work, and I am just wondering if I am a total bozo, or if it doesn't compile properly with v4. Anyway, here's the errors I've got it boiled down to (I already fixed a ton of others...): Make chews for about 5 seconds, and then spits out: php_mapscript.c:110: php3_list.h: No such file or directory php_mapscript.c:987: arguments given to macro `getThis' php_mapscript.c:1048: arguments given to macro `getThis' ---Output truncated (just 20 or 30 more of these)--- php_mapscript.c:4475: arguments given to macro `getThis' php_mapscript.c:4523: arguments given to macro `getThis' make[1]: *** [php_mapscript.o] Error 1 make[1]: Leaving directory `/var/src/mapserver/mapscript/php3' Any help would be appreciated. Thanks guys. --Jason From danmo at videotron.ca Wed Jul 26 15:03:44 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Wed, 26 Jul 2000 18:03:44 -0400 Subject: PHP4 and Mapscript... References: <397F5047.D57D4753@riparia.net> Message-ID: <397F6040.778312F7@videotron.ca> Jason Maestri wrote: > > Does anybody know if the PHP/Mapscript module will compile properly with > PHP4? I can't seem to make it work, and I am just wondering if I am a > total bozo, or if it doesn't compile properly with v4. Jason, The PHP MapScript module currently works only with PHP3. It has not been ported to PHP4 yet... so the errors you get are (kind of) normal until we have the time to port it to PHP4... hopefully by the end of the summer. Unfortunately, you will have to stick to PHP3 for now. -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Robin.Ellis at dnr.qld.gov.au Wed Jul 26 17:25:24 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Thu, 27 Jul 2000 10:25:24 +1000 Subject: itemquery and itemquerymap Message-ID: I'm trying to use the itemquerymap mode to return a query map depicting the polygon I've just selected from a list of polygon numbers. This works fine for polygon numbers that are completely unique (ie contain the maximum amount of characters), however for thos that are not entirley unique I get multiple results (which I don't want). For example, if I submit polygon number 191, I get a query map showing me polygons "191" and "1191" (there are only 1400 polygons, so 4 digits is the maximum). I think I need to use a regular expression to tell MapServer to match the polygon number returned entirely, and not to view it as a string that may be part of a larger text string. Does anybody have any thoughts on how I might achieve this? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ 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 steve.lime at dnr.state.mn.us Wed Jul 26 18:28:31 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Jul 2000 20:28:31 -0500 Subject: itemquery and itemquerymap Message-ID: Itemquery uses regex's not strcmp. So just use a value like ^191$ and that should ensure a unique match. Steve >>> 07/26/00 19:28 PM >>> I'm trying to use the itemquerymap mode to return a query map depicting the polygon I've just selected from a list of polygon numbers. This works fine for polygon numbers that are completely unique (ie contain the maximum amount of characters), however for thos that are not entirley unique I get multiple results (which I don't want). For example, if I submit polygon number 191, I get a query map showing me polygons "191" and "1191" (there are only 1400 polygons, so 4 digits is the maximum). I think I need to use a regular expression to tell MapServer to match the polygon number returned entirely, and not to view it as a string that may be part of a larger text string. Does anybody have any thoughts on how I might achieve this? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ 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 Robin.Ellis at dnr.qld.gov.au Wed Jul 26 18:35:07 2000 From: Robin.Ellis at dnr.qld.gov.au (Robin.Ellis at dnr.qld.gov.au) Date: Thu, 27 Jul 2000 11:35:07 +1000 Subject: itemquery and itemquerymap Message-ID: Thanks very much Steve. You've just nailed it. -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, 27 July 2000 11:29 To: Robin.Ellis at dnr.qld.gov.au Cc: mapserver-users at lists.gis.umn.edu Subject: Re: itemquery and itemquerymap Itemquery uses regex's not strcmp. So just use a value like ^191$ and that should ensure a unique match. Steve >>> 07/26/00 19:28 PM >>> I'm trying to use the itemquerymap mode to return a query map depicting the polygon I've just selected from a list of polygon numbers. This works fine for polygon numbers that are completely unique (ie contain the maximum amount of characters), however for thos that are not entirley unique I get multiple results (which I don't want). For example, if I submit polygon number 191, I get a query map showing me polygons "191" and "1191" (there are only 1400 polygons, so 4 digits is the maximum). I think I need to use a regular expression to tell MapServer to match the polygon number returned entirely, and not to view it as a string that may be part of a larger text string. Does anybody have any thoughts on how I might achieve this? Thanks Rob Robin Ellis Land Resources Officer Department of Natural Resources Burnett District ph: 07 4153 7843 fax: 07 4153 7823 Robin.Ellis at dnr.qld.gov.au ************************************************************************ 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 steve.lime at dnr.state.mn.us Wed Jul 26 18:41:47 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 26 Jul 2000 20:41:47 -0500 Subject: Proposed change to symbols. Message-ID: I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. Any thoughts or can I code it? Steve From pgallen at randomlogic.com Wed Jul 26 20:07:35 2000 From: pgallen at randomlogic.com (Paul G. Allen) Date: Wed, 26 Jul 2000 20:07:35 -0700 Subject: Proposed change to symbols. References: Message-ID: <397FA777.63EBBE2C@randomlogic.com> Stephen Lime wrote: > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > Any thoughts or can I code it? > I _REALLY_ need to update from my old antiquated version. :) Well, as soon as I make sure my application is working thus far, I will. I say, go ahaed and code it. :) PGA From imap at chesapeake.net Wed Jul 26 21:28:26 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Thu, 27 Jul 2000 00:28:26 -0400 Subject: Proposed change to symbols. References: Message-ID: <397FBA6A.CE2802AA@chesapeake.net> Steve/List, Being one of the advocates for symbol/marker changes, here is some rationale behind the changes. The current symbol files are somewhat static and if the files become large, there is overhead incurred on every invocation of mapserv. Also, the current scheme also does not lend itself to dynamic marker placement very well. (that is, using a marker NOT defined in marker.sym) We want to be able to use external markers from a PATH filespec to make it easier to maintain (no more editing the marker.sym file ;) and (2) make it more programmer friendly and simplifies the mapscript a bit. As far as functionality, it would be nice to interrogate a $class->{symbol} to determine it's height/width and some sort of option to set/get control of collision avoidance (labelcache). (I think needed for both POINT and ANNOTATION layers) And lastly, make sure to preserve the ability to examine to labelcache to extract the polygons of the markers and text placed on the map. I am all for getting rid of marker.sym 100% although it may break my current applications... sometimes change is painful. Anyway to code an interim solutions that works both ways? probably not, but thought I would ask anyway. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. 410.257.3187 Stephen Lime wrote: > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > Any thoughts or can I code it? > > Steve From jmaes at riparia.net Thu Jul 27 00:27:26 2000 From: jmaes at riparia.net (Jason Maestri) Date: Thu, 27 Jul 2000 01:27:26 -0600 Subject: Proposed change to symbols. References: <397FBA6A.CE2802AA@chesapeake.net> Message-ID: <397FE45E.26281630@riparia.net> Hey, while we're discussing symbols... As nearly as I can tell, there is no way to query mapserver for the symbol for a specific layer/class (for use in legends, and elsewhere), is that something is possible, and if not, could it be made possible (Steve)? --Jason imap at chesapeake.net wrote: > Steve/List, > > Being one of the advocates for symbol/marker changes, here is some rationale > behind the changes. The current symbol files are somewhat static and if the > files become large, there is overhead incurred on every invocation of mapserv. > Also, the current scheme also does not lend itself to dynamic marker placement > very > well. (that is, using a marker NOT defined in marker.sym) > > We want to be able to use external markers from a PATH filespec to make it > easier > to maintain (no more editing the marker.sym file ;) and (2) make it more > programmer > friendly and simplifies the mapscript a bit. > > As far as functionality, it would be nice to interrogate a $class->{symbol} to > determine it's height/width and some sort of option to set/get control of > collision > avoidance (labelcache). (I think needed for both POINT and ANNOTATION > layers) And lastly, make sure to preserve the ability to examine to labelcache > to > extract the polygons of the markers and text placed on the map. > > I am all for getting rid of marker.sym 100% although it may break my current > applications... sometimes change is painful. Anyway to code an interim > solutions that works both ways? probably not, but thought I would ask anyway. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. > 410.257.3187 > > Stephen Lime wrote: > > > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > > > Any thoughts or can I code it? > > > > Steve From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jul 27 07:15:53 2000 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 27 Jul 2000 10:15:53 -0400 Subject: Proposed change to symbols. Message-ID: <2951561DB3DDD0118FEC00805FFE98050380C10E@s5-ccr-r1> Someone in my office had mentionned a neat feature he's seen on other mapservers : Using TrueType Fonts for symbology ... So basically a symbol could simply be a TrueType font character ... Anybody thought of this before ? Is that a good idea ? Just thought I'd throw it out there ... Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, July 26, 2000 9:41 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Proposed change to symbols. > > I'd like to propose a couple of changes to the way symbols are handled. > This is to make symbols easier to manage and to support some additional > functionality proposed by a couple of other users. The initial change > would be this: > > Do away with separate marker, line and shade symbol files in favor of a > single symbol file. Also, allow symbol definitions in the map file. > > Syntax would be the same and access (i.e. symbols referenced in class > objects) would be the same. These changes allow for a simpler MapScript > symbol interface and additional opportunities for defining symbols > on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file > (relative to the location of the map file) in a class object (i.e. SYMBOL > "graphics/marker.gif") and a symbol is dynamically created. MapScript > method $map->getSymbolByName("graphics/marker.gif"); will also work. > > Any thoughts or can I code it? > > Steve > From steve.lime at dnr.state.mn.us Thu Jul 27 07:29:13 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Jul 2000 09:29:13 -0500 Subject: Proposed change to symbols. Message-ID: You can already do it. Symbol files support the a fontset just like the main map file. You then can have TRUETYPE symbol types and use a parameter named CHARACTER to represent the symbol (i.e. Z = something in the .ttf file). You can always use annotation layers with symbolic .ttf files (and a constant blank TEXT value - TEXT " ") as well. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 07/27/00 09:15AM >>> Someone in my office had mentionned a neat feature he's seen on other mapservers : Using TrueType Fonts for symbology ... So basically a symbol could simply be a TrueType font character ... Anybody thought of this before ? Is that a good idea ? Just thought I'd throw it out there ... Jean-Francois Doyon Internet Service Development and Systems Support GeoAccess Division Natural Resources Canada (613) 992-4902 > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, July 26, 2000 9:41 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Proposed change to symbols. > > I'd like to propose a couple of changes to the way symbols are handled. > This is to make symbols easier to manage and to support some additional > functionality proposed by a couple of other users. The initial change > would be this: > > Do away with separate marker, line and shade symbol files in favor of a > single symbol file. Also, allow symbol definitions in the map file. > > Syntax would be the same and access (i.e. symbols referenced in class > objects) would be the same. These changes allow for a simpler MapScript > symbol interface and additional opportunities for defining symbols > on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file > (relative to the location of the map file) in a class object (i.e. SYMBOL > "graphics/marker.gif") and a symbol is dynamically created. MapScript > method $map->getSymbolByName("graphics/marker.gif"); will also work. > > Any thoughts or can I code it? > > Steve > From mjury at impsat1.com Thu Jul 27 07:38:49 2000 From: mjury at impsat1.com (marcelo jury) Date: Thu, 27 Jul 2000 11:38:49 -0300 Subject: SHP to text with streets intersections, how to? Message-ID: <005601bff7d8$63a6dde0$b91c29c8@marcelo> I wonder if somebody know a way to create a text file from a line SHP theme with streets, but also providing the LAT, LON for the crossing streets, in a way like: ST1, ST2, L_F_ADD, LAT, LON Any suggestions? Thanks in advance! From steve.lime at dnr.state.mn.us Thu Jul 27 07:35:09 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Jul 2000 09:35:09 -0500 Subject: Proposed change to symbols. Message-ID: How do you mean query? You can get at that in MapScript. I'm not sure why you'd want that capability in the C CGI program. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Jason Maestri 07/27/00 02:27AM >>> Hey, while we're discussing symbols... As nearly as I can tell, there is no way to query mapserver for the symbol for a specific layer/class (for use in legends, and elsewhere), is that something is possible, and if not, could it be made possible (Steve)? --Jason imap at chesapeake.net wrote: > Steve/List, > > Being one of the advocates for symbol/marker changes, here is some rationale > behind the changes. The current symbol files are somewhat static and if the > files become large, there is overhead incurred on every invocation of mapserv. > Also, the current scheme also does not lend itself to dynamic marker placement > very > well. (that is, using a marker NOT defined in marker.sym) > > We want to be able to use external markers from a PATH filespec to make it > easier > to maintain (no more editing the marker.sym file ;) and (2) make it more > programmer > friendly and simplifies the mapscript a bit. > > As far as functionality, it would be nice to interrogate a $class->{symbol} to > determine it's height/width and some sort of option to set/get control of > collision > avoidance (labelcache). (I think needed for both POINT and ANNOTATION > layers) And lastly, make sure to preserve the ability to examine to labelcache > to > extract the polygons of the markers and text placed on the map. > > I am all for getting rid of marker.sym 100% although it may break my current > applications... sometimes change is painful. Anyway to code an interim > solutions that works both ways? probably not, but thought I would ask anyway. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. > 410.257.3187 > > Stephen Lime wrote: > > > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > > > Any thoughts or can I code it? > > > > Steve From ddnebert at fgdc.gov Thu Jul 27 08:23:10 2000 From: ddnebert at fgdc.gov (Doug Nebert) Date: Thu, 27 Jul 2000 11:23:10 -0400 Subject: Proposed change to symbols. References: <397FA777.63EBBE2C@randomlogic.com> Message-ID: <398053DE.55289F2A@fgdc.gov> owner-mapserver-users at lists.gis.umn.edu wrote: > > Stephen Lime wrote: > > > > I'd like to propose a couple of changes to the way symbols are handled. Which reminds me, is there a way to declare the use of many symbols to render many different features in a given shapefile? The case in point would be a land use map with 8 classes, each with a different color. I want a single request that would let me render the map using the symbol settings. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From ender at titan.lab.csuchico.edu Thu Jul 27 01:20:26 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Thu, 27 Jul 2000 08:20:26 +0000 (/etc/localtime) Subject: New website Message-ID: Stephen, I'm sorry to complain about the website, but I really hate having to use JavaScript use a website at all. Could you add some links to all of the pages that exist within the pages themselves, or come up with some other method for putting the buttons on the banner? I usually browse with JavaScript turned off, and it gets very frustrating when I have to turn it on to look at the MapServer site, and then forget that I have it on... As for the proposed changes to the symbol format, I agree completely with the need for these changes. -Aaron From vanderwalm at peligroso.gaiaenv.com Thu Jul 27 10:16:02 2000 From: vanderwalm at peligroso.gaiaenv.com (Mel VanderWal) Date: Thu, 27 Jul 2000 11:16:02 -0600 Subject: Proposed change to symbols. Message-ID: <39806E52.63D61C78@gaiaenv.com> One thing that would be a nice feature is to be able to "stack" symbols in a single layer. For example, most of the decent-looking ArcView point symbols are actually two or more .ttf symbols placed directly on top of each other. Another example: dashed thin yellow line on top of thicker black line = highway symbol. For what it's worth, I'm all for moving the symbols into the map file. Stephen Lime wrote: > You can already do it. Symbol files support the a fontset just like the > main map file. You then can have TRUETYPE symbol types and use > a parameter named CHARACTER to represent the symbol (i.e. Z = something > in the .ttf file). You can always use annotation layers with symbolic .ttf files > (and a constant blank TEXT value - TEXT " ") as well. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Doyon, Jean-Francois" 07/27/00 09:15AM >>> > Someone in my office had mentionned a neat feature he's seen on other > mapservers : Using TrueType Fonts for symbology ... > > So basically a symbol could simply be a TrueType font character ... > > Anybody thought of this before ? Is that a good idea ? Just thought I'd > throw it out there ... > > Jean-Francois Doyon > Internet Service Development and Systems Support > GeoAccess Division > Natural Resources Canada > (613) 992-4902 > -- Mel VanderWal GIS Programmer / Manager GAIA Consultants Inc. Suite 306, 822-11th Avenue SW Calgary, Alberta Canada T2R 0E5 Phone: (403) 571-7216 Fax: (403) 571-7211 www.gaiaenv.com vanderwalm at gaiaenv.com From michalak at hwr.arizona.edu Thu Jul 27 10:39:44 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 27 Jul 2000 10:39:44 -0700 (MST) Subject: http vars Message-ID: This may be a stupid question. Let me know if I'm making this more difficult than it needs to be. Can someone please tell me how mapserver is able to grab name-value pairs in the HTML form with the same name and different values (i.e. name=layer value=snotel, name=layer value=rtg) without overwriting the first value with the second value? If you can tell me which file the code is in, I'll go look it up. I am trying to write a perl script for my map application that will do the same thing. I need to pass name-vals for a set of variables that have a different value for each record in the database. Here's a simplified picture of what I'm doing: name = recordNumber value = 1 name = state value = AZ name = county value = Pima name= recordNumber value = 2 name = state value = WY name = county value = George etc... I want to be able to send these through cgi without having the record 2 values overwrite the record 1 values, and so on. And all I need to do is print them out. Thanks! ************************************* Zolla Michalak Support Systems Analyst HWR, University of Arizona http://php.iupui.edu/~zwadswor ************************************* From steve.lime at dnr.state.mn.us Thu Jul 27 11:20:51 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Jul 2000 13:20:51 -0500 Subject: New website Message-ID: I'll add a text menu to the footer together. The javascript just makes maintanence a hell of a lot easier. Ain't got time to do another version. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 07/27/00 03:20AM >>> Stephen, I'm sorry to complain about the website, but I really hate having to use JavaScript use a website at all. Could you add some links to all of the pages that exist within the pages themselves, or come up with some other method for putting the buttons on the banner? I usually browse with JavaScript turned off, and it gets very frustrating when I have to turn it on to look at the MapServer site, and then forget that I have it on... As for the proposed changes to the symbol format, I agree completely with the need for these changes. -Aaron From ender at titan.lab.csuchico.edu Thu Jul 27 05:24:33 2000 From: ender at titan.lab.csuchico.edu (ender at titan.lab.csuchico.edu) Date: Thu, 27 Jul 2000 12:24:33 +0000 (/etc/localtime) Subject: Proposed change to symbols. In-Reply-To: Message-ID: I think I know what Jason wants, and I want it myself as well. I'll describe what I want it for, and Jason can confirm if it's the same thing he's thinking of. Say I want to create a legend similar to the one on DMSolutions page: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml I need to be able to get the individual images used in the legend table, so I could show the symbols as they actually are. I could write a program to read the mapfile and spit out all of the classification images, allowing me to hardcode each symbol with an image representing that classification. The problem with this is that it's static. There's no way to dynamically get just the symbol after a dynamic reclassification using a call to mapserver. The only solution to this problem that I can think of involves setting up sessions and having mapserver start to log hits. I've thought of setting this up for years now, and have never had the time or money to do it, but that's a seperate topic... I think that a simple sollution that just returned the image for a specific map, layer and class would be pretty easy to write, but would have very limited use. -Aaron On Thu, 27 Jul 2000, Stephen Lime wrote: > How do you mean query? You can get at that in MapScript. I'm not sure why you'd want > that capability in the C CGI program. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Jason Maestri 07/27/00 02:27AM >>> > Hey, while we're discussing symbols... As nearly as I can tell, there is no way to query mapserver for the symbol for a specific layer/class (for use in legends, and elsewhere), is that something is possible, and if not, could it be made possible (Steve)? > > --Jason > > imap at chesapeake.net wrote: > > > Steve/List, > > > > Being one of the advocates for symbol/marker changes, here is some rationale > > behind the changes. The current symbol files are somewhat static and if the > > files become large, there is overhead incurred on every invocation of mapserv. > > Also, the current scheme also does not lend itself to dynamic marker placement > > very > > well. (that is, using a marker NOT defined in marker.sym) > > > > We want to be able to use external markers from a PATH filespec to make it > > easier > > to maintain (no more editing the marker.sym file ;) and (2) make it more > > programmer > > friendly and simplifies the mapscript a bit. > > > > As far as functionality, it would be nice to interrogate a $class->{symbol} to > > determine it's height/width and some sort of option to set/get control of > > collision > > avoidance (labelcache). (I think needed for both POINT and ANNOTATION > > layers) And lastly, make sure to preserve the ability to examine to labelcache > > to > > extract the polygons of the markers and text placed on the map. > > > > I am all for getting rid of marker.sym 100% although it may break my current > > applications... sometimes change is painful. Anyway to code an interim > > solutions that works both ways? probably not, but thought I would ask anyway. > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc. > > 410.257.3187 > > > > Stephen Lime wrote: > > > > > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > > > > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > > > > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > > > > > Any thoughts or can I code it? > > > > > > Steve > > From steve.lime at dnr.state.mn.us Thu Jul 27 14:38:21 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 27 Jul 2000 16:38:21 -0500 Subject: Proposed change to symbols. Message-ID: The simple solution pretty much already exists. Loop through the layers, all have to be off to start with, and one-by-one create a legend without any legend text (actually a " "). Do a drawLegend and save. There'd be some slop around the legend but it'd work. You could also create mini maps using a virtual mapfile and one layer for point, line and polygon data. An inline feature could be used to represent the line, center point or the polygon. Just loop over the layers and classes and use those values to set the class values for the appropriate layer in the virtual map, draw and save. You can reference the resulting images at will then in resulting docs. s. >>> 07/27/00 07:24AM >>> I think I know what Jason wants, and I want it myself as well. I'll describe what I want it for, and Jason can confirm if it's the same thing he's thinking of. Say I want to create a legend similar to the one on DMSolutions page: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml I need to be able to get the individual images used in the legend table, so I could show the symbols as they actually are. I could write a program to read the mapfile and spit out all of the classification images, allowing me to hardcode each symbol with an image representing that classification. The problem with this is that it's static. There's no way to dynamically get just the symbol after a dynamic reclassification using a call to mapserver. The only solution to this problem that I can think of involves setting up sessions and having mapserver start to log hits. I've thought of setting this up for years now, and have never had the time or money to do it, but that's a seperate topic... I think that a simple sollution that just returned the image for a specific map, layer and class would be pretty easy to write, but would have very limited use. -Aaron On Thu, 27 Jul 2000, Stephen Lime wrote: > How do you mean query? You can get at that in MapScript. I'm not sure why you'd want > that capability in the C CGI program. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Jason Maestri 07/27/00 02:27AM >>> > Hey, while we're discussing symbols... As nearly as I can tell, there is no way to query mapserver for the symbol for a specific layer/class (for use in legends, and elsewhere), is that something is possible, and if not, could it be made possible (Steve)? > > --Jason > > imap at chesapeake.net wrote: > > > Steve/List, > > > > Being one of the advocates for symbol/marker changes, here is some rationale > > behind the changes. The current symbol files are somewhat static and if the > > files become large, there is overhead incurred on every invocation of mapserv. > > Also, the current scheme also does not lend itself to dynamic marker placement > > very > > well. (that is, using a marker NOT defined in marker.sym) > > > > We want to be able to use external markers from a PATH filespec to make it > > easier > > to maintain (no more editing the marker.sym file ;) and (2) make it more > > programmer > > friendly and simplifies the mapscript a bit. > > > > As far as functionality, it would be nice to interrogate a $class->{symbol} to > > determine it's height/width and some sort of option to set/get control of > > collision > > avoidance (labelcache). (I think needed for both POINT and ANNOTATION > > layers) And lastly, make sure to preserve the ability to examine to labelcache > > to > > extract the polygons of the markers and text placed on the map. > > > > I am all for getting rid of marker.sym 100% although it may break my current > > applications... sometimes change is painful. Anyway to code an interim > > solutions that works both ways? probably not, but thought I would ask anyway. > > > > Regards, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc. > > 410.257.3187 > > > > Stephen Lime wrote: > > > > > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > > > > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > > > > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > > > > > Any thoughts or can I code it? > > > > > > Steve > > From sl57k at cc.usu.edu Thu Jul 27 15:08:09 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Thu, 27 Jul 2000 16:08:09 -0600 (MDT) Subject: Proposed change to symbols. In-Reply-To: Message-ID: Okay, guys... This'll probably do it... I appreciate all of your help --Jason On Thu, 27 Jul 2000, Stephen Lime wrote: > The simple solution pretty much already exists. Loop through the layers, > all have to be off to start with, and one-by-one create a legend without > any legend text (actually a " "). Do a drawLegend and save. There'd be > some slop around the legend but it'd work. > > You could also create mini maps using a virtual mapfile and one layer for point, > line and polygon data. An inline feature could be used to represent the line, > center point or the polygon. Just loop over the layers and classes and > use those values to set the class values for the appropriate layer in the > virtual map, draw and save. > > You can reference the resulting images at will then in resulting docs. > > s. > > >>> 07/27/00 07:24AM >>> > > I think I know what Jason wants, and I want it myself as well. I'll > describe what I want it for, and Jason can confirm if it's the same thing > he's thinking of. > > Say I want to create a legend similar to the one on DMSolutions page: > > http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > > I need to be able to get the individual images used in the legend table, > so I could show the symbols as they actually are. I could write a program > to read the mapfile and spit out all of the classification images, > allowing me to hardcode each symbol with an image representing that > classification. The problem with this is that it's static. There's no > way to dynamically get just the symbol after a dynamic reclassification > using a call to mapserver. > > The only solution to this problem that I can think of involves setting up > sessions and having mapserver start to log hits. I've thought of setting > this up for years now, and have never had the time or money to do it, but > that's a seperate topic... > > I think that a simple sollution that just returned the image for a > specific map, layer and class would be pretty easy to write, but would > have very limited use. > > -Aaron > > On Thu, 27 Jul 2000, Stephen Lime wrote: > > > How do you mean query? You can get at that in MapScript. I'm not sure why you'd want > > that capability in the C CGI program. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Jason Maestri 07/27/00 02:27AM >>> > > Hey, while we're discussing symbols... As nearly as I can tell, there is no way to query mapserver for the symbol for a specific layer/class (for use in legends, and elsewhere), is that something is possible, and if not, could it be made possible (Steve)? > > > > --Jason > > > > imap at chesapeake.net wrote: > > > > > Steve/List, > > > > > > Being one of the advocates for symbol/marker changes, here is some rationale > > > behind the changes. The current symbol files are somewhat static and if the > > > files become large, there is overhead incurred on every invocation of mapserv. > > > Also, the current scheme also does not lend itself to dynamic marker placement > > > very > > > well. (that is, using a marker NOT defined in marker.sym) > > > > > > We want to be able to use external markers from a PATH filespec to make it > > > easier > > > to maintain (no more editing the marker.sym file ;) and (2) make it more > > > programmer > > > friendly and simplifies the mapscript a bit. > > > > > > As far as functionality, it would be nice to interrogate a $class->{symbol} to > > > determine it's height/width and some sort of option to set/get control of > > > collision > > > avoidance (labelcache). (I think needed for both POINT and ANNOTATION > > > layers) And lastly, make sure to preserve the ability to examine to labelcache > > > to > > > extract the polygons of the markers and text placed on the map. > > > > > > I am all for getting rid of marker.sym 100% although it may break my current > > > applications... sometimes change is painful. Anyway to code an interim > > > solutions that works both ways? probably not, but thought I would ask anyway. > > > > > > Regards, > > > > > > Chris Stuber (mapsurfer) > > > Silicon Mapping Solutions, Inc. > > > 410.257.3187 > > > > > > Stephen Lime wrote: > > > > > > > > I'd like to propose a couple of changes to the way symbols are handled. This is to make symbols easier to manage and to support some additional functionality proposed by a couple of other users. The initial change would be this: > > > > > > > > Do away with separate marker, line and shade symbol files in favor of a single symbol file. Also, allow symbol definitions in the map file. > > > > > > > > Syntax would be the same and access (i.e. symbols referenced in class objects) would be the same. These changes allow for a simpler MapScript symbol interface and additional opportunities for defining symbols on-the-fly. Begining in 3.3.011 you can already specify a GIF/PNG file (relative to the location of the map file) in a class object (i.e. SYMBOL "graphics/marker.gif") and a symbol is dynamically created. MapScript method $map->getSymbolByName("graphics/marker.gif"); will also work. > > > > > > > > Any thoughts or can I code it? > > > > > > > > Steve > > > > > > From Tim.Mackey at agso.gov.au Thu Jul 27 22:51:29 2000 From: Tim.Mackey at agso.gov.au (Tim.Mackey at agso.gov.au) Date: Fri, 28 Jul 2000 15:51:29 +1000 Subject: SDE version Message-ID: <52113C81E9ACD31182D40060B0570D9B17688E@agsomail1.agso.gov.au> Hi, My understanding is that there are 2 different versions of spatial data stored in oracle by SDE: SDE and ArcSDE 8. The old SDE has been superseded in the latest versions of Arc by Arc SDE 8 (Arc SDE 8 and Oracle Spatial have the same data format). Based on this, I have a question: Is the SDE connection by mapserver linked to a specific version of SDE, and if so, which version of SDE is mapserver expecting? thanks, 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/ From kafka at email.cz Fri Jul 28 00:58:32 2000 From: kafka at email.cz (Stepan Kafka) Date: Fri, 28 Jul 2000 09:58:32 +0200 Subject: SHP to text with streets intersections, how to? In-Reply-To: <005601bff7d8$63a6dde0$b91c29c8@marcelo> Message-ID: <000701bff869$9ff71d50$fb01a8c0@gis2.oku-kh.cz> Do you want to do it with MapServer environment or prepare it "in advance"? (For example it is quite simply to prepare it in ArcView AVENUE). Stepan > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele marcelo > jury > Odesl?no: 27. ?ervence 2000 16:39 > Komu: Stephen Lime > Kopie: mapserver-users at lists.gis.umn.edu > P?edm?t: SHP to text with streets intersections, how to? > > > I wonder if somebody know a way to create a text file from a line > SHP theme > with streets, but also providing the LAT, LON for the crossing > streets, in a > way like: > > ST1, ST2, L_F_ADD, LAT, LON > > Any suggestions? > Thanks in advance! > > From m_anderson14 at hotmail.com Fri Jul 28 07:45:54 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Fri, 28 Jul 2000 14:45:54 GMT Subject: MapScript: Altering classes Message-ID: Hello, I am trying to change the classification of a layer using MapScript. I change the colors in an existing classes with no problems, but if I try to set a new classitem and create new classes I get a segmentation error. Here is my code. map = mapObj("soils.map") soilsL = map.getLayerByName('soils') soilsL.classitem = 'Hydric_c' cl0 = classObj(soilsL) cl1 = classObj(soilsL) green = map.addColor(0,255,0) blue = map.addColor(0,0,255) black = map.addColor(0,0,0) cl0.expression = 'N' cl1.expression = 'Y' cl0.color = green cl1.color = blue cl0.outlinecolor = black cl1.outlinecolor = black soilsL.status = 1 img = map.prepareImage() soilsL.draw(map,img) Segmentation fault -- kicked out of Python. I checked along the way to make sure my variables are referencing valid objects and everything looks OK. Can someone tell what I am doing wrong. I am guessing it has something to do with the expression, but it's only a guess. I can post a Perl version, but I think Python's syntax is clear enough to express what I am trying to do. Thanks, Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From steve.lime at dnr.state.mn.us Fri Jul 28 07:53:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 28 Jul 2000 09:53:36 -0500 Subject: MapScript: Altering classes Message-ID: Problem (i think) is the expression setting. You need to use a special method (nuts, forgot to update the website on this). Because several types of expressions are supported it wasn't possible to use the standard way of setting values so a helper function was written. The syntax is cl0.setExpression('N'). Basically the value for setExpression *must* conform to the rules for expressions set in the map file docs. That may mean in certain cirumstances that you may need to include a second set of quotes with strings with spaces or special chars or just numbers (i.e. $class->setExpression("\"100\"")). I'll update the website ASAP. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 07/28/00 09:45AM >>> Hello, I am trying to change the classification of a layer using MapScript. I change the colors in an existing classes with no problems, but if I try to set a new classitem and create new classes I get a segmentation error. Here is my code. map = mapObj("soils.map") soilsL = map.getLayerByName('soils') soilsL.classitem = 'Hydric_c' cl0 = classObj(soilsL) cl1 = classObj(soilsL) green = map.addColor(0,255,0) blue = map.addColor(0,0,255) black = map.addColor(0,0,0) cl0.expression = 'N' cl1.expression = 'Y' cl0.color = green cl1.color = blue cl0.outlinecolor = black cl1.outlinecolor = black soilsL.status = 1 img = map.prepareImage() soilsL.draw(map,img) Segmentation fault -- kicked out of Python. I checked along the way to make sure my variables are referencing valid objects and everything looks OK. Can someone tell what I am doing wrong. I am guessing it has something to do with the expression, but it's only a guess. I can post a Perl version, but I think Python's syntax is clear enough to express what I am trying to do. Thanks, Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From nhv at cape.com Fri Jul 28 08:07:30 2000 From: nhv at cape.com (Norman Vine) Date: Fri, 28 Jul 2000 11:07:30 -0400 Subject: MapScript: Altering classes In-Reply-To: Message-ID: <000101bff8a5$985a24c0$3237ba8c@nhv> Michael Anderson writes: >I am trying to change the classification of a layer using MapScript. I >change the colors in an existing classes with no problems, but >if I try to >set a new classitem and create new classes I get a >segmentation error. Here >is my code. > >map = mapObj("soils.map") Hi Mike If you send me your "soil.map" file I will take a look at this. It could be we have to add some more 'python magic' to the SWIG wrapper Norman From steve.lime at dnr.state.mn.us Fri Jul 28 08:21:36 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 28 Jul 2000 10:21:36 -0500 Subject: MapScript: Altering classes Message-ID: Yes, for example: $class->setExpression('/^[A-Z]/') and for logical expressions $class->setExpression('([LENGTH] gt 50 and [AREA] < 150000)') Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 07/28/00 10:21AM >>> That did it. I didn't need to use the special characters either. Once again, thanks alot for the quick, correct answer. Does it work the same for regular expressions? Mike >From: "Stephen Lime" >To: >CC: >Subject: Re: MapScript: Altering classes >Date: Fri, 28 Jul 2000 09:53:36 -0500 > >Problem (i think) is the expression setting. You need to use a special >method (nuts, forgot >to update the website on this). Because several types of expressions are >supported it wasn't >possible to use the standard way of setting values so a helper function was >written. > >The syntax is cl0.setExpression('N'). Basically the value for setExpression >*must* conform to >the rules for expressions set in the map file docs. That may mean in >certain cirumstances >that you may need to include a second set of quotes with strings with >spaces or special chars >or just numbers (i.e. $class->setExpression("\"100\"")). I'll update the >website ASAP. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> "Michael Anderson" 07/28/00 09:45AM >>> >Hello, > >I am trying to change the classification of a layer using MapScript. I >change the colors in an existing classes with no problems, but if I try to >set a new classitem and create new classes I get a segmentation error. Here >is my code. > >map = mapObj("soils.map") >soilsL = map.getLayerByName('soils') >soilsL.classitem = 'Hydric_c' >cl0 = classObj(soilsL) >cl1 = classObj(soilsL) >green = map.addColor(0,255,0) >blue = map.addColor(0,0,255) >black = map.addColor(0,0,0) >cl0.expression = 'N' >cl1.expression = 'Y' >cl0.color = green >cl1.color = blue >cl0.outlinecolor = black >cl1.outlinecolor = black >soilsL.status = 1 >img = map.prepareImage() >soilsL.draw(map,img) >Segmentation fault -- kicked out of Python. > >I checked along the way to make sure my variables are referencing valid >objects and everything looks OK. Can someone tell what I am doing wrong. I >am guessing it has something to do with the expression, but it's only a >guess. I can post a Perl version, but I think Python's syntax is clear >enough to express what I am trying to do. > >Thanks, >Mike >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From aborruso at spaziogis.it Fri Jul 28 08:27:15 2000 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Fri, 28 Jul 2000 17:27:15 +0200 Subject: Mapscript Example? Message-ID: Dear users, where could I find a web page with mapscipt examples? I'm looking for a tutorial like http://terrasip.gis.umn.edu/projects/tutorial. Thank you --------------------------------------------- Andrea Borruso From m_anderson14 at hotmail.com Fri Jul 28 08:21:20 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Fri, 28 Jul 2000 15:21:20 GMT Subject: MapScript: Altering classes Message-ID: That did it. I didn't need to use the special characters either. Once again, thanks alot for the quick, correct answer. Does it work the same for regular expressions? Mike >From: "Stephen Lime" >To: >CC: >Subject: Re: MapScript: Altering classes >Date: Fri, 28 Jul 2000 09:53:36 -0500 > >Problem (i think) is the expression setting. You need to use a special >method (nuts, forgot >to update the website on this). Because several types of expressions are >supported it wasn't >possible to use the standard way of setting values so a helper function was >written. > >The syntax is cl0.setExpression('N'). Basically the value for setExpression >*must* conform to >the rules for expressions set in the map file docs. That may mean in >certain cirumstances >that you may need to include a second set of quotes with strings with >spaces or special chars >or just numbers (i.e. $class->setExpression("\"100\"")). I'll update the >website ASAP. > >Steve > >Stephen Lime >Internet Applications Analyst > >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 > > >>> "Michael Anderson" 07/28/00 09:45AM >>> >Hello, > >I am trying to change the classification of a layer using MapScript. I >change the colors in an existing classes with no problems, but if I try to >set a new classitem and create new classes I get a segmentation error. Here >is my code. > >map = mapObj("soils.map") >soilsL = map.getLayerByName('soils') >soilsL.classitem = 'Hydric_c' >cl0 = classObj(soilsL) >cl1 = classObj(soilsL) >green = map.addColor(0,255,0) >blue = map.addColor(0,0,255) >black = map.addColor(0,0,0) >cl0.expression = 'N' >cl1.expression = 'Y' >cl0.color = green >cl1.color = blue >cl0.outlinecolor = black >cl1.outlinecolor = black >soilsL.status = 1 >img = map.prepareImage() >soilsL.draw(map,img) >Segmentation fault -- kicked out of Python. > >I checked along the way to make sure my variables are referencing valid >objects and everything looks OK. Can someone tell what I am doing wrong. I >am guessing it has something to do with the expression, but it's only a >guess. I can post a Perl version, but I think Python's syntax is clear >enough to express what I am trying to do. > >Thanks, >Mike >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From steve.lime at dnr.state.mn.us Fri Jul 28 08:40:10 2000 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 28 Jul 2000 10:40:10 -0500 Subject: http vars Message-ID: MapServers itemquery kinda sucks. You can have only one item, but with multiple values (i.e. name=county value=Pima value=George). Anything more sophisticated should be handled using another mechanism in conjunction with MapScript. The XBase module for Perl is far better than anything I could write so I've deffered to it and other tools instead of bulking out itemquery. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zolla Michalak 07/27/00 12:39PM >>> This may be a stupid question. Let me know if I'm making this more difficult than it needs to be. Can someone please tell me how mapserver is able to grab name-value pairs in the HTML form with the same name and different values (i.e. name=layer value=snotel, name=layer value=rtg) without overwriting the first value with the second value? If you can tell me which file the code is in, I'll go look it up. I am trying to write a perl script for my map application that will do the same thing. I need to pass name-vals for a set of variables that have a different value for each record in the database. Here's a simplified picture of what I'm doing: name = recordNumber value = 1 name = state value = AZ name = county value = Pima name= recordNumber value = 2 name = state value = WY name = county value = George etc... I want to be able to send these through cgi without having the record 2 values overwrite the record 1 values, and so on. And all I need to do is print them out. Thanks! ************************************* Zolla Michalak Support Systems Analyst HWR, University of Arizona http://php.iupui.edu/~zwadswor ************************************* From tim at activeweb.co.za Fri Jul 28 09:39:10 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Fri, 28 Jul 2000 18:39:10 +0200 Subject: Binary version of Mapserver Message-ID: <00072818423202.01025@tim.timhome> Hi I have tried (unsuccessfully) to compile mapserver with php & proj4 support. Would anyone be so kind as to email me theire compiled binary mapserver file(s). I am running mandfrake 7.1 so anything compiled for RH6.x should work fine. How about putting up a couple of binary rpms / tgz files for us technoplebs who just can't seem to get it right? Many thanks in advance, Tim Sutton Cape Nature Conservation South Africa From michalak at hwr.arizona.edu Fri Jul 28 09:43:36 2000 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Fri, 28 Jul 2000 09:43:36 -0700 (MST) Subject: http vars In-Reply-To: Message-ID: ok. I've decided to instead try to append the record number [rn] to the name, so that each variable has a unique name. Now I'm just trying to figure out how to access the [rn] varaible, or at least some way I can loop through the different records in the dbf file. Sounds easier than it is. ************************************* Zolla Michalak Support Systems Analyst HWR, University of Arizona http://php.iupui.edu/~zwadswor ************************************* On Fri, 28 Jul 2000, Stephen Lime wrote: > MapServers itemquery kinda sucks. You can have only one item, but with multiple > values (i.e. name=county value=Pima value=George). Anything more sophisticated > should be handled using another mechanism in conjunction with MapScript. The XBase > module for Perl is far better than anything I could write so I've deffered to it and other > tools instead of bulking out itemquery. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Zolla Michalak 07/27/00 12:39PM >>> > > This may be a stupid question. Let me know if I'm making this more > difficult than it needs to be. > > Can someone please tell me how mapserver is able to grab name-value pairs > in the HTML form with the same name and different values (i.e. name=layer > value=snotel, name=layer value=rtg) without overwriting the first value > with the second value? If you can tell me which file the code is in, I'll > go look it up. > > I am trying to write a perl script for my map application that will do the > same thing. I need to pass name-vals for a set of variables that have a > different value for each record in the database. > > Here's a simplified picture of what I'm doing: > > name = recordNumber value = 1 > name = state value = AZ > name = county value = Pima > > name= recordNumber value = 2 > name = state value = WY > name = county value = George > > etc... > > I want to be able to send these through cgi without having the record 2 > values overwrite the record 1 values, and so on. And all I need to do is > print them out. > > Thanks! > > ************************************* > Zolla Michalak > Support Systems Analyst > HWR, University of Arizona > > http://php.iupui.edu/~zwadswor > ************************************* > > > From danmo at videotron.ca Fri Jul 28 12:30:58 2000 From: danmo at videotron.ca (Daniel Morissette) Date: Fri, 28 Jul 2000 15:30:58 -0400 Subject: Binary version of Mapserver References: <00072818423202.01025@tim.timhome> Message-ID: <3981DF72.319A12C8@videotron.ca> Tim and Marcelle Sutton wrote: > > Hi > > I have tried (unsuccessfully) to compile mapserver with php & proj4 support. What kind of error did you get? The configure script should take care of everything, so if there is a problem specific to your Linux version then we would like to know. Please Email me the details directly and I'll see if there is anything we can do. > Would anyone be so kind as to email me theire compiled binary mapserver > file(s). I am running mandfrake 7.1 so anything compiled for RH6.x should work > fine. > I have placed MapServer executables and the php_mapscript.so compiled on a RedHat 6.1 system at: http://www2.dmsolutions.on.ca/mapserver/dl/ms_3.3.011-redhat6.1.tar.gz These binaries include support for GD 1.3, FreeType, TIFF, EPPL7, JPEG and PROJ.4. I do not guarantee that they will work on your system if you have different versions of some of the libraries, especially the PHP module is very sensitive to your PHP3 configuration (that's the way PHP is!!!). I hope that helps anyways, -- ------------------------------------------------------------ Daniel Morissette danmo at videotron.ca http://pages.infinit.net/danmo/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bowlin at sirius.com Fri Jul 28 15:01:03 2000 From: bowlin at sirius.com (Jim Bowlin) Date: Fri, 28 Jul 2000 22:01:03 +0000 Subject: http vars References: Message-ID: <3982029F.DA299B84@sirius.com> Zolla Michalak wrote: > > This may be a stupid question. Let me know if I'm making this more > difficult than it needs to be. > > Can someone please tell me how mapserver is able to grab name-value pairs > in the HTML form with the same name and different values (i.e. name=layer > value=snotel, name=layer value=rtg) without overwriting the first value > with the second value? If you can tell me which file the code is in, I'll > go look it up. You can always use CGI.pm for this, but it is slow to compile. Here is the code that I use for this: #--- get_full_query() --------------------------------------------------- # Returns a structure from which all named parameters (including repeats) # can be gotten with the param() routine. #------------------------------------------------------------------------ sub get_full_query { my $self = shift; my $str = ""; $ENV{CONTENT_LENGTH} and read(STDIN, $str, $ENV{CONTENT_LENGTH}); $ENV{QUERY_STRING} and $str .= $ENV{QUERY_STRING}; my $query; for (split /&/, $str) { my ($name, $value) = map $self->url_decode($_), split /=/, $_; push @{$$query{$name}}, $value; } $self->{_query} = $query; } #--- url_decode($part) -------------------------------------------------- # Returns $part with the URL escape sequences decoded. Be sure to # make use of the raw "=" and "&" before using this routine otherwise # important information will be lost. #------------------------------------------------------------------------ sub url_decode { my $self = shift; my $part = shift; $part =~ tr/+/ /; $part =~ s/%([0-9A-Fa-f]{2})/pack("c", hex($1))/ges; $part; } #--- param($name) ------------------------------------------------------- # Gets named parameters stored in a structure created by get_full_query(). # Without $name returns list of parameter names or a reference to this # list in scalar context. If $name is defined, returns full list of all # parameters associated with $name or the first parameter associated with # $name depending on context. #------------------------------------------------------------------------ sub param { my ($self, $name) = @_; defined($name) or return wantarray ? keys %{$self->{_query}} : [keys %{$self->{_query}}]; my $array = $self->{_query}{$name} or return; wantarray ? @$array : $$array[0]; } __END__ From vatsavai at cs.umn.edu Fri Jul 28 15:26:31 2000 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Fri, 28 Jul 2000 17:26:31 -0500 (CDT) Subject: server down time Message-ID: <200007282226.RAA10806@plato.cs.umn.edu> Dear Mapserver-users We are planning to upgrade lists server this weekend, and we expect that all the existing services (mapserver and mailing lists) will be restored by Monday (July 31). Thanks in advance for your cooperation. Raju ---- From christian at gottschling.net Sat Jul 29 06:23:19 2000 From: christian at gottschling.net (Christian) Date: Sat, 29 Jul 2000 15:23:19 +0200 Subject: How to calculate EXTENT Message-ID: <4.3.2.7.0.20000729151530.00ae0b60@ferklin> Hello, I am rather new to mapserv and have even not much knowlege about GIS. For my first experiments, I got a shapefile from a colleague. It took me some hours of trying around and to find the right numbers for the EXTENT line in the mapfile. Accidentially, I found some numbers that gave me at least a viewable map. But compared with those numbers in the demo-files, they are really strange: EXTENT 22 45.0 -2 57 As said, I found this just by typing more or less random numbers and then using shp2img to get a gif-picture. How can I calculate the EXTENT entries for my maps that they are visible? Many thanks! Christian -- christian From tim at activeweb.co.za Sat Jul 29 07:21:49 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Sat, 29 Jul 2000 16:21:49 +0200 Subject: MapServer Error Message-ID: <00072916312305.01025@tim.timhome> Hi Thanks to Daniel for making the binary version of Mapserver + PHP available. I have installed them on a linux box at work running RH6.1. Now when I try to access the ms_demo pages, or my own map page, I get the following error: Mapserver Error: msLoadMap(): Unable to access file (cnc.map) I tried changing the path to cnc.map to use absolute and relative references to that file in my map_init.html page, to no avail. I also downloaded the win32 binaries and tried installing that on my NT Server at work running NT4 & Apache. I get exactly the same error. I saw in the FAQ a mention of a crash relating to loading the .map file. I tried again to compile mapserver myself against php 3.016. The ./configure process of php gave an error saying there was a problem with the apxs script. I have no idea how to fix this short of reinstalling apache? I also tried to install mapserver on my Mandrake linux 7.1 box at home and when I try to access the test page, I get an error saying cannot open file in cgi-bin or something along those lines. Any help / pointer whatever would be greatly appreciated. Many thanks, In eager anticipation of getting this working. Tim Sutton From vatsavai at cs.umn.edu Mon Jul 31 11:16:21 2000 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Mon, 31 Jul 2000 13:16:21 -0500 (CDT) Subject: welcome back Message-ID: <200007311816.NAA29212@plato.cs.umn.edu> Dear Mapserver-Users Our server upgradation is almost complete, mapserver-users mailing list and mapserver web home are ready. There are still certain components need to be restored, but just to let you all know that major stuff is ready. Thanks Raju From tim at activeweb.co.za Mon Jul 31 11:49:17 2000 From: tim at activeweb.co.za (Tim and Marcelle Sutton) Date: Mon, 31 Jul 2000 20:49:17 +0200 Subject: Mapserver .map access error Message-ID: <00073120510102.04757@tim.timhome> Hi This is a report because I am not sure if my original message made it through while the server was down. Thanks to Daniel for making the binary version of Mapserver + PHP available. I have installed them on a linux box at work running RH6.1. Now when I try to access the ms_demo pages, or my own map page, I get the following error: Mapserver Error: msLoadMap(): Unable to access file (cnc.map) I tried changing the path to cnc.map to use absolute and relative references to that file in my map_init.html page, to no avail. I also downloaded the win32 binaries and tried installing that on my NT Server at work running NT4 & Apache. I get exactly the same error. I saw in the FAQ a mention of a crash relating to loading the .map file. I tried again to compile mapserver myself against php 3.016. The ./configure process of php gave an error saying there was a problem with the apxs script. I have no idea how to fix this short of reinstalling apache? I also tried to install mapserver on my Mandrake linux 7.1 box at home and when I try to access the test page, I get an error saying cannot open file in cgi-bin or something along those lines. Any help / pointer whatever would be greatly appreciated. Many thanks, In eager anticipation of getting this working. Tim Sutton From johnh at erin.gov.au Mon Jul 31 15:58:21 2000 From: johnh at erin.gov.au (John Hockaday) Date: Tue, 1 Aug 2000 08:58:21 +1000 (EST) Subject: Funny units for jpeg images Message-ID: <200007312258.IAA29465@eos.erin.gov.au> Hi, I am trying to get a jpeg to load as a background image with vector data on top of it. Both are in geographical coodinates however, when I load one on top of the other they seem to be in different projections. The world file for the jpeg looks like this: ------------------------ 0.000450 0 0 -0.000450 150.000914 -33.998391 ------------------------ The image is supposed to be from TL(150, -34) to BR(151.5, -35). That is 1.5 degrees by 1 degree with the top left corner at 150 degrees long and -34 degrees lat. Am I missing out on specifying a decimal degrees unit for my layers in the map file? The map file is attached. I would be greatfull for any information if someone else has used georeferenced jpegs and vector shapefiles in a geographic coordinate system. Thanks in advance. John Hockaday -------------- next part -------------- # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym EXTENT 149 -35 152 -32 UNITS dd SHAPEPATH "/info/cgi-data/atlas/fornet/" IMAGECOLOR 255 255 255 #LABELOVERLAP FALSE # # Start of web interface definition # WEB #HEADER demo_header.html TEMPLATE demo.html #MINSCALE 1000 #MAXSCALE 1550000 END # # Start of reference map # #REFERENCE #IMAGE graphics/reference_base.gif #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 #STATUS ON #COLOR -1 -1 -1 #OUTLINECOLOR 255 0 0 #END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 350 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 5 STATUS ON END # # Start of layer definitions # LAYER NAME coast TYPE POLYGON STATUS DEFAULT DATA coast CLASS SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 248 248 95 END END LAYER NAME si5609g TYPE RASTER STATUS ON DATA si5609g.jpg OFFSITE 0 END LAYER NAME cocos TYPE RASTER STATUS ON DATA cocos.tif OFFSITE 0 END LAYER NAME soils TYPE POLYGON STATUS ON DATA soils TOLERANCE 3 CLASSITEM "symbol" CLASS NAME "Classification by Symbol" EXPRESSION "7" COLOR 204 096 085 BACKGROUNDCOLOR 32 201 201 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "27" COLOR 255 255 000 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "33" COLOR 204 191 085 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "37" COLOR 234 223 085 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "52" COLOR 204 223 170 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "62" COLOR 204 159 085 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "98" COLOR 255 255 170 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "146" COLOR 153 159 085 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "158" COLOR 204 159 085 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "177" COLOR 153 064 000 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "200" COLOR 153 128 000 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "202" COLOR 102 159 170 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "212" COLOR 153 128 000 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION "216" COLOR 153 159 000 OUTLINECOLOR 0 0 0 END #QUERYITEM symbol QUERY #EXPRESSION "216" TEMPLATE demo.html #JOIN "data/lakejoin.dbf" islake "type" END #QUERY #EXPRESSION "^-" #TEMPLATE land.html #JOIN "data/lakejoin.dbf" islake "type" #END END # Layer LAYER NAME rne12030 TYPE POLYGON STATUS ON DATA rne12030 TOLERANCE 5 CLASS NAME "rne12030" COLOR 49 117 185 END QUERY TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html END END # Layer LAYER NAME rail TYPE LINE STATUS ON DATA rail SYMBOLSCALE 4 CLASS NAME "rail" COLOR 212 212 212 SYMBOL 13 SIZE 2 MAXSIZE 4 END QUERY TEMPLATE /info/cgi-data/atlas/fornet/rail.html END END # Layer #LAYER # NAME primary_roads # TYPE LINE # STATUS OFF # DATA primary # SYMBOLSCALE 24000 # # CLASS # NAME "Primary Roads" # COLOR 128 128 128 # SYMBOL 13 # SIZE 3 # MAXSIZE 5 # END #END # Layer #LAYER # NAME runways # TYPE LINE # STATUS OFF # DATA runways # # CLASS # COLOR 30 94 30 # NAME "Airport Runways" # END #END # Layer LAYER NAME "points" TYPE ANNOTATION STATUS ON MAXSCALE 6555555 DATA "points" TOLERANCE 10 LABELITEM "Place_name" CLASS SIZE 8 COLOR 255 0 0 SYMBOL 6 LABEL BACKGROUNDCOLOR 200 255 255 COLOR 30 94 94 TYPE BITMAP #JUSTIFY CENTER SIZE GIANT POSITION AUTO WRAP " " END # Label END # Class QUERY TEMPLATE /info/cgi-data/atlas/fornet/points.html END # Query END # Layer END # Map File From m_anderson14 at hotmail.com Mon Jul 31 17:20:38 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 01 Aug 2000 00:20:38 GMT Subject: MapScript: Change image size Message-ID: Hello, Can you change the output image size through MapScript? Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From m_anderson14 at hotmail.com Mon Jul 31 17:43:20 2000 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 01 Aug 2000 00:43:20 GMT Subject: MapScript: change image size Message-ID: Hello again, I should have waited ten more minutes. map.height and map.width let you change the image size. Mike ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From sl57k at cc.usu.edu Mon Jul 31 20:01:36 2000 From: sl57k at cc.usu.edu (Jason Maestri) Date: Tue, 01 Aug 2000 03:01:36 +0000 Subject: Funny units for jpeg images References: <200007312258.IAA29465@eos.erin.gov.au> Message-ID: <39863D90.F3001C46@cc.usu.edu> John, I am not sure why your data don't line up. The world file is okay, the only coordinates that are specified in the esri type world files are the X and Y of the bottom right corner. They seem to be really close to what you think they should be, so I'd imagine that the world file is not your problem. Mapserver doen't care what projection your data are in, so there isn't any place to specify projections. I'd use arcview or grass or something to make sure they really do line up, and further explore the problem. --Jason John Hockaday wrote: > Hi, > > I am trying to get a jpeg to load as a background image with vector > data on top of it. Both are in geographical coodinates however, when I > load one on top of the other they seem to be in different projections. > > The world file for the jpeg looks like this: > > ------------------------ > 0.000450 > 0 > 0 > -0.000450 > 150.000914 > -33.998391 > ------------------------ > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > and -34 degrees lat. > > Am I missing out on specifying a decimal degrees unit for my layers in > the map file? The map file is attached. > > I would be greatfull for any information if someone else has used > georeferenced jpegs and vector shapefiles in a geographic coordinate > system. > > Thanks in advance. > > John Hockaday > > ------------------------------------------------------------------------ > # > # Start of map file > # > NAME DEMO > STATUS ON > SIZE 600 600 > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > EXTENT 149 -35 152 -32 > UNITS dd > SHAPEPATH "/info/cgi-data/atlas/fornet/" > IMAGECOLOR 255 255 255 > > #LABELOVERLAP FALSE > > # > # Start of web interface definition > # > WEB > #HEADER demo_header.html > TEMPLATE demo.html > #MINSCALE 1000 > #MAXSCALE 1550000 > END > > # > # Start of reference map > # > #REFERENCE > #IMAGE graphics/reference_base.gif > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > #STATUS ON > #COLOR -1 -1 -1 > #OUTLINECOLOR 255 0 0 > #END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 350 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 5 > STATUS ON > END > > # > # Start of layer definitions > # > > LAYER > NAME coast > TYPE POLYGON > STATUS DEFAULT > DATA coast > CLASS > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 248 248 95 > END > END > > LAYER > NAME si5609g > TYPE RASTER > STATUS ON > DATA si5609g.jpg > OFFSITE 0 > END > > LAYER > NAME cocos > TYPE RASTER > STATUS ON > DATA cocos.tif > OFFSITE 0 > END > > LAYER > NAME soils > TYPE POLYGON > STATUS ON > DATA soils > TOLERANCE 3 > > CLASSITEM "symbol" > CLASS > NAME "Classification by Symbol" > EXPRESSION "7" > COLOR 204 096 085 > BACKGROUNDCOLOR 32 201 201 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "27" > COLOR 255 255 000 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "33" > COLOR 204 191 085 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "37" > COLOR 234 223 085 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "52" > COLOR 204 223 170 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "62" > COLOR 204 159 085 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "98" > COLOR 255 255 170 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "146" > COLOR 153 159 085 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "158" > COLOR 204 159 085 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "177" > COLOR 153 064 000 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "200" > COLOR 153 128 000 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "202" > COLOR 102 159 170 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "212" > COLOR 153 128 000 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION "216" > COLOR 153 159 000 > OUTLINECOLOR 0 0 0 > END > > #QUERYITEM symbol > QUERY > #EXPRESSION "216" > TEMPLATE demo.html > #JOIN "data/lakejoin.dbf" islake "type" > END > #QUERY > #EXPRESSION "^-" > #TEMPLATE land.html > #JOIN "data/lakejoin.dbf" islake "type" > #END > END # Layer > > LAYER > NAME rne12030 > TYPE POLYGON > STATUS ON > DATA rne12030 > TOLERANCE 5 > > CLASS > NAME "rne12030" > COLOR 49 117 185 > END > > QUERY > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > END > END # Layer > > LAYER > NAME rail > TYPE LINE > STATUS ON > DATA rail > SYMBOLSCALE 4 > CLASS > NAME "rail" > COLOR 212 212 212 > SYMBOL 13 > SIZE 2 > MAXSIZE 4 > END > > QUERY > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > END > END # Layer > > #LAYER > # NAME primary_roads > # TYPE LINE > # STATUS OFF > # DATA primary > # SYMBOLSCALE 24000 > # > # CLASS > # NAME "Primary Roads" > # COLOR 128 128 128 > # SYMBOL 13 > # SIZE 3 > # MAXSIZE 5 > # END > #END # Layer > > #LAYER > # NAME runways > # TYPE LINE > # STATUS OFF > # DATA runways > # > # CLASS > # COLOR 30 94 30 > # NAME "Airport Runways" > # END > #END # Layer > > LAYER > NAME "points" > TYPE ANNOTATION > STATUS ON > MAXSCALE 6555555 > DATA "points" > TOLERANCE 10 > > LABELITEM "Place_name" > > CLASS > SIZE 8 > COLOR 255 0 0 > SYMBOL 6 > LABEL > BACKGROUNDCOLOR 200 255 255 > COLOR 30 94 94 > TYPE BITMAP > #JUSTIFY CENTER > SIZE GIANT > POSITION AUTO > WRAP " " > END # Label > END # Class > > QUERY > TEMPLATE /info/cgi-data/atlas/fornet/points.html > END # Query > END # Layer > > END # Map File From imap at chesapeake.net Mon Jul 31 22:37:44 2000 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 01 Aug 2000 01:37:44 -0400 Subject: Funny units for jpeg images References: <200007312258.IAA29465@eos.erin.gov.au> <39863D90.F3001C46@cc.usu.edu> Message-ID: <39866228.AB8DF34A@chesapeake.net> Hello, This isnt exactly right... THe worldfile X/Y is the upper left pixel, not bottom right. I have found that matching projections is not an exact science. Sometime you need to adjust the X/Y and map units to stretch the raster to get a tight fit. I have done a couple of these.. You have to begin with PROJ and knowing the precise projection and central meridian. That should get it close, then you can tweak the map units in the X/Y to shore up the edges. Also, keep in mind that rasters may never match their vector counterparts, due to basemap mismatch and thinning etc. It very well could be, that your JPG is a different projection??? I have several *very* nice raster maps here (Mountain High Maps) that I am unable to match the base projection with anything in PROJ. Since there is no metadata for the images, it requires much guesswork. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc Jason Maestri wrote: > > John, > > I am not sure why your data don't line up. The world file is okay, the only > coordinates that are specified in the esri type world > files are the X and Y of the bottom right corner. They seem to be really > close to what you think they should be, so I'd imagine > that the world file is not your problem. Mapserver doen't care what > projection your data are in, so there isn't any place to > specify projections. I'd use arcview or grass or something to make sure they > really do line up, and further explore the problem. > > --Jason > > John Hockaday wrote: > > > Hi, > > > > I am trying to get a jpeg to load as a background image with vector > > data on top of it. Both are in geographical coodinates however, when I > > load one on top of the other they seem to be in different projections. > > > > The world file for the jpeg looks like this: > > > > ------------------------ > > 0.000450 > > 0 > > 0 > > -0.000450 > > 150.000914 > > -33.998391 > > ------------------------ > > > > The image is supposed to be from TL(150, -34) to BR(151.5, -35). That > > is 1.5 degrees by 1 degree with the top left corner at 150 degrees long > > and -34 degrees lat. > > > > Am I missing out on specifying a decimal degrees unit for my layers in > > the map file? The map file is attached. > > > > I would be greatfull for any information if someone else has used > > georeferenced jpegs and vector shapefiles in a geographic coordinate > > system. > > > > Thanks in advance. > > > > John Hockaday > > > > ------------------------------------------------------------------------ > > # > > # Start of map file > > # > > NAME DEMO > > STATUS ON > > SIZE 600 600 > > SHADESET /opt/contrib/src/ms_3.3.010/symbols/shade.sym > > MARKERSET /opt/contrib/src/ms_3.3.010/symbols/marker.sym > > LINESET /opt/contrib/src/ms_3.3.010/symbols/line.sym > > EXTENT 149 -35 152 -32 > > UNITS dd > > SHAPEPATH "/info/cgi-data/atlas/fornet/" > > IMAGECOLOR 255 255 255 > > > > #LABELOVERLAP FALSE > > > > # > > # Start of web interface definition > > # > > WEB > > #HEADER demo_header.html > > TEMPLATE demo.html > > #MINSCALE 1000 > > #MAXSCALE 1550000 > > END > > > > # > > # Start of reference map > > # > > #REFERENCE > > #IMAGE graphics/reference_base.gif > > #EXTENT 481093.000000 4969319.036682 502271.000000 4997508.3073184 > > #STATUS ON > > #COLOR -1 -1 -1 > > #OUTLINECOLOR 255 0 0 > > #END > > > > # > > # Start of legend > > # > > LEGEND > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > STATUS ON > > END > > > > # > > # Start of scalebar > > # > > SCALEBAR > > IMAGECOLOR 255 255 255 > > LABEL > > COLOR 0 0 0 > > SIZE SMALL > > END > > SIZE 350 5 > > COLOR 255 255 255 > > BACKGROUNDCOLOR 0 0 0 > > OUTLINECOLOR 0 0 0 > > UNITS kilometers > > INTERVALS 5 > > STATUS ON > > END > > > > # > > # Start of layer definitions > > # > > > > LAYER > > NAME coast > > TYPE POLYGON > > STATUS DEFAULT > > DATA coast > > CLASS > > SYMBOL 0 > > OUTLINECOLOR 0 0 0 > > COLOR 248 248 95 > > END > > END > > > > LAYER > > NAME si5609g > > TYPE RASTER > > STATUS ON > > DATA si5609g.jpg > > OFFSITE 0 > > END > > > > LAYER > > NAME cocos > > TYPE RASTER > > STATUS ON > > DATA cocos.tif > > OFFSITE 0 > > END > > > > LAYER > > NAME soils > > TYPE POLYGON > > STATUS ON > > DATA soils > > TOLERANCE 3 > > > > CLASSITEM "symbol" > > CLASS > > NAME "Classification by Symbol" > > EXPRESSION "7" > > COLOR 204 096 085 > > BACKGROUNDCOLOR 32 201 201 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "27" > > COLOR 255 255 000 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "33" > > COLOR 204 191 085 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "37" > > COLOR 234 223 085 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "52" > > COLOR 204 223 170 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "62" > > COLOR 204 159 085 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "98" > > COLOR 255 255 170 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "146" > > COLOR 153 159 085 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "158" > > COLOR 204 159 085 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "177" > > COLOR 153 064 000 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "200" > > COLOR 153 128 000 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "202" > > COLOR 102 159 170 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "212" > > COLOR 153 128 000 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION "216" > > COLOR 153 159 000 > > OUTLINECOLOR 0 0 0 > > END > > > > #QUERYITEM symbol > > QUERY > > #EXPRESSION "216" > > TEMPLATE demo.html > > #JOIN "data/lakejoin.dbf" islake "type" > > END > > #QUERY > > #EXPRESSION "^-" > > #TEMPLATE land.html > > #JOIN "data/lakejoin.dbf" islake "type" > > #END > > END # Layer > > > > LAYER > > NAME rne12030 > > TYPE POLYGON > > STATUS ON > > DATA rne12030 > > TOLERANCE 5 > > > > CLASS > > NAME "rne12030" > > COLOR 49 117 185 > > END > > > > QUERY > > TEMPLATE /info/cgi-data/atlas/fornet/rne12030.html > > END > > END # Layer > > > > LAYER > > NAME rail > > TYPE LINE > > STATUS ON > > DATA rail > > SYMBOLSCALE 4 > > CLASS > > NAME "rail" > > COLOR 212 212 212 > > SYMBOL 13 > > SIZE 2 > > MAXSIZE 4 > > END > > > > QUERY > > TEMPLATE /info/cgi-data/atlas/fornet/rail.html > > END > > END # Layer > > > > #LAYER > > # NAME primary_roads > > # TYPE LINE > > # STATUS OFF > > # DATA primary > > # SYMBOLSCALE 24000 > > # > > # CLASS > > # NAME "Primary Roads" > > # COLOR 128 128 128 > > # SYMBOL 13 > > # SIZE 3 > > # MAXSIZE 5 > > # END > > #END # Layer > > > > #LAYER > > # NAME runways > > # TYPE LINE > > # STATUS OFF > > # DATA runways > > # > > # CLASS > > # COLOR 30 94 30 > > # NAME "Airport Runways" > > # END > > #END # Layer > > > > LAYER > > NAME "points" > > TYPE ANNOTATION > > STATUS ON > > MAXSCALE 6555555 > > DATA "points" > > TOLERANCE 10 > > > > LABELITEM "Place_name" > > > > CLASS > > SIZE 8 > > COLOR 255 0 0 > > SYMBOL 6 > > LABEL > > BACKGROUNDCOLOR 200 255 255 > > COLOR 30 94 94 > > TYPE BITMAP > > #JUSTIFY CENTER > > SIZE GIANT > > POSITION AUTO > > WRAP " " > > END # Label > > END # Class > > > > QUERY > > TEMPLATE /info/cgi-data/atlas/fornet/points.html > > END # Query > > END # Layer > > > > END # Map File