From bludwulf at crackrock.net Sun Jul 1 01:00:31 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Sun, 1 Jul 2001 01:00:31 -0700 (MST) Subject: [mapserver-users] Yay! Here are some fixes for everyone. Message-ID: The current CVS code is broken in that loadProjectionString has not been replaced with msLoadProjectionString in many places. I first noticed this when I got an undefined symbol error with loadProjectionString, even though I *knew* it was linking to libmap.a. Upon closer inspection, however, I noticed that map.h's definition of loadProjectionString didn't actually exist in code anywhere, and the closest match was msLoadProjectionString. A grep -R revealed a note in the php3 mapscript source about being sure to change all the occurences. Whoops! =) By the way, I'd be happy to fix stuff like this and not have to go through the long process of writing these incredibly verbose messages about bugs I found in the code.. Would it be possible to get commit access on cvs? Is there a seperate mailing list for developers? Thanks =) -Beau Gunderson From bludwulf at crackrock.net Sun Jul 1 01:26:18 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Sun, 1 Jul 2001 01:26:18 -0700 (MST) Subject: [mapserver-users] Me again... (Problem with CVS repository) Message-ID: I'll make this one quick. I just noticed that the CVS repository does not contain mapscript.pm and mapscript_wrap.c or a link to mapscript.i in /mapserver/mapscript/perl. Kind of hard to compile it without them ;) -Beau Gunderson From david.armstrong at ntlworld.com Sun Jul 1 02:29:28 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Sun, 1 Jul 2001 10:29:28 +0100 Subject: [mapserver-users] using swig Message-ID: <000b01c10210$540aa2c0$0100a8c0@david> Could someone please advise on the correct method for using swig to produce the mapscript wrap.c & mapscript.pm files so that perl mapscript & php mapscript can be built from version 3.5 (cvs), preferably under windows i have swig ver 1.1 installed Kind Regards to All Dave From cathode at nichebox.com Sun Jul 1 06:51:39 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sun, 1 Jul 2001 16:51:39 +0300 Subject: [mapserver-users] PHP/Mapscript on FreeBSD Message-ID: <001101c10234$f4d85de0$8200a8c0@nichebox1> First off, cheers to the contributors of Mapserver, Mapscript and the PHP module. You're providing an excellent resource for users that wish to get into web mapping and don't have the budgets to go out and buy MapXtreme or ArcIMS. Through Directions Magazine I've had the opportunity to use many of the commercial solutions available and some of the demos built with Mapserver are far more impressive. I have also built several map server systems on the Windows platform using various GIS objects and if I can get Mapserver to do what I want it to, I may abandon my own favorite server. Now for my problems.... I am running FreeBSD 4.2-RELEASE. I can reliably compile and use Mapserver 3.3 and 3.4 or the nightly build as a CGI binary with no problems but I have had no luck building any version with PHP 4.0.5 or 4.0.6 as a dynamic module. Configuration goes fine using: ./configure --with-gd=/usr/local --with-jpeg=/usr/local --without-ttf --with-php=../php-4.0.6 --with-apxs=/usr/local/www/bin/apxs --enable-runpath >From what I've read, configuration on FreeBSD is a bit goofy... I end up with the following in my mapscript/php3/Makefile: CC = cc undef -I. -I.. -DPIC -fpic LD = cc -Wl -Wl CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 RUNPATHS= -R/usr/local/lib -R/usr/local/src/mapserver >From here I remove undef from CC options and try for a build. It attempts to link with: cc -Wl -Wl -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o -R/usr/local/lib -R/usr/local/src/mapserver -L/usr/local/src/mapserver -lmap -L/usr/local/lib -ljpeg -L/usr/local/lib -lgd -lpng -lz -lm And I end up with a bunch of undefined references in php_mapscript_util.o (zend_error, zend_list_find and so on and so on). The last line is: /usr/local/src/mapserver/libmap.a(maplabel.o)(.text+0x1096): more undefined references to `imageStringTTF' follow *** Error code 1 And I get no farther. Does anyone have Mapscript/PHP running under FreeBSD 4.0 or higher with a recent release of PHP 4? Any suggestions to push me in the right direction? Thanks in advance. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From jedgar at fxp.org Sun Jul 1 07:05:59 2001 From: jedgar at fxp.org (Chris Faulhaber) Date: Sun, 1 Jul 2001 10:05:59 -0400 Subject: [mapserver-users] PHP/Mapscript on FreeBSD In-Reply-To: <001101c10234$f4d85de0$8200a8c0@nichebox1>; from cathode@nichebox.com on Sun, Jul 01, 2001 at 04:51:39PM +0300 References: <001101c10234$f4d85de0$8200a8c0@nichebox1> Message-ID: <20010701100559.A29652@peitho.fxp.org> On Sun, Jul 01, 2001 at 04:51:39PM +0300, Rob Martinson wrote: > >From what I've read, configuration on FreeBSD is a bit goofy... I end up > with the following in my mapscript/php3/Makefile: > > CC = cc undef -I. -I.. -DPIC -fpic > LD = cc -Wl -Wl > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > RUNPATHS= -R/usr/local/lib -R/usr/local/src/mapserver > > >From here I remove undef from CC options and try for a build. > Use: CC = cc -shared -- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From jedgar at fxp.org Sun Jul 1 07:44:34 2001 From: jedgar at fxp.org (Chris Faulhaber) Date: Sun, 1 Jul 2001 10:44:34 -0400 Subject: [mapserver-users] PHP/Mapscript on FreeBSD In-Reply-To: <20010701100559.A29652@peitho.fxp.org>; from jedgar@fxp.org on Sun, Jul 01, 2001 at 10:05:59AM -0400 References: <001101c10234$f4d85de0$8200a8c0@nichebox1> <20010701100559.A29652@peitho.fxp.org> Message-ID: <20010701104434.B29652@peitho.fxp.org> On Sun, Jul 01, 2001 at 10:05:59AM -0400, Chris Faulhaber wrote: > On Sun, Jul 01, 2001 at 04:51:39PM +0300, Rob Martinson wrote: > > >From what I've read, configuration on FreeBSD is a bit goofy... I end up > > with the following in my mapscript/php3/Makefile: > > > > CC = cc undef -I. -I.. -DPIC -fpic > > LD = cc -Wl -Wl > > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > > RUNPATHS= -R/usr/local/lib -R/usr/local/src/mapserver > > > > >From here I remove undef from CC options and try for a build. > > > > Use: > > CC = cc -shared > Oops, that should be LD = cc -shared -- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From cathode at nichebox.com Sun Jul 1 07:58:32 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sun, 1 Jul 2001 17:58:32 +0300 Subject: [mapserver-users] PHP/Mapscript on FreeBSD In-Reply-To: <20010701104434.B29652@peitho.fxp.org> Message-ID: <001301c1023e$4c8a8960$8200a8c0@nichebox1> Chris, I figured that and changed LD to cc -shared. It linked without a hitch and loads into PHP 4.0.6 with no problems so far. Thanks so much for the help. If I don't have any troubles with this installation I'm going to go for the OGR/Gdal linking next and see what happens. Also, I was thinking it might be helpful to write down a step-by-step for different options (and problems such as this) for FreeBSD users. Once I'm a bit more organized I'll do this and provide it online somewhere or it can be added to the current PHP/Mapscript FAQ if DM is interested. On this note, would there be any interest in a more easily maintainable FAQ in an online database for Mapserver/Mapscript? I'd be more than willing to put this together and do my best to organize current information into categories in the database. Ideas? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: cdf.lists at fxp.org [mailto:cdf.lists at fxp.org] On Behalf > Of Chris Faulhaber > Sent: Sunday, July 01, 2001 5:45 PM > To: Rob Martinson; 'MapServer List' > Subject: Re: [mapserver-users] PHP/Mapscript on FreeBSD > > > On Sun, Jul 01, 2001 at 10:05:59AM -0400, Chris Faulhaber wrote: > > On Sun, Jul 01, 2001 at 04:51:39PM +0300, Rob Martinson wrote: > > > >From what I've read, configuration on FreeBSD is a bit > goofy... I > > > >end up > > > with the following in my mapscript/php3/Makefile: > > > > > > CC = cc undef -I. -I.. -DPIC -fpic > > > LD = cc -Wl -Wl > > > CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 > > > RUNPATHS= -R/usr/local/lib -R/usr/local/src/mapserver > > > > > > >From here I remove undef from CC options and try for a build. > > > > > > > Use: > > > > CC = cc -shared > > > > Oops, that should be > > LD = cc -shared > > -- > Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org > -------------------------------------------------------- > FreeBSD: The Power To Serve - http://www.FreeBSD.org > From bludwulf at crackrock.net Sun Jul 1 14:37:10 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Sun, 1 Jul 2001 14:37:10 -0700 (MST) Subject: [mapserver-users] PHP/Mapscript on FreeBSD In-Reply-To: <001301c1023e$4c8a8960$8200a8c0@nichebox1> Message-ID: I was having the *EXACT* same problem with Mapscript/PHP. Immeasurable thanks go to you for solving it! =) I'd also like to help out with any list of problems/FAQ that you guys are up for. Some tips for linking to OGR and using mapscript: Make sure -lgdal.1.1 gets into perlvars, or else you'll have trouble. I had to put it in there by hand. =) On Sun, 1 Jul 2001, Rob Martinson wrote: > Chris, > > I figured that and changed LD to cc -shared. It linked without a hitch > and loads into PHP 4.0.6 with no problems so far. Thanks so much for the > help. If I don't have any troubles with this installation I'm going to > go for the OGR/Gdal linking next and see what happens. Also, I was > thinking it might be helpful to write down a step-by-step for different > options (and problems such as this) for FreeBSD users. Once I'm a bit > more organized I'll do this and provide it online somewhere or it can be > added to the current PHP/Mapscript FAQ if DM is interested. > > On this note, would there be any interest in a more easily maintainable > FAQ in an online database for Mapserver/Mapscript? I'd be more than > willing to put this together and do my best to organize current > information into categories in the database. Ideas? > > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com From cathode at nichebox.com Sun Jul 1 15:24:17 2001 From: cathode at nichebox.com (Rob Martinson) Date: Mon, 2 Jul 2001 01:24:17 +0300 Subject: [mapserver-users] Loading layers with mapscript on an empty map object in PHP Message-ID: <001d01c1027c$91fcab20$8200a8c0@nichebox1> I'm attempting to load layers from a database on an empty map object. This way I can control all of the maps from a database without writing out a new .map file for each change. Currently I'm trying: dl("php_mapscript.so"); $map = ms_newMapObj(''); $map->set("width",400); $map->set("height",300); $map->set("shapepath","/path/to/my/data"); $layer = ms_newLayerObj($map); $layer->set("name","county"); $layer->set("type",POLYGON); $layer->set("status",MS_ON); $layer->set("data","ctybdpy"); $img = $map->draw(); <--at this point I get an error stating "Object has an invalid _handle_ property" The same small script and data work if I load the layers through a .map file using the same paths with: dl("php_mapscript.so"); $map = ms_newMapObj("demo2.map"); $img = $map->draw(); I'm sure someone else has done something similar. Any pointers? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From lyndon.zimmermann at adelaide.edu.au Sun Jul 1 18:32:11 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Mon, 02 Jul 2001 11:02:11 +0930 Subject: [mapserver-users] Problems with using demo and newer GD/newer Mapserver Message-ID: <3B3FCF1B.DB7B3EFF@adelaide.edu.au> Greetings all, I got the demo to start by referring to the highway shields directly, not via the symbols.sym file but I'm still having trouble with the symbol file using ms34 under NT, png format on my "real" project. I've converted the gifs and references to png and concatenated SHADESET, MARKERSET AND LINESET into SYMBOLSET. Beau Gunderson "still had to edit it [ie SYMBOLSET] to get it to work" in his email 28 June, but gave no details of what this editing involved. David Armstrong forwarded his symbolsms34.sym file to me, but it appears to be just the concatenated files. Any clues? Lyndon Z ***************************************************************************************** Error message from MapServer: msLoadMap(): General error message. Undefined symbol "s9" in class 0 of layer pwr_all. I don't know whether it is specifically picking on s9 or whether this is the first symbol it comes upon. ***************************************************************************** Extract from .map file # # Start of map file # NAME ba STATUS ON SIZE 450 430 # MapServer 3.4 amalgamates the following three into symbolset # SHADESET symbols/shade.sym # MARKERSET symbols/marker.sym # LINESET symbols/line.sym SYMBOLSET symbols/symbol.sym # EXTENT -2321738.61 -5087162.37 1988513.48 -1059793.84 # EXTENT -3854128 -4846639 2529825 -1010426 # EXTENT -1967869 -4913471 2190678 -930482 EXTENT -1813326 -4965837 2125022 -941228 UNITS METERS SHAPEPATH "f:/biomass.0622/data/" # IMAGECOLOR 204 255 255 IMAGECOLOR 255 255 255 **************************************************** Extract from symbolset: Symbol Name 's9' Type ELLIPSE Points 1 1 END END Symbol Name 's10' Type ELLIPSE Filled Points 1 1 END END Symbol Name 's13' Type VECTOR Points 0 0 2 0 1 2 0 0 END END **************************************************** -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) "Bioenergy Atlas for Australia" Co-ordinator University of Adelaide Agronomy and Farming Systems C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From Chip.Hankley at GASAI.Com Mon Jul 2 06:39:59 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 2 Jul 2001 08:39:59 -0500 Subject: [mapserver-users] PHP MapScript - when to upgrade PHP? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3D5A@postoffice.GASAI.Com> I was cruising around php.net over the weekend, and saw that there has been yet another release of PHP (4.0.6)... I'm pretty new to PHP and OpenSource in general...so, maybe I'm showing my naivet? here - Do changes in the software come out this quickly? Is there something wrong w/ PHP 4.0.4? I played around with 4.0.5 for a couple weeks and found that some things just didn't work very well...so I'm still using 4.0.4. Now I'm feeling like I'm two releases behind... When do most people make the decision to upgrade? Cheers! Chip Hankley From steve.lime at dnr.state.mn.us Mon Jul 2 08:47:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 02 Jul 2001 10:47:02 -0500 Subject: [mapserver-users] Yay! Here are some fixes for everyone. Message-ID: Thanks for checking this out, sorry you had to bother. This has been fixed and commited. We can talk about CVS access outside the list... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Beau Gunderson 07/01/01 03:00AM >>> The current CVS code is broken in that loadProjectionString has not been replaced with msLoadProjectionString in many places. I first noticed this when I got an undefined symbol error with loadProjectionString, even though I *knew* it was linking to libmap.a. Upon closer inspection, however, I noticed that map.h's definition of loadProjectionString didn't actually exist in code anywhere, and the closest match was msLoadProjectionString. A grep -R revealed a note in the php3 mapscript source about being sure to change all the occurences. Whoops! =) By the way, I'd be happy to fix stuff like this and not have to go through the long process of writing these incredibly verbose messages about bugs I found in the code.. Would it be possible to get commit access on cvs? Is there a seperate mailing list for developers? Thanks =) -Beau Gunderson From steve.lime at dnr.state.mn.us Mon Jul 2 08:50:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 02 Jul 2001 10:50:29 -0500 Subject: [mapserver-users] using swig Message-ID: PHP doesn't need swig, just the perl, python, etc... versions. You'll need swig version 1.1-883. The command for perl is 'swig -perl5 -shadow mapscript.i'. It's recommended though that you stick with the nightly build. It is run through flex, bison and swig before packaging and is updated every night around midnight. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "David Armstrong" 07/01/01 04:29AM >>> Could someone please advise on the correct method for using swig to produce the mapscript wrap.c & mapscript.pm files so that perl mapscript & php mapscript can be built from version 3.5 (cvs), preferably under windows i have swig ver 1.1 installed Kind Regards to All Dave From cathode at nichebox.com Mon Jul 2 09:21:14 2001 From: cathode at nichebox.com (Rob Martinson) Date: Mon, 2 Jul 2001 19:21:14 +0300 Subject: [mapserver-users] PHP MapScript - when to upgrade PHP? In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A53536E3D5A@postoffice.GASAI.Com> Message-ID: <002301c10313$050266f0$8200a8c0@nichebox1> Chip, Check the changelog in the releases if you're worried (http://www.php.net/ChangeLog-4.php). The majority of the changes from the initial release of 4.0 up to the current 4.0.6 have been bug fixes although some a few features have been added. If you're happy with 4.0.4, I say stick with it until the next major release. I generally upgrade with every new release after it's been out for a week or so with no major issues. But my job depends on keeping everything (including myself) as current as possible. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Hankley, Chip > Sent: Monday, July 02, 2001 4:40 PM > To: MapServer List (E-mail) > Subject: [mapserver-users] PHP MapScript - when to upgrade PHP? > > > I was cruising around php.net over the weekend, and saw that > there has been yet another release of PHP (4.0.6)... > > I'm pretty new to PHP and OpenSource in general...so, maybe > I'm showing my naivet? here - > > Do changes in the software come out this quickly? Is there > something wrong w/ PHP 4.0.4? I played around with 4.0.5 for > a couple weeks and found that some things just didn't work > very well...so I'm still using 4.0.4. Now I'm feeling like > I'm two releases behind... > > When do most people make the decision to upgrade? > > Cheers! > > Chip Hankley > From david.armstrong at ntlworld.com Mon Jul 2 09:50:01 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Mon, 2 Jul 2001 17:50:01 +0100 Subject: [mapserver-users] compiling under windows makefile vc syntax error ? Message-ID: <000501c10317$09a27f20$0100a8c0@david> i am getting the following error when running the makefile.vc under windows 2k with visual studio nmake command copy ./gdal-1.1.4/gdal.pdb . The syntax of the command is incorrect. the following is the offending lines in the makefile can anyone put some light on this $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)/gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) i can overcome this manually by copying the file across and commenting out the copy command , but i would like to correct this Regards to All Dave From joel at crrel.usace.army.mil Mon Jul 2 11:10:49 2001 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Mon, 2 Jul 2001 14:10:49 -0400 (EDT) Subject: [mapserver-users] query templates & https? In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A53536E3D5A@postoffice.GASAI.Com> Message-ID: is there a limitation to query templates that allows a url to be identified with http, but not https? if this works: QUERY TEMPLATE "http://myserver/myprog?arg=[item] END should this? QUERY TEMPLATE "https://myserver/myprog?arg=[item] END thanks joel From pnaciona at gis.umn.edu Mon Jul 2 11:51:17 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 2 Jul 2001 13:51:17 -0500 Subject: [mapserver-users] compiling under windows makefile vc syntax error ? In-Reply-To: <000501c10317$09a27f20$0100a8c0@david> Message-ID: Dave, All I did for that one is switch the "/" to "\" on the "copy ..." line. This still won't work unless you also switch the slashes on the GDAL_DIR somewhere else on that Makefile. The problem with this is that the DOS (or Windows) copy command uses the backslash (\) in paths. Nmake itself don't have that problem but system commands do. For uniformity's sake, you might want to switch all the path slashes to backslash. Example Makefile.vc: ...(stuff omitted) GDAL_DIR= ..\..\gdal OGR=-DUSE_OGR OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib $(GDAL_DIR)/ogr/../port/cpl.lib OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr -I$(GDAL_DIR)/port ...(more stuff omitted) $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)\gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) ...(the rest of the stuff omitted) Good luck! -Perry On Mon, 2 Jul 2001, David Armstrong wrote: > i am getting the following error when running the makefile.vc under windows > 2k with visual studio nmake command > > copy ./gdal-1.1.4/gdal.pdb . > The syntax of the command is incorrect. > > > the following is the offending lines in the makefile can anyone put some > light on this > > $(MS_LIB): $(MS_OBJS) > > copy $(GDAL_DIR)/gdal.pdb . > > lib /out:$(MS_LIB) $(MS_OBJS) > > > i can overcome this manually by copying the file across and commenting out > the copy command , but i would like to correct this > > Regards to All > Dave > From morissette at dmsolutions.ca Mon Jul 2 12:53:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Jul 2001 15:53:25 -0400 Subject: [mapserver-users] Need TAB files for testing References: <3B3A0B7C.DC688E8C@dmsolutions.ca> <3B3CFEF8.76E45A49@dmsolutions.ca> <00ab01c101be$a718d100$0a729acb@tei.or.th> Message-ID: <3B40D135.9CDCFDD3@dmsolutions.ca> Paul Hastings wrote: > > > The Newfoundland demo is at: > > http://www2.dmsolutions.ca:8099/nfld_demo/demo_init.html > > all i see is a black box with "Powered by MapServer", a scalebar, > & a legend (besides the normal text). no map is displayed though > it seems that the map image is there but maybe the scalebar > image overlaps it???. below is the html source from my end: > Ooopps... there was a problem with the WIDTH and HEIGHT parameters of the IMG tag in the HTML template. Netscape (which we used for testing) didn't complain, but IE was ignoring the malformed IMG tag and that's why you didn't see the map. It's fixed now. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From assefa at dmsolutions.ca Mon Jul 2 14:09:41 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Mon, 02 Jul 2001 17:09:41 -0400 Subject: [mapserver-users] compiling under windows makefile vc syntaxerror ? References: Message-ID: <3B40E314.E9CCC668@dmsolutions.ca> I just updated the CVS version with the modifications you suggested. Bye "Pericles S. Nacionales" wrote: > Dave, > > All I did for that one is switch the "/" to "\" on the "copy > ..." line. This still won't work unless you also switch the slashes on > the GDAL_DIR somewhere else on that Makefile. The problem with this is > that the DOS (or Windows) copy command uses the backslash (\) in > paths. Nmake itself don't have that problem but system commands do. For > uniformity's sake, you might want to switch all the path slashes to > backslash. > > Example Makefile.vc: > ...(stuff omitted) > > GDAL_DIR= ..\..\gdal > OGR=-DUSE_OGR > OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib > $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib > $(GDAL_DIR)/ogr/../port/cpl.lib > OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr > -I$(GDAL_DIR)/port > > ...(more stuff omitted) > > $(MS_LIB): $(MS_OBJS) > copy $(GDAL_DIR)\gdal.pdb . > lib /out:$(MS_LIB) $(MS_OBJS) > > ...(the rest of the stuff omitted) > > Good luck! > -Perry > > On Mon, 2 Jul 2001, David Armstrong wrote: > > > i am getting the following error when running the makefile.vc under windows > > 2k with visual studio nmake command > > > > copy ./gdal-1.1.4/gdal.pdb . > > The syntax of the command is incorrect. > > > > > > the following is the offending lines in the makefile can anyone put some > > light on this > > > > $(MS_LIB): $(MS_OBJS) > > > > copy $(GDAL_DIR)/gdal.pdb . > > > > lib /out:$(MS_LIB) $(MS_OBJS) > > > > > > i can overcome this manually by copying the file across and commenting out > > the copy command , but i would like to correct this > > > > Regards to All > > Dave > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From cathode at nichebox.com Mon Jul 2 15:52:35 2001 From: cathode at nichebox.com (Rob Martinson) Date: Tue, 3 Jul 2001 01:52:35 +0300 Subject: [mapserver-users] PHP/Mapscript module and Phorum Message-ID: <002c01c10349$c2184170$8200a8c0@nichebox1> Just FYI for those of you that run Phorum PHP forums with mySQL (and possibly others). You cannot leave your php_mapscript.so loaded at all times with this or use it within the same script where phorum is called. And if you're running Apache as standalone instead of through inetd you will have additional issues. The problem is that Phorum declares a query class which conflicts with a class of the same name in the Mapscript module. What I have done is just gone through all of their code and renamed the class so it doesn't interfere. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From paul at tei.or.th Mon Jul 2 15:57:28 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 3 Jul 2001 05:57:28 +0700 Subject: [mapserver-users] query templates & https? References: Message-ID: <021001c1034a$5f099010$0a729acb@tei.or.th> > if this works: > > QUERY > TEMPLATE "http://myserver/myprog?arg=[item] > END does it? i've tried passing [vars] to coldfusion templates (something.cfm) to plain html files (something.htm) & have only found it (ms 3.3) to work with something.html i thought i understood the why of it. is this something new for 3.4 or 3.5? From cathode at nichebox.com Mon Jul 2 15:55:48 2001 From: cathode at nichebox.com (Rob Martinson) Date: Tue, 3 Jul 2001 01:55:48 +0300 Subject: [mapserver-users] PHP/Mapscript module and Phorum Message-ID: <002d01c1034a$2c68bf50$8200a8c0@nichebox1> Just FYI for those of you that run Phorum PHP forums with mySQL (and possibly others). You cannot leave your php_mapscript.so loaded at all times with this or use it within the same script where phorum is called. And if you're running Apache as standalone instead of through inetd you will have additional issues. The problem is that Phorum declares a query class which conflicts with a class of the same name in the Mapscript module. What I have done is just gone through all of their code and renamed the class so it doesn't interfere. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From morissette at dmsolutions.ca Mon Jul 2 16:49:02 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Jul 2001 19:49:02 -0400 Subject: [mapserver-users] PHP/Mapscript module and Phorum References: <002c01c10349$c2184170$8200a8c0@nichebox1> Message-ID: <3B41086E.321DD4B6@dmsolutions.ca> Hi, Just as a follow-up, the query class is gone in MapServer 3.5, so this issue applies only to PHP MapScript 3.3.011 and 3.4. Daniel Rob Martinson wrote: > > Just FYI for those of you that run Phorum PHP forums with mySQL (and > possibly others). You cannot leave your php_mapscript.so loaded at all > times with this or use it within the same script where phorum is called. > And if you're running Apache as standalone instead of through inetd you > will have additional issues. The problem is that Phorum declares a query > class which conflicts with a class of the same name in the Mapscript > module. What I have done is just gone through all of their code and > renamed the class so it doesn't interfere. > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cathode at nichebox.com Mon Jul 2 17:08:50 2001 From: cathode at nichebox.com (Rob Martinson) Date: Tue, 3 Jul 2001 03:08:50 +0300 Subject: [mapserver-users] PHP/Mapscript module and Phorum In-Reply-To: <3B41086E.321DD4B6@dmsolutions.ca> Message-ID: <003001c10354$579e4190$8200a8c0@nichebox1> I obtained and built the following http://mapserver.gis.umn.edu/dist/nightly.tar.gz two days ago and the class still exists. But, I also noticed that my version string is as follows: MapScript Version (Apr 3, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE Maybe nightly.tar.gz hasn't been updated in a while (from the date above). Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, July 03, 2001 2:49 AM > To: Rob Martinson > Cc: MapServer List > Subject: Re: [mapserver-users] PHP/Mapscript module and Phorum > > > Hi, > > Just as a follow-up, the query class is gone in MapServer > 3.5, so this issue applies only to PHP MapScript 3.3.011 and 3.4. > > Daniel > > > > Rob Martinson wrote: > > > > Just FYI for those of you that run Phorum PHP forums with > mySQL (and > > possibly others). You cannot leave your php_mapscript.so > loaded at all > > times with this or use it within the same script where phorum is > > called. And if you're running Apache as standalone instead > of through > > inetd you will have additional issues. The problem is that Phorum > > declares a query class which conflicts with a class of the > same name > > in the Mapscript module. What I have done is just gone > through all of > > their code and renamed the class so it doesn't interfere. > > > > Rob Martinson > > Nichebox - http://www.nichebox.com > > Development - http://dev.nichebox.com > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From morissette at dmsolutions.ca Mon Jul 2 17:25:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 02 Jul 2001 20:25:33 -0400 Subject: [mapserver-users] PHP/Mapscript module and Phorum References: <003001c10354$579e4190$8200a8c0@nichebox1> Message-ID: <3B4110FD.9BB87F6F@dmsolutions.ca> Rob Martinson wrote: > > I obtained and built the following > http://mapserver.gis.umn.edu/dist/nightly.tar.gz two days ago and the > class still exists. But, I also noticed that my version string is as > follows: > > MapScript Version (Apr 3, 2001) > MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL > INPUT=SHAPEFILE > > Maybe nightly.tar.gz hasn't been updated in a while (from the date > above). > The nightly is probably up to date, it's the MapScript version string that didn't change since April 3rd. But anyway, as of April 3rd, the "query" class was already long gone from php_mapscript.c ... based on the CVS logs, the query stuff (including the "query" PHP class) was taken out around the end of February. Could the problem/conflict be caused by something else (query-related or not)? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lyndon.zimmermann at adelaide.edu.au Mon Jul 2 22:11:13 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Tue, 03 Jul 2001 14:41:13 +0930 Subject: [mapserver-users] Options for portal implementation Message-ID: <3B4153F1.6FA5F7C7@adelaide.edu.au> Greetings all, MapServer is often used as a portal, where a tailor made interface is created for the user presenting a limited number of options calling data from a larger generic dataset. The alternative is a cumbersome number of checkboxes and associated titles on the map. The usual practice is to build a number of discrete .map files which call their respective template files, which in turn provide the options. These map and template files usually sit on the mapserver server, not accessible to most users. Is it possible to do this from a remote URL? It certainly is easy enough to initially configure the mapserver - zoom into the area of interest and turn some applicable layers on, then shift control to the mapserver proper. But when the user goes back to the external URL any changes are undone. The proper way is to implement a proper open GIS, but I presume that's not yet an easy task. Any clues on options would be appreciated and, in the meantime, I'll continue experimenting. Lyndon Z From drish at drish.net Tue Jul 3 01:55:39 2001 From: drish at drish.net (Drew) Date: Tue, 3 Jul 2001 18:55:39 +1000 Subject: [mapserver-users] mapserver frontend config tool? References: <3B4153F1.6FA5F7C7@adelaide.edu.au> Message-ID: <002e01c1039d$f27bc130$0300000a@dhr> I'm finding configuring mapserver pretty difficult, has anyone made a script or tool to make it easy? Say ask for location of .gif / .jpg files, ask for coordinates of the corners, and have it spit out all the configuration files? d From miki at canaan.co.il Tue Jul 3 03:12:39 2001 From: miki at canaan.co.il (Ben-Nes Michael) Date: Tue, 3 Jul 2001 13:12:39 +0300 Subject: [mapserver-users] PHP MapScript - when to upgrade PHP? References: <3DFF131E4E6D2D4198CDD758F35A53536E3D5A@postoffice.GASAI.Com> Message-ID: <00d201c103a9$033beda0$aa5796d4@canaan.co.il> This snip from php.net says all "PHP 4.0.6 is a maintenance release, that features many bug fixes from PHP 4.0.5, and is especially much more efficient in its memory requirements" when it comes to "efficiency" and "much more" I always upgrade :) ----- Original Message ----- From: "Hankley, Chip" To: "MapServer List (E-mail)" Sent: Monday, July 02, 2001 4:39 PM Subject: [mapserver-users] PHP MapScript - when to upgrade PHP? I was cruising around php.net over the weekend, and saw that there has been yet another release of PHP (4.0.6)... I'm pretty new to PHP and OpenSource in general...so, maybe I'm showing my naivet? here - Do changes in the software come out this quickly? Is there something wrong w/ PHP 4.0.4? I played around with 4.0.5 for a couple weeks and found that some things just didn't work very well...so I'm still using 4.0.4. Now I'm feeling like I'm two releases behind... When do most people make the decision to upgrade? Cheers! Chip Hankley -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -------------------------- From steve.lime at dnr.state.mn.us Tue Jul 3 07:15:34 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 03 Jul 2001 09:15:34 -0500 Subject: [mapserver-users] mapserver frontend config tool? Message-ID: Yes, sort of. There are a couple of options here. See this page on the MapServer website: http://mapserver.gis.umn.edu/contributed.html. The MapServer Workbench might be of particular interest. It requires MapServer 3.4 and Tk/Tcl, not sure of status with regards to 3.5. There are also tools go from ArcView to .map files and I have a perl script that will spit out query templates for a given .dbf file if anyone is interested. There is other work going on in this area with web-based management but I'll let the folks doing that comment if they wish. From what I've seen it looks *very* cool. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Drew" 07/03/01 03:55AM >>> I'm finding configuring mapserver pretty difficult, has anyone made a script or tool to make it easy? Say ask for location of .gif / .jpg files, ask for coordinates of the corners, and have it spit out all the configuration files? d From steve.lime at dnr.state.mn.us Tue Jul 3 07:28:53 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 03 Jul 2001 09:28:53 -0500 Subject: [mapserver-users] query templates & https? Message-ID: It would if I weren't braindead when writing code. (I am getting better tho) To make this work you need to edit 1 line in mapserv.h. Change the macro: #define TEMPLATE_TYPE(s) (((strncmp("http://", s, 7) == 0) || (strncmp("ftp://", s, 6)) == 0) ? MS_URL : MS_FILE) to #define TEMPLATE_TYPE(s) (((strncmp("http://", s, 7) == 0) || (strncmp("https://", s, 8) == 0) || (strncmp("ftp://", s, 6)) == 0) ? MS_URL : MS_FILE) and recompile. That should flag your https as a URL template and everything should work. I have added this change to the CVS. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Joel Schlagel 07/02/01 01:10PM >>> is there a limitation to query templates that allows a url to be identified with http, but not https? if this works: QUERY TEMPLATE "http://myserver/myprog?arg=[item] END should this? QUERY TEMPLATE "https://myserver/myprog?arg=[item] END thanks joel From joel at crrel.usace.army.mil Tue Jul 3 07:55:27 2001 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Tue, 3 Jul 2001 10:55:27 -0400 (EDT) Subject: [mapserver-users] query templates & https? In-Reply-To: Message-ID: thanks! .. brainded? please .. when esri made this change arcims went from 3.0 to 3.1 :) joel On Tue, 3 Jul 2001, Stephen Lime wrote: > It would if I weren't braindead when writing code. (I am getting better tho) To make this work > you need to edit 1 line in mapserv.h. Change the macro: > > #define TEMPLATE_TYPE(s) (((strncmp("http://", s, 7) == 0) || (strncmp("ftp://", s, 6)) == 0) ? MS_URL : MS_FILE) > > to > > #define TEMPLATE_TYPE(s) (((strncmp("http://", s, 7) == 0) || (strncmp("https://", s, 8) == 0) || (strncmp("ftp://", s, 6)) == 0) ? MS_URL : MS_FILE) > > and recompile. That should flag your https as a URL template and everything should work. I have added this change to > the CVS. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Joel Schlagel 07/02/01 01:10PM >>> > > is there a limitation to query templates that allows a url to be > identified with http, but not https? > > if this works: > > QUERY > TEMPLATE "http://myserver/myprog?arg=[item] > END > > should this? > > QUERY > TEMPLATE "https://myserver/myprog?arg=[item] > END > > > thanks > > > joel > > > > From Rich at GreenwoodMap.com Tue Jul 3 08:10:15 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 03 Jul 2001 09:10:15 -0600 Subject: [mapserver-users] mapext=shapes with points Message-ID: <5.1.0.14.0.20010703090535.00aaf8c8@mail.GreenwoodMap.com> I'm working with a querymap on a point layer. I want to click on a point and get a querymap that shows an arbitrary radius around the point. I have mapext=shapes and buffer=100000, but my querymap keeps coming back with a scale of -1 (zoomed in way too far). Any suggestions? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Tue Jul 3 08:17:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 03 Jul 2001 10:17:57 -0500 Subject: [mapserver-users] mapext=shapes with points Message-ID: Those 2 parameters are contradicting each other. Mapext=shapes tells the MapServer to use the extent of a point (which is itself a point) and the buffer never really gets used. What version are you using? With that I can give you a workaround. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Richard Greenwood 07/03/01 10:10AM >>> I'm working with a querymap on a point layer. I want to click on a point and get a querymap that shows an arbitrary radius around the point. I have mapext=shapes and buffer=100000, but my querymap keeps coming back with a scale of -1 (zoomed in way too far). Any suggestions? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From morissette at dmsolutions.ca Tue Jul 3 08:23:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 03 Jul 2001 11:23:25 -0400 Subject: [mapserver-users] mapserver frontend config tool? References: Message-ID: <3B41E36D.D18C0CC9@dmsolutions.ca> Stephen Lime wrote: > > There is other work going on in this area with web-based management but I'll let the > folks doing that comment if they wish. From what I've seen it looks *very* cool. > I guess Steve is referring to our Web-based Map Editor here. It provides functionality very similar to what the MapServer Tcl Workbench allows you to do, except that it's a Java Servlet that runs on the MapServer server, and you access it via a web browser... so you can use it to administer remote servers just like if you were sitting besides them. We are planning to release the source and everything as usual... but the docs is not complete yet and we don't have a public demo setup yet either. I'll try to setup a demo site in the next couple of weeks and will send a note to the list once it's there. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From shawatw at Princeton.EDU Tue Jul 3 14:03:40 2001 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Tue, 03 Jul 2001 17:03:40 -0400 Subject: [mapserver-users] Mime-Version: 1.0 Message-ID: <3.0.32.20010703170339.01536ef0@imap.princeton.edu> unsubscribe From ehillmuth at digitalmeridian.net Tue Jul 3 14:36:36 2001 From: ehillmuth at digitalmeridian.net (Eric Hillmuth) Date: Tue, 03 Jul 2001 15:36:36 -0600 Subject: [mapserver-users] 3.4 demo and symbol.sym file Message-ID: <3B423AE4.3691612F@digitalmeridian.net> I'm trying to get the map server demo working with the 3.4 release but I've run into a problem creating symbol.sym from the various files as advised in the getting started pages. Judging from the activity on the mailing list archives I'm not the first to ask this question but I couldn't find any answers. -- Eric Hillmuth Principal Digital Meridian http://www.digitalmeridian.net Phone: 303-809-8972 Fax: 303-443-9427 From lyndon.zimmermann at adelaide.edu.au Tue Jul 3 17:04:36 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Wed, 04 Jul 2001 09:34:36 +0930 Subject: [mapserver-users] 3.4 demo and symbol.sym file References: <3B423AE4.3691612F@digitalmeridian.net> Message-ID: <3B425D94.1FC36A7E@adelaide.edu.au> Eric, I'm one of those, and running now (I think - I'm sure there are more glitches on the way). In summary: 1. get your gifs and pngs sorted out if you've kicked over to png (as I did) 2. styled is no longer supported, but this fact and the alternatives (if you need them) is still a well kept secret. I don't need them so deleted. 3. refer to png or gif symbols directly (eg the highway shields), not via the symbol file. 4. just copy the three files into a one, SYMBOL.SYM, delete the LINESET, IMAGESET and MARKERSET and corresponding END statements. 5. change the reference in the map file from referencing the three files to the one symbol.sym Lyndon Z Eric Hillmuth wrote: > > I'm trying to get the map server demo working with the 3.4 release but > I've run into a problem creating symbol.sym from the various files as > advised in the getting started pages. Judging from the activity on the > mailing list archives I'm not the first to ask this question but I > couldn't find any answers. > > -- > Eric Hillmuth > Principal > Digital Meridian > http://www.digitalmeridian.net > Phone: 303-809-8972 > Fax: 303-443-9427 Eric Hillmuth wrote: > > I'm trying to get the map server demo working with the 3.4 release but > I've run into a problem creating symbol.sym from the various files as > advised in the getting started pages. Judging from the activity on the > mailing list archives I'm not the first to ask this question but I > couldn't find any answers. > > -- > Eric Hillmuth > Principal > Digital Meridian > http://www.digitalmeridian.net > Phone: 303-809-8972 > Fax: 303-443-9427 -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) "Bioenergy Atlas for Australia" Co-ordinator University of Adelaide Agronomy and Farming Systems C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au Biomass Energy Atlas Website: http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/html/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From Rich at GreenwoodMap.com Wed Jul 4 08:09:13 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 04 Jul 2001 09:09:13 -0600 Subject: [mapserver-users] itemquery not finding records Message-ID: <5.1.0.14.0.20010704090437.00b06af0@mail.GreenwoodMap.com> I have a polygon layer with 9386 objects. query and nquery seem to work fine, but itemquery and itemnquery fail to find any of the first 2141 records. I get the error message: "msQueryUsingItem(): Search returned no results. No matching record(s) found." Can anyone suggest what it is that I might be missing? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From Chip.Hankley at GASAI.Com Wed Jul 4 15:01:57 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 4 Jul 2001 17:01:57 -0500 Subject: [mapserver-users] PHP MapScript - Trouble with Point Query Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3D65@postoffice.GASAI.Com> Hi List, Totally stumped... I'm having trouble with a point query and a shapefile. What I'm trying to do is set up an app that will let users point at a polygon, and have an attribute from that polygon be returned. The attribute (field value) that is returned will always be the same (i.e. I'm not returning values from multiple fields...just one). Anyway, I followed the way this is done in DMSolutions GMap application, and it works...most of the time. But, on certain shapefiles, for certain polygons, I get the following PHP error: Fatal error: Call to a member function on a non-object in C:\Inetpub\wwwroot/seating/test_seat1.php on line 49 Doesn't happen for every polygon in an effected shapefile, but it does happen to the same polygons consistently. Here's my php code around line 49: 44 $x_click = $HTTP_POST_VARS["img_x"]; 45 $y_click = $HTTP_POST_VARS["img_y"]; 46 $real_pts = getRealPts($x_click, $y_click, $map); 47 48 $q_map_res = $map->queryUsingPoint($real_pts[2], MS_SINGLE, -1); 49 $q_map_res->rewind(); 50 51 $oResult = $q_map_res->next(); 52 $iCurLayer = $oResult->layer; 53 $oLayer = $map->GetLayer($iCurLayer); 54 $dbfname = $map->shapepath . $oLayer->data . ".dbf"; I think it's really bombing on line 48 b/c if I comment out 49, my error says line51. I think I must be missing some error trapping routine around line 48, although I don't understand why it isn't returning a value. For further ref, here's the layer definition from the map file... LAYER NAME "Employee" DESCRIPTION "Location Codes" TYPE Polygon STATUS DEFAULT DATA ml4 CLASSITEM CODE CLASS EXPRESSION '' COLOR 255 0 0 OUTLINECOLOR 0 0 0 END # CLASS TOLERANCE 0 HEADER "CODE" QUERYITEM "Code" QUERY EXPRESSION /1|2|3/ TEMPLATE "ttt" END END # LAYER TIA! Chip From morissette at dmsolutions.ca Wed Jul 4 17:34:15 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 04 Jul 2001 20:34:15 -0400 Subject: [mapserver-users] PHP MapScript - Trouble with Point Query References: <3DFF131E4E6D2D4198CDD758F35A53536E3D65@postoffice.GASAI.Com> Message-ID: <3B43B607.57ECBE53@dmsolutions.ca> Chip, If a query fails (i.e. nothing found), the returned value is FALSE (or 0, not sure), but either way you should be able to test the return value to find out if you actually got a result or not by changing your code to: $q_map_res = $map->queryUsingPoint($real_pts[2], MS_SINGLE, -1); if ($q_map_res) { $q_map_res->rewind(); $oResult = $q_map_res->next(); $iCurLayer = $oResult->layer; $oLayer = $map->GetLayer($iCurLayer); $dbfname = $map->shapepath . $oLayer->data . ".dbf"; ... } else { // Nothing found... } Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. "Hankley, Chip" wrote: > > Hi List, > > Totally stumped... > > I'm having trouble with a point query and a shapefile. > > What I'm trying to do is set up an app that will let users point at a > polygon, and have an attribute from that polygon be returned. The attribute > (field value) that is returned will always be the same (i.e. I'm not > returning values from multiple fields...just one). > > Anyway, I followed the way this is done in DMSolutions GMap application, and > it works...most of the time. But, on certain shapefiles, for certain > polygons, I get the following PHP error: > > Fatal error: Call to a member function on a non-object in > C:\Inetpub\wwwroot/seating/test_seat1.php on line 49 > > Doesn't happen for every polygon in an effected shapefile, but it does > happen to the same polygons consistently. > > Here's my php code around line 49: > > 44 $x_click = $HTTP_POST_VARS["img_x"]; > 45 $y_click = $HTTP_POST_VARS["img_y"]; > 46 $real_pts = getRealPts($x_click, $y_click, $map); > 47 > 48 $q_map_res = $map->queryUsingPoint($real_pts[2], MS_SINGLE, -1); > 49 $q_map_res->rewind(); > 50 > 51 $oResult = $q_map_res->next(); > 52 $iCurLayer = $oResult->layer; > 53 $oLayer = $map->GetLayer($iCurLayer); > 54 $dbfname = $map->shapepath . $oLayer->data . ".dbf"; > > I think it's really bombing on line 48 b/c if I comment out 49, my error > says line51. I think I must be missing some error trapping routine around > line 48, although I don't understand why it isn't returning a value. > > For further ref, here's the layer definition from the map file... > > LAYER > NAME "Employee" > DESCRIPTION "Location Codes" > TYPE Polygon > STATUS DEFAULT > DATA ml4 > CLASSITEM CODE > CLASS > EXPRESSION '' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END # CLASS > TOLERANCE 0 > HEADER "CODE" > QUERYITEM "Code" > QUERY > EXPRESSION /1|2|3/ > TEMPLATE "ttt" > END > END # LAYER > > TIA! > > Chip From milis at wakwaw.f2s.com Thu Jul 5 03:03:53 2001 From: milis at wakwaw.f2s.com (Tri Agus Prayitno) Date: Thu, 5 Jul 2001 17:03:53 +0700 Subject: [mapserver-users] question on maputil Message-ID: <000001c1053a$9eb83940$1401a8c0@ntdomain> Hello listers, I'm new to mapserver. I have tried mapserver (3.3) on windows 98 and linux mandrake 8 on the same machine I generate the mapfile with maputil from user contributed page. It works fine on win98 with apache server, but no work on linux, i only copy all necessary files to linux and change the path. without the javascript and applet thing (from maputil), the mapserver works great on my linux but i still confuse why it is not working with the java, i need the java thing for map navigation. can anybody help me and what to do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Thu Jul 5 07:29:52 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 5 Jul 2001 09:29:52 -0500 (CDT) Subject: [mapserver-users] 50 class limitation (FWD) Message-ID: <200107051429.JAA10164@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Boisvert, ?ric" To: "'mapserver-info at lists.gis.umn.edu'" Subject: 50 class limitation Date: Wed, 4 Jul 2001 11:55:16 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id KAA09836 Did someone recompiled mapserver with a larger class number for the win32 plateform ?. We hit the ceiling and I'm not sure I want to go throught windows compilation (I only have Borland C++ products). Cheers and thanx Eric Boisvert Commission g?ologique du Canada / Quebec geoscience Center Geological Survey of Canada / Centre g?oscientifique de Qu?bec Sp?cialiste SIG - Gestion des donn?es / GIS - data management specialist ============================ 880 Chemin Ste-Foy C.P. 7500 Ste-Foy, Quebec, Qc Canada G1V 4C7 email: eboisver at nrcan.gc.ca phone: (418) 654-3705 Fax: (418) 654-2615 http://www.cgq-qgc.ca http://www.nrcan.gc.ca/gsc ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Thu Jul 5 07:29:09 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 5 Jul 2001 09:29:09 -0500 (CDT) Subject: [mapserver-users] Support for dynamic segmentation / event display? (FWD) Message-ID: <200107051429.JAA10159@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: M?ller Ulrich To: "'mapserver-info at lists.gis.umn.edu'" Subject: Support for dynamic segmentation / event display? Date: Wed, 4 Jul 2001 16:29:10 +0100 MIME-Version: 1.0 Hi We need to dynamically extract point events and linear events from a measured polyline theme (e.g. the user may enter an identifier for a route plus a measure along the route, then MapServer should display the location or the segment on the map). I know that the newer shapelib reads 3D-shapes. However I have not come across a way to create events within mapserver. Anybody knows? Uli Kanton Solothurn GIS Koordinationsstelle R?tihof 4509 Solothurn T: +41 (032) 627 2475 ------------- End Forwarded Message ------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: M?ller Ulrich.vcf Type: text/x-vcard Size: 367 bytes Desc: M?ller Ulrich.vcf URL: From steve.lime at dnr.state.mn.us Thu Jul 5 08:50:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 05 Jul 2001 10:50:21 -0500 Subject: [mapserver-users] 3.4/3.5 demo running... Message-ID: Greetings: A version of the demo that runs under 3.4 and 3.5 can be found at: distribution: http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz online version: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo_init.html map file: http://maps.dnr.state.mn.us/mapserver_demos/itasca/demo.map The map file doesn't even use a symbol file. Since there are only a few necessary they are imbedded in the map file itself. Note that this is not the final resting place for this stuff but since it's been a hot topic I thought I'd allow access. Soon, regular access will be via CVS to both the Itasca County demo and the full test suite. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From ackermann_s at gmx.de Thu Jul 5 08:48:23 2001 From: ackermann_s at gmx.de (Sabine Ackermann) Date: Thu, 5 Jul 2001 17:48:23 +0200 Subject: [mapserver-users] unsubscribe mapserver-users ackermann_s@gmx.de Message-ID: <893671620.20010705174823@gmx.de> mailto:ackermann_s at gmx.de From morissette at dmsolutions.ca Thu Jul 5 09:08:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Jul 2001 12:08:32 -0400 Subject: [mapserver-users] 50 class limitation (FWD) References: <200107051429.JAA10164@mallit.fr.umn.edu> Message-ID: <3B449100.B1290BC9@dmsolutions.ca> > From: "Boisvert, ?ric" > > Did someone recompiled mapserver with a larger class number for > the win32 > plateform ?. We hit the ceiling and I'm not sure I want to go > throught > windows compilation (I only have Borland C++ products). > Eric, We have placed a MapServer 3.4 executable for Windows on our download site with the limit pushed to 256 classes per layer: http://www2.dmsolutions.ca/mapserver/dl/ms_34_256_class.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cathode at nichebox.com Thu Jul 5 09:47:22 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 5 Jul 2001 19:47:22 +0300 Subject: [mapserver-users] Building maps without a .map using MapScript only Message-ID: <000301c10572$2a3a50c0$8200a8c0@nichebox1> In short, is this possible? With the PHP library I'm using ms_newMapObj('') to return an empty map object to work with. The Mapscript documentation states that this will return an emtpy object, the PHP does not specifically state this, but I get no errors at this line. After adding layers and classes I get an error stating "Invalid Handle" whenever I attempt to call the draw method of the map using the above. The same mapping functionality when I use an existing .map file seem to work fine. Has anyone implemented something similar? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From DBICKEL at fcc.gov Thu Jul 5 10:25:27 2001 From: DBICKEL at fcc.gov (Dale Bickel) Date: Thu, 05 Jul 2001 13:25:27 -0400 Subject: [mapserver-users] Unsubscribe Message-ID: unsubscribe From morissette at dmsolutions.ca Thu Jul 5 10:21:29 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Jul 2001 13:21:29 -0400 Subject: [mapserver-users] Building maps without a .map using MapScript only References: <000301c10572$2a3a50c0$8200a8c0@nichebox1> Message-ID: <3B44A219.AFA50D64@dmsolutions.ca> Rob Martinson wrote: > > With the PHP library I'm using ms_newMapObj('') to return an empty map > object to work with. The Mapscript documentation states that this will > return an emtpy object, the PHP does not specifically state this, but I > get no errors at this line. After adding layers and classes I get an > error stating "Invalid Handle" whenever I attempt to call the draw > method of the map using the above. > > The same mapping functionality when I use an existing .map file seem to > work fine. > Rob, I looked at the php_mapscript.c code quickly and I see no reason why this wouldn't work. It must be a bug that will have to be looked into, hopefully before the 3.5 release. I filed it in the bugzilla system as http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23 You can add yourself to the CC: field in the bugzilla interface if you want to be notified when the bug gets fixed. Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Jul 5 10:32:19 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Jul 2001 13:32:19 -0400 Subject: [mapserver-users] Re: TAB files on mapserver 3.5 References: <3B3A0B7C.DC688E8C@dmsolutions.ca> <3B3CFEF8.76E45A49@dmsolutions.ca> <00ab01c101be$a718d100$0a729acb@tei.or.th> <5.1.0.14.0.20010705111257.030be788@mail.GreenwoodMap.com> Message-ID: <3B44A4A3.73C0B795@dmsolutions.ca> Richard Greenwood wrote: > > I've been playing with the ORG interface in ms 3.5. Needless to say that, > as a MapInfo user, it is very exciting to be working with native tab files. > Thanks for all of the work you have done on it. I have a couple questions: > BTW, we have 2 more OGR/TAB demos that will go live later today that will demonstrate "PROJECTION AUTO" (yep, read the projection from the TAB file) and the use of seamless TAB datasets, the MapInfo equivalent of MapServer's tiled shapefiles. Lots of cool features for MapInfo users! :) > A single MapInfo layer may contain different types of objects. I have a > layer that contains points and polygons. If I define the layer as "TYPE > Polygon" I get the polygons as expected. If I define the layer as "TYPE > Point" I get the error message: "ogrGeomPoints(): OGR error. OGRGeometry > type `MULTIPOLYGON' not supported yet.". Ideally I would like to define the > layer as "TYPE Multiple", or some such thing, so that it behaves as it does > in MapInfo. Have you given this any consideration? > Yes, I'm aware of this issue, and there is a note about this in the OGR-HOWTO warning you that if you do what you did then you'll get an error. And yes, we're planning to do something about this... it will just not be for the 3.5 release because I won't have time for sure. > My other question is probably more of a MS 3.5 question, but do you know > how to define an itemquery or an itemnquery? I've got query and nqueryr > figured out, but when I do an itemquery, things really go haywire. > Hummm... dunno??? ... hopefully someone on the list can help you with that. Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cathode at nichebox.com Thu Jul 5 10:43:09 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 5 Jul 2001 20:43:09 +0300 Subject: [mapserver-users] Building maps without a .map using MapScript only In-Reply-To: <3B44A219.AFA50D64@dmsolutions.ca> Message-ID: <000601c10579$f55d2af0$8200a8c0@nichebox1> Thanks for such a quick reply. I'll add myself to Bugzilla and continue playing with this. Maybe I'll experiment a bit with Mapscript in Perl to see if I get the same results. I have a small working sample of Spokane County (ctycu poly, water polys, place polys and streets)based on TIGER 97 data and have had great luck so far. Mapserver is fast! I do have one question though. Since SDE is the only db format available currently I have to deal with shape files (and hopefully TAB if I can get OGR working right). How does Mapserver (or does it) handle loading layers outside of the current extent? If I have a single map with street layers for the country by county or state and I zoom to an extent where they should be displayed (to a place polygon for example) does Mapserver attempt to load the street layer for the next county over if it's included in the .map definition? It seems to me that it has no idea where the extents are unless it does in fact load each layer so I'd like to load layers dynamically based on the requested extent of the view. Am I way off base here? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Thursday, July 05, 2001 8:21 PM > To: Rob Martinson > Cc: 'MapServer List' > Subject: Re: [mapserver-users] Building maps without a .map > using MapScript only > > > Rob Martinson wrote: > > > > With the PHP library I'm using ms_newMapObj('') to return > an empty map > > object to work with. The Mapscript documentation states > that this will > > return an emtpy object, the PHP does not specifically state > this, but > > I get no errors at this line. After adding layers and > classes I get an > > error stating "Invalid Handle" whenever I attempt to call the draw > > method of the map using the above. > > > > The same mapping functionality when I use an existing .map > file seem > > to work fine. > > > > Rob, > > I looked at the php_mapscript.c code quickly and I see no > reason why this wouldn't work. It must be a bug that will > have to be looked into, hopefully before the 3.5 release. > > I filed it in the bugzilla system as > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23 > You can add yourself to the CC: field in the bugzilla > interface if you want to be notified when the bug gets fixed. > > Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From morissette at dmsolutions.ca Thu Jul 5 10:48:54 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Jul 2001 13:48:54 -0400 Subject: [mapserver-users] Building maps without a .map using MapScript only References: <000601c10579$f55d2af0$8200a8c0@nichebox1> Message-ID: <3B44A886.D0D22A04@dmsolutions.ca> Rob Martinson wrote: > > I do have one question though. Since SDE is the only db format available > currently I have to deal with shape files (and hopefully TAB if I can > get OGR working right). How does Mapserver (or does it) handle loading > layers outside of the current extent? If I have a single map with street > layers for the country by county or state and I zoom to an extent where > they should be displayed (to a place polygon for example) does Mapserver > attempt to load the street layer for the next county over if it's > included in the .map definition? It seems to me that it has no idea > where the extents are unless it does in fact load each layer so I'd like > to load layers dynamically based on the requested extent of the view. Am > I way off base here? > Rob, If I understood your problem right, I think what you need is to use tiled shapefiles... you would have a master shapefile that contains your county boundaries, with one polygon per county, and the path to the shapefile for each county in an attribute (called LOCATION I think). Then the tile index shapefile is referred to as the TILEINDEX parameter in your mapserver layer defn. When Mapserver draws that layer, it scans the tileindex file, and displays all the counties whose extents fall in the current map extents. I think an example would help... is there any demo using TILEINDEX anywhere Steve? Another option could be to use a MapInfo "Seamless TAB dataset"... it's supported directly by OGR and does a job equivalent to what MapServer's tiled shapefiles do. Also, about SDE being the only DB format available, I think that's not true any more... I think Frank Warmerdam added support for the new PostGIS (http://postgis.refractions.net/) database in OGR... so you could use the OGR2OGR tool to load your layers in a PostGIS database, and then use MapServer + OGR to serve maps from that database. I'm not sure what the status of all those components is though... perhaps Frank can comment on this. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Thu Jul 5 11:32:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 05 Jul 2001 13:32:47 -0500 Subject: [mapserver-users] Building maps without a .map using MapScript only Message-ID: On the mapObj issue, I've been doing that with the 3.5 perl version and queries for sometime now so I know it can work. Haven't tried a draw though. MapServer gets extents for layers by actually accessing the layers. For non-tiled data that involves opening the file and reading header info. For tiled data it's a bit smarter. It used the layer tileindex to determine which tiles to process and then proceeds through them. Sounds to me that's what you're refering to in the last couple of sentences. Users have used county-based GDT and Tiger for the whole country using MapServer. Of course you wouldn't want to display city streets for the whole country at once so tying layers to appropriate scales is important... BTW I will be adding a LAYER EXTENT property to that you can bypass the file header check. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Rob Martinson" 07/05/01 12:43PM >>> Thanks for such a quick reply. I'll add myself to Bugzilla and continue playing with this. Maybe I'll experiment a bit with Mapscript in Perl to see if I get the same results. I have a small working sample of Spokane County (ctycu poly, water polys, place polys and streets)based on TIGER 97 data and have had great luck so far. Mapserver is fast! I do have one question though. Since SDE is the only db format available currently I have to deal with shape files (and hopefully TAB if I can get OGR working right). How does Mapserver (or does it) handle loading layers outside of the current extent? If I have a single map with street layers for the country by county or state and I zoom to an extent where they should be displayed (to a place polygon for example) does Mapserver attempt to load the street layer for the next county over if it's included in the .map definition? It seems to me that it has no idea where the extents are unless it does in fact load each layer so I'd like to load layers dynamically based on the requested extent of the view. Am I way off base here? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Thursday, July 05, 2001 8:21 PM > To: Rob Martinson > Cc: 'MapServer List' > Subject: Re: [mapserver-users] Building maps without a .map > using MapScript only > > > Rob Martinson wrote: > > > > With the PHP library I'm using ms_newMapObj('') to return > an empty map > > object to work with. The Mapscript documentation states > that this will > > return an emtpy object, the PHP does not specifically state > this, but > > I get no errors at this line. After adding layers and > classes I get an > > error stating "Invalid Handle" whenever I attempt to call the draw > > method of the map using the above. > > > > The same mapping functionality when I use an existing .map > file seem > > to work fine. > > > > Rob, > > I looked at the php_mapscript.c code quickly and I see no > reason why this wouldn't work. It must be a bug that will > have to be looked into, hopefully before the 3.5 release. > > I filed it in the bugzilla system as > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23 > You can add yourself to the CC: field in the bugzilla > interface if you want to be notified when the bug gets fixed. > > Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From steve.lime at dnr.state.mn.us Thu Jul 5 11:34:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 05 Jul 2001 13:34:46 -0500 Subject: [mapserver-users] Building maps without a .map using MapScript only Message-ID: Also note that the PostGIS authors are working on native support. They've been shown around the source and have started working on it, no word on progress though. Also note that a couple of groups are working on Oracle Spatial support... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 07/05/01 12:48PM >>> Rob Martinson wrote: > > I do have one question though. Since SDE is the only db format available > currently I have to deal with shape files (and hopefully TAB if I can > get OGR working right). How does Mapserver (or does it) handle loading > layers outside of the current extent? If I have a single map with street > layers for the country by county or state and I zoom to an extent where > they should be displayed (to a place polygon for example) does Mapserver > attempt to load the street layer for the next county over if it's > included in the .map definition? It seems to me that it has no idea > where the extents are unless it does in fact load each layer so I'd like > to load layers dynamically based on the requested extent of the view. Am > I way off base here? > Rob, If I understood your problem right, I think what you need is to use tiled shapefiles... you would have a master shapefile that contains your county boundaries, with one polygon per county, and the path to the shapefile for each county in an attribute (called LOCATION I think). Then the tile index shapefile is referred to as the TILEINDEX parameter in your mapserver layer defn. When Mapserver draws that layer, it scans the tileindex file, and displays all the counties whose extents fall in the current map extents. I think an example would help... is there any demo using TILEINDEX anywhere Steve? Another option could be to use a MapInfo "Seamless TAB dataset"... it's supported directly by OGR and does a job equivalent to what MapServer's tiled shapefiles do. Also, about SDE being the only DB format available, I think that's not true any more... I think Frank Warmerdam added support for the new PostGIS (http://postgis.refractions.net/) database in OGR... so you could use the OGR2OGR tool to load your layers in a PostGIS database, and then use MapServer + OGR to serve maps from that database. I'm not sure what the status of all those components is though... perhaps Frank can comment on this. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Thu Jul 5 11:43:11 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 05 Jul 2001 14:43:11 -0400 Subject: [mapserver-users] Building maps without a .map usingMapScript only References: Message-ID: <3B44B53F.47C58520@dmsolutions.ca> Stephen Lime wrote: > > Also note that a couple of groups are working on Oracle Spatial support... > Oracle Spatial... interesting! :) Could the ones working on this please provide more details, if/when it is going to be released, etc? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From warmerdam at pobox.com Thu Jul 5 13:08:55 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 05 Jul 2001 16:08:55 -0400 Subject: [mapserver-users] Building maps without a .map using MapScript only References: <000601c10579$f55d2af0$8200a8c0@nichebox1> <3B44A886.D0D22A04@dmsolutions.ca> Message-ID: <3B44C957.4330D6AF@pobox.com> Daniel Morissette wrote: > Also, about SDE being the only DB format available, I think that's not > true any more... I think Frank Warmerdam added support for the new > PostGIS (http://postgis.refractions.net/) database in OGR... so you > could use the OGR2OGR tool to load your layers in a PostGIS database, > and then use MapServer + OGR to serve maps from that database. I'm not > sure what the status of all those components is though... perhaps Frank > can comment on this. Folks, It should now be possible to use PostGIS as a spatial database for MapServer pre3.5 via the OGR linkage, as long as you build and install OGR from the current CVS source. I tried setting up a mapserver demonstration using OGR and PostGIS, but got bogged down in some sort of database permissions problem when running as nobody and never got back to fix it. Note that this OGR support for PostGIS and PostGIS itself are quite new, so this approach is really only suitable for someone willing to risk some pain getting things going. However, the PostGIS spatial quieries can be rocket fast, and I think this is a promising approach for MapServer users wanting to use a DBMS but without SDE. I should warn though that any queries that actually pull alot of data out of PostGIS are going to be kind of slow due to the inefficiencies of all the data handling within PostGIS, and in OGR. Converting the internal representation of stuff to text (OGC WKT), pulling it back one record at a time into OGR. Converting to OGRFeatures. Converting those to shapes structures within MapServer. If performance becomes an overriding concern we might eventually want to build a direct MapServer to PostGIS linkage, as well as look at optimized approaches to getting the data out. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at topozone.com Thu Jul 5 13:30:43 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 5 Jul 2001 16:30:43 -0400 Subject: [mapserver-users] Building maps without a .map usingMapScript only Message-ID: <13858AA1A74F30419F319ACB66A9D122CE3A@mercator.topozone.com> Steve - Is there any info/guidance/expertise available on SHPTREE tuning vs. tiled shapefiles vs. both? Tiling shapefiles is just another way to index the data for faster access (esp. trivial rejection), but it does mean you end up splitting features into multiple objects. I'd also be interested in more notes/comments from anyone on SHPTREE indexing experience, esp. with the "new index" format now available. - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, July 05, 2001 2:33 PM To: morissette at dmsolutions.ca; cathode at nichebox.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Building maps without a .map usingMapScript only On the mapObj issue, I've been doing that with the 3.5 perl version and queries for sometime now so I know it can work. Haven't tried a draw though. MapServer gets extents for layers by actually accessing the layers. For non-tiled data that involves opening the file and reading header info. For tiled data it's a bit smarter. It used the layer tileindex to determine which tiles to process and then proceeds through them. Sounds to me that's what you're refering to in the last couple of sentences. Users have used county-based GDT and Tiger for the whole country using MapServer. Of course you wouldn't want to display city streets for the whole country at once so tying layers to appropriate scales is important... BTW I will be adding a LAYER EXTENT property to that you can bypass the file header check. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Rob Martinson" 07/05/01 12:43PM >>> Thanks for such a quick reply. I'll add myself to Bugzilla and continue playing with this. Maybe I'll experiment a bit with Mapscript in Perl to see if I get the same results. I have a small working sample of Spokane County (ctycu poly, water polys, place polys and streets)based on TIGER 97 data and have had great luck so far. Mapserver is fast! I do have one question though. Since SDE is the only db format available currently I have to deal with shape files (and hopefully TAB if I can get OGR working right). How does Mapserver (or does it) handle loading layers outside of the current extent? If I have a single map with street layers for the country by county or state and I zoom to an extent where they should be displayed (to a place polygon for example) does Mapserver attempt to load the street layer for the next county over if it's included in the .map definition? It seems to me that it has no idea where the extents are unless it does in fact load each layer so I'd like to load layers dynamically based on the requested extent of the view. Am I way off base here? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Thursday, July 05, 2001 8:21 PM > To: Rob Martinson > Cc: 'MapServer List' > Subject: Re: [mapserver-users] Building maps without a .map > using MapScript only > > > Rob Martinson wrote: > > > > With the PHP library I'm using ms_newMapObj('') to return > an empty map > > object to work with. The Mapscript documentation states > that this will > > return an emtpy object, the PHP does not specifically state > this, but > > I get no errors at this line. After adding layers and > classes I get an > > error stating "Invalid Handle" whenever I attempt to call the draw > > method of the map using the above. > > > > The same mapping functionality when I use an existing .map > file seem > > to work fine. > > > > Rob, > > I looked at the php_mapscript.c code quickly and I see no > reason why this wouldn't work. It must be a bug that will > have to be looked into, hopefully before the 3.5 release. > > I filed it in the bugzilla system as > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23 > You can add yourself to the CC: field in the bugzilla > interface if you want to be notified when the bug gets fixed. > > Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From jimburnett at ntelos.net Thu Jul 5 13:42:56 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 5 Jul 2001 16:42:56 -0400 Subject: [mapserver-users] dlg dwg Message-ID: <001001c10593$12d588c0$2f01a8c0@cfw.com> Does mapserver support dlg or dwg files? Also, do I set up tiff file like I do shape file in the mapfile.map file? Thanks! -jim Jim Burnett jimburnett at ntelos.net JOHN MCNAIR & ASSOCIATES L. B. & B. BUILDING, RM 213 109 S. WAYNE AVE. WAYNESBORO, VA 22980 TELEPHONE (540) 942-1161 FAX (540) 942-1163 From bludwulf at crackrock.net Thu Jul 5 19:47:13 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Thu, 5 Jul 2001 19:47:13 -0700 (MST) Subject: [mapserver-users] GD 2.0.1: 24 bit PNG =) Message-ID: GD 2.0.1 beta has support for 24 bit color in the PNG format. When using the new gdImageCreateTrueColor function, the pixels array becomes invalid and you must use the tpixels array. Instead of gdImageColorAllocate, you can use either gdImageTrueColor or gdImageColorResolve, the latter of which is compatible with both palette and true color images. Another thing to note is that gdImageColorAllocate doesn't set the background color for a true color image the first time it's called. My workaround was to call gdImageFilledRectangle and fill the background with white manually in msLoadPalette(). My results so far have been discouraging. Mapserver creates all the images, but black seems to be the only color that works. The legend text prints out, and the scalebar works as well. Note that they both use only the color black. If anyone wants a diff so they can work on it, I'll whip one up. I'm going to continue fiddling with it. ;) BTW: If anyone has trouble linking GD 2.0.1 into mapserver on freebsd, email me for a fix. GD 2.0.1 is at: http://www.boutell.com/gd/manual2.0.1.html -Beau Gunderson From dgraham at i3.com Fri Jul 6 07:23:52 2001 From: dgraham at i3.com (David Graham) Date: Fri, 06 Jul 2001 08:23:52 -0600 Subject: [mapserver-users] GIF question Message-ID: <3B45C9F8.3050506@i3.com> I am a new user who just built my mapserver yesturday. I can't get the demo working because my latest GD does not support GIF It appears that Mapserver is built on GIF technology. What is the plan for Mapserver going forward? And those of you who are using it for serving on the web, how did you go about getting your Unisys Licenses? Is the only way I can build mapserv is to compile the gd1.2 that came with it and then hack the makefile to force it to look in the local directory for the object files? If someone who has delt with this problem could drop a line with some procedures they used I would apreciated it. Dave Graham information integration and imaging, LLC http://www.i3.com From steve.lime at dnr.state.mn.us Fri Jul 6 08:16:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 06 Jul 2001 10:16:24 -0500 Subject: [mapserver-users] GIF question Message-ID: It's built on GD, so whatever version of GD you use limits your output. MapServer is bound by the 8-bit limitations of GD 1.x not GIF. Version 3.4 allows you to use GD versions 1.2 through 1.8.x, but not the patched version of GD that allows GIF. With versions of GD that support multiple file formats there is a map level parameter IMAGETYPE that allows you to choose. 3.5 supports GD 1.3 to 1.8 including patched versions so with a fully decked out version you can output GIF/PNG/JPEG/WBMP. MapServer will support GD 2.x once it has stabilized a bit and 3.5 has been released. GD 1.2 is only used in the compile process as a last resort. There is a --with-gd configure option to change what version you're using. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> David Graham 07/06/01 09:23AM >>> I am a new user who just built my mapserver yesturday. I can't get the demo working because my latest GD does not support GIF It appears that Mapserver is built on GIF technology. What is the plan for Mapserver going forward? And those of you who are using it for serving on the web, how did you go about getting your Unisys Licenses? Is the only way I can build mapserv is to compile the gd1.2 that came with it and then hack the makefile to force it to look in the local directory for the object files? If someone who has delt with this problem could drop a line with some procedures they used I would apreciated it. Dave Graham information integration and imaging, LLC http://www.i3.com From morissette at dmsolutions.ca Fri Jul 6 08:57:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 06 Jul 2001 11:57:40 -0400 Subject: [mapserver-users] MapServer 3.5 OGR/MapInfo Demos Message-ID: <3B45DFF4.877D8F67@dmsolutions.ca> Hi, For those interested in the new MapServer OGR link that was added to MapServer 3.5, and especially the MapInfo users out there, we've setup 3 demos using some of the data contributed by MapServer users (we got more but had to stop :) that demonstrate various features of the new OGR link in MapServer: - Native support for MapInfo TAB files - Rendering of layers using colors and styles coming from the source file instead of by defining classes (the STYLEITEM AUTO param) - Use of "seamless TAB layers", the MapInfo equivalent of MapServer's tiled shapefiles. - Use of "PROJECTION AUTO" to read the projection defn directly from the source file instead of defining the PROJ4 parameters (for file formats that do carry a projection, that excludes shapefile) The demos are at: http://www2.dmsolutions.ca/msapps/nfld_demo/demo_init.html http://www2.dmsolutions.ca/msapps/yk_demo/demo_init.html http://www2.dmsolutions.ca/msapps/ro_demo/demo_init.html (See the notes at the bottom of each page for a description of which features they use) More details on the OGR link can be found in the OGR HOWTO at: http://mapserver.gis.umn.edu/doc/ogr-howto.html Finally, there's a MapServer 3.5 (pre-alpha) Windoze executable and PHP DLL that support this on our site at: http://www2.dmsolutions.ca/mapserver/dl/php4.0.5_php_mapscript_35.zip If you're on Unix and want to build from the CVS source, then make sure that you get the very latest GDAL/OGR source from CVS as well since there were a few fixes in OGR in the last couple of days that are required for this to work. BTW, thanks to all those who sent us some data for testing... -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bludwulf at crackrock.net Sat Jul 7 02:57:33 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Sat, 7 Jul 2001 02:57:33 -0700 (MST) Subject: [mapserver-users] How to get Webdings font to work for symbols? Message-ID: Is there anything special I have to do to get Webdings to work for symbols? I can get other truetype fonts to work, such as the ESRI fonts. (esri_1.ttf through esri_8.ttf) When I try the same thing with Wingdings (specifically wingdng2.ttf in win2k, although I'm trying it out on a freebsd machine) I just get a rectangle. (The typical undefined character rectangle). I notice that in the specs some characters are called in the &#num; format. That doesn't seem to work either. Any ideas? Thanks, Beau Gunderson From zhox at yeah.net Sun Jul 8 17:45:15 2001 From: zhox at yeah.net (Zhou Xu) Date: Mon, 9 Jul 2001 8:45:15 +0800 Subject: [mapserver-users] =?ISO-8859-1?Q?OGC's WMS interface =A1=AA=A1=AAMapServer=A3=BF=A3=A8Again=A3=A9?= Message-ID: <20010709005305.5498B1CC0C649@smtp2.yeah.net> mapserver-usersHi there, >From the list and the MapServer web site, I pick some words saying that the version3.5 surport OGC's WMS interface, but I could not find any even a little detailed discussion and information for that. If you know that, would you please to be so kind to tell me? Thank you very much! Zhou,Xu From steve.lime at dnr.state.mn.us Mon Jul 9 10:11:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 09 Jul 2001 12:11:58 -0500 Subject: [mapserver-users] RE: shptree Message-ID: I wrote the original code based on Franks quadtree indexing for his newer shapelib code. Another user took a shot at making the indexes portable, hence the new formats. That same user has been working on other modifications but no word on that. When paired with scale dependent display the indexing is *very* effective. I've seen draw times go from a minute to a second. The only problems I've seen or heard were with huge shapefiles although I've not experienced those myself. I index everything with more than a few thousand features. You can combine indexing with tiling by indexing the tile index as well as any tiled data. It's worth using! Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 07/05/01 15:28 PM >>> Steve - Is there any info/guidance/expertise available on SHPTREE tuning vs. tiled shapefiles vs. both? Tiling shapefiles is just another way to index the data for faster access (esp. trivial rejection), but it does mean you end up splitting features into multiple objects. I'd also be interested in more notes/comments from anyone on SHPTREE indexing experience, esp. with the "new index" format now available. - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, July 05, 2001 2:33 PM To: morissette at dmsolutions.ca; cathode at nichebox.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Building maps without a .map usingMapScript only On the mapObj issue, I've been doing that with the 3.5 perl version and queries for sometime now so I know it can work. Haven't tried a draw though. MapServer gets extents for layers by actually accessing the layers. For non-tiled data that involves opening the file and reading header info. For tiled data it's a bit smarter. It used the layer tileindex to determine which tiles to process and then proceeds through them. Sounds to me that's what you're refering to in the last couple of sentences. Users have used county-based GDT and Tiger for the whole country using MapServer. Of course you wouldn't want to display city streets for the whole country at once so tying layers to appropriate scales is important... BTW I will be adding a LAYER EXTENT property to that you can bypass the file header check. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Rob Martinson" 07/05/01 12:43PM >>> Thanks for such a quick reply. I'll add myself to Bugzilla and continue playing with this. Maybe I'll experiment a bit with Mapscript in Perl to see if I get the same results. I have a small working sample of Spokane County (ctycu poly, water polys, place polys and streets)based on TIGER 97 data and have had great luck so far. Mapserver is fast! I do have one question though. Since SDE is the only db format available currently I have to deal with shape files (and hopefully TAB if I can get OGR working right). How does Mapserver (or does it) handle loading layers outside of the current extent? If I have a single map with street layers for the country by county or state and I zoom to an extent where they should be displayed (to a place polygon for example) does Mapserver attempt to load the street layer for the next county over if it's included in the .map definition? It seems to me that it has no idea where the extents are unless it does in fact load each layer so I'd like to load layers dynamically based on the requested extent of the view. Am I way off base here? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Thursday, July 05, 2001 8:21 PM > To: Rob Martinson > Cc: 'MapServer List' > Subject: Re: [mapserver-users] Building maps without a .map > using MapScript only > > > Rob Martinson wrote: > > > > With the PHP library I'm using ms_newMapObj('') to return > an empty map > > object to work with. The Mapscript documentation states > that this will > > return an emtpy object, the PHP does not specifically state > this, but > > I get no errors at this line. After adding layers and > classes I get an > > error stating "Invalid Handle" whenever I attempt to call the draw > > method of the map using the above. > > > > The same mapping functionality when I use an existing .map > file seem > > to work fine. > > > > Rob, > > I looked at the php_mapscript.c code quickly and I see no > reason why this wouldn't work. It must be a bug that will > have to be looked into, hopefully before the 3.5 release. > > I filed it in the bugzilla system as > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23 > You can add yourself to the CC: field in the bugzilla > interface if you want to be notified when the bug gets fixed. > > Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From dblasby at refractions.net Mon Jul 9 12:25:20 2001 From: dblasby at refractions.net (Dave Blasby) Date: Mon, 09 Jul 2001 12:25:20 -0700 Subject: [mapserver-users] Native PostGIS support in mapserver References: Message-ID: <3B4A0520.D7859DD3@refractions.net> > Also note that the PostGIS authors are working on native support. They've been > shown around the source and have started working on it, no word on progress > though. Also note that a couple of groups are working on Oracle Spatial support... Native PostGIS support in mapserver is in the testing phase. We have been testing it on (1) solaris PostGIS server with an i386 linux mapserver client and (2) PostGIS and mapserver on the same i386 server. The PostGIS performance has been about 1/2 to 1/3 the speed as using shapefiles on a RAID device. Our test machine is a fast athlon running linux with a RAID filesystem. Our test dataset is about 200,000 roads. Both mapserver and PostGIS/postgres are running on the same machine. To make a map of a very small area (about 25 roads), it takes about 0.25 seconds using PostGIS and about 0.1 seconds using shapefiles. To make a map of all the 200,000 roads, its takes about 4.5 seconds using PostGIS and about 1.3 seconds using shapefiles. The process works as: -> -> -> There should be lots of places to do some optimizations. I just came back from a holiday, and paul is still away on holiday, so it'll be a while before I can get it all wrapped up nicely, tested, and get a proper configure script. Once thats done, we'll make a release. If anyone out there can help with the "./configure" script, we'd really appreciate it. If you want to see the current version, I'd be happy to tar it up and send it out to you. dave ps. thanks to Daniel Morissette and the other authors (Frank Warmerdam???) of mapogr.cpp for writing easy-to-understand code. And to Stephen Lime for explaining the zen of maplayer.c. From bertha_bonita at yahoo.com Mon Jul 9 19:35:36 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Tue, 10 Jul 2001 04:35:36 +0200 (CEST) Subject: [mapserver-users] a very simple question Message-ID: <20010710023536.12468.qmail@web4206.mail.yahoo.com> hi list somebody can say me what is the difference between zoom [number] and zoomdir [1|0|-1] thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicaci?n instant?nea gratis con tu gente - http://messenger.yahoo.es From drish at drish.net Tue Jul 10 07:58:31 2001 From: drish at drish.net (Drew) Date: Wed, 11 Jul 2001 00:58:31 +1000 Subject: [mapserver-users] ISCGM maps compatible? References: <20010710023536.12468.qmail@web4206.mail.yahoo.com> Message-ID: <006101c10950$cc4e4600$0300000a@dhr> I downloaded a map of Australia from http://www.iscgm.org/ all I can find about the information is it's in Vector Product Format. Is this compatible with mapserver? If so, how do I convert it for use? -D From Michael.Hearne at noaa.gov Tue Jul 10 08:20:03 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Tue, 10 Jul 2001 11:20:03 -0400 Subject: [mapserver-users] compiling mapimage applet References: <20010710023536.12468.qmail@web4206.mail.yahoo.com> Message-ID: <3B4B1D23.598B34C2@noaa.gov> I'm trying to re-compile the mapimage applet from source, and I can't figure out where the netscape.javascript.* jar files are on my Solaris box. Does anybody know the _name_ of the jar file in question, and maybe even where it usually lives on a Sun system? Thanks, Mike -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From andreag at geoplan.ufl.edu Tue Jul 10 10:22:38 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Tue, 10 Jul 2001 13:22:38 -0400 Subject: [mapserver-users] SDE performance and error Message-ID: <3B4B39DE.66FF945D@geoplan.ufl.edu> I thought the posting the other day about the performance of PostGIS vs shapefiles was interesting. >>The PostGIS performance has been about 1/2 to 1/3 the speed as using >>shapefiles on a RAID device. I have been looking at shapefiles vs SDE and Oracle. In that email Dave noted that there should be places where optimization could take place. Similarly, I have been told that SDE and Oracle both can be "tuned" (whatever that entails) to speed up the process. Neither our SDE nor our Oracle has been tuned yet. Having said that it appears that shapefiles are faster than SDE. For initial testing purposes I accessed shapefiles on a different machine than mapserver was running on, which is the same machine the SDE server is on. The Oracle 8.1.x is on a third machine. ------------------- --------------- --------- mapserver | | shapefiles | | | | --- | | --- | Oracle | apache web server | | SDE server | | | ------------------- --------------- --------- Linux Linux Solaris At the worst case SDE took 4 times longer than shapefiles. This seems to occur for the larger datasets (ex: a shapefile of size: 12.6 MB .shp, 4.5 MB .dbf took on average 10.5 seconds to access for an SDE layer; 2.6 seconds for a shapefile) For the smaller datasets and especially at smaller scales, the difference between them is less. (ex: a shapefile of size: 294 KB .shp, 419 KB .dbf took an average of 1.7 seconds for the SDE layer, and 1.3 seconds for the shapefile.) I don't know if the slowdown is the communication between SDE and Oracle, the extra hop to the Oracle machine, or just SDE itself. Beyond the speed issue, every once in a while I would get an error trying to access SDE layers, but only when trying to access the larger layers (in filesize): msSDELayerNextShape(): SDE error. SE_stream_fetch(): Network I/O error. (-10) According to the SDE book, an error code of -10 means that "a catastrophic error occurred during a client/server round-trip request and the connection between the client task and the server was severed" Is there a limit set somewhere as to how much data can be sent? No errors like this were found accessing the same datasets from ESRI's ArcView. Anybody else getting this error? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From mckenna at dmsolutions.ca Tue Jul 10 11:42:16 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 10 Jul 2001 14:42:16 -0400 Subject: [mapserver-users] MapServer 3.5 OGR/MapInfo Demos References: <3B45DFF4.877D8F67@dmsolutions.ca> Message-ID: <3B4B4C88.BC185E37@dmsolutions.ca> Hello, The Mapserver 3.5 (pre-alpha) Windows executable that was mentioned below was in fact corrupt, and the new executable is on our site at: http://www2.dmsolutions.ca/webtools/dl/php4.0.6_php_mapscript_35.zip Have fun, Jeff Daniel Morissette wrote: > Hi, > > For those interested in the new MapServer OGR link that was added to > MapServer 3.5, and especially the MapInfo users out there, we've setup 3 > demos using some of the data contributed by MapServer users (we got more > but had to stop :) that demonstrate various features of the new OGR link > in MapServer: > - Native support for MapInfo TAB files > - Rendering of layers using colors and styles coming from the > source file instead of by defining classes (the STYLEITEM AUTO param) > - Use of "seamless TAB layers", the MapInfo equivalent of MapServer's > tiled shapefiles. > - Use of "PROJECTION AUTO" to read the projection defn directly from > the source file instead of defining the PROJ4 parameters (for file > formats that do carry a projection, that excludes shapefile) > > The demos are at: > http://www2.dmsolutions.ca/msapps/nfld_demo/demo_init.html > http://www2.dmsolutions.ca/msapps/yk_demo/demo_init.html > http://www2.dmsolutions.ca/msapps/ro_demo/demo_init.html > (See the notes at the bottom of each page for a description of which > features they use) > > More details on the OGR link can be found in the OGR HOWTO at: > http://mapserver.gis.umn.edu/doc/ogr-howto.html > > Finally, there's a MapServer 3.5 (pre-alpha) Windoze executable and PHP > DLL that support this on our site at: > http://www2.dmsolutions.ca/mapserver/dl/php4.0.5_php_mapscript_35.zip > If you're on Unix and want to build from the CVS source, then make sure > that you get the very latest GDAL/OGR source from CVS as well since > there were a few fixes in OGR in the last couple of days that are > required for this to work. > > BTW, thanks to all those who sent us some data for testing... > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. ----------------------------- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca From LBallard at YesVirginia.org Tue Jul 10 12:43:11 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Tue, 10 Jul 2001 15:43:11 -0400 Subject: [mapserver-users] SDE performance and error Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CCB0@communications> My general experience has been that for very large data sets SDE will smoke a shapefile. This is only true however if the SDE and Oracle instances are tuned AND your requests is limited in extent (i.e., don't try to draw all the contours for the state of Virginia when zoomed all the way out). If your view window is of reasonable size SDE will smoke -- assuming things are tuned correctly. It makes sense if you think about the process. If you ask a database for the ALL the records you need to go through the DB, SDE blah blah and it would probably be easier to get a single file. However, if you only want a few records (i.e., spatial features) a DB can consult an index, search it very fast and return your request. I think the same idea can be used for small data sets. Do I really need to go through the DB/SDE etc. for the county boundaries? Probably not.... I'm curious how you have SDE on a Linux Box? Did you get a pre-release or something? The tuning comes in many levels. These range from hardware (e.g., RAID configurations, network hardware) to Oracle (about a million setting here) and SDE (i.e., grid tiling mostly). Each SDE layer needs to be tuned separately. It's a bit of a pain but it needs to be done. Don't use the GUI Arc Loaders---use the command line SDE tools. On ESRI's website you can get the SDELoader/SDEMonitor utils to help with tuning a bit. As for the error I haven't seen that one. I'm still having a few issues with queries against SDE from ms but....none exactly like that. -----Original Message----- From: Andrea Goethals [mailto:andreag at geoplan.ufl.edu] Sent: Tuesday, July 10, 2001 1:23 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] SDE performance and error I thought the posting the other day about the performance of PostGIS vs shapefiles was interesting. >>The PostGIS performance has been about 1/2 to 1/3 the speed as using >>shapefiles on a RAID device. I have been looking at shapefiles vs SDE and Oracle. In that email Dave noted that there should be places where optimization could take place. Similarly, I have been told that SDE and Oracle both can be "tuned" (whatever that entails) to speed up the process. Neither our SDE nor our Oracle has been tuned yet. Having said that it appears that shapefiles are faster than SDE. For initial testing purposes I accessed shapefiles on a different machine than mapserver was running on, which is the same machine the SDE server is on. The Oracle 8.1.x is on a third machine. ------------------- --------------- --------- mapserver | | shapefiles | | | | --- | | --- | Oracle | apache web server | | SDE server | | | ------------------- --------------- --------- Linux Linux Solaris At the worst case SDE took 4 times longer than shapefiles. This seems to occur for the larger datasets (ex: a shapefile of size: 12.6 MB .shp, 4.5 MB .dbf took on average 10.5 seconds to access for an SDE layer; 2.6 seconds for a shapefile) For the smaller datasets and especially at smaller scales, the difference between them is less. (ex: a shapefile of size: 294 KB .shp, 419 KB .dbf took an average of 1.7 seconds for the SDE layer, and 1.3 seconds for the shapefile.) I don't know if the slowdown is the communication between SDE and Oracle, the extra hop to the Oracle machine, or just SDE itself. Beyond the speed issue, every once in a while I would get an error trying to access SDE layers, but only when trying to access the larger layers (in filesize): msSDELayerNextShape(): SDE error. SE_stream_fetch(): Network I/O error. (-10) According to the SDE book, an error code of -10 means that "a catastrophic error occurred during a client/server round-trip request and the connection between the client task and the server was severed" Is there a limit set somewhere as to how much data can be sent? No errors like this were found accessing the same datasets from ESRI's ArcView. Anybody else getting this error? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From Michael.Hearne at noaa.gov Tue Jul 10 14:03:21 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Tue, 10 Jul 2001 17:03:21 -0400 Subject: [mapserver-users] compiling mapimage applet References: <20010710023536.12468.qmail@web4206.mail.yahoo.com> <3B4B1D23.598B34C2@noaa.gov> Message-ID: <3B4B6D99.20448D5@noaa.gov> I managed to solve my own problem, so for Posterity's sake, here's what I did: javac -classpath /usr/local/lib/netscape477/java/classes/java40.jar mapimage.java Substitute the actual path to netscape when trying this at home. I did get some helpful hints from people, so thanks for those. -Mike Michael Hearne wrote: > > I'm trying to re-compile the mapimage applet from source, and I can't > figure out where the netscape.javascript.* jar files are on my Solaris > box. Does anybody know the _name_ of the jar file in question, and > maybe even where it usually lives on a Sun system? > > Thanks, > > Mike > > -- > Michael G. Hearne email: Michael.Hearne at noaa.gov > Coastal Remote Sensing phone: 843 740-1281 > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > 2234 S. Hobson Ave., Charleston, SC 29407 -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From assefa at dmsolutions.ca Tue Jul 10 15:12:32 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 10 Jul 2001 18:12:32 -0400 Subject: [mapserver-users] MapServer 3.5 OGR/MapInfo Demos References: <3B45DFF4.877D8F67@dmsolutions.ca> <3B4B4C88.BC185E37@dmsolutions.ca> Message-ID: <3B4B7DD0.3989E9B7@dmsolutions.ca> Hi, Sorry with the confusion with the versions (my fault ;) Here is the status : - php4.05 with latest mapserver source code (works ok) : http://www2.dmsolutions.ca/mapserver/dl/php4.0.5_php_mapscript_35.zip - I have a problem with php4.0.6 (php_mapscript_35.dll). I will be working on it and update our site when I have a working version. Best Regards, Jeff McKenna wrote: > Hello, > > The Mapserver 3.5 (pre-alpha) Windows executable that was mentioned below > was in fact corrupt, and the new executable is on our site at: > http://www2.dmsolutions.ca/webtools/dl/php4.0.6_php_mapscript_35.zip > > Have fun, > > Jeff > > Daniel Morissette wrote: > > > Hi, > > > > For those interested in the new MapServer OGR link that was added to > > MapServer 3.5, and especially the MapInfo users out there, we've setup 3 > > demos using some of the data contributed by MapServer users (we got more > > but had to stop :) that demonstrate various features of the new OGR link > > in MapServer: > > - Native support for MapInfo TAB files > > - Rendering of layers using colors and styles coming from the > > source file instead of by defining classes (the STYLEITEM AUTO param) > > - Use of "seamless TAB layers", the MapInfo equivalent of MapServer's > > tiled shapefiles. > > - Use of "PROJECTION AUTO" to read the projection defn directly from > > the source file instead of defining the PROJ4 parameters (for file > > formats that do carry a projection, that excludes shapefile) > > > > The demos are at: > > http://www2.dmsolutions.ca/msapps/nfld_demo/demo_init.html > > http://www2.dmsolutions.ca/msapps/yk_demo/demo_init.html > > http://www2.dmsolutions.ca/msapps/ro_demo/demo_init.html > > (See the notes at the bottom of each page for a description of which > > features they use) > > > > More details on the OGR link can be found in the OGR HOWTO at: > > http://mapserver.gis.umn.edu/doc/ogr-howto.html > > > > Finally, there's a MapServer 3.5 (pre-alpha) Windoze executable and PHP > > DLL that support this on our site at: > > http://www2.dmsolutions.ca/mapserver/dl/php4.0.5_php_mapscript_35.zip > > If you're on Unix and want to build from the CVS source, then make sure > > that you get the very latest GDAL/OGR source from CVS as well since > > there were a few fixes in OGR in the last couple of days that are > > required for this to work. > > > > BTW, thanks to all those who sent us some data for testing... > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > ----------------------------- > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > Ottawa, Ontario > http://www.dmsolutions.ca -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ludovic at siterra.com Tue Jul 10 18:27:05 2001 From: Ludovic at siterra.com (Ludovic Tenant) Date: Tue, 10 Jul 2001 18:27:05 -0700 Subject: [mapserver-users] reference image extent Message-ID: An HTML attachment was scrubbed... URL: From claude.philipona at skirando.ch Wed Jul 11 01:51:58 2001 From: claude.philipona at skirando.ch (Claude Philipona) Date: Wed, 11 Jul 2001 10:51:58 +0200 Subject: [mapserver-users] Scale calculation In-Reply-To: <509989F9E1D38D47ADA73ED9CF5BF32A16CCB0@communications> Message-ID: <001c01c109e6$bea55980$1500a8c0@bsa> I don't quite understand how scale are calculated. I know that mapserver uses 72 pixel per inch to calculate the scale. I've a tif raster map where 1 pixel = 2.5 meter. Here is the tfw file: 2.500 0. 0. -2.500 558751.250 121998.750 I want to calculate the right scale to render 1 pixel in the original tif file will give 1 pixel in the mpaserver map (no resizing) -> size of 1 pixel on screen = 1/72 inch = 2.54/72 cm = 0.0352777777 cm (based on constant used by mapserver, I don't care about the real size on the screen) -> size of 1 pixel on tif raster map = 2.5 m = 250 cm -> scale calculation to render one pixel from the raster map to one pixel to mapservermap: 0.035277777 : 250 -> 1:7086.6 If I used this setting MINSACLE 7086 in .map file, I don't get the one to one pixel ratio and the original map is resized by mapserver. I've tried to empiracally set the scale and I found a scale of about 5300, which would mean that the constant used by Mapserver is about 53.85 pixel per inch. Even the behaviour of this scale factor is strange, the scalebar is perfectly rendered (size of the scalebar corresponds to the size of the features on the map) What is wrong? Do you have any idea? Claude Philipona From claude.philipona at skirando.ch Wed Jul 11 02:58:34 2001 From: claude.philipona at skirando.ch (Claude Philipona) Date: Wed, 11 Jul 2001 11:58:34 +0200 Subject: [mapserver-users] rosa applet and png In-Reply-To: Message-ID: <001f01c109f0$0c875000$1500a8c0@bsa> I know that the rosa applet doesn't support png map at this time. Is there any plan to include png format support to the rosa applet. I'm not so fluent in Java... I would like to use the applet, but I don't want use either of gif (licence problem) or jpeg format (raster map I have don't render nice with jpeg, even with high quality settings)? Does the mapplet class support png? Claude Philipona From nwerneck at aquarius Wed Jul 11 04:52:16 2001 From: nwerneck at aquarius (Nicolau Werneck,,,) Date: Wed, 11 Jul 2001 08:52:16 -0300 Subject: [mapserver-users] latitude-longitude files In-Reply-To: ; from Ludovic@siterra.com on Tue, Jul 10, 2001 at 06:27:05PM -0700 References: Message-ID: <20010711085216.A611@aquarius> HI I'm looking for information on how to deal with mapserver's projection facilities. I'm working with files imported from mapinfo in latitude/longitude format, and I discovered too late that it's being interpreted as in meters. Everything works fine, but the scale calculations do not have meaning. How can I fix this without creating the SHP files again? thanks... --Nicolau From drish at drish.net Wed Jul 11 05:01:17 2001 From: drish at drish.net (Drew) Date: Wed, 11 Jul 2001 22:01:17 +1000 Subject: [mapserver-users] export for mapserver References: <001c01c109e6$bea55980$1500a8c0@bsa> Message-ID: <003801c10a01$3178f420$0300000a@dhr> I just got a 4 cd set of data I needed, unfortunately I have no idea what format it is. I have Microstation which will view it, they are .d2d and .d3d files if that means something to anyone. Microstation will export to DWG, DXF, IGES, CGM, GRD and Quickvision, will one of those work in mapserver, or one that will convert to shapefile? It would be a pain exporting with microstation though, as I have to do each tile manually... hours and hours of work. Will something else read .d2d or .d3d files and batch export to something usable? that is, if they won't work natively. thanks Drew From rchavez at perseus.tufts.edu Wed Jul 11 05:47:49 2001 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Wed, 11 Jul 2001 08:47:49 -0400 Subject: [mapserver-users] rosa applet and png References: <001f01c109f0$0c875000$1500a8c0@bsa> Message-ID: <001401c10a07$b11e0cf0$38024082@perseus.tufts.edu> I have a version of Steve's mapplet that does support PNG. Currently, I'm working finding a preprocessor that will help make the PNG mapplet code available to everyone. If you would like, I could forward to you the PNG libraries and mapplet source code. All you would need to do is compile the source and put all the class files in a web accessible directory. Regards, Rob Chavez *********************************************** Robert Chavez Programmer, GIS Specialist Perseus Project Tufts University Department of Classics 124 Eaton Hall Medford, MA 02155 Tel: 617-627-3830 Fax: 617-627-3032 Email: rchavez at perseus.tufts.edu Web: www.perseus.tufts.edu ----- Original Message ----- From: "Claude Philipona" To: Sent: Wednesday, July 11, 2001 5:58 AM Subject: [mapserver-users] rosa applet and png > I know that the rosa applet doesn't support png map at this time. > > Is there any plan to include png format support to the rosa applet. I'm not so > fluent in Java... > > I would like to use the applet, but I don't want use either of gif (licence > problem) or jpeg format (raster map I have don't render nice with jpeg, even with > high quality settings)? > > Does the mapplet class support png? > > Claude Philipona From JONIEB99 at smumn.edu Wed Jul 11 05:48:00 2001 From: JONIEB99 at smumn.edu (Justin Niebuhr) Date: Wed, 11 Jul 2001 07:48:00 -0500 Subject: [mapserver-users] Unsubscribe Message-ID: <3B3F3313@smumn.edu> unsubscribe From andreag at geoplan.ufl.edu Wed Jul 11 08:54:56 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 11 Jul 2001 11:54:56 -0400 Subject: [mapserver-users] SDE performance and error References: <509989F9E1D38D47ADA73ED9CF5BF32A16CCB0@communications> Message-ID: <3B4C76D0.D41C9D7E@geoplan.ufl.edu> > > My general experience has been that for very large data sets SDE will smoke > a shapefile. This is only true however if the SDE and Oracle instances are > tuned AND your requests is limited in extent (i.e., don't try to draw all > the contours for the state of Virginia when zoomed all the way out). I hope this is the case. We should get something out of the extra effort and money they take! Like I said, neither our SDE or Oracle have been tuned yet. Thanks for the advice about the command-line SDE tools. Please pass on any other tuning tips you have. > I'm curious how you have SDE on a Linux Box? Did you get a pre-release or > something? Sorry I mixed my ASCII art up. It should read: > ------------------- --------------- --------- > mapserver | | shapefiles | | | > | --- | | --- | Oracle | > apache web server | | SDE server | | | > ------------------- --------------- --------- > Linux Solaris Linux Andrea From ed at topozone.com Wed Jul 11 09:43:58 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 11 Jul 2001 12:43:58 -0400 Subject: [mapserver-users] Simple image compositing / alpha channel work? Message-ID: <13858AA1A74F30419F319ACB66A9D122CE6D@mercator.topozone.com> Folks - Has anyone done any raster image compositing or alpha channel work for MapServer? I've got a gray-scale shaded relief basemap image that I'd like to use, initially with just another raster layer merged on top of it, and I need some simple alpha support (or a reasonable substitute). I'm starting with the OFFSITE parameter's all-or-nothing approach, but before I dig in and start coding I figured I'd check to see if there's any other applicable work out there. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From Rich at GreenwoodMap.com Wed Jul 11 10:17:18 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 11 Jul 2001 11:17:18 -0600 Subject: [mapserver-users] PostgreSQL Performance Tuning Message-ID: <5.1.0.14.0.20010711111433.03434ef8@mail.GreenwoodMap.com> A couple recent message have mentioned performance tuning - this month's Linux Journal has an article titled "PostgreSQL Performance Tuning". If you don't get Linux Journal, you can read it on line at: http://www2.linuxjournal.com/cgi-bin/frames.pl/index.html Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From steve.lime at dnr.state.mn.us Wed Jul 11 10:29:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Jul 2001 12:29:44 -0500 Subject: [mapserver-users] Simple image compositing / alpha channel work? Message-ID: Raster classes might be just the ticket. For example, say you're using DRG overlays. You could just show vegetation by isolating the 'green' pixels and setting everything else to transparent. Should work ok, but has not been used by many folks. If possible use 3.5 so if there are problems we can fix them in the development source ASAP. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 07/11/01 11:43AM >>> Folks - Has anyone done any raster image compositing or alpha channel work for MapServer? I've got a gray-scale shaded relief basemap image that I'd like to use, initially with just another raster layer merged on top of it, and I need some simple alpha support (or a reasonable substitute). I'm starting with the OFFSITE parameter's all-or-nothing approach, but before I dig in and start coding I figured I'd check to see if there's any other applicable work out there. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From Rich at GreenwoodMap.com Wed Jul 11 11:44:41 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 11 Jul 2001 12:44:41 -0600 Subject: [mapserver-users] Scale calculation In-Reply-To: <001c01c109e6$bea55980$1500a8c0@bsa> References: <509989F9E1D38D47ADA73ED9CF5BF32A16CCB0@communications> Message-ID: <5.1.0.14.0.20010711123706.00aaf1b8@mail.GreenwoodMap.com> Your math makes sense to me. Are your units set to meters in your map file? This is the code that calculates the scale: md = (width-1)/(MS_PPI*inchesPerUnit[units]); gd = extent.maxx - extent.minx; scale = gd/md; where: width is your map width in screen pixels MS_PPI = 72 inchesPerUnit[units] = 39.3701 (assuming you are using meters) gd is the width of the map in real world units At 10:51 AM 7/11/2001 +0200, you wrote: >I don't quite understand how scale are calculated. I know that mapserver >uses 72 >pixel per inch to calculate the scale. > >I've a tif raster map where 1 pixel = 2.5 meter. Here is the tfw file: >2.500 >0. >0. >-2.500 >558751.250 >121998.750 > >I want to calculate the right scale to render 1 pixel in the original tif file >will give 1 pixel in the mpaserver map (no resizing) > >-> size of 1 pixel on screen = 1/72 inch = 2.54/72 cm = 0.0352777777 cm >(based >on constant used by mapserver, I don't care about the real size on the screen) > >-> size of 1 pixel on tif raster map = 2.5 m = 250 cm > >-> scale calculation to render one pixel from the raster map to one pixel to >mapservermap: >0.035277777 : 250 -> 1:7086.6 > >If I used this setting MINSACLE 7086 in .map file, I don't get the one to one >pixel ratio and the original map is resized by mapserver. > >I've tried to empiracally set the scale and I found a scale of about 5300, >which >would mean that the constant used by Mapserver is about 53.85 pixel per inch. > >Even the behaviour of this scale factor is strange, the scalebar is perfectly >rendered (size of the scalebar corresponds to the size of the features on the >map) > >What is wrong? Do you have any idea? > >Claude Philipona Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From vanderwalm at gaiaenv.com Wed Jul 11 11:54:02 2001 From: vanderwalm at gaiaenv.com (Mel VanderWal) Date: Wed, 11 Jul 2001 12:54:02 -0600 Subject: [mapserver-users] Simple image compositing / alpha channel work? Message-ID: Ed; If I'm understanding your intent properly, what you'd like to do is composite the hillshade into a second image to give the second image the relief effect shown in the hillshade. I'm not sure about using the OFFSITE parameter or using an alpha channel. The way I've done this before is to get a brightness factor (greyscale value / 256) to get a floating point value between 0-1.0. Then multiply each color channel of a 24 bit image by the brightness factor to get an integer between 0-255, and combine the new R,G, & B channels into a 24 bit image. Then you'd have to drop the 24 bit image to 8 bit paletted for use in MapServer. This was done in a GIS using grid datasets; I don't know if there's any C code out there to do the same thing. Hope this helps you. Regards, Mel Mel VanderWal GIS 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 >-----Original Message----- >From: owner-mapserver-users at lists.gis.umn.edu >[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Ed >McNierney >Sent: Wednesday, July 11, 2001 10:44 AM >To: mapserver-users >Subject: [mapserver-users] Simple image compositing / alpha channel >work? > > >Folks - > >Has anyone done any raster image compositing or alpha channel work for >MapServer? I've got a gray-scale shaded relief basemap image that I'd >like to use, initially with just another raster layer merged on top of >it, and I need some simple alpha support (or a reasonable substitute). >I'm starting with the OFFSITE parameter's all-or-nothing approach, but >before I dig in and start coding I figured I'd check to see if there's >any other applicable work out there. Thanks! > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com >ed at topozone.com >(978) 251-4242 From ed at topozone.com Wed Jul 11 12:23:52 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 11 Jul 2001 15:23:52 -0400 Subject: [mapserver-users] Scale calculation Message-ID: <13858AA1A74F30419F319ACB66A9D122CE71@mercator.topozone.com> Claude - The math looks fine. Do the WIDTH and HEIGHT properties of your IMG tag (for displaying the map) match the SIZE parameter in your MAP file? For example, your template file might have: and your MAP file include the line SIZE 600 600 This will cause MapServer to generate a 600x600 pixel image that the client's browser will squeeze into a 400x400 pixel display. Depending on the values involved, the result can look rather "normal" and you wouldn't see a problem. But the scale will be wrong because the browser is resizing the image without MapServer's knowledge. - Ed Ed McNierney Chief Mapmaker TopoZone.com (978) 251-4242 -----Original Message----- From: Claude Philipona [mailto:claude.philipona at skirando.ch] Sent: Wednesday, July 11, 2001 4:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Scale calculation I don't quite understand how scale are calculated. I know that mapserver uses 72 pixel per inch to calculate the scale. I've a tif raster map where 1 pixel = 2.5 meter. Here is the tfw file: 2.500 0. 0. -2.500 558751.250 121998.750 I want to calculate the right scale to render 1 pixel in the original tif file will give 1 pixel in the mpaserver map (no resizing) -> size of 1 pixel on screen = 1/72 inch = 2.54/72 cm = 0.0352777777 cm (based on constant used by mapserver, I don't care about the real size on the screen) -> size of 1 pixel on tif raster map = 2.5 m = 250 cm -> scale calculation to render one pixel from the raster map to one pixel to mapservermap: 0.035277777 : 250 -> 1:7086.6 If I used this setting MINSACLE 7086 in .map file, I don't get the one to one pixel ratio and the original map is resized by mapserver. I've tried to empiracally set the scale and I found a scale of about 5300, which would mean that the constant used by Mapserver is about 53.85 pixel per inch. Even the behaviour of this scale factor is strange, the scalebar is perfectly rendered (size of the scalebar corresponds to the size of the features on the map) What is wrong? Do you have any idea? Claude Philipona From morissette at dmsolutions.ca Wed Jul 11 12:27:41 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 11 Jul 2001 15:27:41 -0400 Subject: [mapserver-users] Re: Mapscript/PHP and TIFF References: <3E3C279AF3F9D411BAA00002A529150E2424BC@S0-OTT-X10> Message-ID: <3B4CA8AC.DAA862D4@dmsolutions.ca> "Rupert, James" wrote: > > Hello Daniel, > > I have encounter a problem with PHP/mapscript and TIFF images. If I use > mapserver standalone the TIFF image appears properly. If I draw the same map > file through PHP/mapscript the image is output as a mirror image and is > rotated 90 degrees anti-clockwise. Any thoughts. > > Jamie Jamie, PHP/MapScript does nothing special about the way things are drawn. Are your 'mapserv' CGI and your PHP MapScript compiled with the exact same options? Perhaps one of them uses native TIFF support in MapServer and the other one uses GDAL's TIFF support? (If so then we'll have to find out why they behave differently.) Maybe Frank, Steve, or someone else on the list already ran into a similar problem and will have some ideas? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Wed Jul 11 12:40:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Jul 2001 14:40:14 -0500 Subject: [mapserver-users] Re: Mapscript/PHP and TIFF Message-ID: This is a GD issue. You must've compiled with a different version than PHP was compiled with. In GD 1.2 the image array in GD is column major (i.e. img[x][y]) and in subsequent versions they switched that to row major for performance reasons. Get the versions of GD in sync and I believe the problem will disappear. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 07/11/01 02:27PM >>> "Rupert, James" wrote: > > Hello Daniel, > > I have encounter a problem with PHP/mapscript and TIFF images. If I use > mapserver standalone the TIFF image appears properly. If I draw the same map > file through PHP/mapscript the image is output as a mirror image and is > rotated 90 degrees anti-clockwise. Any thoughts. > > Jamie Jamie, PHP/MapScript does nothing special about the way things are drawn. Are your 'mapserv' CGI and your PHP MapScript compiled with the exact same options? Perhaps one of them uses native TIFF support in MapServer and the other one uses GDAL's TIFF support? (If so then we'll have to find out why they behave differently.) Maybe Frank, Steve, or someone else on the list already ran into a similar problem and will have some ideas? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From hossam at GeoAnalytics.com Wed Jul 11 12:45:41 2001 From: hossam at GeoAnalytics.com (Hossam Abdel Sayed) Date: Wed, 11 Jul 2001 14:45:41 -0500 Subject: [mapserver-users] Zooming and Panning using PHP/MapScript Message-ID: Hi Folks I'm trying to use PHP MapScript to zoom in/out and pan through the map by clicking on the map image. I gues that's pretty basic, but I'm still new to PHP/MapScript. I'm looking to basic zooming in/out or panning, pretty similar to the traditional Mapserver demo. I'll apreciate your help Hossam From steve.lime at dnr.state.mn.us Wed Jul 11 13:37:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 11 Jul 2001 15:37:33 -0500 Subject: [mapserver-users] ISCGM maps compatible? Message-ID: Um, no, not if I read the metadata correctly. VPF is not supported by MapServer natively or via OGR. Sorry. ESRI has an extension to work with VPF data directly in ArcView and I would imagine NIMA would have some tools too. OpenMap seems to have some conversion tools as well. Search Google with VPF and shapefile and you'll get lot's of hits. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Drew" 07/10/01 09:58AM >>> I downloaded a map of Australia from http://www.iscgm.org/ all I can find about the information is it's in Vector Product Format. Is this compatible with mapserver? If so, how do I convert it for use? -D From cathode at nichebox.com Wed Jul 11 15:21:04 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 12 Jul 2001 01:21:04 +0300 Subject: [mapserver-users] Zooming and Panning using PHP/MapScript In-Reply-To: Message-ID: <005301c10a57$c9d7cc40$8200a8c0@nichebox1> Hossam, I have a small sample where I've been playing with functionality at: http://maps.nichebox.com/ This uses PHP4 sessions to maintain current and max extents. Source for both files used can be found at: http://maps.nichebox.com/mapserver/ It's small and simple, but it works. Hope this helps. Also, I'll be putting up a public QA database somewhere on this site later this afternoon. Hopefully we can get some good user-to-user Q & A going for specific implementation problems and ideas. Will post that URL shortly. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Hossam Abdel Sayed > Sent: Wednesday, July 11, 2001 10:46 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Zooming and Panning using PHP/MapScript > > > Hi Folks > > I'm trying to use PHP MapScript to zoom in/out and pan > through the map by clicking on the map image. I gues that's > pretty basic, but I'm still new to PHP/MapScript. > > I'm looking to basic zooming in/out or panning, pretty > similar to the traditional Mapserver demo. > > I'll apreciate your help > > Hossam > > > > > > > > From gmader at GeoAnalytics.com Wed Jul 11 19:07:57 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Wed, 11 Jul 2001 21:07:57 -0500 Subject: [mapserver-users] Zooming and Panning using PHP/MapScript Message-ID: Rob, COOL! Please continue to contribute mapscript/PHP stuff. This helps the dearth of documentation on it. Greg -----Original Message----- From: Rob Martinson To: 'Hossam Abdel Sayed'; mapserver-users at lists.gis.umn.edu Sent: 7/11/01 5:21 PM Subject: RE: [mapserver-users] Zooming and Panning using PHP/MapScript Hossam, I have a small sample where I've been playing with functionality at: http://maps.nichebox.com/ This uses PHP4 sessions to maintain current and max extents. Source for both files used can be found at: http://maps.nichebox.com/mapserver/ It's small and simple, but it works. Hope this helps. Also, I'll be putting up a public QA database somewhere on this site later this afternoon. Hopefully we can get some good user-to-user Q & A going for specific implementation problems and ideas. Will post that URL shortly. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Hossam Abdel Sayed > Sent: Wednesday, July 11, 2001 10:46 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Zooming and Panning using PHP/MapScript > > > Hi Folks > > I'm trying to use PHP MapScript to zoom in/out and pan > through the map by clicking on the map image. I gues that's > pretty basic, but I'm still new to PHP/MapScript. > > I'm looking to basic zooming in/out or panning, pretty > similar to the traditional Mapserver demo. > > I'll apreciate your help > > Hossam > > > > > > > > From JohnHockaday at auslig.gov.au Thu Jul 12 01:38:15 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 12 Jul 2001 18:38:15 +1000 Subject: [mapserver-users] Annotation layer, text and backgroundcolor Message-ID: <53273E187450D311ACF6009027927B12022C0D32@smtpgate.auslig.gov.au> Hi, I have used the following text in my map file to write "Maps by AUSLIG" in the bottom left hand corner of my image map. I have tried to set the "backgroundcolor" to draw a box around this text to make it stand out from the map features but it doesn't seem to work. The 'backgroundcolor" works for layers that are of "type" point and where I use the "labelitem" but not for this layer where I use "type" annotation and the "text" element for the text. Does one of these cause "backgroundcolor" to fail or have I messed up my "layer" definition somehow? Thanks in advance for your help. John Hockaday LAYER NAME logo TYPE annotation STATUS DEFAULT TRANSFORM OFF LABELCACHE on FORCE true CLASS TEXT "Maps by AUSLIG" LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 BACKGROUNDCOLOR 255 255 255 SIZE medium END END FEATURE POINTS 55 290 END END END From nhv at cape.com Thu Jul 12 04:00:17 2001 From: nhv at cape.com (Norman Vine) Date: Thu, 12 Jul 2001 07:00:17 -0400 Subject: [mapserver-users] FW: [Algorithms] Colour reduction code Message-ID: <001801c10ac1$d6b77e00$a300a8c0@nhv> FYI -----Original Message----- From: gdalgorithms-list-admin at lists.sourceforge.net [mailto:gdalgorithms-list-admin at lists.sourceforge.net] On Behalf Of Martin Gladnishki Sent: Thursday, July 12, 2001 6:39 AM To: gdalgorithms-list at lists.sourceforge.net Subject: Re: [Algorithms] Colour reduction code > The other thing to think about is that octree colour quantization isn't > generally very good. I'd recommend using Wu's colour stats. from Graphics > Gems II as a starting point. Dithering can help as well, but it depends on > how you're using the textures. (There's a nice Siggraph 2001 paper on a new > error diffusion dither that's worth trying. I agree, octrees are no good for quantization. The best color quantization algorithm I've ever seen is the quantization with Cohonen neural network. Gives _much_, _much_ better results than octrees. But you still have to deal with the alpha's anyway :) Give it a try: http://members.ozemail.com.au/~dekker/NEUQUANT.HTML Cheers, Martin _______________________________________________ GDAlgorithms-list mailing list GDAlgorithms-list at lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/gdalgorithms-list From steve.lime at dnr.state.mn.us Thu Jul 12 07:50:26 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 12 Jul 2001 09:50:26 -0500 Subject: [mapserver-users] SDE performance and error Message-ID: Lowell: By chance have you played at all with spatial indexes (i.e. shptree) on large datasets. I'm wondering how comparing indexed shapefiles with SDE looks. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 07/10/01 02:43PM >>> My general experience has been that for very large data sets SDE will smoke a shapefile. This is only true however if the SDE and Oracle instances are tuned AND your requests is limited in extent (i.e., don't try to draw all the contours for the state of Virginia when zoomed all the way out). If your view window is of reasonable size SDE will smoke -- assuming things are tuned correctly. It makes sense if you think about the process. If you ask a database for the ALL the records you need to go through the DB, SDE blah blah and it would probably be easier to get a single file. However, if you only want a few records (i.e., spatial features) a DB can consult an index, search it very fast and return your request. I think the same idea can be used for small data sets. Do I really need to go through the DB/SDE etc. for the county boundaries? Probably not.... I'm curious how you have SDE on a Linux Box? Did you get a pre-release or something? The tuning comes in many levels. These range from hardware (e.g., RAID configurations, network hardware) to Oracle (about a million setting here) and SDE (i.e., grid tiling mostly). Each SDE layer needs to be tuned separately. It's a bit of a pain but it needs to be done. Don't use the GUI Arc Loaders---use the command line SDE tools. On ESRI's website you can get the SDELoader/SDEMonitor utils to help with tuning a bit. As for the error I haven't seen that one. I'm still having a few issues with queries against SDE from ms but....none exactly like that. -----Original Message----- From: Andrea Goethals [mailto:andreag at geoplan.ufl.edu] Sent: Tuesday, July 10, 2001 1:23 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] SDE performance and error I thought the posting the other day about the performance of PostGIS vs shapefiles was interesting. >>The PostGIS performance has been about 1/2 to 1/3 the speed as using >>shapefiles on a RAID device. I have been looking at shapefiles vs SDE and Oracle. In that email Dave noted that there should be places where optimization could take place. Similarly, I have been told that SDE and Oracle both can be "tuned" (whatever that entails) to speed up the process. Neither our SDE nor our Oracle has been tuned yet. Having said that it appears that shapefiles are faster than SDE. For initial testing purposes I accessed shapefiles on a different machine than mapserver was running on, which is the same machine the SDE server is on. The Oracle 8.1.x is on a third machine. ------------------- --------------- --------- mapserver | | shapefiles | | | | --- | | --- | Oracle | apache web server | | SDE server | | | ------------------- --------------- --------- Linux Linux Solaris At the worst case SDE took 4 times longer than shapefiles. This seems to occur for the larger datasets (ex: a shapefile of size: 12.6 MB .shp, 4.5 MB .dbf took on average 10.5 seconds to access for an SDE layer; 2.6 seconds for a shapefile) For the smaller datasets and especially at smaller scales, the difference between them is less. (ex: a shapefile of size: 294 KB .shp, 419 KB .dbf took an average of 1.7 seconds for the SDE layer, and 1.3 seconds for the shapefile.) I don't know if the slowdown is the communication between SDE and Oracle, the extra hop to the Oracle machine, or just SDE itself. Beyond the speed issue, every once in a while I would get an error trying to access SDE layers, but only when trying to access the larger layers (in filesize): msSDELayerNextShape(): SDE error. SE_stream_fetch(): Network I/O error. (-10) According to the SDE book, an error code of -10 means that "a catastrophic error occurred during a client/server round-trip request and the connection between the client task and the server was severed" Is there a limit set somewhere as to how much data can be sent? No errors like this were found accessing the same datasets from ESRI's ArcView. Anybody else getting this error? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From hossam at GeoAnalytics.com Thu Jul 12 09:12:16 2001 From: hossam at GeoAnalytics.com (Hossam Abdel Sayed) Date: Thu, 12 Jul 2001 11:12:16 -0500 Subject: [mapserver-users] Attribute query using PHP/MapScript Message-ID: Hi Jolks I'm trying to build a page which allow the user to query the parcel data by address, pin, and owner name. I first query the attribute table in MySQl dtaabase and get a list of all parcel "pin"s. then i need to query the parcel shapefile to highlight all the returned pin's. Can any give tell me how to query the parcel shape file and highlight the results in PHP/Mapscript ?? I'll apreciate if you can send me a link to a similar example Thanks alot hossam From steve.lime at dnr.state.mn.us Thu Jul 12 10:48:48 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 12 Jul 2001 12:48:48 -0500 Subject: [mapserver-users] Attribute query using PHP/MapScript Message-ID: While I've not done this per se, the best way to do this would be to: - create a map file that would create maps showing all parcels and other data now in the application: - do the mysql selection - use the resulting pins to create a custom expression for the parcel layer to issolate just those parcels with matching pins - draw the map You can make that expression "sticky" easily by storing the pins or by using a straight mapserver CGI application and setting the expression dynamically using the syntax "&map_parcels_class_expression=...&". That way you could use PHP to do the query and initialize the mapping app. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Hossam Abdel Sayed 07/12/01 11:12AM >>> Hi Jolks I'm trying to build a page which allow the user to query the parcel data by address, pin, and owner name. I first query the attribute table in MySQl dtaabase and get a list of all parcel "pin"s. then i need to query the parcel shapefile to highlight all the returned pin's. Can any give tell me how to query the parcel shape file and highlight the results in PHP/Mapscript ?? I'll apreciate if you can send me a link to a similar example Thanks alot hossam From LBallard at YesVirginia.org Thu Jul 12 11:34:07 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Thu, 12 Jul 2001 14:34:07 -0400 Subject: [mapserver-users] SDE performance and error Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CCCA@communications> Holy smokes-------------- I just reverted one of my test map files back to a shapefile (vdotrd) of all the roads in va. This is a file I had split into 2 distinct shapefiles for performance reasons. There was always too much latency for me so I made a minrds and majrds (interstates-4-lanes etc.). The result after shptree using default parameters was great. I can now get rid of the 2 files and use vdotrd. If I get the time to benchmark against SDE I will let you know. I'm installing Oracle 8.1.7 and SDE 8.1 as we speak on a SUN E4500 (8 400mhz CPUs, 8 mb ECache each CPU and 4 GB RAM). This should be a nice test. I assume you wrote this index? It's based on R-tree or Quad-tree type algorithms as opposed to ESRI's indexing scheme? Thanks for the tip...... Lowell -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, July 12, 2001 10:50 AM To: andreag at geoplan.ufl.edu; mapserver-users at lists.gis.umn.edu; LBallard at YesVirginia.org Subject: RE: [mapserver-users] SDE performance and error Lowell: By chance have you played at all with spatial indexes (i.e. shptree) on large datasets. I'm wondering how comparing indexed shapefiles with SDE looks. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 07/10/01 02:43PM >>> My general experience has been that for very large data sets SDE will smoke a shapefile. This is only true however if the SDE and Oracle instances are tuned AND your requests is limited in extent (i.e., don't try to draw all the contours for the state of Virginia when zoomed all the way out). If your view window is of reasonable size SDE will smoke -- assuming things are tuned correctly. It makes sense if you think about the process. If you ask a database for the ALL the records you need to go through the DB, SDE blah blah and it would probably be easier to get a single file. However, if you only want a few records (i.e., spatial features) a DB can consult an index, search it very fast and return your request. I think the same idea can be used for small data sets. Do I really need to go through the DB/SDE etc. for the county boundaries? Probably not.... I'm curious how you have SDE on a Linux Box? Did you get a pre-release or something? The tuning comes in many levels. These range from hardware (e.g., RAID configurations, network hardware) to Oracle (about a million setting here) and SDE (i.e., grid tiling mostly). Each SDE layer needs to be tuned separately. It's a bit of a pain but it needs to be done. Don't use the GUI Arc Loaders---use the command line SDE tools. On ESRI's website you can get the SDELoader/SDEMonitor utils to help with tuning a bit. As for the error I haven't seen that one. I'm still having a few issues with queries against SDE from ms but....none exactly like that. -----Original Message----- From: Andrea Goethals [mailto:andreag at geoplan.ufl.edu] Sent: Tuesday, July 10, 2001 1:23 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] SDE performance and error I thought the posting the other day about the performance of PostGIS vs shapefiles was interesting. >>The PostGIS performance has been about 1/2 to 1/3 the speed as using >>shapefiles on a RAID device. I have been looking at shapefiles vs SDE and Oracle. In that email Dave noted that there should be places where optimization could take place. Similarly, I have been told that SDE and Oracle both can be "tuned" (whatever that entails) to speed up the process. Neither our SDE nor our Oracle has been tuned yet. Having said that it appears that shapefiles are faster than SDE. For initial testing purposes I accessed shapefiles on a different machine than mapserver was running on, which is the same machine the SDE server is on. The Oracle 8.1.x is on a third machine. ------------------- --------------- --------- mapserver | | shapefiles | | | | --- | | --- | Oracle | apache web server | | SDE server | | | ------------------- --------------- --------- Linux Linux Solaris At the worst case SDE took 4 times longer than shapefiles. This seems to occur for the larger datasets (ex: a shapefile of size: 12.6 MB .shp, 4.5 MB .dbf took on average 10.5 seconds to access for an SDE layer; 2.6 seconds for a shapefile) For the smaller datasets and especially at smaller scales, the difference between them is less. (ex: a shapefile of size: 294 KB .shp, 419 KB .dbf took an average of 1.7 seconds for the SDE layer, and 1.3 seconds for the shapefile.) I don't know if the slowdown is the communication between SDE and Oracle, the extra hop to the Oracle machine, or just SDE itself. Beyond the speed issue, every once in a while I would get an error trying to access SDE layers, but only when trying to access the larger layers (in filesize): msSDELayerNextShape(): SDE error. SE_stream_fetch(): Network I/O error. (-10) According to the SDE book, an error code of -10 means that "a catastrophic error occurred during a client/server round-trip request and the connection between the client task and the server was severed" Is there a limit set somewhere as to how much data can be sent? No errors like this were found accessing the same datasets from ESRI's ArcView. Anybody else getting this error? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From teb at mallit.fr.umn.edu Thu Jul 12 12:29:59 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 12 Jul 2001 14:29:59 -0500 (CDT) Subject: [mapserver-users] changing projection on the fly (fwd) Message-ID: <200107121929.OAA13747@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: mapserver-info at lists.gis.umn.edu Subject: changing projection on the fly Date: Thu, 12 Jul 2001 14:27:55 -0400 MIME-Version: 1.0 How, using select-option in my html page, can I chage my maps' projection in JavaScript? I would like the user to be able to choose whatever projection they want and that function to be called and changed. I see no [proj] or [projection] cgi-variable. Is there one? How can I do this in cgi and in mapscript? Thanks! Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 (603)646-4733 astender at crrel.usace.army.mil ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Thu Jul 12 12:29:36 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 12 Jul 2001 14:29:36 -0500 (CDT) Subject: [mapserver-users] embedded scalebars with php-mapscript 3.5 (fwd) Message-ID: <200107121929.OAA13742@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Thu, 12 Jul 2001 20:53:44 +0200 (CEST) From: Bruno Gendron Subject: embedded scalebars with php-mapscript 3.5 To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi everyone I recently (yesterday) switched my setup (on Windows 98) from PHP-Mapscript 3.4 to PHP 4.0.5-Mapscript 3.5, and many mapfiles are not working anymore. I finally isolated the problem: embedded scalebars. For exemple, given the following mapfile: # Map file NAME "NEF" STATUS ON SIZE 540 360 SYMBOLSET"C:\web\htdocs\dev\geodata\symbols\marker.sym" FONTSET "C:\web\htdocs\dev\geodata\symbols\fontset.sym" EXTENT 278263 5031185 290820 5041061 UNITS METERS SHAPEPATH "../../../mapdata" IMAGECOLOR 220 220 175 # Web definition WEB IMAGEPATH "c:\web\htdocs\tmp\" IMAGEURL "/tmp/" LOG "demo.log" END # Scalebar SCALEBAR IMAGECOLOR 0 0 0 STYLE 0 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 LABEL TYPE BITMAP SIZE SMALL END UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE STATUS EMBED POSITION LC END # Layer definitions LAYER NAME "nef1995" TYPE POLYGON STATUS ON DATA c1995 CLASSITEM "valeurnef" CLASS EXPRESSION /./ OUTLINECOLOR 255 255 255 COLOR 255 255 255 END END END # of mapfile ...I get the following error: Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant. in c:\web\htdocs\dev\geodata\ms_installtest.php4 on line 20 If I change the scalebar status to ON, no problemo! Strangely, the mapfile was OK with version 3.4. Any solution? Also, the 3.5 mapfile specs says the you need to define a markerset in order to embed a scalebar. But embedded scalebars were working fine in 3.4 even if there was no markerset defined anywhere. Could somebody give more informations about all this? Thanks ===== Bruno Gendron Consultant en TI et geomatique / IT and GIS Consultant 685 40eme avenue, Lachine, QC Canada, H8T 2G2 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Thu Jul 12 12:37:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 12 Jul 2001 14:37:14 -0500 Subject: [mapserver-users] SDE performance and error Message-ID: I wish I could take the credit. I ported Frank Warmerdam's original quadtree code and wrote the read/write routines plus the mapserver interface, but Frank did the hard part. Then, Carl Anderson took my crappy, non-portable indexes, and fixed them up along with some other speed modifications. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 07/12/01 01:34PM >>> Holy smokes-------------- I just reverted one of my test map files back to a shapefile (vdotrd) of all the roads in va. This is a file I had split into 2 distinct shapefiles for performance reasons. There was always too much latency for me so I made a minrds and majrds (interstates-4-lanes etc.). The result after shptree using default parameters was great. I can now get rid of the 2 files and use vdotrd. If I get the time to benchmark against SDE I will let you know. I'm installing Oracle 8.1.7 and SDE 8.1 as we speak on a SUN E4500 (8 400mhz CPUs, 8 mb ECache each CPU and 4 GB RAM). This should be a nice test. I assume you wrote this index? It's based on R-tree or Quad-tree type algorithms as opposed to ESRI's indexing scheme? Thanks for the tip...... Lowell -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, July 12, 2001 10:50 AM To: andreag at geoplan.ufl.edu; mapserver-users at lists.gis.umn.edu; LBallard at YesVirginia.org Subject: RE: [mapserver-users] SDE performance and error Lowell: By chance have you played at all with spatial indexes (i.e. shptree) on large datasets. I'm wondering how comparing indexed shapefiles with SDE looks. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 07/10/01 02:43PM >>> My general experience has been that for very large data sets SDE will smoke a shapefile. This is only true however if the SDE and Oracle instances are tuned AND your requests is limited in extent (i.e., don't try to draw all the contours for the state of Virginia when zoomed all the way out). If your view window is of reasonable size SDE will smoke -- assuming things are tuned correctly. It makes sense if you think about the process. If you ask a database for the ALL the records you need to go through the DB, SDE blah blah and it would probably be easier to get a single file. However, if you only want a few records (i.e., spatial features) a DB can consult an index, search it very fast and return your request. I think the same idea can be used for small data sets. Do I really need to go through the DB/SDE etc. for the county boundaries? Probably not.... I'm curious how you have SDE on a Linux Box? Did you get a pre-release or something? The tuning comes in many levels. These range from hardware (e.g., RAID configurations, network hardware) to Oracle (about a million setting here) and SDE (i.e., grid tiling mostly). Each SDE layer needs to be tuned separately. It's a bit of a pain but it needs to be done. Don't use the GUI Arc Loaders---use the command line SDE tools. On ESRI's website you can get the SDELoader/SDEMonitor utils to help with tuning a bit. As for the error I haven't seen that one. I'm still having a few issues with queries against SDE from ms but....none exactly like that. -----Original Message----- From: Andrea Goethals [mailto:andreag at geoplan.ufl.edu] Sent: Tuesday, July 10, 2001 1:23 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] SDE performance and error I thought the posting the other day about the performance of PostGIS vs shapefiles was interesting. >>The PostGIS performance has been about 1/2 to 1/3 the speed as using >>shapefiles on a RAID device. I have been looking at shapefiles vs SDE and Oracle. In that email Dave noted that there should be places where optimization could take place. Similarly, I have been told that SDE and Oracle both can be "tuned" (whatever that entails) to speed up the process. Neither our SDE nor our Oracle has been tuned yet. Having said that it appears that shapefiles are faster than SDE. For initial testing purposes I accessed shapefiles on a different machine than mapserver was running on, which is the same machine the SDE server is on. The Oracle 8.1.x is on a third machine. ------------------- --------------- --------- mapserver | | shapefiles | | | | --- | | --- | Oracle | apache web server | | SDE server | | | ------------------- --------------- --------- Linux Linux Solaris At the worst case SDE took 4 times longer than shapefiles. This seems to occur for the larger datasets (ex: a shapefile of size: 12.6 MB .shp, 4.5 MB .dbf took on average 10.5 seconds to access for an SDE layer; 2.6 seconds for a shapefile) For the smaller datasets and especially at smaller scales, the difference between them is less. (ex: a shapefile of size: 294 KB .shp, 419 KB .dbf took an average of 1.7 seconds for the SDE layer, and 1.3 seconds for the shapefile.) I don't know if the slowdown is the communication between SDE and Oracle, the extra hop to the Oracle machine, or just SDE itself. Beyond the speed issue, every once in a while I would get an error trying to access SDE layers, but only when trying to access the larger layers (in filesize): msSDELayerNextShape(): SDE error. SE_stream_fetch(): Network I/O error. (-10) According to the SDE book, an error code of -10 means that "a catastrophic error occurred during a client/server round-trip request and the connection between the client task and the server was severed" Is there a limit set somewhere as to how much data can be sent? No errors like this were found accessing the same datasets from ESRI's ArcView. Anybody else getting this error? Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From morissette at dmsolutions.ca Thu Jul 12 12:44:51 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 12 Jul 2001 15:44:51 -0400 Subject: [mapserver-users] reference image extent References: Message-ID: <3B4DFE33.E3A9DE1@dmsolutions.ca> > Ludovic Tenant wrote: > > I would like to set the extent property of the Reference image in my > map file with PHP / Mapscript. Unfortunately, this property is read > only inside the referenceMapObj Class. There is probably a good reason > for that, but for now I'm well embarrassed, because when I change my > reference image, I need to update the reference with the corresponding > new extent, and I don't know how to do it in my PHP script... > I haven't tried this myself, but since the extent in the referenceMapObj class is actually a rectObj which has a setExtent() method, you should be able to set the extent using: $refmap->extent->setExtent($xmin, $ymin, $xmax, $ymax); -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From vguzman at bigfoot.com Thu Jul 12 13:50:06 2001 From: vguzman at bigfoot.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Thu, 12 Jul 2001 15:50:06 -0500 Subject: [mapserver-users] getlayer Message-ID: <3B4E0D7E.8C673B94@bigfoot.com> Hello. Please, if someone can help me. I've got an error when I try to get a layer object, it seems that the first time i use the method it works fine, but the next time the object map is kind of corrupted, so I get the error : "Fatal error: Object has an invalid _handle_ property in /usr/local/httpd/htdocs/mapserver/test_draw_map.phtml on line 47" I'm working with php, and I have the same error in the example map gmap. The only way I currently make it work is: every time i call getlayer() I use the instruction: $map = ms_newMapObj("demo.map"); But this is not the correct solution. ?suggestions? Thank you, Vladimir G From warmerdam at pobox.com Thu Jul 12 14:32:24 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 12 Jul 2001 17:32:24 -0400 Subject: [mapserver-users] SDE performance and error References: Message-ID: <3B4E1768.329E5D18@pobox.com> > The result after shptree using default parameters was great. I can now get > rid of the 2 files and use vdotrd. > > If I get the time to benchmark against SDE I will let you know. I'm > installing Oracle 8.1.7 and SDE 8.1 as we speak on a SUN E4500 (8 400mhz > CPUs, 8 mb ECache each CPU and 4 GB RAM). This should be a nice test. Lowel, Sweet machine! > I assume you wrote this index? It's based on R-tree or Quad-tree type > algorithms as opposed to ESRI's indexing scheme? The algorithm is a simple quad tree. The only clever aspect is that I general a moderate overlap between quads to ensure that small objects that overlap a quad boundary don't necessarily get promoted too far up the quad tree. I haven't checked how Steve has done the quadtrees on disk, but in an ideal world only portions of the index file that are required would be read. Otherwise you end up consuming at least something like 4 or 8 bytes of memory for every shape just to hold the index. However, this would be OK for medium sized files. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at dnr.state.mn.us Thu Jul 12 14:58:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 12 Jul 2001 16:58:21 -0500 Subject: [mapserver-users] SDE performance and error Message-ID: You read just the parts you need. It's been a while but nodes and leafs have a fixed size so you can seek your way around the index by computing the the location of things. Can't remember if Carl optimized that or not but it seems pretty efficient. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Frank Warmerdam 07/12/01 04:32PM >>> > The result after shptree using default parameters was great. I can now get > rid of the 2 files and use vdotrd. > > If I get the time to benchmark against SDE I will let you know. I'm > installing Oracle 8.1.7 and SDE 8.1 as we speak on a SUN E4500 (8 400mhz > CPUs, 8 mb ECache each CPU and 4 GB RAM). This should be a nice test. Lowel, Sweet machine! > I assume you wrote this index? It's based on R-tree or Quad-tree type > algorithms as opposed to ESRI's indexing scheme? The algorithm is a simple quad tree. The only clever aspect is that I general a moderate overlap between quads to ensure that small objects that overlap a quad boundary don't necessarily get promoted too far up the quad tree. I haven't checked how Steve has done the quadtrees on disk, but in an ideal world only portions of the index file that are required would be read. Otherwise you end up consuming at least something like 4 or 8 bytes of memory for every shape just to hold the index. However, this would be OK for medium sized files. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cathode at nichebox.com Thu Jul 12 15:03:14 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 13 Jul 2001 01:03:14 +0300 Subject: [mapserver-users] embedded scalebars with php-mapscript 3.5 (fwd) In-Reply-To: <200107121929.OAA13742@mallit.fr.umn.edu> Message-ID: <000401c10b1e$753ef830$8200a8c0@nichebox1> Just to confirm, I get the same error when trying to embed a scalebar with PHP/Mapscript on 3.5. I also use TrueType support for labels, which works great. Bitmap labels also work if I specify a style. But even specifying bitmap as the type for the embedded scalebar I receive the same errors. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of teb > Sent: Thursday, July 12, 2001 10:30 PM > To: mapserver-users at lists.gis.umn.edu > Cc: bruno_gendron at yahoo.com > Subject: [mapserver-users] embedded scalebars with > php-mapscript 3.5 (fwd) > > > > ------------- Begin Forwarded Message ------------- > > Date: Thu, 12 Jul 2001 20:53:44 +0200 (CEST) > From: Bruno Gendron > Subject: embedded scalebars with php-mapscript 3.5 > To: mapserver-info at lists.gis.umn.edu > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > > Hi everyone > > I recently (yesterday) switched my setup (on Windows > 98) from PHP-Mapscript 3.4 to PHP 4.0.5-Mapscript 3.5, > and many mapfiles are not working anymore. I finally > isolated the problem: embedded scalebars. > > For exemple, given the following mapfile: > > # Map file > > NAME "NEF" > STATUS ON > SIZE 540 360 SYMBOLSET"C:\web\htdocs\dev\geodata\symbols\marker.sym" > FONTSET > "C:\web\htdocs\dev\geodata\symbols\fontset.sym" > EXTENT 278263 5031185 290820 5041061 > UNITS METERS > SHAPEPATH "../../../mapdata" > IMAGECOLOR 220 220 175 > > # Web definition > > WEB > IMAGEPATH "c:\web\htdocs\tmp\" > IMAGEURL "/tmp/" > LOG "demo.log" > END > > # Scalebar > > SCALEBAR > IMAGECOLOR 0 0 0 > STYLE 0 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > OUTLINECOLOR 0 0 0 > LABEL > TYPE BITMAP > SIZE SMALL > END > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > STATUS EMBED > POSITION LC > END > > # Layer definitions > > LAYER > NAME "nef1995" > TYPE POLYGON > STATUS ON > DATA c1995 > CLASSITEM "valeurnef" > > CLASS > EXPRESSION /./ > OUTLINECOLOR 255 255 255 > COLOR 255 255 255 > END > END > > END # of mapfile > > ...I get the following error: > > Fatal error: MapServer Error in msGetBitmapFont(): > Invalid bitmap font. Must be one of tiny, small, > medium, large or giant. in > c:\web\htdocs\dev\geodata\ms_installtest.php4 on line 20 > > If I change the scalebar status to ON, no problemo! > Strangely, the mapfile was OK with version 3.4. > > Any solution? > > Also, the 3.5 mapfile specs says the you need to > define a markerset in order to embed a scalebar. But > embedded scalebars were working fine in 3.4 even if > there was no markerset defined anywhere. Could > somebody give more informations about all this? > > Thanks > > > ===== > Bruno Gendron > Consultant en TI et geomatique / IT and GIS Consultant > 685 40eme avenue, Lachine, QC Canada, H8T 2G2 > > "Quand on connait l'equilibre, on ne se passionne pour rien, > on ne s'attache meme pas a la vie, car on est la vie." > Emile Cioran > > ___________________________________________________________ > Do You Yahoo!? -- Pour faire vos courses sur le Net, > Yahoo! Shopping : http://fr.shopping.yahoo.com > > ------------- End Forwarded Message ------------- > > > From cathode at nichebox.com Thu Jul 12 16:13:04 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 13 Jul 2001 02:13:04 +0300 Subject: [mapserver-users] getlayer In-Reply-To: <3B4E0D7E.8C673B94@bigfoot.com> Message-ID: <000801c10b28$35ca91f0$8200a8c0@nichebox1> Another confirmation of this and to expand on my earlier problem about using dynamic maps... I am unable to add any new layer to any new or existing map via PHP/Mapscript. In short, if I create a layer using $layer = ms_newlayerobj($mapObj); on a map object using a new or existing map, no matter the number of or lack of properties and/or classes I set for the layer, the next call to ANY sub object, property, or method of the mapobject fails with "Object has an invalid _handle_ property. This has been listed in the MapServer bugs database by Daniel Morissette, but I thought I would expand on the problem here. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Vladimir Guzm?n > Sent: Thursday, July 12, 2001 11:50 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] getlayer > > > Hello. > Please, if someone can help me. > I've got an error when I try to get a layer object, it seems > that the first time i use the method it works fine, but the > next time the object map is kind of corrupted, so I get the error : > "Fatal error: Object has an invalid _handle_ property in > /usr/local/httpd/htdocs/mapserver/test_draw_map.phtml on line > 47" I'm working with php, and I have the same error in the > example map gmap. The only way I currently make it work is: > every time i call getlayer() I use the instruction: $map = > ms_newMapObj("demo.map"); But this is not the correct > solution. ?suggestions? > > Thank you, > > Vladimir G > From jbowen333 at hotmail.com Thu Jul 12 17:33:36 2001 From: jbowen333 at hotmail.com (T- Bone) Date: Thu, 12 Jul 2001 18:33:36 -0600 Subject: [mapserver-users] Symbol question Message-ID: An HTML attachment was scrubbed... URL: From drish at drish.net Thu Jul 12 19:14:04 2001 From: drish at drish.net (Drew) Date: Fri, 13 Jul 2001 12:14:04 +1000 Subject: [mapserver-users] strange error with mapserver/ogr References: Message-ID: <006c01c10b41$80d81870$0300000a@dhr> configure: error: Could not find one of ogr_feature.h, ogrsf_fmrts.h, cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in /home/drew/mapserver/gdal-1.1.4/ogr. [root at melbwireless mapserver]# cd /home/drew/mapserver/gdal-1.1.4/ogr [root at melbwireless ogr]# ls ogr_feature.h ogr_feature.h this was using mapserver 3.5 nightly build from yesterday -Drew From cathode at nichebox.com Thu Jul 12 21:22:30 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 13 Jul 2001 07:22:30 +0300 Subject: [mapserver-users] strange error with mapserver/ogr In-Reply-To: <006c01c10b41$80d81870$0300000a@dhr> Message-ID: <001301c10b53$704fe5c0$8200a8c0@nichebox1> Drew, I get the same errors when using --with-ogr=/path/to/ogr/source I don't know if this is a solution or not, but when I compile and build gdal --with-ogr then install those libraries and *then* configure mapserver with: --with-gdal=/path/to/gdal-config --with-ogr And do NOT specify an ogr path, I get no errors and everything seems to build. I think it's a little screwy here because it's somehow possible to build using ogr but not the rest of the gdal package, but ogr is part of gdal? Not sure on this one. The config is strange in a lot of little places. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Drew > Sent: Friday, July 13, 2001 5:14 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] strange error with mapserver/ogr > > > configure: error: Could not find one of ogr_feature.h, > ogrsf_fmrts.h, cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in > /home/drew/mapserver/gdal-1.1.4/ogr. > [root at melbwireless mapserver]# cd /home/drew/mapserver/gdal-1.1.4/ogr > [root at melbwireless ogr]# ls ogr_feature.h > ogr_feature.h > > this was using mapserver 3.5 nightly build from yesterday > > -Drew > > From steve.lime at dnr.state.mn.us Thu Jul 12 22:03:15 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 13 Jul 2001 00:03:15 -0500 Subject: [mapserver-users] Embeded scalebars and 3.5 Message-ID: This problem has been fixed and commited to CVS. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From drish at drish.net Thu Jul 12 23:29:46 2001 From: drish at drish.net (Drew) Date: Fri, 13 Jul 2001 16:29:46 +1000 Subject: [mapserver-users] Fw: strange error with mapserver/ogr Message-ID: <026701c10b65$39033b00$0300000a@dhr> is it just me or is my mail not going through? ----- Original Message ----- From: "Drew" To: Sent: Friday, July 13, 2001 12:14 PM Subject: strange error with mapserver/ogr > configure: error: Could not find one of ogr_feature.h, ogrsf_fmrts.h, > cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in > /home/drew/mapserver/gdal-1.1.4/ogr. > [root at melbwireless mapserver]# cd /home/drew/mapserver/gdal-1.1.4/ogr > [root at melbwireless ogr]# ls ogr_feature.h > ogr_feature.h > > this was using mapserver 3.5 nightly build from yesterday > > -Drew > From matt at aruke.com Fri Jul 13 02:17:38 2001 From: matt at aruke.com (Matt Carlson) Date: Fri, 13 Jul 2001 18:17:38 +0900 Subject: [mapserver-users] qix file is breaking point layers Message-ID: <001d01c10b7c$aa8c82b0$0400a8c0@matt> OS - RH 6.2 mapserver version 3.3.011 after i added my point layers, at specific areas of the map mapserver was breaking. i deleted the qix files for those layers and the map drew ok. sorry for the dumb question, but am i not suppossed to create qix files using shptree for my point layers? or is this a bug? what kind of speed impact do qix files have for point layers, i know that they made a huge difference for my line and polygon layers. thanks for any help, Matt Carlson Web Application Developer Alchemedia Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at aruke.com Fri Jul 13 02:55:01 2001 From: matt at aruke.com (Matt Carlson) Date: Fri, 13 Jul 2001 18:55:01 +0900 Subject: [mapserver-users] shptree problem Message-ID: <005901c10b81$e34c9c20$0400a8c0@matt> OS - RH 6.2 mapserver 3.3.011 i just read the documentation on shptree and tried using values 6,7,8,9,10 for my point layers and it still threw an error. Matt Carlson Web Application Developer Alchemedia Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.philipona at camptocamp.com Fri Jul 13 03:38:11 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Fri, 13 Jul 2001 12:38:11 +0200 Subject: [mapserver-users] mapserver architecture for multi-websites on several machines In-Reply-To: Message-ID: <001c01c10b87$e9d5d4c0$1500a8c0@bsa> We are starting a project using Mapserver (PHP/MapScript) for building a cartographic server which could be used by different client web-sites on different machines. The server will propose a large set of raster map from 1:25'000 to 1:1'000'000. The client web-sites will be able to use the central mapserver to interactivly geocode any kind of information (points, lines, surfaces) using an applet and to visualize and to navigate thru the obtained geocoded objects. Each site using Mapserver is totally independent should be able to integrate the map directly (no frames).In this configuration we don't have a web borwser making direct request to MapServer, but rather the web server machines would have to make the cartogrphic request to the mapserver machine. This is a kind of wms. My question: What is the best solution to implement this kind of architecture? Has anybody already done such thing? My ideas were to use WDDX (Web Distributed Data Exchange, http://www.openwddx.org/faq/) to exchange the required parameters between the mapserver box (coordinates of the click, shapes ON,...) and the webserver boxes (url of the map image,...). So the Webserver (php enabled) would post a wddx file (containing the serailzed parameter) to the MapServerPHP-MapScript. After deserialization PHP/Mapscript will process the map request and return wddx file (containing the url of the images and other important parameter). Is it the way to go to get good performance? Is there a better way to do it? Other question: I was palnning to start this development using directly Mapserver 3.5, providing that the system will not enter in production before november. Is 3.5 stable enough? Any timesacle for the official release? Claude Philipona From rupert at NRCan.gc.ca Fri Jul 13 05:57:59 2001 From: rupert at NRCan.gc.ca (Rupert, James) Date: Fri, 13 Jul 2001 08:57:59 -0400 Subject: [mapserver-users] Re: Mapscript/PHP and TIFF Message-ID: <3E3C279AF3F9D411BAA00002A529150E2424C0@S0-OTT-X10> Hi Steve and Daniel, Thanks for the help, it was the GD problem. I had explicitly told PHP to compile with GD 1.2 but noticed that the configure stated that it did not have GIF support. This was because I had originally compiled PHP with GD 1.8 and did not remove the config.cache file. Once I deleted the config.cache and reran configure and compiled and installed PHP and apache everything is now working. Now its time to learn how to use mapserver and PHP/mapscript to create a layer and draw symbols that can be queried at locations from a postgresql database. Any examples would be a great time saver Again thanks for the help. Jamie > ---------- > From: Stephen Lime[SMTP:steve.lime at dnr.state.mn.us] > Sent: Wednesday, July 11, 2001 3:40 PM > To: morissette at dmsolutions.ca; rupert at NRCan.gc.ca > Cc: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Re: Mapscript/PHP and TIFF > > This is a GD issue. You must've compiled with a different version than PHP > was compiled > with. In GD 1.2 the image array in GD is column major (i.e. img[x][y]) and > in subsequent > versions they switched that to row major for performance reasons. Get the > versions of GD > in sync and I believe the problem will disappear. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Daniel Morissette 07/11/01 02:27PM >>> > "Rupert, James" wrote: > > > > Hello Daniel, > > > > I have encounter a problem with PHP/mapscript and TIFF images. If I use > > mapserver standalone the TIFF image appears properly. If I draw the same > map > > file through PHP/mapscript the image is output as a mirror image and is > > rotated 90 degrees anti-clockwise. Any thoughts. > > > > Jamie > > Jamie, > > PHP/MapScript does nothing special about the way things are drawn. Are > your 'mapserv' CGI and your PHP MapScript compiled with the exact same > options? Perhaps one of them uses native TIFF support in MapServer and > the other one uses GDAL's TIFF support? (If so then we'll have to find > out why they behave differently.) > > Maybe Frank, Steve, or someone else on the list already ran into a > similar problem and will have some ideas? > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From warmerdam at pobox.com Fri Jul 13 06:55:59 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 13 Jul 2001 09:55:59 -0400 Subject: [mapserver-users] strange error with mapserver/ogr References: <006c01c10b41$80d81870$0300000a@dhr> Message-ID: <3B4EFDEF.296D22AD@pobox.com> Drew wrote: > > configure: error: Could not find one of ogr_feature.h, ogrsf_fmrts.h, > cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in > /home/drew/mapserver/gdal-1.1.4/ogr. > [root at melbwireless mapserver]# cd /home/drew/mapserver/gdal-1.1.4/ogr > [root at melbwireless ogr]# ls ogr_feature.h > ogr_feature.h > > this was using mapserver 3.5 nightly build from yesterday Drew / Rob, I was unable to reproduce this error. Is this working with the current CVS source for MapServer or older packaged source? The older configure logic was somewhat flackey, but I thought it was currently pretty bulletproof. I also tried with gdal 1.1.4 and the current CVS source. Both seemed to configure alright, though I see that MapServer CVS requires GDAL CVS, since the GDAL 1.1.4 OGR support lacks a feature now required by MapServer. I will prepare a GDAL/OGR 1.1.5 release soon to coincide with MapServer 3.5. If you can provide more details on your configure problem perhaps there is still something that needs to be fixed. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From andreag at geoplan.ufl.edu Fri Jul 13 07:48:47 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Fri, 13 Jul 2001 10:48:47 -0400 Subject: [mapserver-users] shptree documentation Message-ID: <3B4F0A4F.4385066A@geoplan.ufl.edu> Where is the shptree documentation? I was trying to figure out what these are options are: Syntax: shptree [shpfile] {depth} {N | L | M | NL | NM} N: Native byte order L: LSB (intel) byte order M: MSB byte order NL: LSB byte order, using new index format NM: MSB byte order, using new index format Thanks, Andrea From mike at boonedocks.net Fri Jul 13 10:06:57 2001 From: mike at boonedocks.net (Mike Boone) Date: Fri, 13 Jul 2001 13:06:57 -0400 Subject: [mapserver-users] New User - Projection Question Message-ID: Hi all. I'm a novice user who stumbled upon mapserver as a way to plot GPS tracks on the web. I was looking at examples of mapserver in use and found this one: http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml What makes this different from what I've done is that this map's longitude lines look like they will merge at the north pole. I think this was done by some projection change, but maybe that layout is stored in the shapefile? I swiped a 50 states shapefile from nationalatlas.gov and it displays in my mapserver in a "flat" layout. How can I get it to map-out like the Canada map in the example? I have PROJ.4 compiled into my mapserver OK, but I after putting various PROJECTION settings in my mapfile, I see no difference. Is PROJECTION the right place to get this result, or do I need shapefiles made specifically for this purpose? Please excuse me if my terminology is wrong...I'm still figuring it all out. Thanks! Mike Boone mike at boonedocks.net From pnaciona at gis.umn.edu Fri Jul 13 10:02:05 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 13 Jul 2001 18:02:05 +0100 Subject: [mapserver-users] New User - Projection Question In-Reply-To: Message-ID: Hi there. I don't use Proj.4 myself so I can't help you directly. However, I can give you a little advice. First you need to know what projection these datasets are in. If they have different projections then you might want to standardize. For the Continental US, the common projection systems are Lambert Azimuthal Equal-Area, and Albers. From what you're saying, it sounds like your datasets are unprojected--in geographic coordinates. You can certainly use PROJ.4 and reproject on-the-fly in MapServer. However, I'd recommend you reproject your datasets to one of the projections mentioned above. In either case, here's the standard Continental US parameters for Lambert Azimuthal Equal-Area projection: Ellipsoid (Spheriod): Clarke 1866 Central Meridian: -100 (100 degrees West) Reference Latitude: 45 Units: Meters And here's the parameters for Albers Equal-Area Conic: Ellipsoid/Spheroid: Clarke 1866 Central Meridian: -96 Ref Latitude: 37.5 Standard Parallel 1: 29.5 Standard Parallel 2: 45.5 False Easting: 0 False Northing: 0 If you want to use PROJ.4, look at the PROJ.4 documentation for proper syntax use. Also, look at the MapServer docs at http://mapserver.gis.umn.edu/coordinates.html. Good luck! -Perry -----Original Message----- From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On Behalf Of Mike Boone Sent: Friday, July 13, 2001 6:07 PM To: mapserver-users at lists Subject: [mapserver-users] New User - Projection Question Hi all. I'm a novice user who stumbled upon mapserver as a way to plot GPS tracks on the web. I was looking at examples of mapserver in use and found this one: http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml What makes this different from what I've done is that this map's longitude lines look like they will merge at the north pole. I think this was done by some projection change, but maybe that layout is stored in the shapefile? I swiped a 50 states shapefile from nationalatlas.gov and it displays in my mapserver in a "flat" layout. How can I get it to map-out like the Canada map in the example? I have PROJ.4 compiled into my mapserver OK, but I after putting various PROJECTION settings in my mapfile, I see no difference. Is PROJECTION the right place to get this result, or do I need shapefiles made specifically for this purpose? Please excuse me if my terminology is wrong...I'm still figuring it all out. Thanks! Mike Boone mike at boonedocks.net From vguzman at bigfoot.com Fri Jul 13 13:17:08 2001 From: vguzman at bigfoot.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Fri, 13 Jul 2001 15:17:08 -0500 Subject: [mapserver-users] question Message-ID: <3B4F5744.58010E71@bigfoot.com> Hello. Rob Martinson told me that my problem with layers is a bug of the mapserver, but I want to know if that is a problem of the version of the mapserver, so I could work with another previous version. Thanks, Vladimir G From cathode at nichebox.com Fri Jul 13 19:16:48 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sat, 14 Jul 2001 05:16:48 +0300 Subject: [mapserver-users] tiny fix for mapparser.y Message-ID: <000001c10c0b$0a69bd40$8200a8c0@nichebox1> Just FYI, I just compiled gdal and mapserver from CVS source and ran across the tiniest typo. Line 154 of mapparser.y reads: | LENGTH '(' string_exp ')' { $$ = strlen($3) } And should read: | LENGTH '(' string_exp ')' { $$ = strlen($3); } Damn semi-colons :) Builds fine after this Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From mcn2 at engarde.com Fri Jul 13 20:35:21 2001 From: mcn2 at engarde.com (Mike Neuman) Date: Fri, 13 Jul 2001 21:35:21 -0600 Subject: [mapserver-users] Querying by point? Message-ID: I'm trying to dynamically annotate my map and then allow the user to click on the areas to get more information on each. Ideally, I'd like to do this with a clientside map. I annotate the map by: $point = new pointObj(); $point->{y} = (SQL latitude); $point->{x} = (SQL longitude); $point->draw($map, $layer, $img, "points", (SQL label)); Obviously, this doesn't allow you to do a queryUsingPoint... Any suggestions on how I can change my code to allow point querying? Thanks! -Mike From drish at drish.net Sat Jul 14 21:26:12 2001 From: drish at drish.net (Drew) Date: Sun, 15 Jul 2001 14:26:12 +1000 Subject: [mapserver-users] mapserver 3.5 demo Message-ID: <03de01c10ce6$4aba76b0$0300000a@dhr> Does anyone have a tarball of a demo working under 3.5? I followed the directions to install the demo for versions after 3.4, but it still errors. thanks Drew From scott at metros.org Sun Jul 15 03:23:18 2001 From: scott at metros.org (Scott Metro) Date: Sun, 15 Jul 2001 06:23:18 -0400 Subject: [mapserver-users] Newbie Question Message-ID: <001b01c10d18$2cf42ae0$0200a8c0@METRO> I have the demo up and running. I now want to go beyond the demo, so I downloaded a US state boundaries shapefile. How do I get it to display on the Minnesota demo? I want to be able to zoom out to the whole US and see the state boundaries and labels? Also, how does one plot a point on a map? Finally, can concentric circles be drawn on maps? Thanks in advance. Scott From mapserver at hotmail.com Mon Jul 16 05:46:25 2001 From: mapserver at hotmail.com (Diego Jose Padron P) Date: Mon, 16 Jul 2001 12:46:25 -0000 Subject: [mapserver-users] Help data base PHP/Mysql Message-ID: Hello. Recently I am managing the mapserver and he/she wanted to know if somebody possesses an algorithm that allows to manipulate the database with PHP and MySql or he/she informed me that he/she forms to make it. Thank you. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From teb at mallit.fr.umn.edu Mon Jul 16 06:19:46 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 16 Jul 2001 08:19:46 -0500 (CDT) Subject: [mapserver-users] a few mapplet related questions (fwd) Message-ID: <200107161319.IAA14930@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Puneet Kishor To: "'mapserver-info at lists.gis.umn.edu'" Subject: a few mapplet related questions Date: Fri, 13 Jul 2001 13:07:10 -0500 MIME-Version: 1.0 Hi all, (after diligently searching the archives, finding tidbits here and there, and still being in the dark), here's my problem. 1. I want to use SDL's mapplet the way it is used in Landview. Click or click and drag, release the mouse button, and boom... get a fresh map. I simply can't fathom how to accomplish this. I can click or click and drag to get the red box, but then I have to press the submit button to submit the form actually. How do I activate the boolean 'redraw'? 2. How do I enable the swap method? that is, refresh only the image not the page? 3. How do I enable the pan buttons (and any other buttons, for that matter). Do I form.submit() onClick? 4. How do I have the results of a query (or nquery) be displayed in a specific frame? For example, if I want to create a frames application so the results are displayed in the bottom frame. I have studied the landview source, but that code is so complicated for me, a Javascript newbie, that my eyes are swimming. If I can accomplish the above, I would be happy to put together a doc or even templates that allow others to accomplish the same easily. Another question -- Landview performance is really, really nice. What's the trick? I am using a PIII / 800+ MHz with 256 Mb RAM on a Win2k box with Apache 1.3.20; not great, but not too shabby. But the performance sucks (a few hundred MBs of shapefiles). Is that not good enough? Is the mapserver more responsive on a *nix box? What are the specs of the box running landview? Many thanks in advance. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Mon Jul 16 06:20:22 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 16 Jul 2001 08:20:22 -0500 (CDT) Subject: [mapserver-users] Looking for information (FWD) Message-ID: <200107161320.IAA14935@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "MESOTECH" To: Subject: Looking for information Date: Mon, 16 Jul 2001 09:40:02 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 from : LE CLEZIO Michel MESOTECH Espace-Penmez 29150 CHATEAULIN FRANCE E-Mail : mesotech at wanadoo.fr Hello, -Is it possible to use Mapserver as an add-on to build a GIS, with Delphi or Visual C++ ? -Do you known if someone as any information to use shapeLib.dll with Delphi ? I've build a shapelib.pas file (to replace shapelib.h), but I've dificulties to use it. With best regards, Michel. ------------- End Forwarded Message ------------- From bruno_gendron at yahoo.com Mon Jul 16 07:19:15 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Mon, 16 Jul 2001 16:19:15 +0200 (CEST) Subject: [mapserver-users] QueryByAttributes with PHP-Mapscript Message-ID: <20010716141915.14865.qmail@web4603.mail.yahoo.com> Hi to everyone, Is there a way to do a query using attributes in PHP-Mapscript? The documentation mentions queryUsingPoint, queryUsingRect, queryUsingFeatures, but no queryUsingAttributes... I don't want to define a filter on a layer, I just need to do a selection based on attributes... Thanks ===== Bruno Gendron Consultant en TI et geomatique / IT and GIS Consultant 685 40eme avenue, Lachine, QC Canada, H8T 2G2 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com From hossam at GeoAnalytics.com Mon Jul 16 08:02:31 2001 From: hossam at GeoAnalytics.com (Hossam Abdel Sayed) Date: Mon, 16 Jul 2001 10:02:31 -0500 Subject: [mapserver-users] Attrinute Query and Zoom to results usinf PHP/ MapScript Message-ID: Hi Folks, I got made with the mapserver documentation. I can't find how to do the simplest GIS functions. Here's my problem: I'm using Mapserver and PHP/Mapscript to build a website for quering and browsing Parcel data. I have a form that the user fill to query the parcels by address. I take the user inputs and buils a query expression to search against the shapefile. I want to qury the shap file and get the results then zoom to the extent of the reslust and highlight all the selected query. Can any body tell me how to do this using PHP/Mapscript ?? I can't find the apropriate objects or methods for doing that Thanks alo Hossam GeoAnalytics Inc From steve.lime at dnr.state.mn.us Mon Jul 16 08:08:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 16 Jul 2001 10:08:30 -0500 Subject: [mapserver-users] mapserver 3.5 demo Message-ID: http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz >>> "Drew" 07/14/01 11:26PM >>> Does anyone have a tarball of a demo working under 3.5? I followed the directions to install the demo for versions after 3.4, but it still errors. thanks Drew From steve.lime at dnr.state.mn.us Mon Jul 16 08:16:08 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 16 Jul 2001 10:16:08 -0500 Subject: [mapserver-users] QueryByAttributes with PHP-Mapscript Message-ID: I know with regular mapscript that method was left out intentionally because there are more complete xbase access tools already available. I assume the same goes for PHP. This does change for 3.5 (or it will shortly) since a broader range of file types are supported. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Bruno Gendron 07/16/01 09:19AM >>> Hi to everyone, Is there a way to do a query using attributes in PHP-Mapscript? The documentation mentions queryUsingPoint, queryUsingRect, queryUsingFeatures, but no queryUsingAttributes... I don't want to define a filter on a layer, I just need to do a selection based on attributes... Thanks ===== Bruno Gendron Consultant en TI et geomatique / IT and GIS Consultant 685 40eme avenue, Lachine, QC Canada, H8T 2G2 "Quand on connait l'equilibre, on ne se passionne pour rien, on ne s'attache meme pas a la vie, car on est la vie." Emile Cioran ___________________________________________________________ Do You Yahoo!? -- Vos albums photos en ligne, Yahoo! Photos : http://fr.photos.yahoo.com From vanderwalm at gaiaenv.com Mon Jul 16 09:41:40 2001 From: vanderwalm at gaiaenv.com (Mel VanderWal) Date: Mon, 16 Jul 2001 10:41:40 -0600 Subject: [mapserver-users] Unsubscribe In-Reply-To: Message-ID: unsubscribe From mckenna at dmsolutions.ca Mon Jul 16 10:16:41 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 16 Jul 2001 13:16:41 -0400 Subject: [mapserver-users] New User - Projection Question References: Message-ID: <3B532179.EC762F8F@dmsolutions.ca> Mike Boone wrote: > Hi all. > > I'm a novice user who stumbled upon mapserver as a way to plot GPS tracks on > the web. > > I was looking at examples of mapserver in use and found this one: > http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml > > What makes this different from what I've done is that this map's longitude > lines look like they will merge at the north pole. I think this was done by > some projection change, but maybe that layout is stored in the shapefile? > > I swiped a 50 states shapefile from nationalatlas.gov and it displays in my > mapserver in a "flat" layout. How can I get it to map-out like the Canada > map in the example? > > I have PROJ.4 compiled into my mapserver OK, but I after putting various > PROJECTION settings in my mapfile, I see no difference. > > Is PROJECTION the right place to get this result, or do I need shapefiles > made specifically for this purpose? > > Please excuse me if my terminology is wrong...I'm still figuring it all out. > > Thanks! > Mike Boone > mike at boonedocks.net Hi Mike, Although I am no expert myself when it comes to projections, I think I can help you (I was one of the developers involved in the Species At Risk site that you were looking at). The shapefiles that you see in the Species application are all in the Lambert Conforml Conic (LCC) projection. From your description of your data I would guess that your data is in generic lat/longs (a 'Geographic' projection). A solution to your problem could be to specify LCC as your default projection in your mapfile, through a PROJECTION object, and then declare 'Geographic' as the layer(s) projection: eg. # Main map and default projection definition # PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" END ... LAYER NAME States DESCRIPTION "States_poly" TYPE POLYGON STATUS ON DATA bounds # Specify the data's projection PROJECTION geographic END ... CLASS ... END END # Layer Declaring 'PROJECTION geographic END' in each layer will re-project your data to the default projection that you specify in the PROJECTION object. I hope this helps you, good luck. Jeff -------------------------- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca From vguzman at bigfoot.com Mon Jul 16 12:35:22 2001 From: vguzman at bigfoot.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Mon, 16 Jul 2001 14:35:22 -0500 Subject: [mapserver-users] help Message-ID: <3B5341FA.349AD63B@bigfoot.com> Please, I'm asking for help again, my problem is that I can't make a simple getlayer() function in mapscript/php/linux. The method getlayer just damage the object map. what should I do? There is a way to compile mapserver v.3.3.011 with php4? Thanks, Vladimir G From JohnHockaday at auslig.gov.au Mon Jul 16 16:51:35 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Tue, 17 Jul 2001 09:51:35 +1000 Subject: [mapserver-users] mapserver architecture for multi-websites o n several machines Message-ID: <53273E187450D311ACF6009027927B12022C0D41@smtpgate.auslig.gov.au> Hi Claudia, I was hoping that someone with more experience with this type of subject would answer your question but it seems that they haven't so I will give you the little knowledge that I have on the subject. Hopefully, lots of people will get annoyed with the errors in this e-mail that I am proposing and they will correct me for your benefit. I for one am very interested in the outcomes of your project as I will have to look into something similar soon. The Open GIS came up with a standard for accessing data across the web. (I think that the OpenIGS is called something different now but I'm not sure.) One of the commands is something like getimage(). I believe that mapserver version 3.5 has the ability to handle Open GIS capabilities. I seem to remember earlier versions having the getimage() command but I'm not sure about that either. You could use the getimage() command to each of your mapservers and they should return an image. You could then build these images on top of each other, if they are transparent, to make a final map. GD can do this if mapserver doesn't already have a command to do it. You may have to make more that one call to each map server as the order of the layers may be important to your final map. I think that there is a similar OpenGIS command to get information about a layer from a remote map server. It may be something like getinfo(). This is probably a more simpler command as it may only need information from one mapserver. I would *strongly* recommend that you use the OpenGIS standard as a lot of work has gone into this standard and you will greatly benefit from their detailed efforts. I worked on a system of connecting to many map producing servers a long time ago and it was full of problems therefore, we stopped doing it. Since then, the OpenGIS has addressed those problems in their work. Good luck and please keep this list aware of what you are doing. I want to build on your work if you don't mind me "borrowing" your intellectual property and code. ;--) John > -----Original Message----- > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > Sent: Friday, July 13, 2001 8:38 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] mapserver architecture for multi-websites > on several machines > > We are starting a project using Mapserver (PHP/MapScript) for building a > cartographic server which could be used by different client web-sites on > different machines. The server will propose a large set of raster map from > 1:25'000 to 1:1'000'000. The client web-sites will be able to use the > central > mapserver to interactivly geocode any kind of information (points, lines, > surfaces) using an applet and to visualize and to navigate thru the > obtained > geocoded objects. > > Each site using Mapserver is totally independent should be able to > integrate the > map directly (no frames).In this configuration we don't have a web borwser > making > direct request to MapServer, but rather the web server machines would have > to > make the cartogrphic request to the mapserver machine. This is a kind of > wms. > > My question: What is the best solution to implement this kind of > architecture? > Has anybody already done such thing? > > My ideas were to use WDDX (Web Distributed Data Exchange, > http://www.openwddx.org/faq/) to exchange the required parameters between > the > mapserver box (coordinates of the click, shapes ON,...) and the webserver > boxes > (url of the map image,...). So the Webserver (php enabled) would post a > wddx file > (containing the serailzed parameter) to the MapServerPHP-MapScript. After > deserialization PHP/Mapscript will process the map request and return wddx > file > (containing the url of the images and other important parameter). > > Is it the way to go to get good performance? Is there a better way to do > it? > > Other question: I was palnning to start this development using directly > Mapserver > 3.5, providing that the system will not enter in production before > november. Is > 3.5 stable enough? Any timesacle for the official release? > > Claude Philipona From benenet at free.fr Tue Jul 17 05:08:45 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Tue, 17 Jul 2001 14:08:45 +0200 Subject: [mapserver-users] install Message-ID: <3B542ACD.D85625F6@free.fr> Hello, I am trying to install mapserver under W95, and apache. My pb is that I can't manage to install the demo. * I can read perfectly well the page http://localhost/ms_demo/demo_init.html * when I hit "initialize", the next page give me the error message : loadLayer(): Unknown identifier. (QUERY):(149) * I guess I have a problem in the configuration of the files demo_init.html, demo.map, and demo.html. I have followed the demo installation instruction (http://mapserver.gis.umn.edu/demo_readme.html), but I am confused by the fact that it's either for Unix or for WNT. Can anyone help me in any manner ?... Cheers, Benoit. From morissette at dmsolutions.ca Tue Jul 17 05:50:09 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 08:50:09 -0400 Subject: [mapserver-users] install References: <3B542ACD.D85625F6@free.fr> Message-ID: <3B543481.821D75C1@dmsolutions.ca> Benoit V?ler wrote: > > I am trying to install mapserver under W95, and apache. My pb is > that I can't manage to install the demo. > * I can read perfectly well the page > http://localhost/ms_demo/demo_init.html > * when I hit "initialize", the next page give me the error message : > > loadLayer(): Unknown identifier. (QUERY):(149) Benoit, You are likely getting this because you're using MapServer 3.5 with the demo for version 3.4. The QUERY identifier (in the .map file) is gone in version 3.5 You can either install and use MapServer version 3.4, or use the 3.5 demo that was posted by Steve Lime on the list a few days ago: http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jul 17 06:41:00 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 09:41:00 -0400 Subject: [mapserver-users] Re: help w/ ogr/tiles References: <3B53B582.9040407@no6.com> Message-ID: <3B54406C.5C8195F5@dmsolutions.ca> Drew wrote: > > Ok, I've got 3.5 built with ogr, and I've got the demo working. I made a > data2 directory and put a few .dgn files in it, and pointed the demo.map > to use that directory, and commented out all the old LAYER definitions. > Like I assumed, the map comes up blank. I guess I need to know how to > setup the layers automatically, since all my data is a few hundred > tiles. I'm not even sure what layers are in those .dgn files, or what > they're named, or how to call them. Any help would be appriciated :) > > thx > Drew Drew, The reason why you see a blank map is likely that your mapfile extents doesn't match (i.e. at least intersect) the extent of your layers... that's a very common mistake we all make. So you'll have to find out the extents of your DGN files and set the mapfile extents. About tiles, the OGR link will not currently support tiles the way we are used to see them with MapServer. This could be added (after 3.5) if there is enough demand for it, but at the moment the only type of tiled data that the OGR link supports is MapInfo "Seamless layers". -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jul 17 07:04:36 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 10:04:36 -0400 Subject: [mapserver-users] mapserver architecture for multi-websites on several machines References: <53273E187450D311ACF6009027927B12022C0D41@smtpgate.auslig.gov.au> Message-ID: <3B5445F4.2BB07B75@dmsolutions.ca> John, Claude, I agree with John's opinion that using the OGC WMS (Web Map Server) support in MapServer should allow you to do everything you need, and since it builds on a commonly adopted standard it will allow you to eventually expand your pool of servers to servers from other vendors if needed. As John wrote, the WMS spec includes 3 types of request: - getCapabilities returns an XML document with list of layers and features supported by the server. - getMap returns an image of the map with specified layers and BBOX - getFeatureInfo is used for querying the map obtained from a previous getMap request. One more thing you'll need is a server application that can integrate layers from several remote servers and return a single map image to the client browser... this is referred to by the OGC WMT (Web Mapping Testbed) group as a "cascading server" (well, technically a cascading WMS serves maps to other WMS servers and not directly to browsers... so maybe we should just say WMS client and not cascading server). Anyway, this is not available in MapServer yet but we will be adding this to Mapserver in the next few months. Note that some people have implemented JavaScript WMS clients that combine the WMS maps directly in the web browser, and that might do the trick for you... perhaps those who have developed this kind of WMS clients can comment more. I hope that helps, Daniel "Hockaday, John" wrote: > > Hi Claudia, > > I was hoping that someone with more experience with this type of subject > would answer your question but it seems that they haven't so I will give you > the little knowledge that I have on the subject. Hopefully, lots of people > will get annoyed with the errors in this e-mail that I am proposing and they > will correct me for your benefit. I for one am very interested in the > outcomes of your project as I will have to look into something similar soon. > > The Open GIS came up with a standard for accessing data across the web. (I > think that the OpenIGS is called something different now but I'm not sure.) > One of the commands is something like getimage(). I believe that mapserver > version 3.5 has the ability to handle Open GIS capabilities. I seem to > remember earlier versions having the getimage() command but I'm not sure > about that either. > > You could use the getimage() command to each of your mapservers and they > should return an image. You could then build these images on top of each > other, if they are transparent, to make a final map. GD can do this if > mapserver doesn't already have a command to do it. You may have to make > more that one call to each map server as the order of the layers may be > important to your final map. > > I think that there is a similar OpenGIS command to get information about a > layer from a remote map server. It may be something like getinfo(). This > is probably a more simpler command as it may only need information from one > mapserver. > > I would *strongly* recommend that you use the OpenGIS standard as a lot of > work has gone into this standard and you will greatly benefit from their > detailed efforts. I worked on a system of connecting to many map producing > servers a long time ago and it was full of problems therefore, we stopped > doing it. Since then, the OpenGIS has addressed those problems in their > work. > > Good luck and please keep this list aware of what you are doing. I want to > build on your work if you don't mind me "borrowing" your intellectual > property and code. ;--) > > John > > > -----Original Message----- > > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > > Sent: Friday, July 13, 2001 8:38 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] mapserver architecture for multi-websites > > on several machines > > > > We are starting a project using Mapserver (PHP/MapScript) for building a > > cartographic server which could be used by different client web-sites on > > different machines. The server will propose a large set of raster map from > > 1:25'000 to 1:1'000'000. The client web-sites will be able to use the > > central > > mapserver to interactivly geocode any kind of information (points, lines, > > surfaces) using an applet and to visualize and to navigate thru the > > obtained > > geocoded objects. > > > > Each site using Mapserver is totally independent should be able to > > integrate the > > map directly (no frames).In this configuration we don't have a web borwser > > making > > direct request to MapServer, but rather the web server machines would have > > to > > make the cartogrphic request to the mapserver machine. This is a kind of > > wms. > > > > My question: What is the best solution to implement this kind of > > architecture? > > Has anybody already done such thing? > > > > My ideas were to use WDDX (Web Distributed Data Exchange, > > http://www.openwddx.org/faq/) to exchange the required parameters between > > the > > mapserver box (coordinates of the click, shapes ON,...) and the webserver > > boxes > > (url of the map image,...). So the Webserver (php enabled) would post a > > wddx file > > (containing the serailzed parameter) to the MapServerPHP-MapScript. After > > deserialization PHP/Mapscript will process the map request and return wddx > > file > > (containing the url of the images and other important parameter). > > > > Is it the way to go to get good performance? Is there a better way to do > > it? > > > > Other question: I was palnning to start this development using directly > > Mapserver > > 3.5, providing that the system will not enter in production before > > november. Is > > 3.5 stable enough? Any timesacle for the official release? > > > > Claude Philipona -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mcilhagga at dmsolutions.ca Tue Jul 17 07:19:28 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Tue, 17 Jul 2001 10:19:28 -0400 Subject: [mapserver-users] mapserver architecture for multi-websites on several machines References: <53273E187450D311ACF6009027927B12022C0D41@smtpgate.auslig.gov.au> Message-ID: <3B544970.3C132E22@dmsolutions.ca> Hi Claudia, John, We have been working closely with Steve Lime to complete the integration of the OpenGIS Consortium (OGC) Web Map Server (WMS) capabilities into MapServer. Like John, I would strongly recommend the use of WMS for this type of project as it fits precicely the scenario that you have outlined below. Just for clarity, WMS specifications outline three functions for standard communications among servers: Get Capabilities Get Map Get Feature Info If I'm not mistaken, I believe these are all requested through http requests. Get Capabilities allows a server to ask a WMS MapServer information such as version compliance, layers availability, etc... This is used to make further requests for the map and attribute information. Get Map returns a map based on information passed as parameters. This includes projection info, extents, selected layers, etc... At this time symbology is not included so this has to be prepared beforehand. Get Feature Info returns attribute information for a selected point and selected layer(s) in XML format. Currently in MapServer 3.5, WMS compliance has been completed so that MapServer is capabable of responding to WMS requests. Documentation for use of WMS should be published shortly. Under development is the ability for MapServer to "Cascade". This is the ability to call multiple servers through WMS and overlay resulting maps to return a single image to the end-client. Images are overlayed by setting all pixels in each image where no data is found to transparent so that layers beneath can be seen. This will be completed through the end of this summer. I hope that helps clear up what to expect somewhat. If I'm mistaken in some of the technical details, please someone correct me. Look for a lot more information to be available concerning WMS in the coming weeks. Dave "Hockaday, John" wrote: > > Hi Claudia, > > I was hoping that someone with more experience with this type of subject > would answer your question but it seems that they haven't so I will give you > the little knowledge that I have on the subject. Hopefully, lots of people > will get annoyed with the errors in this e-mail that I am proposing and they > will correct me for your benefit. I for one am very interested in the > outcomes of your project as I will have to look into something similar soon. > > The Open GIS came up with a standard for accessing data across the web. (I > think that the OpenIGS is called something different now but I'm not sure.) > One of the commands is something like getimage(). I believe that mapserver > version 3.5 has the ability to handle Open GIS capabilities. I seem to > remember earlier versions having the getimage() command but I'm not sure > about that either. > > You could use the getimage() command to each of your mapservers and they > should return an image. You could then build these images on top of each > other, if they are transparent, to make a final map. GD can do this if > mapserver doesn't already have a command to do it. You may have to make > more that one call to each map server as the order of the layers may be > important to your final map. > > I think that there is a similar OpenGIS command to get information about a > layer from a remote map server. It may be something like getinfo(). This > is probably a more simpler command as it may only need information from one > mapserver. > > I would *strongly* recommend that you use the OpenGIS standard as a lot of > work has gone into this standard and you will greatly benefit from their > detailed efforts. I worked on a system of connecting to many map producing > servers a long time ago and it was full of problems therefore, we stopped > doing it. Since then, the OpenGIS has addressed those problems in their > work. > > Good luck and please keep this list aware of what you are doing. I want to > build on your work if you don't mind me "borrowing" your intellectual > property and code. ;--) > > John > > > -----Original Message----- > > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > > Sent: Friday, July 13, 2001 8:38 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] mapserver architecture for multi-websites > > on several machines > > > > We are starting a project using Mapserver (PHP/MapScript) for building a > > cartographic server which could be used by different client web-sites on > > different machines. The server will propose a large set of raster map from > > 1:25'000 to 1:1'000'000. The client web-sites will be able to use the > > central > > mapserver to interactivly geocode any kind of information (points, lines, > > surfaces) using an applet and to visualize and to navigate thru the > > obtained > > geocoded objects. > > > > Each site using Mapserver is totally independent should be able to > > integrate the > > map directly (no frames).In this configuration we don't have a web borwser > > making > > direct request to MapServer, but rather the web server machines would have > > to > > make the cartogrphic request to the mapserver machine. This is a kind of > > wms. > > > > My question: What is the best solution to implement this kind of > > architecture? > > Has anybody already done such thing? > > > > My ideas were to use WDDX (Web Distributed Data Exchange, > > http://www.openwddx.org/faq/) to exchange the required parameters between > > the > > mapserver box (coordinates of the click, shapes ON,...) and the webserver > > boxes > > (url of the map image,...). So the Webserver (php enabled) would post a > > wddx file > > (containing the serailzed parameter) to the MapServerPHP-MapScript. After > > deserialization PHP/Mapscript will process the map request and return wddx > > file > > (containing the url of the images and other important parameter). > > > > Is it the way to go to get good performance? Is there a better way to do > > it? > > > > Other question: I was palnning to start this development using directly > > Mapserver > > 3.5, providing that the system will not enter in production before > > november. Is > > 3.5 stable enough? Any timesacle for the official release? > > > > Claude Philipona -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From steve.lime at dnr.state.mn.us Tue Jul 17 08:00:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Jul 2001 10:00:13 -0500 Subject: [mapserver-users] shptree documentation Message-ID: Um, er... What you see below is all there is at the moment. First of all there is virtually no difference in performance no matter what format you choose. The N option writes indexes as I originally wrote the code, this produced machine dependent files. The L and M options write an index that is portable and you should choose the byte ordering that matches your environment best. The last couple of options tag a bit more information into the index including a magic number so that apps could test for this type of file. The hard part is setting depth (i.e. the amount of detail in the quadtree). If depth is set to 0 then a depth is automatically calculated to try and store 8 features per node. I've not run across any rules for what a good value is. I generally just experiment with a few values between 4 and 10 and see how things run. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 07/13/01 09:48AM >>> Where is the shptree documentation? I was trying to figure out what these are options are: Syntax: shptree [shpfile] {depth} {N | L | M | NL | NM} N: Native byte order L: LSB (intel) byte order M: MSB byte order NL: LSB byte order, using new index format NM: MSB byte order, using new index format Thanks, Andrea From morissette at dmsolutions.ca Tue Jul 17 08:08:12 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 11:08:12 -0400 Subject: [mapserver-users] Re: help w/ ogr/tiles References: <3B53B582.9040407@no6.com> <3B54406C.5C8195F5@dmsolutions.ca> <3B54448E.5000605@no6.com> Message-ID: <3B5454DC.61D8B73C@dmsolutions.ca> Drew wrote: > > thanks for the reply, which now gives more questions (but im narrowing > it down ;) > > is there something that can open .dgn files to find the extents? > I added a report of extent in the "ogrinfo" tool a few minutes ago. So if you get the latest OGR CVS source and recompile ogrinfo then you'll be able to use it to get the extent of any supported format... and for the benefit of other MapServer users: that includes shapefiles, so ogrinfo can also be used to find out extents of any shapefile. See the OGR-HOWTO for more details on how to use ogrinfo: http://mapserver.gis.umn.edu/doc/ogr-howto.html#ogrinfo > and... how *do* i setup tiles then? manually isn't really an option as > there are hundreds. > The only other option if you want to stick to DGN is to setup one layer for each file... but with hundreds that's not a very interesting option. > will i have to convert to dxf and then to shp? if i do that, will > anything be lost in the conversion, or will the tiling then work fine? > You could use the OGR2OGR tool to setup a script to convert all your shapefiles from DGN to SHAPEFILE directly... there shouldn't be any loss of information between DGN and SHP AFAIK. There's an example of use of OGR2OGR on the OGR mailing list at: http://groups.yahoo.com/group/sfcom-dev/message/107 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Tom.Kralidis at CCRS.NRCan.gc.ca Tue Jul 17 08:43:43 2001 From: Tom.Kralidis at CCRS.NRCan.gc.ca (Kralidis, Tom) Date: Tue, 17 Jul 2001 11:43:43 -0400 Subject: [mapserver-users] mapserver architecture for multi-websites o n several machines Message-ID: <2951561DB3DDD0118FEC00805FFE9805058F4858@s5-ccr-r1> Hi, As far as JavaScript / Java WMS clients go, some work has been done in this area to integrate WMS into MapServer applications. As MapServer does not (yet) support WMS connections, one may use MapServer along with the mapplet developed by Steve to display maps using a WMS provider. At a high level: - add another parameter to the mapplet's interface which has a WMS GetMap request, i.e.; - create a wrapper CGI script to ingest the WMS request output and display it through the mapplet (Java does not allow for connections to remote servers); - add modifications to Java code to handle additional image objects (i.e. getImage and drawImage); You can then use JavaScript to manipulate the layer information (on/off, etc.), and updating the WMS request as needed, adding your own MapServer CGI variables. More info is available at: http://www.kralidis.ca/gis/mapserv/mapplet/howto.htm I'd be interested to hear other approaches... Hope this helps ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, July 17, 2001 10:05 AM > To: Hockaday, John > Cc: 'claude.philipona at camptocamp.com'; > mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] mapserver architecture for > multi-websites > on several machines > > > John, Claude, > > I agree with John's opinion that using the OGC WMS (Web Map Server) > support in MapServer should allow you to do everything you need, and > since it builds on a commonly adopted standard it will allow you to > eventually expand your pool of servers to servers from other > vendors if > needed. > > As John wrote, the WMS spec includes 3 types of request: > > - getCapabilities returns an XML document with list of layers and > features supported by the server. > - getMap returns an image of the map with specified layers and BBOX > - getFeatureInfo is used for querying the map obtained from a previous > getMap request. > > One more thing you'll need is a server application that can integrate > layers from several remote servers and return a single map > image to the > client browser... this is referred to by the OGC WMT (Web Mapping > Testbed) group as a "cascading server" (well, technically a cascading > WMS serves maps to other WMS servers and not directly to > browsers... so > maybe we should just say WMS client and not cascading server). > > Anyway, this is not available in MapServer yet but we will be adding > this to Mapserver in the next few months. > > Note that some people have implemented JavaScript WMS clients that > combine the WMS maps directly in the web browser, and that > might do the > trick for you... perhaps those who have developed this kind of WMS > clients can comment more. > > I hope that helps, > > Daniel > > "Hockaday, John" wrote: > > > > Hi Claudia, > > > > I was hoping that someone with more experience with this > type of subject > > would answer your question but it seems that they haven't > so I will give you > > the little knowledge that I have on the subject. > Hopefully, lots of people > > will get annoyed with the errors in this e-mail that I am > proposing and they > > will correct me for your benefit. I for one am very > interested in the > > outcomes of your project as I will have to look into > something similar soon. > > > > The Open GIS came up with a standard for accessing data > across the web. (I > > think that the OpenIGS is called something different now > but I'm not sure.) > > One of the commands is something like getimage(). I > believe that mapserver > > version 3.5 has the ability to handle Open GIS > capabilities. I seem to > > remember earlier versions having the getimage() command but > I'm not sure > > about that either. > > > > You could use the getimage() command to each of your > mapservers and they > > should return an image. You could then build these images > on top of each > > other, if they are transparent, to make a final map. GD > can do this if > > mapserver doesn't already have a command to do it. You may > have to make > > more that one call to each map server as the order of the > layers may be > > important to your final map. > > > > I think that there is a similar OpenGIS command to get > information about a > > layer from a remote map server. It may be something like > getinfo(). This > > is probably a more simpler command as it may only need > information from one > > mapserver. > > > > I would *strongly* recommend that you use the OpenGIS > standard as a lot of > > work has gone into this standard and you will greatly > benefit from their > > detailed efforts. I worked on a system of connecting to > many map producing > > servers a long time ago and it was full of problems > therefore, we stopped > > doing it. Since then, the OpenGIS has addressed those > problems in their > > work. > > > > Good luck and please keep this list aware of what you are > doing. I want to > > build on your work if you don't mind me "borrowing" your > intellectual > > property and code. ;--) > > > > John > > > > > -----Original Message----- > > > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > > > Sent: Friday, July 13, 2001 8:38 PM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: [mapserver-users] mapserver architecture > for multi-websites > > > on several machines > > > > > > We are starting a project using Mapserver (PHP/MapScript) > for building a > > > cartographic server which could be used by different > client web-sites on > > > different machines. The server will propose a large set > of raster map from > > > 1:25'000 to 1:1'000'000. The client web-sites will be > able to use the > > > central > > > mapserver to interactivly geocode any kind of information > (points, lines, > > > surfaces) using an applet and to visualize and to > navigate thru the > > > obtained > > > geocoded objects. > > > > > > Each site using Mapserver is totally independent should be able to > > > integrate the > > > map directly (no frames).In this configuration we don't > have a web borwser > > > making > > > direct request to MapServer, but rather the web server > machines would have > > > to > > > make the cartogrphic request to the mapserver machine. > This is a kind of > > > wms. > > > > > > My question: What is the best solution to implement this kind of > > > architecture? > > > Has anybody already done such thing? > > > > > > My ideas were to use WDDX (Web Distributed Data Exchange, > > > http://www.openwddx.org/faq/) to exchange the required > parameters between > > > the > > > mapserver box (coordinates of the click, shapes ON,...) > and the webserver > > > boxes > > > (url of the map image,...). So the Webserver (php > enabled) would post a > > > wddx file > > > (containing the serailzed parameter) to the > MapServerPHP-MapScript. After > > > deserialization PHP/Mapscript will process the map > request and return wddx > > > file > > > (containing the url of the images and other important parameter). > > > > > > Is it the way to go to get good performance? Is there a > better way to do > > > it? > > > > > > Other question: I was palnning to start this development > using directly > > > Mapserver > > > 3.5, providing that the system will not enter in production before > > > november. Is > > > 3.5 stable enough? Any timesacle for the official release? > > > > > > Claude Philipona > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From morissette at dmsolutions.ca Tue Jul 17 09:19:23 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 12:19:23 -0400 Subject: [mapserver-users] Re: help w/ ogr/tiles References: <3B53B582.9040407@no6.com> <3B54406C.5C8195F5@dmsolutions.ca> <3B54448E.5000605@no6.com> <3B5454DC.61D8B73C@dmsolutions.ca> <3B545CD0.2070408@no6.com> Message-ID: <3B54658B.534673A3@dmsolutions.ca> Drew wrote: > > awesome, thanks for the help, one last thing (hopefully) > > ./ogr2ogr -f "ESRI Shapefile" output > ../../../public_html/dev/itasca/data2/782221.dgn > ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type > shapefile. > ERROR 1: Terminating translation prematurely after failed > translation of layer elements > > [root at melbwireless ogr]# ls output/ > elements.dbf elements.shp elements.shx > > still creates them, do i need to worry about the errors? > Drew, I think the translation aborted after the incompatible geometry type was encountered, so the file was created but was incomplete. This is because shapefiles can contain only one geometry type at a time, and ogr2ogr defaults to use the geometry type of the first shape it encounters. I'm really not an expert with OGR2OGR, but I think what you need to do is force the type of the output file, and use the -skipfailures option to prevent the execution from aborting when incompatible geometries are encountered: ./ogr2ogr -skipfailures -f "ESRI Shapefile" output_point 782221.dgn \ -lco SHPT=POINT ./ogr2ogr -skipfailures -f "ESRI Shapefile" output_line 782221.dgn \ -lco SHPT=ARC ./ogr2ogr -skipfailures -f "ESRI Shapefile" output_poly 782221.dgn \ -lco SHPT=POLYGON The -lco switch is to pass layer creation options which are format-specific... in the case of shapefiles, the SHPT layer creation option specifies the type of shapefile to create. See also: http://gdal.velocet.ca/projects/opengis/ogrhtml/drv_shapefile.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jul 17 09:27:27 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 12:27:27 -0400 Subject: [mapserver-users] MapScript and PHP 4.0.6 Message-ID: <3B54676F.9D1FA4CB@dmsolutions.ca> Hi Everyone, There seems to be an incompatibility between the PHP/MapScript module and PHP 4.0.6 which causes crashes or odd error situations, most of the time with the map->getLayer() call. This happens on both Windows and Unix. We are going to look into this, but in the meantime, you should avoid using the PHP/MapScript module with PHP 4.0.6 ... you can use PHP 4.0.4pl1 or 4.0.5 which were both working fine. Note that backtracking to older versions of MapServers such as 3.4 or 3.3.011 with PHP 4.0.6 is not likely to resolve the problem. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mike at boonedocks.net Tue Jul 17 09:27:39 2001 From: mike at boonedocks.net (Mike Boone) Date: Tue, 17 Jul 2001 12:27:39 -0400 Subject: [mapserver-users] New User - Projection Question In-Reply-To: <3B532179.EC762F8F@dmsolutions.ca> Message-ID: Thanks for your help. Thanks to everyone else who responded too. I finally got it working. First I had a PROJ compile problem which I worked out, then I figured out that the lcc projection wanted EXTENTs in meters (or something like that with large # values) for some reason, even though I had UNITS DD defined. At any rate my US map is now all curvy like I wanted it. Thanks. Mike. mike at boonedocks.net -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Jeff McKenna Sent: Monday, July 16, 2001 1:17 PM To: Mike Boone; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] New User - Projection Question Hi Mike, Although I am no expert myself when it comes to projections, I think I can help you (I was one of the developers involved in the Species At Risk site that you were looking at). The shapefiles that you see in the Species application are all in the Lambert Conforml Conic (LCC) projection. From your description of your data I would guess that your data is in generic lat/longs (a 'Geographic' projection). A solution to your problem could be to specify LCC as your default projection in your mapfile, through a PROJECTION object, and then declare 'Geographic' as the layer(s) projection: eg. # Main map and default projection definition # PROJECTION "proj=lcc" "ellps=GRS80" "lat_0=49" "lon_0=-95" "lat_1=49" "lat_2=77" END ... LAYER NAME States DESCRIPTION "States_poly" TYPE POLYGON STATUS ON DATA bounds # Specify the data's projection PROJECTION geographic END ... CLASS ... END END # Layer Declaring 'PROJECTION geographic END' in each layer will re-project your data to the default projection that you specify in the PROJECTION object. I hope this helps you, good luck. Jeff -------------------------- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca From benenet at free.fr Tue Jul 17 10:46:24 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Tue, 17 Jul 2001 19:46:24 +0200 Subject: [mapserver-users] install References: <3B542ACD.D85625F6@free.fr> <3B543481.821D75C1@dmsolutions.ca> Message-ID: <3B5479F0.1418B0C0@free.fr> Hello, thanks very much, it works better like this. Anyway, I can't see images on the demo page. Neither maps nor icons... I guess it's not too bad, but if you can help me finding that quickly, that would be nice from you. Cheers, Ben. Daniel Morissette a ?crit : > Benoit V?ler wrote: > > > > I am trying to install mapserver under W95, and apache. My pb is > > that I can't manage to install the demo. > > * I can read perfectly well the page > > http://localhost/ms_demo/demo_init.html > > * when I hit "initialize", the next page give me the error message : > > > > loadLayer(): Unknown identifier. (QUERY):(149) > > Benoit, > > You are likely getting this because you're using MapServer 3.5 with the > demo for version 3.4. The QUERY identifier (in the .map file) is gone > in version 3.5 > > You can either install and use MapServer version 3.4, or use the 3.5 > demo that was posted by Steve Lime on the list a few days ago: > http://maps.dnr.state.mn.us/mapserver_demos/itasca.tar.gz > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- G?orama.net, WebZine gratuit et ind?pendant. http://www.georama.net G?or?zo.net, Incubateur de G?ographie sur le net depuis 1999. http://www.georezo.net ________________________________________________________________ Benoit V?ler (Cartographe/G?ographe) Url : http://www.georezo.net/veler ________________________________________________________________ From morissette at dmsolutions.ca Tue Jul 17 11:01:19 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 14:01:19 -0400 Subject: [mapserver-users] install References: <3B542ACD.D85625F6@free.fr> <3B543481.821D75C1@dmsolutions.ca> <3B5479F0.1418B0C0@free.fr> Message-ID: <3B547D6F.34C73F97@dmsolutions.ca> Benoit V?ler wrote: > > thanks very much, it works better like this. Anyway, I can't see images on > the demo page. Neither maps nor icons... I guess it's not too bad, but if you > can help me finding that quickly, that would be nice from you. > The map, legend and scalebar are saved to a temporary directory and links to them are embedded in the returned HTML page. Make sure the IMAGEPATH value in your map file points to an existing directory on your system and that the URL path to this directory relative to your web server's document root is set in the IMAGEURL parameter in the map file. e.g. if your web server's document root is C:\apache\htdocs, then create a directory C:\apache\htdocs\ms_tmp" and then set in your mapfile: IMAGEPATH "C:/apache/htdocs/ms_tmp" IMAGEURL "/ms_tmp/" -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From claude.philipona at camptocamp.com Tue Jul 17 11:04:34 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Tue, 17 Jul 2001 20:04:34 +0200 (CEST) Subject: [mapserver-users] mapserver architecture for multi-websites on several machines In-Reply-To: <3B5445F4.2BB07B75@dmsolutions.ca> References: <53273E187450D311ACF6009027927B12022C0D41@smtpgate.auslig.gov.au> <3B5445F4.2BB07B75@dmsolutions.ca> Message-ID: <995393074.3b547e32f169b@www.skirando.ch> Thanks for your help. A few more questions: - is OGC WMS also supported in PHP/Mapscript (source comming from the nightly build) or only in the cgi version? - if yes, where how can we use the different getCapabilities, getMap, getFeature wiht PHP/Mapscript. - where can i find a little more documentation or examples on how to use OGC WMS with Mapserver and PHP/Mapscript? > I agree with John's opinion that using the OGC WMS (Web Map Server) > support in MapServer should allow you to do everything you need, and > since it builds on a commonly adopted standard it will allow you to > eventually expand your pool of servers to servers from other vendors > if > needed. > > As John wrote, the WMS spec includes 3 types of request: > > - getCapabilities returns an XML document with list of layers and > features supported by the server. > - getMap returns an image of the map with specified layers and BBOX > - getFeatureInfo is used for querying the map obtained from a previous > getMap request. > > One more thing you'll need is a server application that can integrate > layers from several remote servers and return a single map image to > the > client browser... this is referred to by the OGC WMT (Web Mapping > Testbed) group as a "cascading server" (well, technically a cascading > WMS serves maps to other WMS servers and not directly to browsers... > so > maybe we should just say WMS client and not cascading server). > > Anyway, this is not available in MapServer yet but we will be adding > this to Mapserver in the next few months. > > Note that some people have implemented JavaScript WMS clients that > combine the WMS maps directly in the web browser, and that might do > the > trick for you... perhaps those who have developed this kind of WMS > clients can comment more. > > I hope that helps, > > Daniel > > "Hockaday, John" wrote: > > > > Hi Claudia, > > > > I was hoping that someone with more experience with this type of > subject > > would answer your question but it seems that they haven't so I will > give you > > the little knowledge that I have on the subject. Hopefully, lots of > people > > will get annoyed with the errors in this e-mail that I am proposing > and they > > will correct me for your benefit. I for one am very interested in > the > > outcomes of your project as I will have to look into something similar > soon. > > > > The Open GIS came up with a standard for accessing data across the > web. (I > > think that the OpenIGS is called something different now but I'm not > sure.) > > One of the commands is something like getimage(). I believe that > mapserver > > version 3.5 has the ability to handle Open GIS capabilities. I seem > to > > remember earlier versions having the getimage() command but I'm not > sure > > about that either. > > > > You could use the getimage() command to each of your mapservers and > they > > should return an image. You could then build these images on top of > each > > other, if they are transparent, to make a final map. GD can do this > if > > mapserver doesn't already have a command to do it. You may have to > make > > more that one call to each map server as the order of the layers may > be > > important to your final map. > > > > I think that there is a similar OpenGIS command to get information > about a > > layer from a remote map server. It may be something like getinfo(). > This > > is probably a more simpler command as it may only need information > from one > > mapserver. > > > > I would *strongly* recommend that you use the OpenGIS standard as a > lot of > > work has gone into this standard and you will greatly benefit from > their > > detailed efforts. I worked on a system of connecting to many map > producing > > servers a long time ago and it was full of problems therefore, we > stopped > > doing it. Since then, the OpenGIS has addressed those problems in > their > > work. > > > > Good luck and please keep this list aware of what you are doing. I > want to > > build on your work if you don't mind me "borrowing" your > intellectual > > property and code. ;--) > > > > John > > > > > -----Original Message----- > > > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > > > Sent: Friday, July 13, 2001 8:38 PM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: [mapserver-users] mapserver architecture for > multi-websites > > > on several machines > > > > > > We are starting a project using Mapserver (PHP/MapScript) for > building a > > > cartographic server which could be used by different client > web-sites on > > > different machines. The server will propose a large set of raster > map from > > > 1:25'000 to 1:1'000'000. The client web-sites will be able to use > the > > > central > > > mapserver to interactivly geocode any kind of information (points, > lines, > > > surfaces) using an applet and to visualize and to navigate thru > the > > > obtained > > > geocoded objects. > > > > > > Each site using Mapserver is totally independent should be able to > > > integrate the > > > map directly (no frames).In this configuration we don't have a web > borwser > > > making > > > direct request to MapServer, but rather the web server machines > would have > > > to > > > make the cartogrphic request to the mapserver machine. This is a > kind of > > > wms. > > > > > > My question: What is the best solution to implement this kind of > > > architecture? > > > Has anybody already done such thing? > > > > > > My ideas were to use WDDX (Web Distributed Data Exchange, > > > http://www.openwddx.org/faq/) to exchange the required parameters > between > > > the > > > mapserver box (coordinates of the click, shapes ON,...) and the > webserver > > > boxes > > > (url of the map image,...). So the Webserver (php enabled) would > post a > > > wddx file > > > (containing the serailzed parameter) to the MapServerPHP-MapScript. > After > > > deserialization PHP/Mapscript will process the map request and > return wddx > > > file > > > (containing the url of the images and other important parameter). > > > > > > Is it the way to go to get good performance? Is there a better way > to do > > > it? > > > > > > Other question: I was palnning to start this development using > directly > > > Mapserver > > > 3.5, providing that the system will not enter in production before > > > november. Is > > > 3.5 stable enough? Any timesacle for the official release? > > > > > > Claude Philipona > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > ------------------------------ camptocamp SA Claude Philipona mailto:claude.philipona at camptocamp.com mobile: +41 78 648 32 84 tel+fax: +41 21 693 8632 http://www.camptocamp.com/ http://www.skirando.ch/ ------------------------------ From morissette at dmsolutions.ca Tue Jul 17 11:03:26 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 14:03:26 -0400 Subject: [mapserver-users] install References: <3B542ACD.D85625F6@free.fr> <3B543481.821D75C1@dmsolutions.ca> <3B5479F0.1418B0C0@free.fr> <3B547D6F.34C73F97@dmsolutions.ca> Message-ID: <3B547DEE.219EDE21@dmsolutions.ca> Daniel Morissette wrote: > > e.g. if your web server's document root is C:\apache\htdocs, then create > a directory C:\apache\htdocs\ms_tmp" and then set in your mapfile: > > IMAGEPATH "C:/apache/htdocs/ms_tmp" > IMAGEURL "/ms_tmp/" > OOpps.. little typo: there has to be a trailing '/' at the end of both values: IMAGEPATH "C:/apache/htdocs/ms_tmp/" IMAGEURL "/ms_tmp/" -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jul 17 11:13:08 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 14:13:08 -0400 Subject: [mapserver-users] mapserver architecture for multi-websites on several machines References: <53273E187450D311ACF6009027927B12022C0D41@smtpgate.auslig.gov.au> <3B5445F4.2BB07B75@dmsolutions.ca> <995393074.3b547e32f169b@www.skirando.ch> Message-ID: <3B548034.FD57D953@dmsolutions.ca> Claude Philipona wrote: > > Thanks for your help. A few more questions: > > - is OGC WMS also supported in PHP/Mapscript (source comming from the nightly > build) or only in the cgi version? The 'mapserv' CGI executable will automagically detect if it is receiving a WMS request based on the URL parameters and will behave as a WMS server if it receives a WMS request. There is nothing in MapScript related to WMS... WMS is just a standardized set of CGI parameters (and related behaviors) to use in communicating with a map server and MapServer knows how to respond to these CGI parameters. > - if yes, where how can we use the different getCapabilities, getMap, > getFeature wiht PHP/Mapscript. MapServer cannot yet act as a WMS client (but this is coming as I wrote earlier), so at the moment you would have to build WMS URLs yourself in PHP, call the remote WMS servers via HTTP protocol, and combine the returned images using the GD PHP package or an equivalent tool. > - where can i find a little more documentation or examples on how to use OGC > WMS with Mapserver and PHP/Mapscript? > There is not much documentation on how to use MapServer as a WMS at the moment. We're working on a WMS HOWTO that should be ready in the next week or two. The best for you is probably to wait for this HOWTO to become available. If you search the list archive, you might find some blurbs of information that circulated in the last 2 months. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jul 17 12:29:20 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 17 Jul 2001 15:29:20 -0400 Subject: [mapserver-users] strange error with mapserver/ogr References: <006c01c10b41$80d81870$0300000a@dhr> <3B4EFDEF.296D22AD@pobox.com> Message-ID: <3B549210.B8B8971B@dmsolutions.ca> Frank Warmerdam wrote: > > Drew wrote: > > > > configure: error: Could not find one of ogr_feature.h, ogrsf_fmrts.h, > > cpl_conv.h, ogr.a, ogrsf_frmts.a, or cpl.a in > > /home/drew/mapserver/gdal-1.1.4/ogr. > > [root at melbwireless mapserver]# cd /home/drew/mapserver/gdal-1.1.4/ogr > > [root at melbwireless ogr]# ls ogr_feature.h > > ogr_feature.h > > > > this was using mapserver 3.5 nightly build from yesterday > > Drew / Rob, > > I was unable to reproduce this error. Is this working with the current CVS > source for MapServer or older packaged source? The older configure logic > was somewhat flackey, but I thought it was currently pretty bulletproof. > I also tried with gdal 1.1.4 and the current CVS source. Both seemed to > configure alright, though I see that MapServer CVS requires GDAL CVS, > since the GDAL 1.1.4 OGR support lacks a feature now required by MapServer. Drew, Rob, Frank, ... I guess the error message should be more explicit, but what it means is that configure looked for all the following files: ogr_feature.h, ogrsf_fmrts.h, cpl_conv.h, ogr.a, ogrsf_frmts.a, cpl.a and at least one of them could not be found. It is likely that you had not yet compiled the OGR tree at the time you ran configure and one of the .a files was not found. Was it the case? As Rob noted, there are several ways to compile GDAL/OGR independently or not in MapServer and perhaps that's not well enough documented (if at all!?!): 1- OGR only statically linked into MapServer, then you point configure directly to the ogr source tree after having compiled OGR: configure --with-ogr=/path/to/ogr/source 2- GDAL only using libgdal.so installed in system lib dirs, this assumes you have previously run 'make install' as root in your GDAL source tree: configure --with-gdal or configure --with-gdal=/usr/local/bin/gdal-config (or whatever the path to the installed gdal-config script is.) 3- GDAL and OGR using libgdal.so. Same as #2 above, but add --with-ogr with no argument: configure --with-gdal --with-ogr or configure --with-gdal=/usr/local/bin/gdal-config --with-ogr I'll copy these notes in the README.CONFIGURE I hope that helps. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Tue Jul 17 13:16:05 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 17 Jul 2001 15:16:05 -0500 Subject: [mapserver-users] itemquery Message-ID: I am defeated... I have a layer called "mcds" with an item called "MCD_NAME" and a value for that item called "MADISON". I am sending a url with mode=itemquery&qlayer=mcds&item=MCD_NAME&value=MADISON but I keep getting msQueryUsingItem(): Search returned no results. No matching record(s) found. I know it is there (and, yes, I have preserved the case of the names and attributes correctly). Is there anyway to look at a debug string to figure out what the blessed Search is being performed with msQueryUsingItem()? What am I doing wrong? Many tia, pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From gregg.kelley at stoner.com Tue Jul 17 13:43:22 2001 From: gregg.kelley at stoner.com (Gregg Kelley) Date: Tue, 17 Jul 2001 16:43:22 -0400 Subject: [mapserver-users] problem with shape files Message-ID: <000401c10f01$1f7b9020$3779370a@stoner.com> Hi, I couldn't find any reference to this sort of problem in the archives so here goes. I have shape files in my C:\Inetpub\wwwroot directory called gaslines. They work fine with ESRI's products. However, I have set up a simple test to use these shape files, but with no success. The legend and scalebar png's are being produced, but the shape file image isn't. I've checked the output directory and the legend and scalebar images are there, but the shape file image isn't (e.g. there are file names like "testingleg333.png" and "testingsb333.png" but no "testing.png") I have tried moving the shape files to different directories (all web-accessible) and changing the needed files, but that hasn't worked. Also, there are no errors produced by the mapserver. It comes back with another web page with everything there but the shape file image. Also, the legend image is there but it is empty (obviously, since the mapserver can't seem to find/read the shape files). I also tried running shp2img, and it at least outputs a image, although it is blank (solid white). It produces no errors. Does anyone have any ideas??? They would be greatly appreciated! Oh here are my map file and my test_init.html and test.html files. Also my machine is running WindowsNT 4.0 with IIS 4.0 and MapServer 3.4 (I just downloaded it this morning). ------------testmap.map-------------------------------------- # # Start of map file # NAME testing STATUS OFF SIZE 600 600 EXTENT 2205407.2 2206191.2662416105 1373732.7063506711 1374323.7036493286 UNITS DD SHAPEPATH "C:\netpub\wwwroot" IMAGECOLOR 255 255 255 SYMBOLSET symbol.sym #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" #END # # Start of web interface definition # WEB HEADER test_header.html TEMPLATE test.html FOOTER test_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "C:\Data\mapping project\free mapserver\www\output\" IMAGEURL "/mapserv/output/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # #REFERENCE # IMAGE graphics/reference.gif # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 # SIZE 120 120 # 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 255 255 255 SIZE tiny END STYLE 1 SIZE 50 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of layer definitions # LAYER NAME Gaslines DATA gaslines TYPE LINE STATUS ON CLASS COLOR 127 227 127 END END # # # End of layer definitions # END # Map File -------------------------------------------------- -----------test_init.html------------------------- Mapserver Test
Browse map
Query feature
Query multiple features

Select Layers to Display:

Zoom Size

-------------------------------------------------- ---------test.html-------------------------------- MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




-------------------------------------------------- -Gregg From steve.lime at dnr.state.mn.us Tue Jul 17 13:23:03 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 17 Jul 2001 15:23:03 -0500 Subject: [mapserver-users] Querying by point? Message-ID: Unless you're points are in a shapefile then there's no way for the MapServer to query them. Sounds like what you want to do is take a click from a map and query the SQL database, sort of the reverse of drawing. The code to take an image click and turn it into a map coordinate is available lots of places. You can take that coordinate (ie. lat/lon) and create a SQL statement with it "select * from table where x > minx and x < maxx and y > miny and y < maxy". Where the min and max values are based on the computed map coordinate plus some buffer. That's essentially how point based MapServer queries work anyway. Does that make sense? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mike Neuman" 07/13/01 10:35PM >>> I'm trying to dynamically annotate my map and then allow the user to click on the areas to get more information on each. Ideally, I'd like to do this with a clientside map. I annotate the map by: $point = new pointObj(); $point->{y} = (SQL latitude); $point->{x} = (SQL longitude); $point->draw($map, $layer, $img, "points", (SQL label)); Obviously, this doesn't allow you to do a queryUsingPoint... Any suggestions on how I can change my code to allow point querying? Thanks! -Mike From pkishor at GeoAnalytics.com Tue Jul 17 14:07:00 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 17 Jul 2001 16:07:00 -0500 Subject: [mapserver-users] itemquery Message-ID: Hi Steve, Thanks once again for your reply. Here are some specifics... > > Which version are you using? Itemquery is hosed in 3.5 but I am using 3.4, which of course has its own related issues (existing docs are for 3.3x, so a bunch of keywords are hit-and-miss). Anyway, I am using 3.4, not 3.5. > of possiblities. Itemquery is really just a regular > expression test. Value is the > expression and item, is well, the item. that is why I am so surprised that it doesn't work. > map file. So, two things to check: > > - if not explicitly setting an extent then make sure the > extent in your map file is > all inclusive I am not setting an explicit mapextent... simply using the all inclusive default map extent. That said, I am not even reaching that far... I would be happy if msQueryUsingItem() simply found the shape where item=MCD_NAME and value=MADISON. Once it can query and find correctly, only then will I worry about mapping that feature. > > - is there a query object defined for the layer mcds > I think so... it looks like so... LAYER NAME mcds TYPE polygon STATUS on DATA "shapes/boundaries/mcdppoly" CLASSITEM mcd_name CLASS NAME "MCDs" EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 245 245 245 END HEADER "mcds_header.html" FOOTER "mcds_footer.html" QUERY TEMPLATE "mcds.html" END END > Steve > > Stephen Lime > Internet Applications Analyst > > > >>> Puneet Kishor 07/17/01 03:16PM >>> > I am defeated... > > I have a layer called "mcds" with an item called "MCD_NAME" > and a value for > that item called "MADISON". > > I am sending a url with > > mode=itemquery&qlayer=mcds&item=MCD_NAME&value=MADISON > > but I keep getting > > msQueryUsingItem(): Search returned no results. No matching > record(s) found. > > I know it is there (and, yes, I have preserved the case of > the names and > attributes correctly). Is there anyway to look at a debug > string to figure > out what the blessed Search is being performed with > msQueryUsingItem()? What > am I doing wrong? > > Many tia, > > pk/ > > -- > Puneet Kishor > pkishor at geoanalytics.com > www.geoanalytics.com > > GeoAnalyics, Inc. > 1716 Fordem Ave > Madison WI 53704 > From pramsey at refractions.net Tue Jul 17 22:14:51 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 17 Jul 2001 22:14:51 -0700 Subject: [mapserver-users] ScaleHint Message-ID: <3B551B4B.D756856F@refractions.net> I have started exploring the WMS capability somewhat... I was wondering why the WMS does not provide a ScaleHint for layers which have explicitly defined min and max scales? What will the MapServer WMS do if a client does GetMap on a layer using an extent which violates the maxscale? I am thinking in terms of writing a client which knows nothing about the WMS except there is a service there: in order to properly request scale-restricted layers, the ScaleHint is vital. Otherwise the client could request every contour in the province, when in fact contours should only be requested at a close-in zoom level. Thanks for the info, Paul PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I recognize the difficulty, however -- what is a service description absent a map file? Perhaps a simple wrapper example could be bundled.) From cathode at nichebox.com Tue Jul 17 23:43:52 2001 From: cathode at nichebox.com (Rob Martinson) Date: Wed, 18 Jul 2001 09:43:52 +0300 Subject: [mapserver-users] MapScript and PHP 4.0.6 In-Reply-To: <3B54676F.9D1FA4CB@dmsolutions.ca> Message-ID: <002a01c10f55$034031a0$de00a8c0@nichebox1> Daniel, Thank you thank you! Consider this a confirmation to problems with PHP 4.0.6. I backtracked and rebuilt with source from 4.0.5 and I have zero problems! The issues with losing the handle of the map when dynamically generating a map from database contents are gone. I can now reliably (it seems) create a map on a blank .map file using mapscript only to set map/layer/class properties and add additional layers. This works now with the CVS version of Mapserver, Gdal and PHP 4.0.5 on my end. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Daniel Morissette > Sent: Tuesday, July 17, 2001 7:27 PM > To: mapserver-users > Subject: [mapserver-users] MapScript and PHP 4.0.6 > > > Hi Everyone, > > There seems to be an incompatibility between the > PHP/MapScript module and PHP 4.0.6 which causes crashes or > odd error situations, most of the time with the > map->getLayer() call. This happens on both Windows and Unix. > > We are going to look into this, but in the meantime, you > should avoid using the PHP/MapScript module with PHP 4.0.6 > ... you can use PHP 4.0.4pl1 or 4.0.5 which were both working fine. > > Note that backtracking to older versions of MapServers such > as 3.4 or 3.3.011 with PHP 4.0.6 is not likely to resolve the problem. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From andreag at crs4.it Wed Jul 18 00:39:52 2001 From: andreag at crs4.it (A. Giacomelli) Date: Wed, 18 Jul 2001 09:39:52 +0200 Subject: [mapserver-users] mapserver working, but not for static image generation Message-ID: <3B553D48.CCC7B29F@crs4.it> hi, I have 2 installations of mapserver on winnt. both work perfectly with my php mapscript application, but there is a difference in the generation of static maps, via calls such as: /cgi-bin/mapserv?map=C:\program+files\apache+group\apache\htdocs\mia\htdocs\cat.map&mapext=1445276.8 5+4473690.71+1465276.85+4493690.71&mapsize=100+100&mode=map which works only on one, while in the other I get a 'no image' returned any suggestions as to what the problem might be ? TIA and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia Environment Group http://www.crs4.it/~andreag ========================================= From benenet at free.fr Wed Jul 18 02:00:08 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Wed, 18 Jul 2001 11:00:08 +0200 Subject: [mapserver-users] php mapscript Message-ID: <3B555018.42661D9B@free.fr> Hello, still me ;-) Every thing works well, now, and I would like to test the php mapscript module. I've installed it, and I wish to use the mapserver/mapscript/php3/examples/phpinfo_mapscript.phtml and mapserver/mapscript/php3/examples/test_draw_map.phtml files to see if it works properly. Anyway I can't find these files in the place they are supposed to be. Where could I find that ? Cheers, Ben. -- G?orama.net, WebZine gratuit et ind?pendant. http://www.georama.net G?or?zo.net, Incubateur de G?ographie sur le net depuis 1999. http://www.georezo.net ________________________________________________________________ Benoit V?ler (Cartographe/G?ographe) Url : http://www.georezo.net/veler ________________________________________________________________ From morissette at dmsolutions.ca Wed Jul 18 05:51:21 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 18 Jul 2001 08:51:21 -0400 Subject: [mapserver-users] php mapscript References: <3B555018.42661D9B@free.fr> Message-ID: <3B558649.F0479376@dmsolutions.ca> Benoit V?ler wrote: > > Every thing works well, now, and I would like to test the php > mapscript module. I've installed it, and I wish to use the > mapserver/mapscript/php3/examples/phpinfo_mapscript.phtml and > mapserver/mapscript/php3/examples/test_draw_map.phtml files to see if it > works properly. Anyway I can't find these files in the place they are > supposed to be. Where could I find that ? > These files come with the MapServer source distribution... you can get ms_3.4.tar.gz from http://mapserver.gis.umn.edu/dload.html and then look under mapserver/mapscript/php3/examples -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Jul 18 06:15:56 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 18 Jul 2001 09:15:56 -0400 Subject: [mapserver-users] ScaleHint References: <3B551B4B.D756856F@refractions.net> Message-ID: <3B558C0C.D11BDADD@dmsolutions.ca> Paul Ramsey wrote: > > I have started exploring the WMS capability somewhat... I was wondering > why the WMS does not provide a ScaleHint for layers which have > explicitly defined min and max scales? Probably just an omission... I'll try to check that. > What will the MapServer WMS do if > a client does GetMap on a layer using an extent which violates the > maxscale? The layer just won't show up. > I am thinking in terms of writing a client which knows nothing > about the WMS except there is a service there: in order to properly > request scale-restricted layers, the ScaleHint is vital. Otherwise the > client could request every contour in the province, when in fact > contours should only be requested at a close-in zoom level. > Thanks for the info, > Paul > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > recognize the difficulty, however -- what is a service description > absent a map file? Perhaps a simple wrapper example could be bundled.) 2-parts answer: 1- No it does not violate the spec... at first sight it seems like it would, but there was a discussion this recently on one of the WMT mailing list that made me realize that the following is a valid onlineResource URL and does not violate the spec: http://my.host.com/cgi-bin/mapserv?map=/path/to/demo.map& Basically the rule is that the OnlineResource URL has to contain a trailing "?" or "&" so that the client is ready to append parameters to it. It is also recommended that clients check for the presence of the trailing "?" or "&" and try to be smart and add one in case it is omitted since several servers (including the first ones we did setup) tend to not include it even though it is required. 2- However, I prefer not pushing my luck, so I usually setup a wrapper shell script that sets the MS_MAPFILE environment variable and then passes control to the mapserv executable... that results on a cleaner OnlineResource URL. #! /bin/sh MS_MAPFILE=/path/to/demo.map export MS_MAPFILE /path/to/mapserv I'll have this included in the WMS HOWTO as well. BTW, for those interested in discussing WMS issues, a public mailing list has been started recently and lots of interesting stuff is discussed there: http://www.intl-interfaces.net/mailman/listinfo/wms-dev -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cathode at nichebox.com Wed Jul 18 07:38:37 2001 From: cathode at nichebox.com (Rob Martinson) Date: Wed, 18 Jul 2001 17:38:37 +0300 Subject: [mapserver-users] PHP/Mapscript issues with different versions Message-ID: <003001c10f97$554b2170$de00a8c0@nichebox1> Okay, hopefully this may help some others out with a few issues. Below are my current tested versions/builds and the problems with them. The system is FreeBSD 4.2 RELEASE and all of the below use Apache 1.3.19 with PHP as a module. ========================== GDAL 1.1.14 from the website or GDAL CVS (1 week ago) MapServer 3.4 or 3.5 from nightly or CVS (1 week ago) compiled as PHP module -I cannot get OGR to statically link into the MapServer module without GDAL. This isn't a problem for me specifically, but issues have been reported. I CAN --enable-ogr with no path if I have GDAL properly setup. In any case, I am unable to get MapServer to compile when specifying a path with --with-ogr ========================== GDAL 1.1.14 from the website or GDAL CVS (1 week ago) MapServer 3.4 or 3.5 from nightly or CVS (1 week ago) compiled as PHP module Proj 4.4.3 PHP 4.0.6 -Any version of Mapserver built with the PHP 4.0.6 distribution has a problem with accessing layers. When adding or accessing layers you will receive a message "Object has invalid _handle_ property. I've tested this using Mapserver 3.4, and 3.5 nightly and CVS. -Scale bar cannot be embedded in the .map with a map definition or MapScript -Plain maps with little modification in mapscript and no scalebar or logo images seem to work. I have not tested querying layers, but basic draw with pan/zoom works well. ========================== GDAL 1.1.14 from the website or GDAL CVS (1 week ago) MapServer 3.5 from nightly or CVS (1 week ago) compiled as PHP module Proj 4.4.3 PHP 4.0.5 -Layers draw fine when using a map definition but when drawing a layer from within PHP/Mapscript lines look to be drawn as points only. So a polygon will only be drawn as the points within the polygons and lines between points are NOT drawn. -There are issues with setting color properties of layers as well. The "color" attribute of a layer ONLY changes a polygon's outline color instead of it's fill. Also, I can ONLY get the base "color" attribute to change how the map appears. Setting any of the other attributes (backgroundcolor, outlinecolor, etc. etc.) makes no changes to the map. BEST COMBO SO FAR! ========================== GDAL CVS (1 week ago) MapServer 3.4 compiled as PHP module Proj 4.4.3 PHP 4.0.5 -I have not found any goofy issues with this one yet. Layers draw properly from a map or Mapscript. Scalebars can be properly embedded, and colors are back! YAY! I'll keep you posted! Hope someone finds this useful! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From ddnebert at fgdc.gov Wed Jul 18 07:41:12 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Wed, 18 Jul 2001 10:41:12 -0400 Subject: [mapserver-users] ScaleHint References: <3B551B4B.D756856F@refractions.net> Message-ID: <3B55A008.31EF40A3@fgdc.gov> Paul Ramsey wrote: > > I have started exploring the WMS capability somewhat... I was wondering > why the WMS does not provide a ScaleHint for layers which have > explicitly defined min and max scales? What will the MapServer WMS do if > a client does GetMap on a layer using an extent which violates the > maxscale? I am thinking in terms of writing a client which knows nothing > about the WMS except there is a service there: in order to properly > request scale-restricted layers, the ScaleHint is vital. Otherwise the > client could request every contour in the province, when in fact > contours should only be requested at a close-in zoom level. > Thanks for the info, > Paul > Gee. I could use this functionality, too. The server already has the capability of recognizing MAXSCALE and MINSCALE in the .map files. It seems these could easily be coordinated, such that these properties could be exported to the capabilities statement and thus would be respected if provided in the .map file. So I think this is an easy thing to do if you don't treat scalehint as pure metadata but is derived from MINSCALE MAXSCALE. Doug. > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > recognize the difficulty, however -- what is a service description > absent a map file? Perhaps a simple wrapper example could be bundled.) -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Jul 18 08:45:08 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 18 Jul 2001 11:45:08 -0400 Subject: [mapserver-users] ScaleHint Message-ID: <2951561DB3DDD0118FEC00805FFE98050494252F@s5-ccr-r1> > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > > recognize the difficulty, however -- what is a service description > > absent a map file? Perhaps a simple wrapper example could be bundled.) > Indeed, although vendor specific parameters are allowed, they must NOT be required. I got around this by using the "setenvif" feature of apache ... I use symbolic links that all point to a same mapserv binary ... For each symbolic link, I test the url, and set the MAP environment variable accordinginly ... Works great for me ! Did that make sense ? From rob at socialchange.net.au Wed Jul 18 08:46:11 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 19 Jul 2001 01:46:11 +1000 Subject: [mapserver-users] ScaleHint References: <3B551B4B.D756856F@refractions.net> <3B55A008.31EF40A3@fgdc.gov> Message-ID: <3B55AF43.F9D4E155@socialchange.net.au> Yep - ignoring this functionality will definitely make the software less than safe to deploy. Well behaved clients will respect the scale-hint. The mapserver should, IMHO, generate an error if the scale hint is exceeded - its not quite as strong as that but it really ought to be mandatory behaviour. Rob Atkinson Doug Nebert wrote: > Paul Ramsey wrote: > > > > I have started exploring the WMS capability somewhat... I was wondering > > why the WMS does not provide a ScaleHint for layers which have > > explicitly defined min and max scales? What will the MapServer WMS do if > > a client does GetMap on a layer using an extent which violates the > > maxscale? I am thinking in terms of writing a client which knows nothing > > about the WMS except there is a service there: in order to properly > > request scale-restricted layers, the ScaleHint is vital. Otherwise the > > client could request every contour in the province, when in fact > > contours should only be requested at a close-in zoom level. > > Thanks for the info, > > Paul > > > > Gee. I could use this functionality, too. The server already has the > capability of recognizing MAXSCALE and MINSCALE in the .map files. > It seems these could easily be coordinated, such that these > properties could be exported to the capabilities statement and thus > would be respected if provided in the .map file. So I think this > is an easy thing to do if you don't treat scalehint as pure metadata > but is derived from MINSCALE MAXSCALE. > > Doug. > > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > > recognize the difficulty, however -- what is a service description > > absent a map file? Perhaps a simple wrapper example could be bundled.) > > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From rob at socialchange.net.au Wed Jul 18 09:46:45 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 19 Jul 2001 02:46:45 +1000 Subject: [mapserver-users] mapserver architecture for multi-websites on several machines References: <2951561DB3DDD0118FEC00805FFE9805058F4858@s5-ccr-r1> Message-ID: <3B55BD74.E72BD6AD@socialchange.net.au> Social Change Online has been building distributed systems integrating mapserver into applications for many years. We have a software suite able to access OGC Web Map Server, Web Feature Server, LDAP etc as well as ancilliary services such as Gazetteer, Catalog, Geocoder, Geoparser (text analysis). This software suite is embedded in JSP pages in servers such as Tomcat, Jrun, etc and resolves all the hairy issues of matching complex and varied configurations of remote services into simple views that lightweight HTML pages and Applets can cope with. Many of the above services are proto-specifications and we have been active in the development of them. We will be in a position to widely distribute our package once those specs are finally published and the various services can be implemented properly by mapserver, ArcIMS etc etc. For more details please see http://webmap.socialchange.net.au We aim to make our software suite free for community groups, but have been forced to wait until mapserver technology arrived and Tomcat etc to have an environment to deploy into. Any help with resourcing our aim to provide free access and support for the community would be extremely helpful in fast tracking that. In the meantime, please contact us if you have a requirement we can help with. Rob Atkinson "Kralidis, Tom" wrote: > Hi, > > As far as JavaScript / Java WMS clients go, some work has been done in this > area to integrate WMS into MapServer applications. > > As MapServer does not (yet) support WMS connections, one may use MapServer > along with the mapplet developed by Steve to display maps using a WMS > provider. > > At a high level: > > - add another parameter to the mapplet's interface which has a WMS GetMap > request, i.e.; > > - create a wrapper CGI script to ingest the WMS request output and display > it through the mapplet (Java does not allow for connections to remote > servers); > > - add modifications to Java code to handle additional image objects (i.e. > getImage and drawImage); > > You can then use JavaScript to manipulate the layer information (on/off, > etc.), and updating the WMS request as needed, adding your own MapServer CGI > variables. > > More info is available at: > > http://www.kralidis.ca/gis/mapserv/mapplet/howto.htm > > I'd be interested to hear other approaches... > > Hope this helps > > ..Tom > > ================================= > Tom Kralidis > Systems Scientist > Canada Centre for Remote Sensing > Tel: (613) 947-1828 > http://www.ccrs.nrcan.gc.ca/ > ================================= > > > -----Original Message----- > > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > > Sent: Tuesday, July 17, 2001 10:05 AM > > To: Hockaday, John > > Cc: 'claude.philipona at camptocamp.com'; > > mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] mapserver architecture for > > multi-websites > > on several machines > > > > > > John, Claude, > > > > I agree with John's opinion that using the OGC WMS (Web Map Server) > > support in MapServer should allow you to do everything you need, and > > since it builds on a commonly adopted standard it will allow you to > > eventually expand your pool of servers to servers from other > > vendors if > > needed. > > > > As John wrote, the WMS spec includes 3 types of request: > > > > - getCapabilities returns an XML document with list of layers and > > features supported by the server. > > - getMap returns an image of the map with specified layers and BBOX > > - getFeatureInfo is used for querying the map obtained from a previous > > getMap request. > > > > One more thing you'll need is a server application that can integrate > > layers from several remote servers and return a single map > > image to the > > client browser... this is referred to by the OGC WMT (Web Mapping > > Testbed) group as a "cascading server" (well, technically a cascading > > WMS serves maps to other WMS servers and not directly to > > browsers... so > > maybe we should just say WMS client and not cascading server). > > > > Anyway, this is not available in MapServer yet but we will be adding > > this to Mapserver in the next few months. > > > > Note that some people have implemented JavaScript WMS clients that > > combine the WMS maps directly in the web browser, and that > > might do the > > trick for you... perhaps those who have developed this kind of WMS > > clients can comment more. > > > > I hope that helps, > > > > Daniel > > > > "Hockaday, John" wrote: > > > > > > Hi Claudia, > > > > > > I was hoping that someone with more experience with this > > type of subject > > > would answer your question but it seems that they haven't > > so I will give you > > > the little knowledge that I have on the subject. > > Hopefully, lots of people > > > will get annoyed with the errors in this e-mail that I am > > proposing and they > > > will correct me for your benefit. I for one am very > > interested in the > > > outcomes of your project as I will have to look into > > something similar soon. > > > > > > The Open GIS came up with a standard for accessing data > > across the web. (I > > > think that the OpenIGS is called something different now > > but I'm not sure.) > > > One of the commands is something like getimage(). I > > believe that mapserver > > > version 3.5 has the ability to handle Open GIS > > capabilities. I seem to > > > remember earlier versions having the getimage() command but > > I'm not sure > > > about that either. > > > > > > You could use the getimage() command to each of your > > mapservers and they > > > should return an image. You could then build these images > > on top of each > > > other, if they are transparent, to make a final map. GD > > can do this if > > > mapserver doesn't already have a command to do it. You may > > have to make > > > more that one call to each map server as the order of the > > layers may be > > > important to your final map. > > > > > > I think that there is a similar OpenGIS command to get > > information about a > > > layer from a remote map server. It may be something like > > getinfo(). This > > > is probably a more simpler command as it may only need > > information from one > > > mapserver. > > > > > > I would *strongly* recommend that you use the OpenGIS > > standard as a lot of > > > work has gone into this standard and you will greatly > > benefit from their > > > detailed efforts. I worked on a system of connecting to > > many map producing > > > servers a long time ago and it was full of problems > > therefore, we stopped > > > doing it. Since then, the OpenGIS has addressed those > > problems in their > > > work. > > > > > > Good luck and please keep this list aware of what you are > > doing. I want to > > > build on your work if you don't mind me "borrowing" your > > intellectual > > > property and code. ;--) > > > > > > John > > > > > > > -----Original Message----- > > > > From: Claude Philipona [SMTP:claude.philipona at camptocamp.com] > > > > Sent: Friday, July 13, 2001 8:38 PM > > > > To: mapserver-users at lists.gis.umn.edu > > > > Subject: [mapserver-users] mapserver architecture > > for multi-websites > > > > on several machines > > > > > > > > We are starting a project using Mapserver (PHP/MapScript) > > for building a > > > > cartographic server which could be used by different > > client web-sites on > > > > different machines. The server will propose a large set > > of raster map from > > > > 1:25'000 to 1:1'000'000. The client web-sites will be > > able to use the > > > > central > > > > mapserver to interactivly geocode any kind of information > > (points, lines, > > > > surfaces) using an applet and to visualize and to > > navigate thru the > > > > obtained > > > > geocoded objects. > > > > > > > > Each site using Mapserver is totally independent should be able to > > > > integrate the > > > > map directly (no frames).In this configuration we don't > > have a web borwser > > > > making > > > > direct request to MapServer, but rather the web server > > machines would have > > > > to > > > > make the cartogrphic request to the mapserver machine. > > This is a kind of > > > > wms. > > > > > > > > My question: What is the best solution to implement this kind of > > > > architecture? > > > > Has anybody already done such thing? > > > > > > > > My ideas were to use WDDX (Web Distributed Data Exchange, > > > > http://www.openwddx.org/faq/) to exchange the required > > parameters between > > > > the > > > > mapserver box (coordinates of the click, shapes ON,...) > > and the webserver > > > > boxes > > > > (url of the map image,...). So the Webserver (php > > enabled) would post a > > > > wddx file > > > > (containing the serailzed parameter) to the > > MapServerPHP-MapScript. After > > > > deserialization PHP/Mapscript will process the map > > request and return wddx > > > > file > > > > (containing the url of the images and other important parameter). > > > > > > > > Is it the way to go to get good performance? Is there a > > better way to do > > > > it? > > > > > > > > Other question: I was palnning to start this development > > using directly > > > > Mapserver > > > > 3.5, providing that the system will not enter in production before > > > > november. Is > > > > 3.5 stable enough? Any timesacle for the official release? > > > > > > > > Claude Philipona > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From morissette at dmsolutions.ca Wed Jul 18 11:36:50 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 18 Jul 2001 14:36:50 -0400 Subject: [mapserver-users] ScaleHint References: <2951561DB3DDD0118FEC00805FFE98050494252F@s5-ccr-r1> Message-ID: <3B55D742.E318D09F@dmsolutions.ca> "Doyon, Jean-Francois" wrote: > > > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > > > recognize the difficulty, however -- what is a service description > > > absent a map file? Perhaps a simple wrapper example could be bundled.) > > > Indeed, although vendor specific parameters are allowed, they must NOT be > required. > I do not want to promote its use with WMS servers in any way, but I would like to clarify that the map parameter if included as part of the online resource URL is not a vendor-specific parameter and is fully legal... the online resource URL is an opaque string that ends with "?" or "&" so clients shouldn't have any problem with the presence or not of the map parmeter... the WMS 1.1.0 spec says: 6.2.1 HTTP GET An Online Resource URL intended for HTTP GET requests is in fact only a URL prefix to which additional parameters must be appended in order to construct a valid Operation request. A URL prefix is defined as an opaque string including the protocol, hostname, optional port number, path, a question mark '?', and, optionally, one or more server-specific parameters ending in an ampersand '&'. The prefix uniquely identifies the particular service instance. A client appends the necessary request parameters as name/value pairs in the form "name=value&". The resulting URL must be valid according to the HTTP Common Gateway Interface (CGI) standard[16], which mandates the presence of '?' before the sequence of query parameters and the '&' between each parameter. As with all CGI applications, the query URL is encoded[12] to protect special characters. The URL prefix must end in either a '?' (in the absence of additional server-specific parameters) or a '&'. In practice, however, Clients should be prepared to add a necessary trailing '?' or '&' before appending the Operation parameters defined in this specification in order to construct a valid request URL. Note that for servers that want to support the POST method, using "?map=...&" as part of the online resource URL is not legal... it is OK only with the GET method. > I got around this by using the "setenvif" feature of apache ... I use > symbolic links that all point to a same mapserv binary ... For each symbolic > link, I test the url, and set the MAP environment variable accordinginly ... > Works great for me ! > > Did that make sense ? I like this little trick as it resolves the issue of being unable to create a wrapper shell script on Windows... thanks a lot!!!! We'll try to have something about this included in the WMS howto. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Jul 18 12:03:12 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 18 Jul 2001 15:03:12 -0400 Subject: [mapserver-users] ScaleHint References: <3B551B4B.D756856F@refractions.net> <3B55A008.31EF40A3@fgdc.gov> <3B55AF43.F9D4E155@socialchange.net.au> Message-ID: <3B55DD70.6EECCB23@dmsolutions.ca> Rob Atkinson wrote: > > Yep - ignoring this functionality will definitely make the software less than > safe to deploy. > Rob, I'm not sure to understand why deploying a server as it is today would be unsafe? Could you please specify the risk? If there is a problem (other than the absence of the ScaleHint in the capabilities) I would like to address it. Note that in the current implementation if MAXSCALE is exceeded then the layer is simply not drawn... so if the risk you were expecting was an overload of hte server then it is not the case. > Well behaved clients will respect the scale-hint. The mapserver should, IMHO, > generate an error if the scale hint is exceeded - its not quite as strong as > that but it really ought to be mandatory behaviour. > I see your point, but I would personally opt for a smoother behavior, that is: not rendering the layer in the result image if scalehint is exceeded... the reason being that very simple clients that ignore scalehint would rather receive a blank image than an error IMHO... and it is assumed that well behaved clients will *not* request anything outside of scalehint, so what we do in this case is irrelevant to them. I haven't found anything in the 1.1.0 spec about what the expected behavior is when a request outside of scalehint is received... I'll forward the question to the WMS-Dev list to make sure that what we do in MapServer is in line with what the others servers do and expect. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bertha_bonita at yahoo.com Wed Jul 18 12:58:25 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 18 Jul 2001 21:58:25 +0200 (CEST) Subject: [mapserver-users] change a message Message-ID: <20010718195825.27204.qmail@web4207.mail.yahoo.com> Hi how can i change this message? MsQueryUsingPoint(): Search returned no results. No matching record(s) found. the user wont know the meaning of it!! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicaci?n instant?nea gratis con tu gente - http://messenger.yahoo.es From v at w.cl Wed Jul 18 16:17:56 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 18 Jul 2001 19:17:56 -0400 (CLT) Subject: [mapserver-users] Mapserver v/s Mapscript? Message-ID: <200107182317.f6INHuY12497@antonia.nn.cl> Hello. Is it possible for a script written in mapscript to interact with the mapserver cgi? If it is, in what way? and how? I'm kinda confused about this point, and I don't know if i need to write the scripts and forget about the mapserv CGI or make them interact. My application needs to add layers to an already displayed map based on a two points query. That is, the user clicks over one point, then over a second point and then i should, based on what points the user clicked on, display another layer on top of the map. >From what i've seen this isn't possible using only the template file, mainly because the cgi 'sumbits' itself at the first click over the map zone, am I wrong? Help please! :) (thanks in advance) -- V. From rob at socialchange.net.au Wed Jul 18 16:41:50 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 19 Jul 2001 09:41:50 +1000 Subject: [mapserver-users] ScaleHint References: <3B551B4B.D756856F@refractions.net> <3B55A008.31EF40A3@fgdc.gov> <3B55AF43.F9D4E155@socialchange.net.au> <3B55DD70.6EECCB23@dmsolutions.ca> Message-ID: <3B561EBD.FC91059B@socialchange.net.au> Daniel Morissette wrote: > Rob Atkinson wrote: > > > > Yep - ignoring this functionality will definitely make the software less than > > safe to deploy. > > > > Rob, > > I'm not sure to understand why deploying a server as it is today would > be unsafe? Could you please specify the risk? If there is a problem > (other than the absence of the ScaleHint in the capabilities) I would > like to address it. > > Note that in the current implementation if MAXSCALE is exceeded then > the layer is simply not drawn... so if the risk you were expecting was > an overload of hte server then it is not the case. > Cool - I misunderstood the original message then. Its not mapserver per se that would be a problem but a configuration that did not restrict scale for large data sets. > > > Well behaved clients will respect the scale-hint. The mapserver should, IMHO, > > generate an error if the scale hint is exceeded - its not quite as strong as > > that but it really ought to be mandatory behaviour. > > > > I see your point, but I would personally opt for a smoother behavior, > that is: not rendering the layer in the result image if scalehint is > exceeded... the reason being that very simple clients that ignore > scalehint would rather receive a blank image than an error IMHO... and > it is assumed that well behaved clients will *not* request anything > outside of scalehint, so what we do in this case is irrelevant to them. > Agree with you - noting that a blank image format is a valid error response. And the second way you phrased it is better than the first: not rendering is not as sensible as not requesting in the first place! > > I haven't found anything in the 1.1.0 spec about what the expected > behavior is when a request outside of scalehint is received... I'll > forward the question to the WMS-Dev list to make sure that what we do in > MapServer is in line with what the others servers do and expect. > This is what I meant when I said that this behabviour is not currently mandated. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From lyndon.zimmermann at adelaide.edu.au Wed Jul 18 23:45:35 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Thu, 19 Jul 2001 16:15:35 +0930 Subject: [mapserver-users] Australian data References: <200106281354.IAA07531@mallit.fr.umn.edu> <3B3B63F2.AACCB51E@dmsolutions.ca> Message-ID: <3B56820F.B1512C04@adelaide.edu.au> Greetings, there was a query a few weeks ago about how to deliver or convert the VPF file of Australia. I tripped over the answer - don't bother, go to http://www.agso.gov.au/geoscience/national/download.html and download the shapefiles. This is probably the source for the VPF! Lyndon Z Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From kafka at email.cz Wed Jul 18 23:45:23 2001 From: kafka at email.cz (Stepan Kafka) Date: Thu, 19 Jul 2001 08:45:23 +0200 Subject: [mapserver-users] change a message In-Reply-To: <20010718195825.27204.qmail@web4207.mail.yahoo.com> Message-ID: <000501c1101e$62ef0760$fb01a8c0@gis2.oku-kh.cz> You may use EMPTY parameter in the WEB object to set the page to be shown: WEB TEMPLATE ... ..... ..... EMPTY your_no_found_page.html END #WEB Stepan Kafka > Hi > > how can i change this message? > > MsQueryUsingPoint(): Search returned no results. No > matching record(s) found. > > the user wont know the meaning of it!! > > > > ===== > *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > Lic. Ciencias Computacionales Bertha A. Serrato > bserrato at cicese.mx > CICESE,Divisi?n de Ciencias de la Tierra. > Ensenada, B.C. > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > _______________________________________________________________ > Do You Yahoo!? > Yahoo! Messenger: Comunicaci?n instant?nea gratis con tu gente - > http://messenger.yahoo.es > From MeganWatson at auslig.gov.au Thu Jul 19 01:27:44 2001 From: MeganWatson at auslig.gov.au (Watson, Megan) Date: Thu, 19 Jul 2001 18:27:44 +1000 Subject: [mapserver-users] Class Name - legend problem Message-ID: <53273E187450D311ACF6009027927B12023381BA@smtpgate.auslig.gov.au> Hello All I am having a little trouble displaying a layer within Mapserver and having the feature display in the legend We are running MapServer Version 3.3.011 The layer I am trying to display has an attribute called "NAM" which displays the name of the particular town or city. I am trying to display it as follows: LAYER NAME towns TYPE POINT STATUS DEFAULT MAXSCALE 4000000 DATA "1m/population" LABELITEM "NAM" LABELCACHE on #MAXFEATURES 30 CLASS NAME "Cities, Towns, Localities" SYMBOL 6 SIZE 4 COLOR 153 102 0 LABEL BUFFER 2 SIZE small COLOR 0 0 0 OUTLINECOLOR 255 255 255 BACKGROUNDCOLOR -1 -1 -1 POSITION AUTO PARTIALS false END END END when I try to add the CLASS NAME "Cities, Towns, Localities" so that the feature will display in the legend, I reload the page and then I get the following error: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster at auslig.gov.au and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.12 Server at sandpit Port 80" when I remove the above CLASS NAME the layer then displays and Mapserver does not fall over. The strange thing is that it does not happen all the time - I can comment out the said line and play around then re-establish the line and try again without touching anything else - sometimes it works, and sometimes it doesn't. Has anyone else encountered this? Thanks Megan From jimburnett at ntelos.net Thu Jul 19 06:45:49 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 19 Jul 2001 09:45:49 -0400 Subject: [mapserver-users] Mapscript Documentation Message-ID: <003201c11059$1e7b5ee0$2f01a8c0@morpheus> Is there any documentation for MapScript? Or is it being release with 3.5 ? I noticed the perl module examples didnt have any comments or documentation. -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jul 19 07:36:10 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 19 Jul 2001 10:36:10 -0400 Subject: [mapserver-users] ScaleHint Message-ID: <2951561DB3DDD0118FEC00805FFE980504942539@s5-ccr-r1> OK, it's this simple: Make sure you have the module mod_setenvif enabled or compiled into your apache and setup a line like follows in your httpd.conf: SetEnvIfNoCase Request_URI "/cgi-bin/atlasogcmapper" MS_MAPFILE=/home/mapdata/nac/wms.map That's it! Although I've never tried it with Apache on NT, I see no reason why it wouldn't work. Hope this helps, J.F. > ---------- > From: Paul Ramsey[SMTP:pramsey at refractions.net] > Sent: Wednesday, July 18, 2001 5:51 PM > To: Doyon, Jean-Francois > Subject: Re: [mapserver-users] ScaleHint > > It would make more sense with an httpd.conf fragment, but I get the gist > of it... :) > > "Doyon, Jean-Francois" wrote: > > > > > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > > > > recognize the difficulty, however -- what is a service description > > > > absent a map file? Perhaps a simple wrapper example could be > bundled.) > > > > > Indeed, although vendor specific parameters are allowed, they must NOT > be > > required. > > > > I got around this by using the "setenvif" feature of apache ... I use > > symbolic links that all point to a same mapserv binary ... For each > symbolic > > link, I test the url, and set the MAP environment variable accordinginly > ... > > Works great for me ! > > > > Did that make sense ? > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ > From steve.lime at dnr.state.mn.us Thu Jul 19 07:51:37 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 19 Jul 2001 09:51:37 -0500 Subject: [mapserver-users] Mapserver v/s Mapscript? Message-ID: MapScript and MapServer CGI are not generally used together. MapScript gives you the tools to build custom versions of the CGI that better suit your needs. The CGI versions provides a lot of out-of-the-box functionality. The CGI version is not equipted to handle mutliple query points. It can handle a box as input. Standard HTML forms are not capable of doing what you want so you'll have to look at custom client pieces (via java, dhtml,...) too. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vinko Vrsalovic B." 07/18/01 06:17PM >>> Hello. Is it possible for a script written in mapscript to interact with the mapserver cgi? If it is, in what way? and how? I'm kinda confused about this point, and I don't know if i need to write the scripts and forget about the mapserv CGI or make them interact. My application needs to add layers to an already displayed map based on a two points query. That is, the user clicks over one point, then over a second point and then i should, based on what points the user clicked on, display another layer on top of the map. >From what i've seen this isn't possible using only the template file, mainly because the cgi 'sumbits' itself at the first click over the map zone, am I wrong? Help please! :) (thanks in advance) -- V. From steve.lime at dnr.state.mn.us Thu Jul 19 07:59:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 19 Jul 2001 09:59:33 -0500 Subject: [mapserver-users] ScaleHint Message-ID: So after all the discussion the current behavior is correct, correct? That is the map is generated but the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the case so I don't know of an alternative. On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by not being able to specify a particular service on a host other than using the root of the URL (i.e. left of the ?). It's going to be pretty common for sites to host multiple applications using the same engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been a nice addition to the spec. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From rob at socialchange.net.au Thu Jul 19 08:06:29 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 20 Jul 2001 01:06:29 +1000 Subject: [mapserver-users] ScaleHint References: <2951561DB3DDD0118FEC00805FFE980504942539@s5-ccr-r1> Message-ID: <3B56F775.E1EA2174@socialchange.net.au> No problems here at all, these issues have been anticipated. The WMS spec allows vendor specific parameters to be used, and it also allows fixed parameters to be included inthe URL root eg this is a valid service URI: http://mymaps.com/mapserver?map=topo The "unit of address" is the LAYER - if you have multiple configuration files and have to negotiate which layer is being used then sure, you have to implement your own under-the-hood mapping to identify the map file. Since map files are the source of capabilities documents though (correct?) it seems logical to define each map file/script binding as a service with its unique serviceURI Rob Atkinson "Doyon, Jean-Francois" wrote: > OK, it's this simple: > > Make sure you have the module mod_setenvif enabled or compiled into your > apache and setup a line like follows in your httpd.conf: > > SetEnvIfNoCase Request_URI "/cgi-bin/atlasogcmapper" > MS_MAPFILE=/home/mapdata/nac/wms.map > > That's it! > > Although I've never tried it with Apache on NT, I see no reason why it > wouldn't work. > > Hope this helps, > J.F. > > > ---------- > > From: Paul Ramsey[SMTP:pramsey at refractions.net] > > Sent: Wednesday, July 18, 2001 5:51 PM > > To: Doyon, Jean-Francois > > Subject: Re: [mapserver-users] ScaleHint > > > > It would make more sense with an httpd.conf fragment, but I get the gist > > of it... :) > > > > "Doyon, Jean-Francois" wrote: > > > > > > > > PS - Doesn't requiring the 'map' parameter violate the WMS spec? (I > > > > > recognize the difficulty, however -- what is a service description > > > > > absent a map file? Perhaps a simple wrapper example could be > > bundled.) > > > > > > > Indeed, although vendor specific parameters are allowed, they must NOT > > be > > > required. > > > > > > I got around this by using the "setenvif" feature of apache ... I use > > > symbolic links that all point to a same mapserv binary ... For each > > symbolic > > > link, I test the url, and set the MAP environment variable accordinginly > > ... > > > Works great for me ! > > > > > > Did that make sense ? > > > > -- > > __ > > / > > | Paul Ramsey > > | Refractions Research > > | Email: pramsey at refractions.net > > | Phone: (250) 885-0632 > > \_ > > -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Thu Jul 19 08:21:44 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Thu, 19 Jul 2001 11:21:44 -0400 Subject: [mapserver-users] Mapscript Documentation Message-ID: <2951561DB3DDD0118FEC00805FFE98050494253B@s5-ccr-r1> Visit: http://mapserver.gis.umn.edu/mapscript.html It's linked off the documentation page you know :) The MDP will hopefully get around writing one someday ... J.F. > ---------- > From: Jim Burnett[SMTP:jimburnett at ntelos.net] > Sent: Thursday, July 19, 2001 9:45 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Mapscript Documentation > > Is there any documentation for MapScript? Or is it being release with 3.5 > ? I noticed the perl module examples didnt have any comments or > documentation. > > -jim > From jimburnett at ntelos.net Thu Jul 19 08:27:29 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 19 Jul 2001 11:27:29 -0400 Subject: [mapserver-users] Mapscript Documentation References: <2951561DB3DDD0118FEC00805FFE98050494253B@s5-ccr-r1> Message-ID: <004401c11067$526cea30$2f01a8c0@morpheus> Duh, I should have known to look there first! -jim ----- Original Message ----- From: "Doyon, Jean-Francois" To: ; "'Jim Burnett'" Sent: Thursday, July 19, 2001 11:21 AM Subject: RE: [mapserver-users] Mapscript Documentation > Visit: > > http://mapserver.gis.umn.edu/mapscript.html > > It's linked off the documentation page you know :) > > The MDP will hopefully get around writing one someday ... > > J.F. > > > ---------- > > From: Jim Burnett[SMTP:jimburnett at ntelos.net] > > Sent: Thursday, July 19, 2001 9:45 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] Mapscript Documentation > > > > Is there any documentation for MapScript? Or is it being release with 3.5 > > ? I noticed the perl module examples didnt have any comments or > > documentation. > > > > -jim > > > From morissette at dmsolutions.ca Thu Jul 19 08:35:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 19 Jul 2001 11:35:49 -0400 Subject: [mapserver-users] ScaleHint References: Message-ID: <3B56FE55.58989B5A@dmsolutions.ca> Stephen Lime wrote: > > So after all the discussion the current behavior is correct, correct? That is the map is generated but > the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the > case so I don't know of an alternative. > Yep... current behavior is correct. And based on the replies I got on the WMS-Dev list, that's the behavior that most other WMS servers adopted as well. > On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by > not being able to specify a particular service on a host other than using the root of the URL (i.e. > left of the ?). It's going to be pretty common for sites to host multiple applications using the same > engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a > bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been > a nice addition to the spec. > I agree that OGC should have included an INSTANCE parameter or something similar that specifies which particular mapfile (in the mapserver language) is being accessed. However, we are not completely stuck since it is still legal to use the following as the OnlineResource for HTTP GET in the Capabilities output: And BTW I don't think 'map' is considered a vendor-specific parameter in this case since the spec says that OnlineResource is an opaque string. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From drish at drish.net Thu Jul 19 08:39:35 2001 From: drish at drish.net (Drew) Date: Fri, 20 Jul 2001 01:39:35 +1000 Subject: [mapserver-users] tileindex & coords Message-ID: <000e01c11069$0630da80$0300000a@dhr> Couple questions, I've got a bunch of tiles of dgn converted to shapefiles, and now I need to create the tile index shapefile, is there a linux app to do this? Other question, once I have the map setup, is it possible to pull the decimal coordinates for a point clicked on the map? And is it possible to plot an X and a label at multiple decimal coordinates? Thanks Drew From oberdan at reitoria.unesp.br Thu Jul 19 09:10:18 2001 From: oberdan at reitoria.unesp.br (Oberdan Luiz May) Date: Thu, 19 Jul 2001 13:10:18 -0300 Subject: [mapserver-users] Problems with TrueType Message-ID: <5.1.0.14.2.20010719125907.00a9d750@pop.reitoria.unesp.br> Hello All, I'm a newbie with mapserver, and I'm having some problems to compile/build it correctly. I'm trying to make this work on a Solaris 2.6 SPARC, using mapserver 3.5 GD 1.8.4 FreeType 2.0.4 GD is being compiled with FreeType, and when mapserver is configured, it finds the freetype support on DG and builds all correctly, but when I try to use one truetype font, I get the error : msGetLabelSize(): TrueType Font error. libgd was not built with FreeType font support Any idea?? []'s Oberdan From LTHOMAS at sqli.com Thu Jul 19 09:21:10 2001 From: LTHOMAS at sqli.com (Laurent THOMAS) Date: Thu, 19 Jul 2001 18:21:10 +0200 Subject: [mapserver-users] General Information on MapServer Message-ID: <321D0886D34AD511BB5A0090276CE924013099E0@mail-paris.sqli.com> Hi folks, I heard about MapServer this morning for the first time so i'm kind of a rookie here ! What i'd like to do is create a 4-level-map of my country (France, hee hee!) to include it in an Intranet. Is it possible to display data on each level, knowing that this data would be values held in a database ? If so, how does this work? i didn't find anything about that on the website so far. Also, is it possible to create a map from a GIF/JPG file ? is so, how? i know all this may sound like silly questions, but i need to know if MapServer can handle my needs before i start using it. Thanks lots for your time, Laurent THOMAS From ed at topozone.com Thu Jul 19 10:37:02 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 19 Jul 2001 13:37:02 -0400 Subject: [mapserver-users] Performance implications of OFFSITE usage? Message-ID: <13858AA1A74F30419F319ACB66A9D122CED9@mercator.topozone.com> I'm doing some testing with USGS DRG maps projected as UTM and collar-clipped. My initial test took the raw output files - one per DRG - and used the OFFSITE parameter to cause the pixel value 0 (black) to be transparent. This allowed me to create a TILEINDEX file for the raw DRGs and just let MapServer take care of the overlap. I've also got a DRG mosaic/clipping tool that can take these raw, collar-clipped DRGs, mosaic them together, then chop out rectangular (in UTM space) tiles. I can then load them into a new TILEINDEX shapefile and avoid using the OFFSITE parameter because the tiles do not overlap. Now that I'm halfway through this I'm doubting the wisdom of it. My motivation was that the use of the OFFSITE parameter was forcing MapServer to examine the value of every pixel rather than just process them in bulk. Avoid this should be a performance win. I'm now wondering whether that's a bogus assumption; when rescaling the source TIFFs to produce the output image, enough pixel-level processing must be going on that the OFFSITE comparison could be a trivial impact. If anyone's got sage advice, experience with the libtiff or mapraster code that's doing this, or just random opinions , I'd appreciate any thoughts. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From rob at socialchange.net.au Thu Jul 19 12:12:50 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Fri, 20 Jul 2001 05:12:50 +1000 Subject: [mapserver-users] ScaleHint References: Message-ID: <3B573132.4A543D9D@socialchange.net.au> Actually if you work this through you reach the conclusion that the service is the URI , with qualifiers to the right of the ? if required, and the host is irrelevant, which is exactly what is supported! :-) Stephen Lime wrote: > So after all the discussion the current behavior is correct, correct? That is the map is generated but > the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the > case so I don't know of an alternative. > > On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by > not being able to specify a particular service on a host other than using the root of the URL (i.e. > left of the ?). It's going to be pretty common for sites to host multiple applications using the same > engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a > bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been > a nice addition to the spec. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From steve.lime at dnr.state.mn.us Thu Jul 19 12:16:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 19 Jul 2001 14:16:57 -0500 Subject: [mapserver-users] Performance implications of OFFSITE usage? Message-ID: It hits every output pixel anyway when resampling as you suggest. Actually all that happens with OFFSITE or raster classes is that changes to the default lookup table are made. So for each pixel the raw value is translated to a color index in the output image. OFFSITE pixels aren't even considered. Actually it's marginally faster to use OFFSITE since it skips an assignment statement and the test has to happen on all pixels. That said, no overlap is certainly better since no output pixels would be assigned values twice. I guess it depends on the amount of overlap you're talking about removing. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 07/19/01 12:37PM >>> I'm doing some testing with USGS DRG maps projected as UTM and collar-clipped. My initial test took the raw output files - one per DRG - and used the OFFSITE parameter to cause the pixel value 0 (black) to be transparent. This allowed me to create a TILEINDEX file for the raw DRGs and just let MapServer take care of the overlap. I've also got a DRG mosaic/clipping tool that can take these raw, collar-clipped DRGs, mosaic them together, then chop out rectangular (in UTM space) tiles. I can then load them into a new TILEINDEX shapefile and avoid using the OFFSITE parameter because the tiles do not overlap. Now that I'm halfway through this I'm doubting the wisdom of it. My motivation was that the use of the OFFSITE parameter was forcing MapServer to examine the value of every pixel rather than just process them in bulk. Avoid this should be a performance win. I'm now wondering whether that's a bogus assumption; when rescaling the source TIFFs to produce the output image, enough pixel-level processing must be going on that the OFFSITE comparison could be a trivial impact. If anyone's got sage advice, experience with the libtiff or mapraster code that's doing this, or just random opinions , I'd appreciate any thoughts. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From steve.lime at dnr.state.mn.us Thu Jul 19 12:23:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 19 Jul 2001 14:23:41 -0500 Subject: [mapserver-users] ScaleHint Message-ID: Depends on what you consider a service and a host. I have a host (http://maps.dnr.state.mn.us/cgi-bin/mapserv) with 10 services available and the WMS stuff does a poor job with that type of a setup without wrappers or vendor specific parameters. Certainly possible, even desireable for a host, any host, to be home to a number of services. >>> Rob Atkinson 07/19/01 02:12PM >>> Actually if you work this through you reach the conclusion that the service is the URI , with qualifiers to the right of the ? if required, and the host is irrelevant, which is exactly what is supported! :-) Stephen Lime wrote: > So after all the discussion the current behavior is correct, correct? That is the map is generated but > the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the > case so I don't know of an alternative. > > On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by > not being able to specify a particular service on a host other than using the root of the URL (i.e. > left of the ?). It's going to be pretty common for sites to host multiple applications using the same > engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a > bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been > a nice addition to the spec. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 From Jciavarelli at city.kamloops.bc.ca Thu Jul 19 13:14:48 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Thu, 19 Jul 2001 13:14:48 -0700 Subject: [mapserver-users] Works in Winnt but not Linux... Message-ID: I have a particular line in my html file that works fine in WinNT with Apache. But this same line I cannot get to work in Linux running apache. Here is the line: I've tried modifying this line in several different ways. I've even tried creating an error in the example8.map file and seeing if at the very least it will choke on it. It doesn't even do that. It's like it's just not even executing the mapserv executable. Yet I know the mapserv executable works cause it is called properly on a "SUBMIT". Any ideas why this line is not executing the mapserv command? Janet. From morissette at dmsolutions.ca Thu Jul 19 14:21:11 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 19 Jul 2001 17:21:11 -0400 Subject: [mapserver-users] Problems with TrueType References: <5.1.0.14.2.20010719125907.00a9d750@pop.reitoria.unesp.br> Message-ID: <3B574F47.DB07D04E@dmsolutions.ca> Oberdan Luiz May wrote: > > I'm a newbie with mapserver, and I'm having some problems to compile/build > it correctly. I'm trying to make this work on a Solaris 2.6 SPARC, using > > mapserver 3.5 > GD 1.8.4 > FreeType 2.0.4 > > GD is being compiled with FreeType, and when mapserver is configured, it > finds the freetype support on DG and builds all correctly, but when I try > to use one truetype font, I get the error : > > msGetLabelSize(): TrueType Font error. libgd was not built with FreeType > font support > It could be that you have 2 versions of GD on your system and the wrong one gets picked. Try using the following configure option: --with-gd=static,/path/to/gd-1.8.4 This will explicitly link with /path/to/gd-1.8.4/libgd.a instead of using -lgd which would search your library path and may find the wrong library. If that doesn't work, then you may be in the same boat as me... I've been experiencing similar problems trying to compile GD1.8.4 from source with Freetype2 ... things did compile and I'm convinced that the right copy of the lib was loaded, but I couldn't load any TTF font in MapServer. That was using the GD1.8.4 source code with the Freetype2 that comes preinstalled on RH7.1 ... I never had time to figure out the problem but it seemed to me like I had not built the GD+freetype combination properly. So I just decided to fallback to the GD1.8.4 RPM that is distributed with RH7.1 But if anyone figures it out or gets that combination working then I would apreciate hearing about what they did. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jaw at mail.dk Thu Jul 19 14:47:53 2001 From: jaw at mail.dk (Jakob Worm) Date: Thu, 19 Jul 2001 23:47:53 +0200 Subject: [mapserver-users] compiling PHP/Mapscript on Redhat 7.1 Message-ID: <01071923475400.09204@wormslinux> Hi, I thought i'd probably be the same story as with RH6.2 so I did as told here: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_redhat.html It wortks out fine till i do this: # ./configure --with-proj --with-php=../php-4.0.4pl1 This also seems to be alright till this apears: ------------------------- ----- IMPORTANT !!! ----- ------------------------- To use PHP extensions on your OS, you will need to recompile PHP. You need to edit the Makefile in the php3 directory and add -des-Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles -rdynamic to the start of the LDFLAGS line at the top of the Makefile. Then type: 'make clean; make' You can still go ahead and build the extensions now by typing 'make' in this directory. They just won't work correctly until you recompile your PHP. If you are compiling php as a module, you should also add -des-Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles -rdynamic to the start of the EXTRA_LDFLAGS in Apache Configuration file. Note that if you are using the APACI build mechanism you should make this change in the Configuration.tmpl file instead. ------------------------- ------------------------- ------------------------- checking for location of config.h or php_config.h... /root/mapserver/../php-4.0.4pl1/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no checking whether PHP4 was compiled with TTF support... no PHP/MapScript module configured. creating ./config.status creating Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating gdft/Makefile sed: file conftest.s1 line 74: Unterminated `s' command creating mapscript/php3/Makefile sed: file conftest.s1 line 74: Unterminated `s' command[ The Makefiles are empty so doing what's told doesn't make sense. I'v tried to compile without php which works fine, but that also not what i want :( Thanks for helping me. /jakob From cathode at nichebox.com Thu Jul 19 14:52:55 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 20 Jul 2001 00:52:55 +0300 Subject: [mapserver-users] Map Server toy Message-ID: <000501c1109d$2c09bc70$de00a8c0@nichebox1> Okay, so I've been nagging everyone on the list about issues with MapScript/PHP for the last week or two so thought I'd show what I'm playing with. http://maps.nichebox.com/ Everything is done with Mapscript. I am still using a blank map file because I don't have full access to the scalebar object from PHP/Mapscript with my current version. But, one blank .map file for any map. Maps, layers, classes, etc. are all stored in a mySQL database and queried based on the requested map. I'm also playing with an administrative area for the tables which allows you to create new maps and edit existing maps from a browser. The latest toy is the pushpin tool, pretty fun :) A few Javascript issues with NS 4.x browsers which I'll have fixed up shortly. Some of my events aren't firing. But NS6 and all MSIEs appear to work well. Comments AND criticizm welcome! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From warmerdam at pobox.com Thu Jul 19 17:22:01 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 19 Jul 2001 20:22:01 -0400 Subject: [mapserver-users] Performance implications of OFFSITE usage? References: <13858AA1A74F30419F319ACB66A9D122CED9@mercator.topozone.com> Message-ID: <3B5779A9.8942B3F2@pobox.com> Ed McNierney wrote: > Now that I'm halfway through this I'm doubting the wisdom of it. My > motivation was that the use of the OFFSITE parameter was forcing > MapServer to examine the value of every pixel rather than just process > them in bulk. Avoid this should be a performance win. I'm now > wondering whether that's a bogus assumption; when rescaling the source > TIFFs to produce the output image, enough pixel-level processing must be > going on that the OFFSITE comparison could be a trivial impact. Ed, The drawGDAL and drawTIFF cases in mapraster.c are effectively always checking for offsite values whether you set it or not, so the answer to your questions is that no ... MapServer does not incur any significant performance cost when you use offsite values. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From v at w.cl Thu Jul 19 19:22:36 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 19 Jul 2001 22:22:36 -0400 (CLT) Subject: [mapserver-users] Polyline problem In-Reply-To: from "Daniel Morissette" at Jul 19, 2001 05:21:11 PM Message-ID: <200107200222.f6K2MbO12620@antonia.nn.cl> Hi again. I'm having a problem with polyline shapes. mapserv says: msDrawShapefileLayer(): General error message. POLYGON layers must be POLYGON shapefiles. As you can see in the map file, the layer is declared as POLYLINE not a POLYGON, so I don't understand why it doesn't work as expected. The shape is a polyline made with ArcView. If I change the layer to be a LINE, mapserv displays a dot, unzoomable. Here's my map file: # # Start of map file # NAME BUSES SIZE 600 600 SYMBOLSET ./symbols/symbols.sym EXTENT -71.812301 -33.413659 -71.18889 -33.04636 UNITS METERS SHAPEPATH "buses" IMAGECOLOR 255 255 255 PROJECTION "proj=utm" "ellps=GRS80" "zone=19" "south" "no_defs" END # # Start of web interface definition # WEB HEADER buses_h.html TEMPLATE buses.html FOOTER buses_f.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/var/www/html/ms_demo/tmp/" IMAGEURL "/tmp/" LOG "buses.log" END # # Start of scalebar # SCALEBAR [yadda yadda yadda] END # # Start of layer definitions # LAYER NAME r_bus5 TYPE POLYLINE STATUS DEFAULT DATA r_bus5 CLASS COLOR 100 150 54 END END END # Map File -- V. From kafka at email.cz Thu Jul 19 23:28:17 2001 From: kafka at email.cz (Stepan Kafka) Date: Fri, 20 Jul 2001 08:28:17 +0200 Subject: [mapserver-users] Polyline problem In-Reply-To: <200107200222.f6K2MbO12620@antonia.nn.cl> Message-ID: <000f01c110e5$29d11cd0$fb01a8c0@gis2.oku-kh.cz> POLYLINE in MS has different meaning than in ArcView. There is a hollow polygon in MS (it means you can use line symbols for it but it is still a polygon). You must use only LINE parameter for "PolyLine" shapefiles from ArcView. Stepan > > > Hi again. > > I'm having a problem with polyline shapes. > > mapserv says: > > msDrawShapefileLayer(): General error message. POLYGON layers must be > POLYGON shapefiles. > > As you can see in the map file, the layer is declared as POLYLINE not > a POLYGON, so I don't understand why it doesn't work as expected. > > The shape is a polyline made with ArcView. If I change the layer to be a > LINE, mapserv displays a dot, unzoomable. > > Here's my map file: > > # > # Start of map file > # > NAME BUSES > SIZE 600 600 > SYMBOLSET ./symbols/symbols.sym > EXTENT -71.812301 -33.413659 -71.18889 -33.04636 > UNITS METERS > SHAPEPATH "buses" > IMAGECOLOR 255 255 255 > > PROJECTION > "proj=utm" > "ellps=GRS80" > "zone=19" > "south" > "no_defs" > END > > # > # Start of web interface definition > # > WEB > HEADER buses_h.html > TEMPLATE buses.html > FOOTER buses_f.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "/var/www/html/ms_demo/tmp/" > IMAGEURL "/tmp/" > LOG "buses.log" > END > > # > # Start of scalebar > # > > SCALEBAR > > [yadda yadda yadda] > > END > > # > # Start of layer definitions > # > > LAYER > NAME r_bus5 > TYPE POLYLINE > STATUS DEFAULT > DATA r_bus5 > CLASS > COLOR 100 150 54 > END > END > > END # Map File > > > -- > V. > From morissette at dmsolutions.ca Fri Jul 20 04:52:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 20 Jul 2001 07:52:22 -0400 Subject: [mapserver-users] compiling PHP/Mapscript on Redhat 7.1 References: <01071923475400.09204@wormslinux> Message-ID: <3B581B76.9C8FAEB3@dmsolutions.ca> Jakob Worm wrote: > > creating Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating gdft/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 74: Unterminated `s' command[ > You must be attempting to compile MapServer 3.4, right? There was a problem with the MS3.4 configure script with some systems, including RH7.x. You can either use MapServer 3.5 (from CVS), or download the fixed configure script for 3.4: http://www2.dmsolutions.ca/mapserver/dl/ms34_configure-RH7-20010219.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From LBallard at YesVirginia.org Fri Jul 20 05:30:54 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Fri, 20 Jul 2001 08:30:54 -0400 Subject: [mapserver-users] Problems with TrueType Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CD24@communications> I think I had similar issues once and solved it 2 different ways but I can't remember the details. The 2 different ways were to: 1. Install the freetype-devel RPM then build the other things 2. Use Apachetoolbox (ATB)(this is what I do pretty much all the time now). ApacheToolbox can be obtained from: http://www.apachetoolbox.com and it's a REAL time saver. My standard methodology has been to download the (ATB) script only, run it selecting the options I want to compile into Apache, and then compile Apache. GD, PHP, etc. are all options. I seem to remember having one mild issue with compiling in GD/TTF support---maybe I need to install Latex first?? I did so with an RPM and things compiled fine. Give it a try I think you'll find it useful. Lowell------ -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Thursday, July 19, 2001 5:21 PM To: Oberdan Luiz May Cc: mapserver-users Subject: Re: [mapserver-users] Problems with TrueType Oberdan Luiz May wrote: > > I'm a newbie with mapserver, and I'm having some problems to compile/build > it correctly. I'm trying to make this work on a Solaris 2.6 SPARC, using > > mapserver 3.5 > GD 1.8.4 > FreeType 2.0.4 > > GD is being compiled with FreeType, and when mapserver is configured, it > finds the freetype support on DG and builds all correctly, but when I try > to use one truetype font, I get the error : > > msGetLabelSize(): TrueType Font error. libgd was not built with FreeType > font support > It could be that you have 2 versions of GD on your system and the wrong one gets picked. Try using the following configure option: --with-gd=static,/path/to/gd-1.8.4 This will explicitly link with /path/to/gd-1.8.4/libgd.a instead of using -lgd which would search your library path and may find the wrong library. If that doesn't work, then you may be in the same boat as me... I've been experiencing similar problems trying to compile GD1.8.4 from source with Freetype2 ... things did compile and I'm convinced that the right copy of the lib was loaded, but I couldn't load any TTF font in MapServer. That was using the GD1.8.4 source code with the Freetype2 that comes preinstalled on RH7.1 ... I never had time to figure out the problem but it seemed to me like I had not built the GD+freetype combination properly. So I just decided to fallback to the GD1.8.4 RPM that is distributed with RH7.1 But if anyone figures it out or gets that combination working then I would apreciate hearing about what they did. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From csbruce at cubewerx.com Fri Jul 20 05:48:59 2001 From: csbruce at cubewerx.com (Craig Bruce) Date: Fri, 20 Jul 2001 08:48:59 -0400 Subject: [mapserver-users] ScaleHint Message-ID: <200107201248.IAA24482@tux.cubewerx.com> Rob Atkinson wrote: > The WMS spec allows vendor specific parameters to be used, and it also > allows fixed parameters to be included inthe URL root > > eg this is a valid service URI: > > http://mymaps.com/mapserver?map=topo Technically, all map-server base URLs are supposed to include the appropriate trailing character to make them suitable to use as opaque prefix strings. So, the above should actually be: http://mymaps.com/mapserver?map=topo& --------------------------+------------------------+-------------------------- Dr. Craig S. Bruce | Tel: 819-771-8303 x205 | CubeWerx Inc. Senior Software Developer | Home: 613-565-1344 | Hull, Qu?bec, Canada csbruce at cubewerx.com | http://www.csbruce.com | http://www.cubewerx.com/ --------------------------+------------------------+-------------------------- "Dasunt's Law: Everything inside a computer will evolve to a state where it requires active cooling." From Michael.Hearne at noaa.gov Fri Jul 20 05:59:46 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Fri, 20 Jul 2001 08:59:46 -0400 Subject: [mapserver-users] Works in Winnt but not Linux... References: Message-ID: <3B582B42.BF87B289@noaa.gov> Janet - If you really have & in your URL, the semicolon might be causing a problem. Good CGI programs are supposed to strip out all semicolons so people can't use them to do something like: "http://www.whatever.com/cgi-bin/doit.pl?x=50&y=65;cat /etc/passwd" If, on the other hand, the & is just an artifact of you pasting the URL into your e-mail program, then your problem is something else entirely. :) -Mike Janet Ciavarelli wrote: > > I have a particular line in my html file that works fine in WinNT with Apache. > But this same line I cannot get to work in Linux running apache. > Here is the line: > > > > I've tried modifying this line in several different ways. I've even tried creating an error in the example8.map file and seeing if at the very least it will choke on it. It doesn't even do that. It's like it's just not even executing the mapserv executable. Yet I know the mapserv executable works cause it is called properly on a "SUBMIT". > > Any ideas why this line is not executing the mapserv command? > > Janet. -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From morissette at dmsolutions.ca Fri Jul 20 07:29:39 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 20 Jul 2001 10:29:39 -0400 Subject: [mapserver-users] MapScript and PHP 4.0.6 References: <002a01c10f55$034031a0$de00a8c0@nichebox1> Message-ID: <3B584053.2353C98F@dmsolutions.ca> Hi, A fix for this MapScript vs PHP4.0.6 problem has been committed to the MapServer CVS for MapServer 3.5. Things seem to be working fine for us now with PHP 4.0.6 and MapScript, so please let us know if you notice any more problems with this combination. BTW, this fix in the latest MapServer 3.5 may result in (minor) memory leaks with versions older than PHP4.0.6 since our problem was a side-effect of a memory leak fix in PHP4.0.6. So it is recommended that if you compile/install the latest MapScript 3.5 from CVS then you also upgrade to PHP 4.0.6 Note that the PHP3 version (does anyone still use it anyway?) was not affected at all by these problems. And BTW, No we won't publish a new 3.4 release with this fixed, but if you want to upgrade to PHP4.0.6 with MapScript 3.4 then you can add a call to zend_list_addref() after the add_property_resource() call in phpms_object_init() around line 594 in php_mapscript_util.c: add_property_resource(return_value, "_handle_", handle_id); zend_list_addref(handle_id); Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Rob Martinson wrote: > > Daniel, > > Thank you thank you! Consider this a confirmation to problems with PHP > 4.0.6. I backtracked and rebuilt with source from 4.0.5 and I have zero > problems! The issues with losing the handle of the map when dynamically > generating a map from database contents are gone. I can now reliably (it > seems) create a map on a blank .map file using mapscript only to set > map/layer/class properties and add additional layers. > > This works now with the CVS version of Mapserver, Gdal and PHP 4.0.5 on > my end. > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com > > > -----Original Message----- > > From: owner-mapserver-users at lists.gis.umn.edu > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > > Daniel Morissette > > Sent: Tuesday, July 17, 2001 7:27 PM > > To: mapserver-users > > Subject: [mapserver-users] MapScript and PHP 4.0.6 > > > > > > Hi Everyone, > > > > There seems to be an incompatibility between the > > PHP/MapScript module and PHP 4.0.6 which causes crashes or > > odd error situations, most of the time with the > > map->getLayer() call. This happens on both Windows and Unix. > > > > We are going to look into this, but in the meantime, you > > should avoid using the PHP/MapScript module with PHP 4.0.6 > > ... you can use PHP 4.0.4pl1 or 4.0.5 which were both working fine. > > > > Note that backtracking to older versions of MapServers such > > as 3.4 or 3.3.011 with PHP 4.0.6 is not likely to resolve the problem. > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. > > From jimburnett at ntelos.net Fri Jul 20 07:49:18 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Fri, 20 Jul 2001 10:49:18 -0400 Subject: [mapserver-users] MapScript Perl-CGI/Problems Message-ID: <008901c1112b$2787c640$2f01a8c0@morpheus> I am having a problem printing out simple HTMP using the mapscript perl mod. This is the only error that I get in my logs. [Fri Jul 20 10:43:42 2001] [error] [client 192.168.1.47] Premature end of script headers: /ho Here is some code that I am using. When I comment out the 3 $map= , $img= and mapscript::msSaveImage lines it works. Now, if I comment out the "use CGI" code, and NOT the mapscript code, then it works! So I am wondering, is there conflicts with CGI.pm and Mapscript.pm ? print "Content-type: text/html\n\n"; $mapPath ="/home/jburnett/maptest"; $imgTemp ="/home/htdocs/tmp"; use mapscript; use CGI; my $q = new CGI; my $imgX = $q->param('img.x'); my $imgY = $q->param('img.y'); $map = new mapObj("$mapPath/romney.map") or die($!. "::Unable to open mapfile."); $img = $map->draw() or die('Unable to draw map'); mapscript::msSaveImage($img, "$imgTemp/example.gif", $map->{interlace}, $map->{transparent}); print" Perl Mapserver Test\n $imgX X $imgY

"; Apache/1.3.12 Perl v5.6.0 Slackware 7.1 thanks! -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jciavarelli at city.kamloops.bc.ca Fri Jul 20 08:11:34 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 20 Jul 2001 08:11:34 -0700 Subject: [mapserver-users] Works in Winnt but not Linux... Message-ID: Thanx everyone for your help. It turns out I found a workaround. I'm still not sure why it didn't work the way it was and the log files were of no help. Janet >>> "Ballard,Lowell" 07/20/01 06:03AM >>> Have you looked to see what Apache has to say about it in the log files? Does it say anything useful? -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, July 19, 2001 4:15 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Works in Winnt but not Linux... I have a particular line in my html file that works fine in WinNT with Apache. But this same line I cannot get to work in Linux running apache. Here is the line: I've tried modifying this line in several different ways. I've even tried creating an error in the example8.map file and seeing if at the very least it will choke on it. It doesn't even do that. It's like it's just not even executing the mapserv executable. Yet I know the mapserv executable works cause it is called properly on a "SUBMIT". Any ideas why this line is not executing the mapserv command? Janet. From cathode at nichebox.com Fri Jul 20 10:09:13 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 20 Jul 2001 20:09:13 +0300 Subject: [mapserver-users] MapScript and PHP 4.0.6 In-Reply-To: <3B584053.2353C98F@dmsolutions.ca> Message-ID: <000401c1113e$b40a8f40$de00a8c0@nichebox1> Daniel, Excellent work. I recompiled with PHP 4.0.6 and the CVS that you just checked in today and everything is working well so far accessing layers with Mapscript. There are a few other minor issues with 3.5 that are unrelated to this. I was going to check the latest mapserver source into my local CVS database and start playing a bit with some of these things and see how much damage I can do. Will be sure to hide my failure and report any success. :) Thanks again! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Daniel Morissette > Sent: Friday, July 20, 2001 5:30 PM > To: Rob Martinson > Cc: 'mapserver-users' > Subject: Re: [mapserver-users] MapScript and PHP 4.0.6 > > > Hi, > > A fix for this MapScript vs PHP4.0.6 problem has been > committed to the MapServer CVS for MapServer 3.5. > > Things seem to be working fine for us now with PHP 4.0.6 and > MapScript, so please let us know if you notice any more > problems with this combination. > > BTW, this fix in the latest MapServer 3.5 may result in > (minor) memory leaks with versions older than PHP4.0.6 since > our problem was a side-effect of a memory leak fix in > PHP4.0.6. So it is recommended that if you compile/install > the latest MapScript 3.5 from CVS then you also upgrade to > PHP 4.0.6 Note that the PHP3 version (does anyone still use > it anyway?) was not affected at all by these problems. > > And BTW, No we won't publish a new 3.4 release with this > fixed, but if you want to upgrade to PHP4.0.6 with MapScript > 3.4 then you can add a call to zend_list_addref() after the > add_property_resource() call in > phpms_object_init() around line 594 in php_mapscript_util.c: > > add_property_resource(return_value, "_handle_", handle_id); > zend_list_addref(handle_id); > > Best Regards, > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > > Rob Martinson wrote: > > > > Daniel, > > > > Thank you thank you! Consider this a confirmation to > problems with PHP > > 4.0.6. I backtracked and rebuilt with source from 4.0.5 and I have > > zero problems! The issues with losing the handle of the map when > > dynamically generating a map from database contents are gone. I can > > now reliably (it > > seems) create a map on a blank .map file using mapscript only to set > > map/layer/class properties and add additional layers. > > > > This works now with the CVS version of Mapserver, Gdal and > PHP 4.0.5 > > on my end. > > > > Rob Martinson > > Nichebox - http://www.nichebox.com > > Development - http://dev.nichebox.com > > > > > -----Original Message----- > > > From: owner-mapserver-users at lists.gis.umn.edu > > > [mailto:owner-mapserver-users at lists.gis.umn.edu] On > Behalf Of Daniel > > > Morissette > > > Sent: Tuesday, July 17, 2001 7:27 PM > > > To: mapserver-users > > > Subject: [mapserver-users] MapScript and PHP 4.0.6 > > > > > > > > > Hi Everyone, > > > > > > There seems to be an incompatibility between the PHP/MapScript > > > module and PHP 4.0.6 which causes crashes or odd error > situations, > > > most of the time with the > > > map->getLayer() call. This happens on both Windows and Unix. > > > > > > We are going to look into this, but in the meantime, you should > > > avoid using the PHP/MapScript module with PHP 4.0.6 ... > you can use > > > PHP 4.0.4pl1 or 4.0.5 which were both working fine. > > > > > > Note that backtracking to older versions of MapServers > such as 3.4 > > > or 3.3.011 with PHP 4.0.6 is not likely to resolve the problem. > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > > > > > From cathode at nichebox.com Fri Jul 20 13:32:14 2001 From: cathode at nichebox.com (Rob Martinson) Date: Fri, 20 Jul 2001 23:32:14 +0300 Subject: [mapserver-users] Map Orientation Message-ID: <000c01c1115b$1085b9e0$de00a8c0@nichebox1> I don't see this capability anywhere in Mapscript or Mapfile definition thus far, but is it possible to change the orientation of the map? Or has this been considered at all? For example, I would like to be able (in Mapscript) to rotate the map in degrees. 0 being the default with north/south on the X axis. Negative values through -180 would rotate counter clockwise on a center axis, positive values through 180 would do the same clockwise. Possible? By the way, TAB support is sweet! Works great. Would anyone be interested in a little PHP/Mapscript to parse and load MapInfo workspaces? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From steve.lime at dnr.state.mn.us Fri Jul 20 13:41:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 20 Jul 2001 15:41:12 -0500 Subject: [mapserver-users] Map Orientation Message-ID: Hasn't been considered at all, although you might be able to accomplish it just using PROJ.4. That can't be efficient though. Why not just rotate or mirror the resulting image? I could be convinced, but this doesn't seem a frequently requested option to warrant a new parameter... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Rob Martinson" 07/20/01 03:32PM >>> I don't see this capability anywhere in Mapscript or Mapfile definition thus far, but is it possible to change the orientation of the map? Or has this been considered at all? For example, I would like to be able (in Mapscript) to rotate the map in degrees. 0 being the default with north/south on the X axis. Negative values through -180 would rotate counter clockwise on a center axis, positive values through 180 would do the same clockwise. Possible? By the way, TAB support is sweet! Works great. Would anyone be interested in a little PHP/Mapscript to parse and load MapInfo workspaces? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From cathode at nichebox.com Fri Jul 20 14:20:35 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sat, 21 Jul 2001 00:20:35 +0300 Subject: [mapserver-users] Map Orientation In-Reply-To: Message-ID: <000d01c11161$d1d9db20$de00a8c0@nichebox1> Rotating the image won't work because pixels are square and that would throw my extents way off in the final display if I had to make up the extra whitespace from rectangular image corners across the sides. I hadn't thought of reprojecting, but that's a possiblity. A few applications that I can think of off the top of my head. First is GPS tracking applications where you may "follow" a vehicle. The vehicle is always centered within the extent and always oriented to the top of the map with the map rotating as direction changes. Additionally, sometimes coverages are better displayed with a specific feature at map top rather than true North. For example, a map of ski runs on the North face of a mountain. Just doesn't seem right to ski from bottom to top :) It's not a big issue, and I'm sure you have a million things on your plate. Just an idea. Thanks for listening! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Friday, July 20, 2001 11:41 PM > To: mapserver-users at lists.gis.umn.edu; cathode at nichebox.com > Subject: Re: [mapserver-users] Map Orientation > > > Hasn't been considered at all, although you might be able to > accomplish it just using PROJ.4. That can't be efficient > though. Why not just rotate or mirror the resulting image? I > could be convinced, but this doesn't seem a frequently > requested option to warrant a new parameter... > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Rob Martinson" 07/20/01 03:32PM >>> > I don't see this capability anywhere in Mapscript or Mapfile > definition thus far, but is it possible to change the > orientation of the map? Or has this been considered at all? > > For example, I would like to be able (in Mapscript) to rotate > the map in degrees. 0 being the default with north/south on > the X axis. Negative values through -180 would rotate counter > clockwise on a center axis, positive values through 180 would > do the same clockwise. Possible? > > By the way, TAB support is sweet! Works great. Would anyone > be interested in a little PHP/Mapscript to parse and load > MapInfo workspaces? > > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com > > > From teb at mallit.fr.umn.edu Fri Jul 20 15:44:27 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 20 Jul 2001 17:44:27 -0500 (CDT) Subject: [mapserver-users] Meeting Message-ID: <200107202244.RAA18020@mallit.fr.umn.edu> Thanks to you (nearly 400 list subscribers) MapServer has to be considered a success. Some of us at "home base" feel that we may have reached a time where a MapServer Users Meeting would be appropriate. We'd like your input on that. In particular: 1. Would you come? Are there important conditions, over which we have some control, that would determine whether you'd participate? 2. Would you prefer a meeting/workshop at the University of Minnesota, Twin Cities Campus (I remember those fine "gopher server" meetings) or something done in conjunction with a related conference? The former is easier to plan and could be pulled off with much less lead time, the latter might be easier for people to justify travel to. That's all we want to know at the moment. If there seems to be interest, we will move forward with your help. You may respond to the group (please keep "Meeting" in the subject) or directly to me. Thanks, 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 pramsey at refractions.net Fri Jul 20 17:48:38 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 20 Jul 2001 17:48:38 -0700 Subject: [mapserver-users] PostGIS 0.5 Released Message-ID: <3B58D166.D0E03F84@refractions.net> Refractions Research is pleased to announce the 0.5 release of PostGIS : Geographic Objects for the PostgreSQL object-relational database server. PostGIS/PostgreSQL is a spatial database much like ESRI's SDE and Oracles OracleSpatial. PostGIS/PostgreSQL includes the following functionality: - Simple Features as defined by the OpenGIS Consortium (OGC) - Support for Well-Known Text and Well-Known Binary representations of GIS objects - Fast spatial indexing using GiST - Geospatial analysis functions - PostgreSQL JDBC extension objects corresponding to the geometries - Support for OGC access functions as defined by the Simple Features Specification The 0.5 release of PostGIS includes support for the MapServer internet web mapping server from the University of Minnesota (http://mapserver.gis.umn.edu). Download the latest CVS version of MapServer to use PostGIS as a internet web mapping backend. Other changes: - New functions - Dimension() - GeometryType() - Envelope() - X(), Y(), Z() - NumPoints() - PointN() - ExteriorRing() - NumInteriorRings() - InteriorRingN() - NumGeometries() - GeometryN() - Length_Spheroid() - Length3D_Spheroid() - AsBinary() + XDR and NDR variants - force_collection() - New Objects - SPHEROID(,,) To be used with the length_spheroid functions for accurate length calculations on lat/lon data. (Thanks to Geographic Data BC and David Skea) - Minor bug fixes - Internal Functions - Extra constructors to make geometry manipulation easier - Structural Reorganization - Broke postgis.c up into four new files postgis_debug.c -- debugging functions postgis_fn.c -- generic functions (like length()) postgis_ops.c -- operators and indexing functions postgis_inout.c -- type support functions and data conversion functions From pramsey at refractions.net Fri Jul 20 17:59:42 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 20 Jul 2001 17:59:42 -0700 Subject: [mapserver-users] PostGIS as data source Message-ID: <3B58D3FE.2845533E@refractions.net> As announced earlier, PostGIS/PostgreSQL can now be used as a MapServer datasource. You'll need the 3.5 CVS version in order to do it, as well as PostgreSQL. The URL below is an example of a working PostGIS datasource. http://mapserver.refractions.net/cgi-bin/mapserv?map=/home/www/mapserv/maps/postgis.map I have attached the map file used for this example as a template. Mostly, things work just like normal. The only differences are in the connection string (which is just a standard postgresql connection string) and in the way 'FILTER' works: if you want a filter it should be expressed using the kind of syntax you would use for a SQL 'where' clause. I hope some folks give this a try! Paul -------------- next part -------------- NAME BCB EXTENT 167053 354794 1941047 1737909 SIZE 600 480 SHAPEPATH "/home/www/mapserv/data" UNITS meters FONTSET "/home/www/mapserv/fonts/fonts.lst" SYMBOLSET "/home/www/mapserv/maps/symbols.sym" WEB TEMPLATE postgis-template.html IMAGEPATH "/home/www/mapserv/tmp/" IMAGEURL "/tmp/" END LAYER NAME "bc" DATA border_poly STATUS DEFAULT TYPE POLYGON CLASS COLOR 212 212 212 OUTLINECOLOR 100 100 100 END END LAYER CONNECTIONTYPE postgis NAME "highways" DATA "geo_value from tcn_roads" FILTER "type = 6" CONNECTION "user=pramsey dbname=postgis_test" STATUS DEFAULT TYPE LINE MAXSCALE 900000 MINSCALE 200000 CLASS COLOR 255 22 22 TEMPLATE postgis-query.html END END LAYER CONNECTIONTYPE postgis NAME "mypostgis" DATA "geo_value from tcn_roads" CONNECTION "user=pramsey dbname=postgis_test" STATUS DEFAULT TYPE LINE MAXSCALE 200000 CLASS COLOR 255 22 22 TEMPLATE postgis-query.html SYMBOL "solid2" SIZE 2 EXPRESSION ([type] = 6) END CLASS COLOR 205 92 82 TEMPLATE postgis-query.html EXPRESSION ([type] < 6) END END END From pramsey at refractions.net Fri Jul 20 18:01:59 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 20 Jul 2001 18:01:59 -0700 Subject: [mapserver-users] PostGIS as data source Message-ID: <3B58D487.B7D3FFA5@refractions.net> Oh, and the other difference is the 'DATA' line, for which the syntax is ' from ' where '' is the column in which the geometry objects are stored. From v at w.cl Fri Jul 20 18:03:04 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 20 Jul 2001 21:03:04 -0400 (CLT) Subject: [mapserver-users] MapScript Perl-CGI/Problems In-Reply-To: from "Jim Burnett" at Jul 20, 2001 10:49:18 AM Message-ID: <200107210103.f6L135O28232@antonia.nn.cl> > This is the only error that I get in my logs. > > [Fri Jul 20 10:43:42 2001] [error] [client 192.168.1.47] Premature end = > of script headers: /ho > > Here is some code that I am using. When I comment out the 3 $map=3D = > , $img=3D and mapscript::msSaveImage lines it works.=20 > Now, if I comment out the "use CGI" code, and NOT the mapscript code, = > then it works! > So I am wondering, is there conflicts with CGI.pm and Mapscript.pm ? I can tell there's not a conflict, at least in my configuration: mserv 3.3.011 perl 5.6.0 apache 1.3.14 I also had your problem at first, but turned out to be a bad map file. What happens when you run the script in offline mode? (ie, from a shell) As a general rule, debugging cgi scripts from web server logs is not at all helpful, because any error that prevents execution will be seen by the web server as a 'Premature end of script headers' (there are no headers because the script never actually produced output). HTH, -- V. From v at w.cl Fri Jul 20 19:14:20 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 20 Jul 2001 22:14:20 -0400 (CLT) Subject: [mapserver-users] Zooming and MapScript In-Reply-To: <000d01c11161$d1d9db20$de00a8c0@nichebox1> from "Rob Martinson" at Jul 21, 2001 12:20:35 AM Message-ID: <200107210214.f6L2EKk28604@antonia.nn.cl> Hello again. What's the right method to zoom an image with mapscript? My problem is I don't have a clue where to start :-), changing the extent makes you pan, is there a way to zoom just changing a parameter of the map or should I create a new layer or shape from the other? If the second alternative is true, where can I find information about the right methods (algorithms) to use? As you may have guessed, my background has nothing to do with maps, and I'm just starting to learn about them. So if anybody could share with me an URL or good book about this subject, I'd be very grateful. If I asked in the wrong place I'm really sorry. Thanks a lot in advance. -- V. From Rich at GreenwoodMap.com Fri Jul 20 20:11:25 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 20 Jul 2001 21:11:25 -0600 Subject: [mapserver-users] Meeting In-Reply-To: <200107202244.RAA18020@mallit.fr.umn.edu> Message-ID: <5.1.0.14.0.20010720210817.0343bd50@mail.GreenwoodMap.com> I would surely rate mapserver as a "success" and I would be very interested in attending a meeting. I think that a "mapserver only" meeting should be able to stand on its own feet. Rich At 05:44 PM 7/20/2001 -0500, you wrote: >Thanks to you (nearly 400 list subscribers) MapServer has to be >considered a success. Some of us at "home base" feel that we may >have reached a time where a MapServer Users Meeting would be >appropriate. We'd like your input on that. In particular: > >1. Would you come? Are there important conditions, over which we >have some control, that would determine whether you'd >participate? > >2. Would you prefer a meeting/workshop at the University of >Minnesota, Twin Cities Campus (I remember those fine "gopher >server" meetings) or something done in conjunction with a related >conference? The former is easier to plan and could be pulled off >with much less lead time, the latter might be easier for people >to justify travel to. > >That's all we want to know at the moment. If there seems to be >interest, we will move forward with your help. You may respond to >the group (please keep "Meeting" in the subject) or directly to >me. > >Thanks, >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 Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From nacht at widerstand.org Sat Jul 21 04:51:20 2001 From: nacht at widerstand.org (.d.z.a.) Date: Sat, 21 Jul 2001 12:51:20 +0100 Subject: [mapserver-users] OT: Street Data Nomenclature In-Reply-To: <5.1.0.14.0.20010720210817.0343bd50@mail.GreenwoodMap.com> Message-ID: <000001c111db$759fee10$e600a8c0@goodfella> A bit off topic - I've been trying to locate some street mapping data for London New York and Sanfrancisco with street names and block allocations and preferably building names and am having no luck. Is ther a special name given to this type of data that I should be searching for or will I be forced to pay for this ( am working on a non-profit arts project...) cheers. From cathode at nichebox.com Sat Jul 21 07:02:14 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sat, 21 Jul 2001 17:02:14 +0300 Subject: [mapserver-users] OT: Street Data Nomenclature In-Reply-To: <000001c111db$759fee10$e600a8c0@goodfella> Message-ID: <000101c111ed$bfd911c0$de00a8c0@nichebox1> If you're going for cheap/free you can get TIGER data from the US Census Bureau directly through them, a reseller, or downloadable on the Internet (check http://www.census.gov) This will give you useable street layers (although not the prettiest) for the US. As for building names, unless you can get this data from city planning, the only thing I can think of that would be close is a ZIP+4 database. Some older ZIP+4 is available online for free, or you can visit USPS website for information about purchasing some of their more current data. As for London, I can't point you anywhere for detailed street data. Of course it exists, but I think most of it is in the hands of city planning departments and some specialized data providers. I'm sure it's available but I wouldn't know where. Hope this helps! Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of .d.z.a. > Sent: Saturday, July 21, 2001 2:51 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] OT: Street Data Nomenclature > > > > A bit off topic - I've been trying to locate some street > mapping data for London New York and Sanfrancisco with street > names and block allocations and preferably building names and > am having no luck. > > Is ther a special name given to this type of data that I > should be searching for or will I be forced to pay for this ( > am working on a non-profit arts > project...) > > cheers. > > > From ravuri_eswar at yahoo.com Sat Jul 21 11:08:51 2001 From: ravuri_eswar at yahoo.com (ravuri eswar) Date: Sat, 21 Jul 2001 11:08:51 -0700 (PDT) Subject: [mapserver-users] mechanism behind conversion of .dbf file of Foxpro to .xml !!! Message-ID: <20010721180851.1980.qmail@web12508.mail.yahoo.com> Dear sir, I am Eshwar, from India. I am a junior software engineer. I want to know the conversion mechanism behind the conversion of .dbf file created in foxpro to .xml file. How do it possible? please write me with all the mechanism/command sets includes in this conversion. And please try to give me some examples for this conversion. eagerly waiting for your reply. Will you send the reply to me directly, or i have to see it in any site? please mension this too in your reply. Regards... Eshwar ===== ------------------------------------------- Don't forget me!!!!! Happy moments..... __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From cathode at nichebox.com Sat Jul 21 14:24:55 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sun, 22 Jul 2001 00:24:55 +0300 Subject: [mapserver-users] Small fix for labels in php_mapscript.c Message-ID: <000001c1122b$9766e080$de00a8c0@nichebox1> I noticed a little problem when setting a few properties of the label object. Specifically, the following object properties were not available and returned an error "Property does not exist in this object": "backgroundcolor" "backgroundshadowcolor" "backgroundshadowsizex" "backgroundshadowsizey" Just a little missed typing in php_mapscript.c. Although the properties exist within the label object on creation, they were not being changed in php3_ms_label_setProperty. Between lines 4508 and 4509 of the latest CVS version of php_mapscript.c I inserted: else IF_SET_LONG( "backgroundcolor", self->backgroundcolor) else IF_SET_LONG( "backgroundshadowcolor", self->backgroundshadowcolor) else IF_SET_LONG( "backgroundshadowsizex", self->backgroundshadowsizex) else IF_SET_LONG( "backgroundshadowsizey", self->backgroundshadowsizey) After recompiling I have no errors and I can now place bounding boxes around my labels. Whoop! Hope this helps... Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com From bludwulf at crackrock.net Sat Jul 21 17:04:55 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Sat, 21 Jul 2001 17:04:55 -0700 (MST) Subject: [mapserver-users] Background color using PHP/MapScript. Message-ID: I'm trying to figure out if I messed something up or if I'm setting something wrong with my php. I'm trying to use buildmap.php from a previous post. I'm using GD 1.8.4. My mapserv CGI works great, I only have this problem when using PHP/Mapscript. The problem is that I set my background color in my .map file to blue. The image I receive has a white background color, and around any labels that extend on the background I get a few blue pixels. I thought that it might have something to do with the transprent color but that doesn't seem to be the case. Look at http://bludwulf-bsd.dyn.dhs.org/loc-dns/ to see what I mean. http://bludwulf-bsd.dyn.dhs.org/loc-dns/maps/studios.map is my mapfile. -Beau Gunderson From mcn at engarde.com Sat Jul 21 17:38:59 2001 From: mcn at engarde.com (Mike Neuman) Date: Sat, 21 Jul 2001 18:38:59 -0600 Subject: [mapserver-users] Point label collisions? Message-ID: I know the mapserver is pretty smart about moving text labels around to avoid overlaps, but can something similar be done with the point labels? In other words, if I have 5 points in a little area, can it show them without overlap? Thanks! -Mike From cathode at nichebox.com Sun Jul 22 00:27:45 2001 From: cathode at nichebox.com (Rob Martinson) Date: Sun, 22 Jul 2001 10:27:45 +0300 Subject: [mapserver-users] Background color using PHP/MapScript. In-Reply-To: Message-ID: <000501c1127f$ce60c700$de00a8c0@nichebox1> Beau, I wrote parameters for the saveImage line incorrectly in that .phps. I think what is happening is it's setting color index 90 to transparent which allows your background to show through (maybe? Just a guess, I know my line is incorrect). Try changing line 82 of buildmap.php from: $img->saveImage("",MS_PNG,90,0, 0); To: $img->saveImage("",MS_PNG,MS_FALSE,MS_TRUE,-1); Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Beau Gunderson > Sent: Sunday, July 22, 2001 3:05 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Background color using PHP/MapScript. > > > I'm trying to figure out if I messed something up or if I'm > setting something wrong with my php. I'm trying to use > buildmap.php from a previous post. I'm using GD 1.8.4. My > mapserv CGI works great, I only have this problem when using > PHP/Mapscript. > > The problem is that I set my background color in my .map file > to blue. The image I receive has a white background color, > and around any labels that extend on the background I get a > few blue pixels. I thought that it might have something to do > with the transprent color but that doesn't seem to be the case. > > Look at http://bludwulf-bsd.dyn.dhs.org/loc-dns/ to see what I mean. > http://bludwulf-bsd.dyn.dhs.org/loc-dns/maps/studios.map is my mapfile. -Beau Gunderson From JohnHockaday at auslig.gov.au Sun Jul 22 18:05:42 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Mon, 23 Jul 2001 11:05:42 +1000 Subject: [mapserver-users] Australian Spatial Data Directory which uses MapServer has been r eleased! Message-ID: <53273E187450D311ACF6009027927B12022C0D6C@smtpgate.auslig.gov.au> Hi all, A while ago I was asking many questions about debugging some of our problems using map server. Thanks to all of you who helped with your answers. During this development I mentioned that I wanted to use java script to draw a box on the map instead of an applet because some of our client organisations don't allow Java through their firewalls. Some people asked if I could show them what we did with the javascript to draw the box so I thought that I would post our new site to this list and those who are interested can read the javascript. There are no guarantees that the javascript is readable nor efficient. It just works and that's what I need. ;--) The interface is a Z3950 search of the Australian metadata nodes. We use MapServer to allow the users to define an area on a map that is passed back to the search interface and thus they can do a spatial search. The URL is: http://www.auslig.gov.au/asdd/ click on the "power search" in the top navigation bar and then click on the little image of Australia. This should pop up another window with a MapServer interface in it. Please feel free to play with the search interface. I would like to see if it can handle many hits at once. Thanks again for all your help. John Hockaday From mcn at engarde.com Sun Jul 22 22:57:29 2001 From: mcn at engarde.com (Mike Neuman) Date: Sun, 22 Jul 2001 23:57:29 -0600 Subject: [mapserver-users] Examples using projection? Message-ID: I'm trying to draw individual states, but am having serious problems getting the projection to make any sense. Does anyone have examples I can look at? As an example of my problems, I draw the state of Minnesota. It looks really elongated (since most people are used to seeing it as LCC). So, I do: $map->setProjection("proj=lcc,lat_0=33,lat_1=45,lon_0=-93"); This works, and I get an LCC projection of Minnesota, but only if I redo the extents using the PROJ.4 program. Even then, a good portion of the bottom of the state is lopped off. By playing with the numbers, I discover I can set minx=-1 maxx=1, and the miny and maxy to some value gotten from PROJ4 (+ or - some error so I don't lose the bottom of the state). This doesn't seem right. Since Mapserver automatically recomputes ALL layers (and drawn points) in the new projection, why can't it recompute extents? Or does it, and I'm missing something? Thanks! -Mike From jimburnett at ntelos.net Mon Jul 23 05:12:54 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 23 Jul 2001 08:12:54 -0400 Subject: [mapserver-users] MapScript Perl-CGI/Problems References: <200107210103.f6L135O28232@antonia.nn.cl> Message-ID: <000801c11370$cd38c840$2f01a8c0@morpheus> My perl script executes a print statement right in the beginning, so it is always printing some kind of output. When I rum the script from the command line, I get a seg fault. If I take out the mapscript code, then it works fine. -cruz- ----- Original Message ----- From: "Vinko Vrsalovic B." To: "Jim Burnett" Cc: Sent: Friday, July 20, 2001 9:03 PM Subject: Re: [mapserver-users] MapScript Perl-CGI/Problems > > > This is the only error that I get in my logs. > > > > [Fri Jul 20 10:43:42 2001] [error] [client 192.168.1.47] Premature end = > > of script headers: /ho > > > > Here is some code that I am using. When I comment out the 3 $map=3D = > > , $img=3D and mapscript::msSaveImage lines it works.=20 > > Now, if I comment out the "use CGI" code, and NOT the mapscript code, = > > then it works! > > So I am wondering, is there conflicts with CGI.pm and Mapscript.pm ? > > I can tell there's not a conflict, at least in my configuration: > > mserv 3.3.011 > perl 5.6.0 > apache 1.3.14 > > I also had your problem at first, but turned out to be a bad map file. > > What happens when you run the script in offline mode? > (ie, from a shell) > > As a general rule, debugging cgi scripts from web server logs is not at > all helpful, because any error that prevents execution will be seen by the > web server as a 'Premature end of script headers' (there are no headers > because the script never actually produced output). > > HTH, > -- > V. > From ems174 at psu.edu Mon Jul 23 07:31:21 2001 From: ems174 at psu.edu (Eric Steele) Date: Mon, 23 Jul 2001 10:31:21 -0400 Subject: [mapserver-users] Spatial and Attribute Querying Message-ID: Hi, I'm looking for a way to combine spatial and attribute queries. I want to be able to do something like "find all sites within X distance with attributes Y and Z". A push in the right direction would be greatly appreciated. Thanks, Eric Eric M. Steele Senior Research Technologist Land Analysis Laboratory, Penn State University EricSteele at psu.edu 814-865-2307 From steve.lime at dnr.state.mn.us Mon Jul 23 08:11:36 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 10:11:36 -0500 Subject: [mapserver-users] Point label collisions? Message-ID: Point labels are subject to the same collision avoidance as other layers. That said there are some special things going on that I don't know if they still make sense. Let me try to explain... My assumption is that with POINT layers that the points (i.e. symbols) themselves are very important and every effort should be made not to obscure them. With POINT layers all points are drawn regardless of overlap and then labels are added. The current rule is that labels can't overlap with each other, nor can they obscure another point. In crowded situations I could see where very few points would get labeled. The alternative would be to allow label/symbol overlap but in testing that results very confusing output since you could label something that itself becomes obscured by another label. The old earthquake mapper I did showed this problem nicely. That's what I implemented the current rule. Reading your message closely you might mean can symbols be shown without overlap? At the moment, no, unless you turn your symbols into labels. Features are always drawn where they are supposed to be drawn. Doesn't mean it couldn't be added though. It would mean adding a marker caching system which wouldn't be trivial but since there's already a label caching system it wouldn't be that hard. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mike Neuman" 07/21/01 07:38PM >>> I know the mapserver is pretty smart about moving text labels around to avoid overlaps, but can something similar be done with the point labels? In other words, if I have 5 points in a little area, can it show them without overlap? Thanks! -Mike From steve.lime at dnr.state.mn.us Mon Jul 23 08:34:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 10:34:30 -0500 Subject: [mapserver-users] Zooming and MapScript Message-ID: The script linked to via this site shows you one way to do it. - http://maps.dnr.state.mn.us/cgi-bin/mapquakes.pl Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vinko Vrsalovic B." 07/20/01 09:14PM >>> Hello again. What's the right method to zoom an image with mapscript? My problem is I don't have a clue where to start :-), changing the extent makes you pan, is there a way to zoom just changing a parameter of the map or should I create a new layer or shape from the other? If the second alternative is true, where can I find information about the right methods (algorithms) to use? As you may have guessed, my background has nothing to do with maps, and I'm just starting to learn about them. So if anybody could share with me an URL or good book about this subject, I'd be very grateful. If I asked in the wrong place I'm really sorry. Thanks a lot in advance. -- V. From ed at topozone.com Mon Jul 23 08:59:15 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 23 Jul 2001 11:59:15 -0400 Subject: [mapserver-users] Meeting Message-ID: <13858AA1A74F30419F319ACB66A9D122CF1B@mercator.topozone.com> Tom - I think it would be a great idea. This is a very active, helpful community and it would be very valuable for us to get together. I especially think the value of "show and tell" with discussion on how we're all attacking various problems with MapServer would be worth the trip. Doing it in Minnesota is fine (but not in January ). - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: teb [mailto:teb at mallit.fr.umn.edu] Sent: Friday, July 20, 2001 6:44 PM To: mapserver-users at lists.gis.umn.edu Cc: teb at mallit.fr.umn.edu Subject: [mapserver-users] Meeting Thanks to you (nearly 400 list subscribers) MapServer has to be considered a success. Some of us at "home base" feel that we may have reached a time where a MapServer Users Meeting would be appropriate. We'd like your input on that. In particular: 1. Would you come? Are there important conditions, over which we have some control, that would determine whether you'd participate? 2. Would you prefer a meeting/workshop at the University of Minnesota, Twin Cities Campus (I remember those fine "gopher server" meetings) or something done in conjunction with a related conference? The former is easier to plan and could be pulled off with much less lead time, the latter might be easier for people to justify travel to. That's all we want to know at the moment. If there seems to be interest, we will move forward with your help. You may respond to the group (please keep "Meeting" in the subject) or directly to me. Thanks, 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 steve.lime at dnr.state.mn.us Mon Jul 23 10:15:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 12:15:18 -0500 Subject: [mapserver-users] Spatial and Attribute Querying Message-ID: There's not a way to do that type of a query exactly with the CGI version. You can apply an extent to an attribute query but that's about it at the moment. That could change in the future by allowing query stacking (ie. query of a query). That said, you can do this in MapScript by doing one query first and then further filtering the results. I believe the database servers do the spatial first then the attribute. They aren't done at the same time, but in sequence. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> ems174 at PSU.EDU 07/23/01 09:31AM >>> Hi, I'm looking for a way to combine spatial and attribute queries. I want to be able to do something like "find all sites within X distance with attributes Y and Z". A push in the right direction would be greatly appreciated. Thanks, Eric Eric M. Steele Senior Research Technologist Land Analysis Laboratory, Penn State University EricSteele at psu.edu 814-865-2307 From rob at socialchange.net.au Mon Jul 23 10:42:07 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Tue, 24 Jul 2001 03:42:07 +1000 Subject: [mapserver-users] ScaleHint References: Message-ID: <3B5C61EF.798DBB8@socialchange.net.au> A host has no specific semantics in a service architecture, unless you treat it as something that supports the routing level - in which case its the TCP/IP listening port I guess. In "Services" we think of "service access points" and "services" - in this case you have one "service access point" delivering multiple "services", but if you changed your service access point definition to include the service name, you would simply have a one-one mapping. This is the short term preferred approach becuase it obviates the need to add additional level of complexity on how to model each possible service implementations set of configuration parameters. Rob Stephen Lime wrote: > Depends on what you consider a service and a host. I have a host (http://maps.dnr.state.mn.us/cgi-bin/mapserv) > with 10 services available and the WMS stuff does a poor job with that type of a setup without wrappers or vendor > specific parameters. Certainly possible, even desireable for a host, any host, to be home to a number of services. > > >>> Rob Atkinson 07/19/01 02:12PM >>> > > Actually if you work this through you reach the conclusion that the service is the URI , with qualifiers to > the right of the ? if required, and the host is irrelevant, which is exactly what is supported! > > :-) > > Stephen Lime wrote: > > > So after all the discussion the current behavior is correct, correct? That is the map is generated but > > the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the > > case so I don't know of an alternative. > > > > On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by > > not being able to specify a particular service on a host other than using the root of the URL (i.e. > > left of the ?). It's going to be pretty common for sites to host multiple applications using the same > > engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a > > bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been > > a nice addition to the spec. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From steve.lime at dnr.state.mn.us Mon Jul 23 10:55:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 12:55:35 -0500 Subject: [mapserver-users] ScaleHint Message-ID: It's all semantics. I still think it's wrong, a single parameter is hardly complex- just name the service. >>> Rob Atkinson 07/23/01 12:42PM >>> A host has no specific semantics in a service architecture, unless you treat it as something that supports the routing level - in which case its the TCP/IP listening port I guess. In "Services" we think of "service access points" and "services" - in this case you have one "service access point" delivering multiple "services", but if you changed your service access point definition to include the service name, you would simply have a one-one mapping. This is the short term preferred approach becuase it obviates the need to add additional level of complexity on how to model each possible service implementations set of configuration parameters. Rob Stephen Lime wrote: > Depends on what you consider a service and a host. I have a host (http://maps.dnr.state.mn.us/cgi-bin/mapserv) > with 10 services available and the WMS stuff does a poor job with that type of a setup without wrappers or vendor > specific parameters. Certainly possible, even desireable for a host, any host, to be home to a number of services. > > >>> Rob Atkinson 07/19/01 02:12PM >>> > > Actually if you work this through you reach the conclusion that the service is the URI , with qualifiers to > the right of the ? if required, and the host is irrelevant, which is exactly what is supported! > > :-) > > Stephen Lime wrote: > > > So after all the discussion the current behavior is correct, correct? That is the map is generated but > > the layer will not appear if the scaling limits are violated. Performance issues abound if this is not the > > case so I don't know of an alternative. > > > > On the map "vendor specific" parameter I just wanted to add that I think OGC missed the boat by > > not being able to specify a particular service on a host other than using the root of the URL (i.e. > > left of the ?). It's going to be pretty common for sites to host multiple applications using the same > > engine, MapServer, ArcIMS or whatever and maintaining the wrapper scripts while simple is a > > bit of a pain. Being able to refer to the service (in our case using a mapfile name) would've been > > a nice addition to the spec. > > > > Steve > > > > Stephen Lime > > Internet Applications Analyst > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 From morissette at dmsolutions.ca Mon Jul 23 12:08:51 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 23 Jul 2001 15:08:51 -0400 Subject: [mapserver-users] Small fix for labels in php_mapscript.c References: <000001c1122b$9766e080$de00a8c0@nichebox1> Message-ID: <3B5C7643.F9D9362B@dmsolutions.ca> Rob, I have committed the change to CVS... thanks for pointing the error! :) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Rob Martinson wrote: > > I noticed a little problem when setting a few properties of the label > object. Specifically, the following object properties were not available > and returned an error "Property does not exist in this object": > > "backgroundcolor" > "backgroundshadowcolor" > "backgroundshadowsizex" > "backgroundshadowsizey" > > Just a little missed typing in php_mapscript.c. Although the properties > exist within the label object on creation, they were not being changed > in php3_ms_label_setProperty. > > Between lines 4508 and 4509 of the latest CVS version of php_mapscript.c > I inserted: > > else IF_SET_LONG( "backgroundcolor", self->backgroundcolor) > else IF_SET_LONG( "backgroundshadowcolor", > self->backgroundshadowcolor) > else IF_SET_LONG( "backgroundshadowsizex", > self->backgroundshadowsizex) > else IF_SET_LONG( "backgroundshadowsizey", > self->backgroundshadowsizey) > > After recompiling I have no errors and I can now place bounding boxes > around my labels. Whoop! > > Hope this helps... > > Rob Martinson > Nichebox - http://www.nichebox.com > Development - http://dev.nichebox.com From steve.lime at dnr.state.mn.us Mon Jul 23 12:23:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 14:23:02 -0500 Subject: [mapserver-users] Examples using projection? Message-ID: Here's how it works. Extents are taken to be in the projection defined for the map. There's no way to recompute the extent because there's no way for the software to know what projection it might be in. Hence the assumption. When you do a setProjection you also need to provide extents in the new projection. How are you projecting from old extent to new? Doing just the corners will not work. In 3.5 projection support has been rolled into mapscript. All spatial objects (i.e. shapeObj, rectObj,...) have a project method. You can also define new projections using something like $proj = new projectionObj(string); and can use it in the above mentioned methods. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mike Neuman" 07/23/01 12:57AM >>> I'm trying to draw individual states, but am having serious problems getting the projection to make any sense. Does anyone have examples I can look at? As an example of my problems, I draw the state of Minnesota. It looks really elongated (since most people are used to seeing it as LCC). So, I do: $map->setProjection("proj=lcc,lat_0=33,lat_1=45,lon_0=-93"); This works, and I get an LCC projection of Minnesota, but only if I redo the extents using the PROJ.4 program. Even then, a good portion of the bottom of the state is lopped off. By playing with the numbers, I discover I can set minx=-1 maxx=1, and the miny and maxy to some value gotten from PROJ4 (+ or - some error so I don't lose the bottom of the state). This doesn't seem right. Since Mapserver automatically recomputes ALL layers (and drawn points) in the new projection, why can't it recompute extents? Or does it, and I'm missing something? Thanks! -Mike From mcn at engarde.com Mon Jul 23 12:45:07 2001 From: mcn at engarde.com (Mike Neuman) Date: Mon, 23 Jul 2001 13:45:07 -0600 Subject: [mapserver-users] Examples using projection? In-Reply-To: Message-ID: > How are you projecting from old extent to > new? Doing just the corners will not work. What is the proper way to do this? My formula is something like: lccX1,lccY1 = project(minlat, minlon) lccX2,lccY2 = project(minlat, maxlon) lccX3,lccY3 = project(maxlat, minlon) lccX4,lccY4 = project(maxlat, maxlon) new_extent(minx) = MIN(lccX1, lccX2, lccX3, lccX4) new_extent(maxx) = MAX(lccX1, lccX2, lccX3, lccX4) new_extent(miny) = MIN(lccY1, lccY2, lccY3, lccY4) new_extent(maxy) = MAX(lccY1, lccY2, lccY3, lccY4) Thanks! -Mike From steve.lime at dnr.state.mn.us Mon Jul 23 12:55:59 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 23 Jul 2001 14:55:59 -0500 Subject: [mapserver-users] Examples using projection? Message-ID: You have to sample at points along the rectangle and generate a bounding box from that sample. The C source samples at about 100 intervals per side to do this. Me thinks that interval should be based on the output cellsize but 100 seems to work ok. The source is in mapproject.c. Again, if you're using 3.5 you could do something like: $map->setProjection("new output projection"); $latlon = new projectionObj("whatever definition of lat/lon you use"); $map->{extent}->project($latlon, $map->{projection}); At least that's how it's intended to work. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mike Neuman" 07/23/01 02:45PM >>> > How are you projecting from old extent to > new? Doing just the corners will not work. What is the proper way to do this? My formula is something like: lccX1,lccY1 = project(minlat, minlon) lccX2,lccY2 = project(minlat, maxlon) lccX3,lccY3 = project(maxlat, minlon) lccX4,lccY4 = project(maxlat, maxlon) new_extent(minx) = MIN(lccX1, lccX2, lccX3, lccX4) new_extent(maxx) = MAX(lccX1, lccX2, lccX3, lccX4) new_extent(miny) = MIN(lccY1, lccY2, lccY3, lccY4) new_extent(maxy) = MAX(lccY1, lccY2, lccY3, lccY4) Thanks! -Mike From LBallard at YesVirginia.org Mon Jul 23 12:59:23 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Mon, 23 Jul 2001 15:59:23 -0400 Subject: [mapserver-users] Image Catalogs.... Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CD41@communications> I'm trying to get an Image catalog up. I can place the TILEINDEX shapefile in a directory and view it as a polygon layer in my map with other data. I can point to a particular image in my image directory and get it to display using DATA parameter. I can't get this to go: LAYER NAME spot2001 TYPE RASTER STATUS ON # DATA spot_2001/N36W0751.tif (This line will work) TILEINDEX spot_2001/spotindex TILEITEM "LOCATION" OFFSITE 0 END This is my spotindex.shp contents (sample of a few records). LOCATION XMIN YMIN XMAX YMAX spot_2001/n38w0764.tif 261040.00000000 225120.00000000 307920.00000000 283730.00000000 spot_2001/n38w0763.tif 217490.00000000 224220.00000000 263790.00000000 281960.00000000 spot_2001/n38w0754.tif 348226.89000000 228595.60000000 395396.89000000 287505.60000000 spot_2001/n38w0753.tif 304670.00000000 227100.00000000 351550.00000000 285590.00000000 Final notes: The images and TILEINDEX shapefile are located on a 2nd drive mapped through a symlink under the data directory (i.e., spot_2001). I also tried putting in the full unix path in the LOCATION field (i.e., /images/spot_2001/xxx.tif). Thanks, Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From v at w.cl Mon Jul 23 13:01:22 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Mon, 23 Jul 2001 16:01:22 -0400 (CLT) Subject: [mapserver-users] MapScript Perl-CGI/Problems In-Reply-To: <000801c11370$cd38c840$2f01a8c0@morpheus> from "Jim Burnett" at Jul 23, 2001 08:12:54 AM Message-ID: <200107232001.f6NK1MI23474@antonia.nn.cl> > > My perl script executes a print statement right in the beginning, so it is > always printing some kind of output. That's why I said: 'an error that prevents execution', for example syntax errors. > When I rum the script from the command line, I get a seg fault. If I take > out the mapscript code, then it works fine. I just tested your script with a map file of my own and it worked, so the problem may be: 1.- Your map file 2.- Permissions of the file or the directory 2.5.- The header of the file (ie #!/usr/bin/perl missing) 3.- Your GD library (does it allow to generate gif's? may be you should try with png's if you're not sure) 4.- A very particular conflict of your configuration :) Good luck, -- V. From ed at topozone.com Mon Jul 23 13:58:26 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 23 Jul 2001 16:58:26 -0400 Subject: [mapserver-users] Examples using projection? Message-ID: <13858AA1A74F30419F319ACB66A9D122019133@mercator.topozone.com> Mike - You're making the (incorrect) assumption that the minima and maxima of the output projection are related to the minima and maxima of the input projection, and that's not necessarily true. Blue Marble Geographics has a unfixed bug in their GeoTransform DLL because they make the same assumption. I mention their bug because it's a relatively simple illustration. USGS topographic maps (DRGs) are raster maps in the UTM projection. Since each map is bounded by lines of latitude and longitude, the map image is not a rectangle in UTM space. In most cases (all examples here are in the Northern hemisphere) it looks a lot like a rotated rectangle - west of the UTM zone centerline, the maps look like they're rotated clockwise, while east of the centerline, they look like they're rotated counterclockwise. The minimum distortion occurs right at the centerline (the central meridian of the UTM zone) - lines of latitude are indeed perfectly horizontal at the central meridian, and start curving up on either side of it. As a result, the minimum point in UTM space for all USGS DRGs is EITHER the southeast or the southwest corner, depending on whether the DRG is in the western half or the eastern half of the UTM zone, respectively. Since the 1:24,000 and 1:25,000 DRGs are 7.5 minutes each, the central meridian of the UTM zone (an integer degree boundary) is at the right edge or the left edge of the two DRGs that abut it. Since no map ever straddles the centerline, a transformation such as you describe in your email works perfectly. The 1:100,000 DRGs are 1 degree wide and everything's OK. Except.... for the 1:250,000 DRGs. These maps are 1 degree high by 2 degrees wide, and some of them do indeed straddle the centerline of a UTM zone. For example, at 38 degrees North there's a DRG that runs from 98 degrees West to 100 degrees West, crossing the 99-degree-West central meridian of UTM Zone 14. If you look at the original DRG, the map image curves up to the right and left of the centerline. That is, the northern neatline (39 degrees North) is a shallow curve that looks like a smile; the southern neatline is almost identical. And it's that southern neatline (in this example) that jumps up and bites Blue Marble (and you, too). Since the southern neatline looks like a smile, its minimum value is in the MIDDLE OF THE LINE! That is, it's not the southeast corner and it's not the southwest corner. If you try to use Blue Marble's tool to clip the collar from this map, the bottom will be truncated. That's because they presume the minimum output coordinate is the minimum of the projected southeast and the projected southwest corners. But it's not either of those - both of those values are equal and they're too high. To solve this in the general case, you have to reproject EVERYTHING or do some pretty darn clever math. If anyone would like me to email them the 4.5 MB TIFF/LZW file used in this example, let me know (a picture is indeed worth these thousand words). - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Mike Neuman [mailto:mcn at engarde.com] Sent: Monday, July 23, 2001 3:45 PM To: Stephen Lime; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Examples using projection? > How are you projecting from old extent to > new? Doing just the corners will not work. What is the proper way to do this? My formula is something like: lccX1,lccY1 = project(minlat, minlon) lccX2,lccY2 = project(minlat, maxlon) lccX3,lccY3 = project(maxlat, minlon) lccX4,lccY4 = project(maxlat, maxlon) new_extent(minx) = MIN(lccX1, lccX2, lccX3, lccX4) new_extent(maxx) = MAX(lccX1, lccX2, lccX3, lccX4) new_extent(miny) = MIN(lccY1, lccY2, lccY3, lccY4) new_extent(maxy) = MAX(lccY1, lccY2, lccY3, lccY4) Thanks! -Mike From v at w.cl Mon Jul 23 15:00:23 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Mon, 23 Jul 2001 18:00:23 -0400 (CLT) Subject: [mapserver-users] Documentation bug In-Reply-To: from "Stephen Lime" at Jul 23, 2001 02:55:59 PM Message-ID: <200107232200.f6NM0Nd24686@antonia.nn.cl> Object: mapObj Method: embedScalebar() should be embedScalebar($img) embedLegend() should be embedLegend($img) -- V. From pramsey at refractions.net Mon Jul 23 15:52:20 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 23 Jul 2001 15:52:20 -0700 Subject: [mapserver-users] Spatial and Attribute Querying References: Message-ID: <3B5CAAA4.AA774BC8@refractions.net> A combination of mapserver, php, and postgis should do it. You use mapserver for the map interface, pulling drawable features from the postgis datasource. A query click on the map goes to a php page which takes the coordinate information from the query and does a SQL query on the postgis database, something like select * from thetable where attr1 = 'val1' and attr2 = 'vals' and distance(geom,'POINT(x y)') < radius and geom && 'BOX3D(framex1 framey1,framex2 framey2)'::box3d. The first two tests are your attribute queries, the third is the distance portion and the fourth is a subsetting operation which will use the spatial index, to ensure that the process does not get bogged down by processing too many records. Eric Steele wrote: > > Hi, > I'm looking for a way to combine spatial and attribute queries. I want to > be able to do something like "find all sites within X distance with > attributes Y and Z". > A push in the right direction would be greatly appreciated. > Thanks, > Eric > > Eric M. Steele > Senior Research Technologist > Land Analysis Laboratory, > Penn State University > EricSteele at psu.edu > 814-865-2307 -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From benenet at free.fr Tue Jul 24 01:56:26 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Tue, 24 Jul 2001 10:56:26 +0200 Subject: [mapserver-users] mapscript install Message-ID: <3B5D383A.D0C22F85@free.fr> Hello, I can't manage to install mapscript under w95 : * Mpaserver 3.5 works fine on my localhost * I have php 4.0.6 which works all right too * the file php_mapscript_35.dll is in the directory php/dlls * I have made the name changes inside the files phpinfo_mapscript.phtml and test_draw_map.phtml, but still, I can't see them properly what could be wrong ?... Cheers, Ben. From steve.lime at dnr.state.mn.us Tue Jul 24 05:48:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 24 Jul 2001 07:48:43 -0500 Subject: [mapserver-users] Spatial and Attribute Querying Message-ID: I did want to add one more alternative. With 3.5 you could do this: - a normal point "nquery" setting appropriate tolerances for the spatial query - set a FILTER in the mapfile or dynamically as well The FILTER will be applied before checking the spatial requirement. Note that the FILTER stays set when building a resulting querymap which may not be what you want. However, there's a workaround for that using a cached query to build the image you want. Anyway, this should work as a one step solution to your problem. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 07/23/01 22:15 PM >>> A combination of mapserver, php, and postgis should do it. You use mapserver for the map interface, pulling drawable features from the postgis datasource. A query click on the map goes to a php page which takes the coordinate information from the query and does a SQL query on the postgis database, something like select * from thetable where attr1 = 'val1' and attr2 = 'vals' and distance(geom,'POINT(x y)') < radius and geom && 'BOX3D(framex1 framey1,framex2 framey2)'::box3d. The first two tests are your attribute queries, the third is the distance portion and the fourth is a subsetting operation which will use the spatial index, to ensure that the process does not get bogged down by processing too many records. Eric Steele wrote: > > Hi, > I'm looking for a way to combine spatial and attribute queries. I want to > be able to do something like "find all sites within X distance with > attributes Y and Z". > A push in the right direction would be greatly appreciated. > Thanks, > Eric > > Eric M. Steele > Senior Research Technologist > Land Analysis Laboratory, > Penn State University > EricSteele at psu.edu > 814-865-2307 -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Tue Jul 24 08:04:11 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 24 Jul 2001 11:04:11 -0400 Subject: [mapserver-users] mapscript install References: <3B5D383A.D0C22F85@free.fr> Message-ID: <3B5D8E6B.1E917B83@dmsolutions.ca> Benoit V?ler wrote: > > I can't manage to install mapscript under w95 : > > * Mpaserver 3.5 works fine on my localhost > * I have php 4.0.6 which works all right too > * the file php_mapscript_35.dll is in the directory php/dlls > * I have made the name changes inside the files > phpinfo_mapscript.phtml and test_draw_map.phtml, but still, I can't see > them properly > > what could be wrong ?... > Benoit, An error message or a description of what goes wrong would have helped us help you... My guess is that the error you get must be "unable to find php_mapscript_35.dll" and it would be because you put the php_mapscript_35.dll in the wrong directory... usually the Win32 distribution of PHP 4.0.x has extension dlls in the php/extensions dir... so check your php.ini to make sure that extension_dir points to the php/extensions dir in your installation, and put the php_mapscript_35.dll in that directory. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Tue Jul 24 09:06:45 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 24 Jul 2001 11:06:45 -0500 Subject: [mapserver-users] zooming in on selected polygon Message-ID: ok, I finally figured out how to highlight a polygon based on an id... I created a highlight layer with "status" to "off". Then, if my url or form contains an id, the status of the highlight layer is set to "on", and $classObj->setexpression("\"$id\"") does the trick... thanks SDL, for pointing out the correct way to quote the expression in one of your emails... not at all clear from the docs. Four questions follow: 1. is the above the most optimal way of doing the above? 2. what about session specificity? way, user1 queries the mapserver with id=1 and that poly gets highlighted, while at the same time user2 queries the mapserver with id=2? are these treated as separate sessions? I am passing the PHPSESSID in the url, btw. 3. how do I zoomin to the highlighted poly? Essentially, I want to find its mapextent, and then feather it by 5% or 10% and then create the map. 4. if I pass a range of ids, say id=1-44, can I - do a sql-ish or regex setexpression so all ids between 1 and 44 light up? - how do I calculate the smallest bounding box that contains all the 44 highlighted polys? Many tia as usual. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From m_anderson14 at hotmail.com Tue Jul 24 17:12:53 2001 From: m_anderson14 at hotmail.com (Michael Anderson) Date: Tue, 24 Jul 2001 17:12:53 Subject: [mapserver-users] feature querys and projections Message-ID: When you are doing a featurequery, do the slayer and qlayer(s) have to be in the same projection? I had a point in polygon search working a month or so ago and now it never selects any points. The only change is that the points are no longer in the same projection. We have the output projection defined at the map level, and I defined the projections for the qlayer and slayer in the layer section. The slayer is in the same projection as the output. Only the qlayer is different. Thanks. Mike _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From hossam at GeoAnalytics.com Tue Jul 24 10:16:04 2001 From: hossam at GeoAnalytics.com (Hossam Abdel Sayed) Date: Tue, 24 Jul 2001 12:16:04 -0500 Subject: [mapserver-users] QueryUsingPoint Message-ID: Hello I'm using PHP/Mapscript and Mapserver 3.4. I'm trting to use "queryUsingPoint" as below: $QueryResults = $newmapObj->queryUsingPoint($ptClicked,MS_MULTIPLE, -1); print $QueryResults; The second line prints "0", which means there's no results. I have queryitem and query object in each layer in my mapfile and I made sure that the point is passed in map units Any idea why I don't get any results from the query ??? Hossam From bludwulf at crackrock.net Tue Jul 24 10:57:48 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Tue, 24 Jul 2001 10:57:48 -0700 (MST) Subject: [mapserver-users] Documentation bug In-Reply-To: <200107232200.f6NM0Nd24686@antonia.nn.cl> Message-ID: One more thing from the README: getsymbolbyname is listed as having only one parameter. The source says: /* Get the symbol id using it's name. Parameters are : */ /* */ /* - symbol name */ /* - symbol type (not used for now : set it to -1) */ Thought maybe it owuld help someone. =) -Beau Gunderson From pkishor at GeoAnalytics.com Tue Jul 24 10:54:00 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 24 Jul 2001 12:54:00 -0500 Subject: [mapserver-users] Meeting Message-ID: Tom, et al. MapServer is not just a success, it is a raving success. A Users Meeting would only further a feeling of legitimacy, and more important, bring some faces to the, hitherto, email addresses... 400, while good, is still small, and we need to nourish this and spread the word. 1. I would come to the meeting (as long as it is not in the winter ). Being in Madison, it is easy for me to drive up to Twin Cities, but I guess I speak for everyone that the attendance would be impacted in inverse proportion to the cost of attending. 2. I would prefer a stand-alone meeting at the Twin Cities campus... it would get lost if it were in conjunction with another event. Besides, I don't go to other events. As usual, I speak for myself and not for my... blah, blah, blah. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 > -----Original Message----- > From: teb [mailto:teb at mallit.fr.umn.edu] > Sent: Friday, July 20, 2001 5:44 PM > To: mapserver-users at lists.gis.umn.edu > Cc: teb at mallit.fr.umn.edu > Subject: [mapserver-users] Meeting > > > Thanks to you (nearly 400 list subscribers) MapServer has to be > considered a success. Some of us at "home base" feel that we may > have reached a time where a MapServer Users Meeting would be > appropriate. We'd like your input on that. In particular: > > 1. Would you come? Are there important conditions, over which we > have some control, that would determine whether you'd > participate? > > 2. Would you prefer a meeting/workshop at the University of > Minnesota, Twin Cities Campus (I remember those fine "gopher > server" meetings) or something done in conjunction with a related > conference? The former is easier to plan and could be pulled off > with much less lead time, the latter might be easier for people > to justify travel to. > > That's all we want to know at the moment. If there seems to be > interest, we will move forward with your help. You may respond to > the group (please keep "Meeting" in the subject) or directly to > me. > > Thanks, > 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 morissette at dmsolutions.ca Tue Jul 24 11:09:36 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 24 Jul 2001 14:09:36 -0400 Subject: [mapserver-users] QueryUsingPoint References: Message-ID: <3B5DB9E0.27D0FBB8@dmsolutions.ca> Hossam Abdel Sayed wrote: > > I'm using PHP/Mapscript and Mapserver 3.4. I'm trting to use > "queryUsingPoint" as below: > > $QueryResults = $newmapObj->queryUsingPoint($ptClicked,MS_MULTIPLE, > -1); > print $QueryResults; > > The second line prints "0", which means there's no results. I have queryitem > and query object in each layer in my mapfile and I made sure that the point > is passed in map units > > Any idea why I don't get any results from the query ??? > Hossam, What you do seems right... here are a few things to check/try: 1- Set a TEMPLATE value in your query objects... I'm not sure if it's required, but set the value just in case. 2- Make sure your layer's STATUS is ON 3- Try increasing the tolerance value 4- If all the above fail, then check your shapefile manually (using ArcView, or another utility) to verify that the coordinates you use for the query are close enough to some queriable shapes in your file. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Tue Jul 24 11:17:07 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 24 Jul 2001 13:17:07 -0500 Subject: [mapserver-users] turning off classes Message-ID: I have one layer with many classes shaded thematically... two questions -- 1. is it possible to programmatically turn on/off individual classes 2. if #1 above is not possible, and I have to separate the classes into separate layers, is there any performance impact positively or negatively? Many tia, pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From bryan_lists at netmeme.org Tue Jul 24 12:57:44 2001 From: bryan_lists at netmeme.org (Bryan Field-Elliot) Date: Tue, 24 Jul 2001 13:57:44 -0600 Subject: [mapserver-users] Newbie Q: Where to get U.S. street data? Message-ID: <3B5DD338.4010705@netmeme.org> Hi, I've been developing web-based database applications for several years now -- however, presently, I'm writing (for the first time) one which needs to do dynamic mapping. I'm evaluating MapServer for this purpose (with my preference being to stick with open-sourced, free tools). I need to display maps of city regions with street detail, and layer on top of it data from my own PostgreSQL database (e.g. retail store locations). My stupid newbie question is -- where does one obtain street maps for the U.S. in a form usable by MapServer? Can good street data be obtained for free (e.g. from USGS etc?), or do I need to pay to obtain quality, up-to-date maps? If I need to pay, can anyone recommend any vendors? Thanks in advance (and I recommend putting this question in your FAQ), Bryan From bludwulf at crackrock.net Tue Jul 24 13:27:35 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Tue, 24 Jul 2001 13:27:35 -0700 (MST) Subject: [mapserver-users] High weirdness with msDrawLabelCache() and friends. Message-ID: I have a line in my php file that reads: $classObj->label->set("type", MS_TRUETYPE); This should be sufficient to set the label's font type to MS_TRUETYPE, and in fact it does, part of the time. The problem comes when I try to call drawLabelCache(). I get an error only SOME of the time, which reads: Fatal error: MapServer Error in msGetBitmapFont(): Invalid bitmap font. Must be one of tiny, small, medium, large or giant. in /usr/local/apache/htdocs/loc-dns/buildmap.php on line 92 Obviously, label->type is getting set to something other than MS_TRUETYPE. I wrote a few msDebug's into maplabel.c to check what was going on. They look like: msDebug("msGetLabelSize: label->type = %d, should be %d\n", label->type, MS_TRUETYPE); Most of the time they read: [Tue Jul 24 12:17:58 2001].858842 msGetLabelSize: label->type = 0, should be 0 (MS_TRUETYPE enumerates to 0, MS_BITMAP enumerates to 1 BTW) But sometimes, after refreshing, I get: [Tue Jul 24 12:17:58 2001].898735 msGetLabelSize: label->type = -2133912937, should be 0 [Tue Jul 24 12:31:51 2001].6434 msGetLabelSize: label->type = 845938944, should be 0 Obviously something is happening to the information in label->type. Could this just be a PHP bug? Also, should the if/else statement really be an if/else if? (else if label->type == MS_BITMAP) =) My source is at http://bludwulf-bsd.dyn.dhs.org/loc-dns/buildmap.phps The mapfile is at http://bludwulf-bsd.dyn.dhs.org/loc-dns/maps/studios.map Refresh a few times or view http://bludwulf-bsd.dyn.dhs.org/loc-dns/index.php and then go back to buildmap.php to see the bug. -Beau Gunderson From v at w.cl Tue Jul 24 13:56:55 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 24 Jul 2001 16:56:55 -0400 (CLT) Subject: [mapserver-users] Documentation for current versions? In-Reply-To: from "Puneet Kishor" at Jul 24, 2001 11:06:45 AM Message-ID: <200107242056.f6OKutm03921@antonia.nn.cl> Hi. Is anybody working on the mapscript documentation for current versions of mapscript? I'm sick of not finding the right functions and having to browse the source to find the correct function. If there's some work going I'd like to help, if not, I'd like to start making it (in a couple of weeks though :-) ). -- V. From morissette at dmsolutions.ca Tue Jul 24 14:24:05 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 24 Jul 2001 17:24:05 -0400 Subject: [mapserver-users] Documentation for current versions? References: <200107242056.f6OKutm03921@antonia.nn.cl> Message-ID: <3B5DE775.3A123E2F@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Is anybody working on the mapscript documentation for current > versions of mapscript? > > I'm sick of not finding the right functions and having to browse > the source to find the correct function. > Are you using PHP or Perl? I'm not sure about the Perl docs, but if you're using PHP then here is the status of 3.5 documentation: The latest PHP MapScript doc is always in the README file in the mapserver/mapscript/php3 directory of the MapServer source (CVS or nightly build). Since this morning, there is a copy of this PHP MapScript 3.5 docs live on our web site as well: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs35.html Finally, Jeff is currently finishing the last touches on a PHP MapScript class reference (XML/DocBook format) and that should be available in the next few days. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mcn at engarde.com Tue Jul 24 16:08:03 2001 From: mcn at engarde.com (Mike Neuman) Date: Tue, 24 Jul 2001 17:08:03 -0600 Subject: [mapserver-users] Meeting In-Reply-To: Message-ID: > MapServer is not just a success, it is a raving success. I'm new to the Mapserver community. I would agree with this statement from a *technical* point of view, but strongly disagree from an approchability point of view. There are virtually NO examples of how to create maps, do things in mapscript, etc. It took at least 20 hours of me fighting with Mapscript and a .map file before I could get a relatively simple map to display. Then another 8 hours to get the projection right. If I didn't hate my GIS program so much, I probably would have given it up after the first few hours. The documentation has several major errors (queryByPoint still appears on the web site, when queryUsingPoint is correct), PHP Mapscript crashes my webserver when executing simple (and correct, according to the docs) code, and Perl Mapscript coredumps whenever you create a new class in an existing layer or a new layer in an existing map. To get the projection stuff to work as you might expect, I had to upgrade to 3.5. My existing Mapscript code stopped working entirely (with only minor changes made to fix the semantic changes of msSaveImage) by spitting out a blank map, so I had to downgrade to 3.3. Finally, in attempt to debug several things on my own, I downloaded and installed SWIG. Unfortunately, the .i files are no longer compatible with the current version of SWIG. I could not build mapscript from the CVS checkout, and I could not overwrite any of the _wrap files on the nightly builds. All of these problems have workarounds, but without examples, it's an *extremely* painful process to figure them out. So, I implore the Mapserver community: Contribute every Mapscript and .map sample file you can find and *put it in the distribution*. Or at least make another distribution (and ms_demo doesn't cut it) that has dozens of examples. The Mapscript examples IN the mapscript distro are worthless--they don't even draw a map! Thanks for listening. :-) I do love Mapserver. It's something I've wanted for a long time. I can't imagine how fast Mapserver's use would spread if it were approachable. That's all I ask. -Mike From steve.lime at dnr.state.mn.us Tue Jul 24 17:06:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 24 Jul 2001 19:06:24 -0500 Subject: [mapserver-users] Meeting Message-ID: Ouch... I agree for the most part. Documentation and examples are definitely *sparse*. I suppose that's because it's much more fun to write code than documentation. I'm hoping that this will all change soon. The MapServer Documentation Project is slowly getting going. Several detailed guides are already available online with more on the way. Examplewise, that is being addressed right now as well at least from the Perl MapScript and MapServer CGI perspective. The MapServer test suite is being re-written for version 3.5 and will include lots of mapscript examples, at least simple ones to demonstrate how to make a map, change projection and execute any of the various query methods. I know I've tended not to share my MapScript code because it's very specific stuff and may be hard to disect without significant amount of explanation. I will post a few more examples running on the DNR site tomorrow. If things don't work as advertised, please let us know! I know you have Mike, but I imagine that many other folks don't. That's what the bugzilla site and the mailing list are for. Complete bug reports are always appreciated (i.e. version, OS, platform, etc...). This also points out one reason to potentially have a users group meeting so smaller workshops could be put together... Anyone want to co-author a book? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Mike Neuman" 07/24/01 18:09 PM >>> > MapServer is not just a success, it is a raving success. I'm new to the Mapserver community. I would agree with this statement from a *technical* point of view, but strongly disagree from an approchability point of view. There are virtually NO examples of how to create maps, do things in mapscript, etc. It took at least 20 hours of me fighting with Mapscript and a .map file before I could get a relatively simple map to display. Then another 8 hours to get the projection right. If I didn't hate my GIS program so much, I probably would have given it up after the first few hours. The documentation has several major errors (queryByPoint still appears on the web site, when queryUsingPoint is correct), PHP Mapscript crashes my webserver when executing simple (and correct, according to the docs) code, and Perl Mapscript coredumps whenever you create a new class in an existing layer or a new layer in an existing map. To get the projection stuff to work as you might expect, I had to upgrade to 3.5. My existing Mapscript code stopped working entirely (with only minor changes made to fix the semantic changes of msSaveImage) by spitting out a blank map, so I had to downgrade to 3.3. Finally, in attempt to debug several things on my own, I downloaded and installed SWIG. Unfortunately, the .i files are no longer compatible with the current version of SWIG. I could not build mapscript from the CVS checkout, and I could not overwrite any of the _wrap files on the nightly builds. All of these problems have workarounds, but without examples, it's an *extremely* painful process to figure them out. So, I implore the Mapserver community: Contribute every Mapscript and .map sample file you can find and *put it in the distribution*. Or at least make another distribution (and ms_demo doesn't cut it) that has dozens of examples. The Mapscript examples IN the mapscript distro are worthless--they don't even draw a map! Thanks for listening. :-) I do love Mapserver. It's something I've wanted for a long time. I can't imagine how fast Mapserver's use would spread if it were approachable. That's all I ask. -Mike From steve.lime at dnr.state.mn.us Tue Jul 24 17:49:06 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 24 Jul 2001 19:49:06 -0500 Subject: [mapserver-users] Documentation for current versions? Message-ID: Yup, I'm working on that beast, amongst other things. I'm still wrestling with a few source code issues which is why it's not ready yet. Perhaps this week if I get a few breaks. Stev Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vinko Vrsalovic B." 07/24/01 15:59 PM >>> Hi. Is anybody working on the mapscript documentation for current versions of mapscript? I'm sick of not finding the right functions and having to browse the source to find the correct function. If there's some work going I'd like to help, if not, I'd like to start making it (in a couple of weeks though :-) ). -- V. From davehowlett at sympatico.ca Tue Jul 24 20:20:11 2001 From: davehowlett at sympatico.ca (Dave Howlett) Date: Tue, 24 Jul 2001 22:20:11 -0500 Subject: [mapserver-users] Newbie Q: Where to get U.S. street data? References: <3B5DD338.4010705@netmeme.org> Message-ID: <3B5E3AEB.2BC01A7E@sympatico.ca> Bryan, Here are a couple of places to look: - Free and in Shape file format: http://www.geographynetwork.com/data/tiger2000/ - Better data I guess, but at a cost. http://www.gdt1.com/home/prodservdisplay.cfm?Indid=10 Cheers! Dave Bryan Field-Elliot wrote: > Hi, > > I've been developing web-based database applications for several years > now -- however, presently, I'm writing (for the first time) one which > needs to do dynamic mapping. I'm evaluating MapServer for this purpose > (with my preference being to stick with open-sourced, free tools). > > I need to display maps of city regions with street detail, and layer on > top of it data from my own PostgreSQL database (e.g. retail store > locations). > > My stupid newbie question is -- where does one obtain street maps for > the U.S. in a form usable by MapServer? Can good street data be obtained > for free (e.g. from USGS etc?), or do I need to pay to obtain quality, > up-to-date maps? If I need to pay, can anyone recommend any vendors? > > Thanks in advance (and I recommend putting this question in your FAQ), > > Bryan From pkishor at GeoAnalytics.com Tue Jul 24 19:46:55 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 24 Jul 2001 21:46:55 -0500 Subject: [mapserver-users] Meeting In-Reply-To: Message-ID: <200107250248.VAA06638@lists.gis.umn.edu> Mike, On Tuesday, July 24, 2001, at 06:08 PM, Mike Neuman wrote: >> MapServer is not just a success, it is a raving success. > > I'm new to the Mapserver community. I would agree with this statement > from > a *technical* point of view, but strongly disagree from an > approchability > point of view. There are virtually NO examples of how to create maps, do I wrote the above, and I stand by what I wrote, and yet, I whole-heartedly agree with what you write. I too am frustrated, with my regular web mapping solution, as well as with Mapserver's lack of docs and examples. I waste immense number of hours trying to solve something that has been documented wrong, or not documented at all. Or, the syntax for classes and methods is there, but no real example to wrap my hands around... my current problem is trying to locate a polygon using a polygon id, and then zooming to it... hours and hours of glossing over the miminal docs. But you know what... this is still better than the commercial solution. And while that still leaves Mapserver ways to go, it is really saying a lot. I really do appreciate the un-remunerated work that Steve, Daniel, and others are doing, but we've together _got_ to take this further. Perhaps the users meeting would be a right step. As soon as I get my scripts and maps working, I am gonna make it available to others for what its worth... maybe elementary for some, but might save someone valuable time. Cheers, Puneet. From tpoindex at nyx.net Tue Jul 24 21:36:33 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Tue, 24 Jul 2001 22:36:33 -0600 Subject: [mapserver-users] Meeting In-Reply-To: ; from mcn@engarde.com on Tue, Jul 24, 2001 at 05:08:03PM -0600 References: Message-ID: <20010724223633.B17839@nyx10.nyx.net> On Tue, Jul 24, 2001 at 05:08:03PM -0600, Mike Neuman wrote: > I'm new to the Mapserver community. I would agree with this statement from > a *technical* point of view, but strongly disagree from an approchability > point of view. There are virtually NO examples of how to create maps, do > things in mapscript, etc. It took at least 20 hours of me fighting with > Mapscript and a .map file before I could get a relatively simple map to > display. Then another 8 hours to get the projection right. If I didn't hate > my GIS program so much, I probably would have given it up after the first > few hours. You should give my MapServer Workbench a try. It includes a 'wizard' to help build .map files, plus visual .map file editor and viewer. It's currently based on MapServer 3.4. It's listed in the contribute software page, and avaiable at: http://msworkbench.sourceforge.net -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From benenet at free.fr Tue Jul 24 23:26:05 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Wed, 25 Jul 2001 08:26:05 +0200 Subject: [mapserver-users] mapscript install References: <3B5D383A.D0C22F85@free.fr> <3B5D8E6B.1E917B83@dmsolutions.ca> Message-ID: <3B5E667D.BD6C3@free.fr> Hello, >An error message or a description of what goes wrong would have helped >us help you... What goes wrong is that I can see the c:/localhost/mapscript/phpinfo_mapscript.phtml under my browser as if I was under Notepad... Anyway, I have checked what you indicate about the php.ini, it's now corrected, but it always seems weird : I have the mention about mapscript in my http://localhost/test/info.php, but it's not in a table as for the other, and it's quite in "one block"... : MapScript MapScript Version (Apr 3, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=SHAPEFILE If that can help to help... ;-) Ben. From sylvain.speh at CLERMONT.cemagref.fr Tue Jul 24 23:33:37 2001 From: sylvain.speh at CLERMONT.cemagref.fr (Speh Sylvain) Date: Wed, 25 Jul 2001 08:33:37 +0200 Subject: [mapserver-users] looking for samples for using php with mapServer Message-ID: Hi list, we are looking for basic samples using mapScript. We have non-geographical datas which are stored in a DBRM, with an ODBC driver. We can access and display them with a short PHP script. As PHP can't be run just after the mapServer's one in the same CGI access to the server, we are looking for short mapScript samples which are displaying DBRM datas according to the clicked polygon-ID. polygon-ID is the primary key in our DB. Have you got some ? Thanks in advance Sylvain From kafka at email.cz Wed Jul 25 00:02:19 2001 From: kafka at email.cz (Stepan Kafka) Date: Wed, 25 Jul 2001 09:02:19 +0200 Subject: [mapserver-users] Documentation for current versions? In-Reply-To: Message-ID: <000701c114d7$beb8a2a0$fb01a8c0@gis2.oku-kh.cz> Hi all, I have one suggestion for the documentation. I would welcome putting versions "extent" of each parameter/object in the MS/mapscript documentation (similar to PHP etc.) and leave old versions in the list, e.g.: QUERY (valid since 2.03 till 3.4, replaced by .... in 3.5) ... The documentation wold be more flexible to update and old versions users would have "their" documentation still on the hand. Current versions may be highlited (bold, color..?). Stepan Kafka > > > Yup, I'm working on that beast, amongst other things. I'm still > wrestling with a few source code issues which is why it's not > ready yet. Perhaps this week if I get a few breaks. > > Stev > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Vinko Vrsalovic B." 07/24/01 15:59 PM >>> > > Hi. > > Is anybody working on the mapscript documentation for current > versions of mapscript? > > I'm sick of not finding the right functions and having to browse > the source to find the correct function. > > If there's some work going I'd like to help, if not, I'd like > to start making it (in a couple of weeks though :-) ). > > -- > V. > From nacht at widerstand.org Wed Jul 25 01:34:53 2001 From: nacht at widerstand.org (.d.z.a.) Date: Wed, 25 Jul 2001 09:34:53 +0100 Subject: [mapserver-users] Meeting In-Reply-To: <200107250248.VAA06638@lists.gis.umn.edu> Message-ID: <000001c114e4$ae03fb00$3e00a8c0@goodfella> Hi there, just to let anyone who cares know. I am playing with Mapserver and PHP. TO help myself I started documenting it. I will probably bundle it up and make it all nice for distribution. still a couple of months away jsut because its not a priority....but I too faced the documentation, and endedup just crawling htrough the perl examples and stuff instead.... for anyone that fares anyhoo cares even =) -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Puneet Kishor Sent: 25 July 2001 03:47 To: mapserver-users at lists.gis.umn.edu Cc: Mike Neuman Subject: Re: [mapserver-users] Meeting Mike, On Tuesday, July 24, 2001, at 06:08 PM, Mike Neuman wrote: >> MapServer is not just a success, it is a raving success. > > I'm new to the Mapserver community. I would agree with this statement > from > a *technical* point of view, but strongly disagree from an > approchability > point of view. There are virtually NO examples of how to create maps, do I wrote the above, and I stand by what I wrote, and yet, I whole-heartedly agree with what you write. I too am frustrated, with my regular web mapping solution, as well as with Mapserver's lack of docs and examples. I waste immense number of hours trying to solve something that has been documented wrong, or not documented at all. Or, the syntax for classes and methods is there, but no real example to wrap my hands around... my current problem is trying to locate a polygon using a polygon id, and then zooming to it... hours and hours of glossing over the miminal docs. But you know what... this is still better than the commercial solution. And while that still leaves Mapserver ways to go, it is really saying a lot. I really do appreciate the un-remunerated work that Steve, Daniel, and others are doing, but we've together _got_ to take this further. Perhaps the users meeting would be a right step. As soon as I get my scripts and maps working, I am gonna make it available to others for what its worth... maybe elementary for some, but might save someone valuable time. Cheers, Puneet. From gerry at cs.tamu.edu Wed Jul 25 04:03:25 2001 From: gerry at cs.tamu.edu (Gerry Creager N5JXS) Date: Wed, 25 Jul 2001 06:03:25 -0500 Subject: [mapserver-users] Newbie Q: Where to get U.S. street data? References: <3B5DD338.4010705@netmeme.org> <3B5E3AEB.2BC01A7E@sympatico.ca> Message-ID: <3B5EA77D.58DC1800@cs.tamu.edu> In Texas, http://www.tnris.state.tx.us then look for Digital Data. The TxDOT transportation data are excellent, most have been reassessed with differential GPS over the last couple of years. Lots of other basemap data as well (can you say, "Project"?) gerry -- Dave Howlett wrote: > > Bryan, > > Here are a couple of places to look: > > - Free and in Shape file format: > http://www.geographynetwork.com/data/tiger2000/ > > - Better data I guess, but at a cost. > http://www.gdt1.com/home/prodservdisplay.cfm?Indid=10 > > Cheers! > Dave > > Bryan Field-Elliot wrote: > > > Hi, > > > > I've been developing web-based database applications for several years > > now -- however, presently, I'm writing (for the first time) one which > > needs to do dynamic mapping. I'm evaluating MapServer for this purpose > > (with my preference being to stick with open-sourced, free tools). > > > > I need to display maps of city regions with street detail, and layer on > > top of it data from my own PostgreSQL database (e.g. retail store > > locations). > > > > My stupid newbie question is -- where does one obtain street maps for > > the U.S. in a form usable by MapServer? Can good street data be obtained > > for free (e.g. from USGS etc?), or do I need to pay to obtain quality, > > up-to-date maps? If I need to pay, can anyone recommend any vendors? > > > > Thanks in advance (and I recommend putting this question in your FAQ), > > > > Bryan -- Gerry Creager -- gerry at cs.tamu.edu Network Engineering |Research focusing on Academy for Advanced Telecommunications |Satellite Geodesy and and Learning Technologies |Geodetic Control Texas A&M University 979.458.4020 (Phone) -- 979.847.8578 (Fax) From morissette at dmsolutions.ca Wed Jul 25 06:13:57 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 25 Jul 2001 09:13:57 -0400 Subject: [mapserver-users] mapscript install References: <3B5D383A.D0C22F85@free.fr> <3B5D8E6B.1E917B83@dmsolutions.ca> <3B5E667D.BD6C3@free.fr> Message-ID: <3B5EC615.D28CF307@dmsolutions.ca> Benoit V?ler wrote: > > >An error message or a description of what goes wrong would have helped > >us help you... > > What goes wrong is that I can see the > c:/localhost/mapscript/phpinfo_mapscript.phtml under my browser as if I > was under Notepad... Ah! Now I can help! :) The problem is that your PHP installation does not recognize ".phtml" as a PHP file extension. Assuming you're using PHP4 under Apache then you need to add the following line with the other PHP-related AddType lines in the httpd.conf: AddType application/x-httpd-php .phtml -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From WMABERN at gwm.sc.edu Wed Jul 25 06:25:40 2001 From: WMABERN at gwm.sc.edu (Mark Abernathy) Date: Wed, 25 Jul 2001 09:25:40 -0400 Subject: [mapserver-users] Correct Fonts.list syntax Message-ID: Hi, I'm trying to be able to use truetype fonts on my map server as symbols and in the legend. I have been unable to get the truetype fonts to work. I have followed all the examples and instructions on this I can find. I'm using win 2000 and IIS5. Map Serv 3.4. I have the lines in the .map file etc... Maybe I am using the wrong syntax/layout/format for the fonts.list file. I have tried all the examples of this file I can find. If anyone could send me a working version of fonts.list, I would REALLY appreciate it! wmabern at gwm.sc.edu Here is the begining of my map file. The map server works without the " " on the path and the leading forward slashes. It doesn't work with them. # Start of map file # NAME MAPSERV STATUS ON SIZE 600 600 SYMBOLSET symbols/symbols_ms34.sym FONTSET AeroFonts/fonts.list ~~~~~~~~~~~~~ Thanks. Mark William M. Abernathy I2Media Group Computer Services University of South Carolina 803-777-7366 wmabern at gwm.sc.edu http://i2media.csd.sc.edu http://www.i2alliance.sc.edu/ecard.asp?id=808 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Mark Abernathy.vcf URL: From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Wed Jul 25 06:30:49 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Wed, 25 Jul 2001 09:30:49 -0400 Subject: [mapserver-users] Meeting Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB15@s5-ccr-r1.ccrs.nrcan.gc.ca> Well, I suppose this is a true to a certain extent, although I never had quite that much trouble with it :) I suppose this is not necessarily symptomatic of MapServer itself, so much as the nature of OpenSource software. Working with OSS is definitely different, and if you're not used to it, it can seem like a pain. It often requires more work as far as researching, reading docs, trial and error, compiling and re-compiiling and so on. but there are two very big advantages to this: A steep learning curve helps learning. Don't worry, byt the time you're on your third MapServer project, things will neem like second nature. Also, as with most software, usability and simplicity have to be balanced with being featureful. the more features you want, the more complicated to use. I'd rather a complicated software that does everything I need it to properly, than something that looks good but works like crap *cough*windows*cough*. As for the documentation, you landed in a transition period! The MDP is working hard to get decent documentation out there! I've contributed c ouple of documents myself, and intend on doing more. Although I suppose I am partial to them, I'd have to say that they ARE a LOT better than the old series of docs. I *think* I had volunteered to do the MapScript, I'll have to check :) I would recommend everybody look at the MDP page (Linked from the current docs page) for more info and if you're interested to contribute. I think it's important nobody duplicate efforts. As for examples, well, how about some sort of on-line database of resources like that? A place where users themselves could submit snippets of code and mapfiles, could include a description of what it does and so on, maybe even data where legal. Kind of a knowledge-base I guess. then people who did cool new and unsual things with mapserver could share their experience with all of us :) My .02$ ! J.F. > ---------- > From: Mike Neuman[SMTP:mcn at engarde.com] > Sent: Tuesday, July 24, 2001 7:08 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Meeting > > > MapServer is not just a success, it is a raving success. > > I'm new to the Mapserver community. I would agree with this statement > from > a *technical* point of view, but strongly disagree from an approchability > point of view. There are virtually NO examples of how to create maps, do > things in mapscript, etc. It took at least 20 hours of me fighting with > Mapscript and a .map file before I could get a relatively simple map to > display. Then another 8 hours to get the projection right. If I didn't > hate > my GIS program so much, I probably would have given it up after the first > few hours. > > The documentation has several major errors (queryByPoint still appears > on > the web site, when queryUsingPoint is correct), PHP Mapscript crashes my > webserver when executing simple (and correct, according to the docs) code, > and Perl Mapscript coredumps whenever you create a new class in an > existing > layer or a new layer in an existing map. To get the projection stuff to > work > as you might expect, I had to upgrade to 3.5. My existing Mapscript code > stopped working entirely (with only minor changes made to fix the semantic > changes of msSaveImage) by spitting out a blank map, so I had to downgrade > to 3.3. Finally, in attempt to debug several things on my own, I > downloaded > and installed SWIG. Unfortunately, the .i files are no longer compatible > with the current version of SWIG. I could not build mapscript from the CVS > checkout, and I could not overwrite any of the _wrap files on the nightly > builds. > > All of these problems have workarounds, but without examples, it's an > *extremely* painful process to figure them out. > > So, I implore the Mapserver community: Contribute every Mapscript and > .map > sample file you can find and *put it in the distribution*. Or at least > make > another distribution (and ms_demo doesn't cut it) that has dozens of > examples. The Mapscript examples IN the mapscript distro are > worthless--they > don't even draw a map! > > Thanks for listening. :-) I do love Mapserver. It's something I've > wanted > for a long time. I can't imagine how fast Mapserver's use would spread if > it > were approachable. That's all I ask. > > -Mike > From dgraham at i3.com Wed Jul 25 06:33:25 2001 From: dgraham at i3.com (David Graham) Date: Wed, 25 Jul 2001 07:33:25 -0600 Subject: [mapserver-users] Improved Documentation References: <000001c114e4$ae03fb00$3e00a8c0@goodfella> Message-ID: <3B5ECAA5.2000108@i3.com> .d.z.a. wrote: >>> MapServer is not just a success, it is a raving success. >> >> I'm new to the Mapserver community. I would agree with this statement >> from >> a *technical* point of view, but strongly disagree from an >> approchability >> point of view. There are virtually NO examples of how to create maps, do > > > I wrote the above, and I stand by what I wrote, and yet, I > whole-heartedly agree with what you write. > > I too am frustrated, with my regular web mapping solution, as well as > with Mapserver's lack of docs and examples. I waste immense number of > hours trying to solve something that has been documented wrong, or not > documented at all. Or, the syntax for classes and methods is there, but > no real example to wrap my hands around... > I would say that the Mapserver website could realy use the DocNote system. It is a system by which users can add comments to improve documentation that is posted on a web page. Postgres Database uses this method to update it's manual. It allows users to input corrections immediately as they find them and then every so often the comments get rolled back into the documentation by an editor. Here is an example: http://www.postgresql.org/idocs/index.php?start.html From morissette at dmsolutions.ca Wed Jul 25 06:46:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 25 Jul 2001 09:46:33 -0400 Subject: [mapserver-users] looking for samples for using php with mapServer References: Message-ID: <3B5ECDB9.1508103@dmsolutions.ca> Speh Sylvain wrote: > > We have non-geographical datas which are stored in a DBRM, with an ODBC > driver. We can access and > display them with a short PHP script. > > As PHP can't be run just after the mapServer's one in the same CGI access to > the server, we are looking for short mapScript samples which are displaying > DBRM datas according to the clicked polygon-ID. polygon-ID is the primary > key in our DB. > Sylvain, I would love to see some users sharing examples of this type. Integrating maps and RDBMS tables is something lots of users try to do and every time we have to explain the process again since none of those who have got this running have shared apps yet. (We're not better... the apps we have that do this we cannot share either! :( OK, back to your specific case: you mention that you already have the PHP code to access the attributes for a given polygon-ID and display them, so you're not too far from a solution. If you look at GMapDumpQueryResults() in gmap75.php3 in our GMap PHP sample app and replace the dbase_...() calls with MySQL calls then you should have exactly what you need. The shapeid obtained from the result object is the polygon-id that you need to access your RDBMS tables. Make sure you look at the version of the GMap scripts demo that matches the version of MapServer that you're using (3.4 or 3.5) since the query-related stuff (and hence GMapDumpQueryResults()) have changed between 3.4 and 3.5. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From mcilhagga at dmsolutions.ca Wed Jul 25 07:12:04 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Wed, 25 Jul 2001 10:12:04 -0400 Subject: [mapserver-users] Meeting References: <000001c114e4$ae03fb00$3e00a8c0@goodfella> Message-ID: <3B5ED3B3.588CCEB2@dmsolutions.ca> I've just been reading through a lot of the comments regarding the need for documentation. I agree that there could be much more, however I wouldn't want to discount the efforts that are being made in this direction. In regards to PHP, please bear in mind that this is a relatively new addition to MapServer - really only getting off the ground in the last year or so. We are working towards improving PHP/MapScript documentation through the UMN documentation project, and I believe this will go a long way to support user development with PHP. On a broader note, remember that this is an open source initiative, and in order for it to be successful requires contributions from the user community. Documentation is now being formally organized through the UMN and I would suggest to anyone who really wants to see this product improve (not just technically, but with all the other supporting components - documentation, samples, bug reporting) to get involved. BTW, I think the user group meeting is a fantastic idea. It would certainly help to put faces to all of these names. :) Dave ".d.z.a." wrote: > > Hi there, just to let anyone who cares know. > > I am playing with Mapserver and PHP. TO help myself I started documenting > it. I will probably bundle it up and make it all nice for distribution. > still a couple of months away jsut because its not a priority....but I too > faced the documentation, and endedup just crawling htrough the perl examples > and stuff instead.... > > for anyone that fares anyhoo > > cares even =) > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Puneet > Kishor > Sent: 25 July 2001 03:47 > To: mapserver-users at lists.gis.umn.edu > Cc: Mike Neuman > Subject: Re: [mapserver-users] Meeting > > Mike, > > On Tuesday, July 24, 2001, at 06:08 PM, Mike Neuman wrote: > > >> MapServer is not just a success, it is a raving success. > > > > I'm new to the Mapserver community. I would agree with this statement > > from > > a *technical* point of view, but strongly disagree from an > > approchability > > point of view. There are virtually NO examples of how to create maps, do > > I wrote the above, and I stand by what I wrote, and yet, I > whole-heartedly agree with what you write. > > I too am frustrated, with my regular web mapping solution, as well as > with Mapserver's lack of docs and examples. I waste immense number of > hours trying to solve something that has been documented wrong, or not > documented at all. Or, the syntax for classes and methods is there, but > no real example to wrap my hands around... > > my current problem is trying to locate a polygon using a polygon id, and > then zooming to it... hours and hours of glossing over the miminal docs. > > But you know what... this is still better than the commercial solution. > And while that still leaves Mapserver ways to go, it is really saying a > lot. > > I really do appreciate the un-remunerated work that Steve, Daniel, and > others are doing, but we've together _got_ to take this further. Perhaps > the users meeting would be a right step. > > As soon as I get my scripts and maps working, I am gonna make it > available to others for what its worth... maybe elementary for some, but > might save someone valuable time. > > Cheers, > > Puneet. -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 707-222-1943 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From ed at topozone.com Wed Jul 25 08:05:20 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 25 Jul 2001 11:05:20 -0400 Subject: [mapserver-users] Correct Fonts.list syntax Message-ID: <13858AA1A74F30419F319ACB66A9D122CF4B@mercator.topozone.com> Mark - Using the same config (Win2K, IIS5, MS 3.4) this setup works: In your MAP file: FONTSET symbols/fonts.list The contents of symbols/fonts.list are: arial arial.ttf times times.ttf palatino pala.ttf Be careful about relative pathnames. I'm not 100% certain, but I believe that when the MapServer CGI .EXE is run by IIS in response to a form submission from an HTML page, the current directory for MapServer is the local directory in which the HTML page lived. Most implementors copy the samples and put the MAP and template files in the same directory, which is fine. In that case, the symbols/fonts.list path is relative to that directory (just as the SYMBOLSET pathname is). - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Mark Abernathy [mailto:WMABERN at gwm.sc.edu] Sent: Wednesday, July 25, 2001 9:26 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Correct Fonts.list syntax Hi, I'm trying to be able to use truetype fonts on my map server as symbols and in the legend. I have been unable to get the truetype fonts to work. I have followed all the examples and instructions on this I can find. I'm using win 2000 and IIS5. Map Serv 3.4. I have the lines in the .map file etc... Maybe I am using the wrong syntax/layout/format for the fonts.list file. I have tried all the examples of this file I can find. If anyone could send me a working version of fonts.list, I would REALLY appreciate it! wmabern at gwm.sc.edu Here is the begining of my map file. The map server works without the " " on the path and the leading forward slashes. It doesn't work with them. # Start of map file # NAME MAPSERV STATUS ON SIZE 600 600 SYMBOLSET symbols/symbols_ms34.sym FONTSET AeroFonts/fonts.list ~~~~~~~~~~~~~ Thanks. Mark William M. Abernathy I2Media Group Computer Services University of South Carolina 803-777-7366 wmabern at gwm.sc.edu http://i2media.csd.sc.edu http://www.i2alliance.sc.edu/ecard.asp?id=808 From davehowlett at sympatico.ca Wed Jul 25 09:19:26 2001 From: davehowlett at sympatico.ca (Dave Howlett) Date: Wed, 25 Jul 2001 11:19:26 -0500 Subject: [mapserver-users] What is the importance of a good Video Card? Message-ID: <3B5EF18E.37CC2B9F@sympatico.ca> Hello, I'm just specing out the hardware requirements to put togeather a server running MapServer etc. I'm trying to do this on the cheap and the server will initially just be a development server. I'm wondering what the importance of a good video card is when MapServer renders maps. Does Mapserver utilize the video card for this?? If it doesn't then I can go real cheap on this aspect of my system. If it does, are there other considerations in selecting a good card besides for the amount of memory? Thanks in Advance! Dave From jsmedsmo at gis.umn.edu Wed Jul 25 08:32:03 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 25 Jul 2001 10:32:03 -0500 Subject: [mapserver-users] Documentation for current versions? References: Message-ID: <3B5EE673.44AD5F28@gis.umn.edu> I'm organizing the documentation efforts at the UMN, so I thought I'd throw in a few comments in the documentation discussion that has been going on. We are getting closer to a complete set of baseline documentation for the basic MapServer software as well as some of the MapScript extensions (thanks Jean-Francois, Steve, Jeff, Ken, and Frank). I think we all agree that documentation is a prerequisite for the official release of MapServer 3.5. Having said that, there is certainly a need for a lot more documentation and examples. One suggestion, is that more people make their source code available so that it can be linked on the gallery page. We have started dividing the gallery up based on the tools used to create the application (let me know if you see any mistakes), and I think a great addition would be links to the code behind the application. More short HOWTOs that describe how to add a simple feature in MapServer (e.g. a JavaScript gui-style interface) would be great. As for including a history of changes to parameters/objects in one set of documentation, I think that may be a bit confusing and difficult to maintain. We are planning to keep older versions of docs available. We should also consider including a summary of the changes from the previous MapServer version in each of the reference documents. Right now, we are using the MapServer bugzilla as a way of tracking errors in documentation. I think will stick with that for now. Perhaps I need to make that more visible on the documentation page. I think that covers it all. Let me know if you'd like to do some writing. I can help with the XML side of things. Jamie Smedsmo MapServer Documentation Coordinator Department of Forest Resources University of Minnesota From mckenna at dmsolutions.ca Wed Jul 25 09:03:56 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 25 Jul 2001 12:03:56 -0400 Subject: [mapserver-users] Improved Documentation References: <000001c114e4$ae03fb00$3e00a8c0@goodfella> <3B5ECAA5.2000108@i3.com> Message-ID: <3B5EEDEC.545D609F@dmsolutions.ca> David Graham wrote: > .d.z.a. wrote: > > >>> MapServer is not just a success, it is a raving success. > >> > >> I'm new to the Mapserver community. I would agree with this statement > >> from > >> a *technical* point of view, but strongly disagree from an > >> approchability > >> point of view. There are virtually NO examples of how to create maps, do > > > > > > I wrote the above, and I stand by what I wrote, and yet, I > > whole-heartedly agree with what you write. > > > > I too am frustrated, with my regular web mapping solution, as well as > > with Mapserver's lack of docs and examples. I waste immense number of > > hours trying to solve something that has been documented wrong, or not > > documented at all. Or, the syntax for classes and methods is there, but > > no real example to wrap my hands around... > > > > I would say that the Mapserver website could realy use the DocNote > system. It is a system by which users can add comments to improve > documentation that is posted on a web page. > > Postgres Database uses this method to update it's manual. It allows > users to input corrections immediately as they find them and then every > so often the comments get rolled back into the documentation by an > editor. Here is an example: > > http://www.postgresql.org/idocs/index.php?start.html I agree with David...I have often found the user comments in http://www.php.net/ to be the most helpful part of its documentation. ------------------- Jeff McKenna GIS Specialist DM Solutions Group Inc. Ottawa, Ontario http://www.dmsolutions.ca/ From steve.lime at dnr.state.mn.us Wed Jul 25 10:29:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Jul 2001 12:29:51 -0500 Subject: [mapserver-users] feature querys and projections Message-ID: In theory, they should be able to be in different projections but this has not been tested. I don't have data of that nature. This applies to all query scenarios. Again, if folks have test data they could share... Note that you don't have to define projections for layers that are the same as the output projection. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Michael Anderson" 07/24/01 05:12PM >>> When you are doing a featurequery, do the slayer and qlayer(s) have to be in the same projection? I had a point in polygon search working a month or so ago and now it never selects any points. The only change is that the points are no longer in the same projection. We have the output projection defined at the map level, and I defined the projections for the qlayer and slayer in the layer section. The slayer is in the same projection as the output. Only the qlayer is different. Thanks. Mike _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From bludwulf at crackrock.net Wed Jul 25 12:19:01 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Wed, 25 Jul 2001 12:19:01 -0700 (MST) Subject: [mapserver-users] Improved Documentation In-Reply-To: <3B5ECAA5.2000108@i3.com> Message-ID: On Wed, 25 Jul 2001, David Graham wrote: > .d.z.a. wrote: > > > >>> MapServer is not just a success, it is a raving success. > >> > >> I'm new to the Mapserver community. I would agree with this statement > >> from > >> a *technical* point of view, but strongly disagree from an > >> approchability > >> point of view. There are virtually NO examples of how to create maps, do > > > > > > I wrote the above, and I stand by what I wrote, and yet, I > > whole-heartedly agree with what you write. > > > > I too am frustrated, with my regular web mapping solution, as well as > > with Mapserver's lack of docs and examples. I waste immense number of > > hours trying to solve something that has been documented wrong, or not > > documented at all. Or, the syntax for classes and methods is there, but > > no real example to wrap my hands around... > > > > I would say that the Mapserver website could realy use the DocNote > system. It is a system by which users can add comments to improve > documentation that is posted on a web page. > > Postgres Database uses this method to update it's manual. It allows > users to input corrections immediately as they find them and then every > so often the comments get rolled back into the documentation by an > editor. Here is an example: > > http://www.postgresql.org/idocs/index.php?start.html > The php.net documentation uses the same deal. I would LOVE to see the same thing for Mapserver. -Beau Gunderson From paul at tei.or.th Wed Jul 25 12:28:17 2001 From: paul at tei.or.th (Paul Hastings) Date: Thu, 26 Jul 2001 02:28:17 +0700 Subject: [mapserver-users] Correct Fonts.list syntax References: <13858AA1A74F30419F319ACB66A9D122CF4B@mercator.topozone.com> Message-ID: <032001c1153f$f5a18210$0a729acb@tei.or.th> > In your MAP file: > > FONTSET symbols/fonts.list > > The contents of symbols/fonts.list are: > > arial arial.ttf > times times.ttf > palatino pala.ttf and do these fonts need to be in that dir (with win2k OS)? From v at w.cl Wed Jul 25 12:44:59 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 25 Jul 2001 15:44:59 -0400 (CLT) Subject: [mapserver-users] Documentation for current versions? In-Reply-To: <3B5EE673.44AD5F28@gis.umn.edu> from "Jamie Smedsmo" at Jul 25, 2001 10:32:03 AM Message-ID: <200107251944.f6PJixo15015@antonia.nn.cl> > Having said that, there is certainly a need for a lot more > documentation and examples. One suggestion, is that more people make > their source code available so that it can be linked on the gallery > page. We have started dividing the gallery up based on the tools > used to create the application (let me know if you see any mistakes), > and I think a great addition would be links to the code behind the > application. More short HOWTOs that describe how to add a simple > feature in MapServer (e.g. a JavaScript gui-style interface) would be > great. I can send my code for examples, but can't host it, so when I have something reasonably good I can send them to you so you do whatever you like with them. > As for including a history of changes to parameters/objects in one > set of documentation, I think that may be a bit confusing and > difficult to maintain. We are planning to keep older versions of > docs available. We should also consider including a summary of the > changes from the previous MapServer version in each of the reference > documents. Yes please! And correcting those old docs should be a nice thing to do too. > Right now, we are using the MapServer bugzilla as a way of tracking > errors in documentation. I think will stick with that for now. > Perhaps I need to make that more visible on the documentation page. Where is it? > I think that covers it all. Let me know if you'd like to do some > writing. I can help with the XML side of things. I'd like to do some writing, what do you need to be written? Read you, -- V. From jsmedsmo at gis.umn.edu Wed Jul 25 12:50:53 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 25 Jul 2001 14:50:53 -0500 Subject: [mapserver-users] Improved Documentation References: Message-ID: <3B5F231D.40CEB76C@gis.umn.edu> I'll look into this a bit more. It may be a good idea to implement it in the near future. Jamie Beau Gunderson wrote: > > On Wed, 25 Jul 2001, David Graham wrote: > > > .d.z.a. wrote: > > > > > > >>> MapServer is not just a success, it is a raving success. > > >> > > >> I'm new to the Mapserver community. I would agree with this statement > > >> from > > >> a *technical* point of view, but strongly disagree from an > > >> approchability > > >> point of view. There are virtually NO examples of how to create maps, do > > > > > > > > > I wrote the above, and I stand by what I wrote, and yet, I > > > whole-heartedly agree with what you write. > > > > > > I too am frustrated, with my regular web mapping solution, as well as > > > with Mapserver's lack of docs and examples. I waste immense number of > > > hours trying to solve something that has been documented wrong, or not > > > documented at all. Or, the syntax for classes and methods is there, but > > > no real example to wrap my hands around... > > > > > > > I would say that the Mapserver website could realy use the DocNote > > system. It is a system by which users can add comments to improve > > documentation that is posted on a web page. > > > > Postgres Database uses this method to update it's manual. It allows > > users to input corrections immediately as they find them and then every > > so often the comments get rolled back into the documentation by an > > editor. Here is an example: > > > > http://www.postgresql.org/idocs/index.php?start.html > > > > The php.net documentation uses the same deal. I would LOVE to see the same > thing for Mapserver. > > -Beau Gunderson From david.fawcett at moea.state.mn.us Wed Jul 25 13:01:14 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Wed, 25 Jul 2001 15:01:14 -0500 Subject: [mapserver-users] RE: [MapServer-users] Meeting Message-ID: Yeah, I can see your point. 20 whole hours to get a powerful, flexible, continually updated, did I mention FREE software program to work. You could just spring $10,000 for ARC IMS and have your own map up and running in 10 hours. The documentation is getting better and better. The resources that could have been put into documentation in the past, have instead been put into new development, added functionality, and bug-fixes. The people developing MapServer, Mapscript, PHP Mapscript, etc. have put a lot of unpaid hours into improving the product, and they share their apps and code. Have you noticed that bug-fixes are often committed to the CVS or PHP modules within a day of notification? Noticed how willing people are willing to help when you post problems on the listserv? Yeah, I think I will go out and buy ARC IMS, SDE, and Oracle spatial. Should be much less painful. David. > ---------- > From: Mike Neuman[SMTP:mcn at engarde.com] > Sent: Tuesday, July 24, 2001 6:08 PM > To: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Meeting > > > MapServer is not just a success, it is a raving success. > > I'm new to the Mapserver community. I would agree with this statement from > a *technical* point of view, but strongly disagree from an approchability > point of view. There are virtually NO examples of how to create maps, do > things in mapscript, etc. It took at least 20 hours of me fighting with > Mapscript and a .map file before I could get a relatively simple map to > display. Then another 8 hours to get the projection right. If I didn't hate > my GIS program so much, I probably would have given it up after the first > few hours. > > The documentation has several major errors (queryByPoint still appears on > the web site, when queryUsingPoint is correct), PHP Mapscript crashes my > webserver when executing simple (and correct, according to the docs) code, > and Perl Mapscript coredumps whenever you create a new class in an existing > layer or a new layer in an existing map. To get the projection stuff to work > as you might expect, I had to upgrade to 3.5. My existing Mapscript code > stopped working entirely (with only minor changes made to fix the semantic > changes of msSaveImage) by spitting out a blank map, so I had to downgrade > to 3.3. Finally, in attempt to debug several things on my own, I downloaded > and installed SWIG. Unfortunately, the .i files are no longer compatible > with the current version of SWIG. I could not build mapscript from the CVS > checkout, and I could not overwrite any of the _wrap files on the nightly > builds. > > All of these problems have workarounds, but without examples, it's an > *extremely* painful process to figure them out. > > So, I implore the Mapserver community: Contribute every Mapscript and .map > sample file you can find and *put it in the distribution*. Or at least make > another distribution (and ms_demo doesn't cut it) that has dozens of > examples. The Mapscript examples IN the mapscript distro are worthless--they > don't even draw a map! > > Thanks for listening. :-) I do love Mapserver. It's something I've wanted > for a long time. I can't imagine how fast Mapserver's use would spread if it > were approachable. That's all I ask. > > -Mike > From gmader at GeoAnalytics.com Wed Jul 25 13:55:43 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Wed, 25 Jul 2001 15:55:43 -0500 Subject: [mapserver-users] What is the importance of a good Video Card ? Message-ID: Hi Dave, I do not believe that MapServer uses the video card at all. Here is why: MapServer is using the GD library to construct the images, and then it sends these to a directory location for the server to send. There is no rendering for the video card. If I am wrong on this, I would appreciate the details, Good Luck, Greg -----Original Message----- From: Dave Howlett To: mapserver-users at lists.gis.umn.edu Sent: 7/25/01 11:19 AM Subject: [mapserver-users] What is the importance of a good Video Card? Hello, I'm just specing out the hardware requirements to put togeather a server running MapServer etc. I'm trying to do this on the cheap and the server will initially just be a development server. I'm wondering what the importance of a good video card is when MapServer renders maps. Does Mapserver utilize the video card for this?? If it doesn't then I can go real cheap on this aspect of my system. If it does, are there other considerations in selecting a good card besides for the amount of memory? Thanks in Advance! Dave From jsmedsmo at gis.umn.edu Wed Jul 25 15:35:44 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Wed, 25 Jul 2001 17:35:44 -0500 Subject: [mapserver-users] Improved Documentation References: <000001c114e4$ae03fb00$3e00a8c0@goodfella> <3B5ECAA5.2000108@i3.com> Message-ID: <3B5F49C0.F9361964@gis.umn.edu> Does anyone know where I can find out more about the DocNote system? Jamie David Graham wrote: > > .d.z.a. wrote: > > >>> MapServer is not just a success, it is a raving success. > >> > >> I'm new to the Mapserver community. I would agree with this statement > >> from > >> a *technical* point of view, but strongly disagree from an > >> approchability > >> point of view. There are virtually NO examples of how to create maps, do > > > > > > I wrote the above, and I stand by what I wrote, and yet, I > > whole-heartedly agree with what you write. > > > > I too am frustrated, with my regular web mapping solution, as well as > > with Mapserver's lack of docs and examples. I waste immense number of > > hours trying to solve something that has been documented wrong, or not > > documented at all. Or, the syntax for classes and methods is there, but > > no real example to wrap my hands around... > > > > I would say that the Mapserver website could realy use the DocNote > system. It is a system by which users can add comments to improve > documentation that is posted on a web page. > > Postgres Database uses this method to update it's manual. It allows > users to input corrections immediately as they find them and then every > so often the comments get rolled back into the documentation by an > editor. Here is an example: > > http://www.postgresql.org/idocs/index.php?start.html From Matt.Wilkie at gov.yk.ca Wed Jul 25 15:50:25 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 25 Jul 2001 15:50:25 -0700 Subject: [mapserver-users] Meeting Message-ID: <6DD7370C9452D31192A10008C75D07530B3B62C6@raptor.gov.yk.ca> Hi David, Yes Mapserver is free. Yes bugfixes are often available within a day of being discovered. Yes Mapserver is an amazing package and well worth spending the extra agonizing and frustrating hours to make it work - something Mike's original post noted: MN> Thanks for listening. :-) I do love Mapserver. It's something MN> I've wanted for a long time. However these facts do not negate Mike's observations or the validity of his complaints. Mapserver -is- a bear to setup. It -is- frustrating that you cannot display even a simple map "out of the box". The poor state of the documentation and examples -is- worth addressing. I don't object to what you said, just the tone and target. Yes, everybody should keep in mind that Mapserver is -free- software, and understand that -we- are it's community, and that it is up to -everybody- to address any lacks that are encountered along the way. The original post was not a whine directed solely at the developers, rather an impassioned plea to all who have made progress with Mapserver to share their gains: MN> So, I implore the Mapserver community: Contribute every MN> Mapscript and .map sample file you can find and *put it MN> in the distribution*. Or at least make another distribution MN> (and ms_demo doesn't cut it) that has dozens of examples. Your fire is appreciated David, I just think there are more applicable (and toastable) targets. :) cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: 2001 July 25 13:01 > To: mapserver-users at lists.gis.umn.edu; 'Mike Neuman' > Subject: [mapserver-users] RE: [MapServer-users] Meeting > > > > Yeah, I can see your point. 20 whole hours to get a > powerful, flexible, continually updated, did I mention FREE > software program to work. You could just spring $10,000 for > ARC IMS and have your own map up and running in 10 hours. > > The documentation is getting better and better. The > resources that could have been put into documentation in the > past, have instead been put into new development, added > functionality, and bug-fixes. The people developing > MapServer, Mapscript, PHP Mapscript, etc. have put a lot of > unpaid hours into improving the product, and they share their > apps and code. > > Have you noticed that bug-fixes are often committed to the > CVS or PHP modules within a day of notification? Noticed how > willing people are willing to help when you post problems on > the listserv? > > Yeah, I think I will go out and buy ARC IMS, SDE, and Oracle > spatial. Should be much less painful. > > > > > David. > > ---------- > > From: Mike Neuman[SMTP:mcn at engarde.com] > > Sent: Tuesday, July 24, 2001 6:08 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Meeting > > > > > MapServer is not just a success, it is a raving success. > > > > I'm new to the Mapserver community. I would agree with > this statement from > > a *technical* point of view, but strongly disagree from an > approchability > > point of view. There are virtually NO examples of how to > create maps, do > > things in mapscript, etc. It took at least 20 hours of me > fighting with > > Mapscript and a .map file before I could get a relatively > simple map to > > display. Then another 8 hours to get the projection right. > If I didn't hate > > my GIS program so much, I probably would have given it up > after the first > > few hours. > > > > The documentation has several major errors (queryByPoint > still appears on > > the web site, when queryUsingPoint is correct), PHP > Mapscript crashes my > > webserver when executing simple (and correct, according to > the docs) code, > > and Perl Mapscript coredumps whenever you create a new > class in an existing > > layer or a new layer in an existing map. To get the > projection stuff to work > > as you might expect, I had to upgrade to 3.5. My existing > Mapscript code > > stopped working entirely (with only minor changes made to > fix the semantic > > changes of msSaveImage) by spitting out a blank map, so I > had to downgrade > > to 3.3. Finally, in attempt to debug several things on my > own, I downloaded > > and installed SWIG. Unfortunately, the .i files are no > longer compatible > > with the current version of SWIG. I could not build > mapscript from the CVS > > checkout, and I could not overwrite any of the _wrap files > on the nightly > > builds. > > > > All of these problems have workarounds, but without > examples, it's an > > *extremely* painful process to figure them out. > > > > So, I implore the Mapserver community: Contribute every > Mapscript and .map > > sample file you can find and *put it in the distribution*. > Or at least make > > another distribution (and ms_demo doesn't cut it) that has dozens of > > examples. The Mapscript examples IN the mapscript distro > are worthless--they > > don't even draw a map! > > > > Thanks for listening. :-) I do love Mapserver. It's > something I've wanted > > for a long time. I can't imagine how fast Mapserver's use > would spread if it > > were approachable. That's all I ask. > > > > -Mike > > > From cathode at nichebox.com Wed Jul 25 16:15:13 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 26 Jul 2001 02:15:13 +0300 Subject: [mapserver-users] Improved Documentation In-Reply-To: Message-ID: <008b01c1155f$ac4d0650$de00a8c0@nichebox1> On this note... For the past few days I've been working on a new layout that fits our primary site as well as the sub-sites. I have also started a bit of work on two areas specific to Map Server. One, is a user managed Q & A area where users can submit questions or answer existing questions in the database. The second is user contributed Mapscript examples. Both are PHP/mySQL based, categorized and able to house virtually unlimited content once they are complete. I will be posting as much of my own knowledge and experience with Map Server into both of these areas for a start and will turn them loose on the group. They should both be online within the next week or so, maybe sooner. Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Beau Gunderson > Sent: Wednesday, July 25, 2001 10:19 PM > To: David Graham > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Improved Documentation > > > Postgres Database uses this method to update it's manual. > It allows > > users to input corrections immediately as they find them and then > > every so often the comments get rolled back into the > documentation by > > an editor. Here is an example: > > > > http://www.postgresql.org/idocs/index.php?start.html > > > > The php.net documentation uses the same deal. I would LOVE to > see the same thing for Mapserver. > > -Beau Gunderson > > From v at w.cl Wed Jul 25 16:26:20 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 25 Jul 2001 19:26:20 -0400 (CLT) Subject: [mapserver-users] php.ini v/s dl In-Reply-To: <3B5F44A9.FA299AE3@gis.umn.edu> from "Jamie Smedsmo" at Jul 25, 2001 05:14:01 PM Message-ID: <200107252326.f6PNQKD17910@antonia.nn.cl> Hi, I noticed that when I enable php_mapscript.so in php.ini it doesn't load maps as expected, sometimes works and sometimes doesn't, giving errors like: Warning: MapServer Error in msLoadMap(): (LINESET):(2) in /file/path on line 4 When I use dl, it all works as expected. This using php 4.0.3pl1, apache 1.3.14, and the nightly build from two days ago of mapserver. -- V. From pkishor at GeoAnalytics.com Wed Jul 25 16:51:28 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 25 Jul 2001 18:51:28 -0500 Subject: [mapserver-users] What is the importance of a good Video Card ? Message-ID: Dave, To clarify and add to what Greg is saying... Mapserver is a server side software... there is no rendering to be seen... Mapserver makes an image and either dumps it in a tmp directory from where it is served up, or sends it directly to the calling program (standard output). Video card would be important for the user who is browsing the Mapserver website... because the user's computer would have to download and actually render the image. As far as Mapserver is concerned, you could make it headless, that is without any monitor at all, if your OS permitted it. Get a fast server with gobs of ram... you can assemble good configs for real cheap... I recently priced one for kicks... a dual PIII 1 Ghz with 1.5 Gb RAM and a 40 Gb hd for about $1300. Be happy. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 > -----Original Message----- > From: Greg Mader [mailto:gmader at GeoAnalytics.com] > Sent: Wednesday, July 25, 2001 3:56 PM > To: 'Dave Howlett '; 'mapserver-users at lists.gis.umn.edu ' > Subject: RE: [mapserver-users] What is the importance of a good Video > Card ? > > > Hi Dave, > > I do not believe that MapServer uses the video card at all. > Here is why: > MapServer is using the GD library to construct the images, > and then it sends > these to a directory location for the server to send. There > is no rendering > for the video card. > > If I am wrong on this, I would appreciate the details, > > Good Luck, > > Greg > > > -----Original Message----- > From: Dave Howlett > To: mapserver-users at lists.gis.umn.edu > Sent: 7/25/01 11:19 AM > Subject: [mapserver-users] What is the importance of a good > Video Card? > > Hello, > > I'm just specing out the hardware requirements to put > togeather a server > running MapServer etc. I'm trying to do this on the cheap and > the server > will initially just be a development server. > > I'm wondering what the importance of a good video card is > when MapServer > renders maps. Does Mapserver utilize the video card for this?? If it > doesn't then I can go real cheap on this aspect of my system. If it > does, are there other considerations in selecting a good card besides > for the amount of memory? > > Thanks in Advance! > > Dave > From pkishor at GeoAnalytics.com Wed Jul 25 16:54:45 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 25 Jul 2001 18:54:45 -0500 Subject: [mapserver-users] RE: [MapServer-users] Meeting Message-ID: Sarcasm is wasted here. Mike had a valid point. Mapserver _is_ very good, but it has to get even better, and constructive criticism like Mike provided is only going to make it better. A really, really good program will not only whup ArcIMS, Oracle, SDE's collective ass, it will also be as easy as point-and-click setup. Hopefully Mapserver will reach there very soon. It has a great community behind it, and best of all, most of the coders take all the criticism very positively. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: Wednesday, July 25, 2001 3:01 PM > To: mapserver-users at lists.gis.umn.edu; 'Mike Neuman' > Subject: [mapserver-users] RE: [MapServer-users] Meeting > > > > Yeah, I can see your point. 20 whole hours to get a > powerful, flexible, continually updated, did I mention FREE > software program to work. You could just spring $10,000 for > ARC IMS and have your own map up and running in 10 hours. > > The documentation is getting better and better. The > resources that could have been put into documentation in the > past, have instead been put into new development, added > functionality, and bug-fixes. The people developing > MapServer, Mapscript, PHP Mapscript, etc. have put a lot of > unpaid hours into improving the product, and they share their > apps and code. > > Have you noticed that bug-fixes are often committed to the > CVS or PHP modules within a day of notification? Noticed how > willing people are willing to help when you post problems on > the listserv? > > Yeah, I think I will go out and buy ARC IMS, SDE, and Oracle > spatial. Should be much less painful. > > > > > David. > > ---------- > > From: Mike Neuman[SMTP:mcn at engarde.com] > > Sent: Tuesday, July 24, 2001 6:08 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Meeting > > > > > MapServer is not just a success, it is a raving success. > > > > I'm new to the Mapserver community. I would agree with > this statement from > > a *technical* point of view, but strongly disagree from an > approchability > > point of view. There are virtually NO examples of how to > create maps, do > > things in mapscript, etc. It took at least 20 hours of me > fighting with > > Mapscript and a .map file before I could get a relatively > simple map to > > display. Then another 8 hours to get the projection right. > If I didn't hate > > my GIS program so much, I probably would have given it up > after the first > > few hours. > > > > The documentation has several major errors (queryByPoint > still appears on > > the web site, when queryUsingPoint is correct), PHP > Mapscript crashes my > > webserver when executing simple (and correct, according to > the docs) code, > > and Perl Mapscript coredumps whenever you create a new > class in an existing > > layer or a new layer in an existing map. To get the > projection stuff to work > > as you might expect, I had to upgrade to 3.5. My existing > Mapscript code > > stopped working entirely (with only minor changes made to > fix the semantic > > changes of msSaveImage) by spitting out a blank map, so I > had to downgrade > > to 3.3. Finally, in attempt to debug several things on my > own, I downloaded > > and installed SWIG. Unfortunately, the .i files are no > longer compatible > > with the current version of SWIG. I could not build > mapscript from the CVS > > checkout, and I could not overwrite any of the _wrap files > on the nightly > > builds. > > > > All of these problems have workarounds, but without > examples, it's an > > *extremely* painful process to figure them out. > > > > So, I implore the Mapserver community: Contribute every > Mapscript and .map > > sample file you can find and *put it in the distribution*. > Or at least make > > another distribution (and ms_demo doesn't cut it) that has dozens of > > examples. The Mapscript examples IN the mapscript distro > are worthless--they > > don't even draw a map! > > > > Thanks for listening. :-) I do love Mapserver. It's > something I've wanted > > for a long time. I can't imagine how fast Mapserver's use > would spread if it > > were approachable. That's all I ask. > > > > -Mike > > > From v at w.cl Wed Jul 25 18:51:59 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 25 Jul 2001 21:51:59 -0400 (CLT) Subject: [mapserver-users] Typo in latest version of php_mapscript Message-ID: <200107260151.f6Q1pxS19244@antonia.nn.cl> Hi, the Makefile for PHP_mapscript has a bug, when you configure mapserver the PHP_LD flags turns out to be: -rdynamic-Wl (without a space). I cannot fix it myself as I'm not used to autoconf, automake and friends. (just checked out the latest version and it has the bug) -- V. From pkishor at GeoAnalytics.com Wed Jul 25 19:12:03 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 25 Jul 2001 21:12:03 -0500 Subject: [mapserver-users] error using ms_newShapefileObj() Message-ID: now what could be causing this... Warning: MapServer Error in msOpenSHPFile(): (data/parcel) in /var/www/html/palatine_pk/_mapmaker.php on line 97 Fatal error: Failed to open shapefile data/parcel in /var/www/html/palatine_pk/_mapmaker.php on line 97 I doing the following -- $shapeFile = ms_newShapefileObj( "data/parcel", -1 ); Of course, data/parcel.shp exists and draws fine. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From v at w.cl Wed Jul 25 19:18:19 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 25 Jul 2001 22:18:19 -0400 (CLT) Subject: [mapserver-users] Point layers and php_mapscript 3.5 In-Reply-To: <200107252326.f6PNQKD17910@antonia.nn.cl> from "Vinko Vrsalovic B." at Jul 25, 2001 07:26:20 PM Message-ID: <200107260218.f6Q2IJH19442@antonia.nn.cl> Last message of the night: I have this layer on my map file: LAYER NAME clicks TYPE POINT STATUS OFF CLASS SYMBOL circle SIZE 1 END END All the other functionality works, except when I turn on this layer, either via $l_clicks=$map->getLayerByName("clicks"); $l_clicks->set("status",1) or via putting STATUS ON on the map file. When I activate it, it crashes and a 'can't display page' page appears. It worked on perl mapscript 3.4 (I couldn't compile php_mapscript 3.4 because of a sed unterminated 's' command on conftest.s1 line 74) Any help is really appreciated. -- V. From steve.lime at dnr.state.mn.us Wed Jul 25 21:17:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 25 Jul 2001 23:17:38 -0500 Subject: [mapserver-users] turning off classes Message-ID: Answers--- - No, not with the CGI version. In mapscript you could manage the classes yourself and create a custom layer on-the-fly with only the requested classes. You could also muck with with class colors or expressions to render them useless. I can easily add a status option to an individual class and can alter the rendering and query code to honor it. I can't quickly add a programatic may to toggle class status from the CGI program. Please add this to Bugzilla as a feature request. - There is a performance hit, how much depends on the data and how many layers you need to break out. For moderately sized datasets and a few additional layers you probably won't notice. On large datasets, if this much control is needed then I would argue that the shapefile itself should be split into different layers. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 07/24/01 13:18 PM >>> I have one layer with many classes shaded thematically... two questions -- 1. is it possible to programmatically turn on/off individual classes 2. if #1 above is not possible, and I have to separate the classes into separate layers, is there any performance impact positively or negatively? Many tia, pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From v at w.cl Wed Jul 25 21:26:06 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 26 Jul 2001 00:26:06 -0400 (CLT) Subject: [mapserver-users] queryUsingPoint In-Reply-To: from "Puneet Kishor" at Jul 25, 2001 06:54:45 PM Message-ID: <200107260426.f6Q4Q7B20787@antonia.nn.cl> Well, it wasn't the last message of the night. :) Browsing to php_mapscript.c dated 2001/07/23 I can't seem to find queryUsingPoint, only queryByPoint. Will queryUsingPoint disappear? Does queryByPoint return an int? (doc bug?) And my last problem: When I load a map with this layer: LAYER NAME rbusproj TYPE LINE STATUS OFF DATA rbusproj QUERY TEMPLATE "q1.html" END CLASS COLOR 100 150 54 END END Warning: MapServer Error in loadLayer(): (QUERY):(66) in /file/path line 4 Fatal error: Failed to open map file ../mymap.map in /file/path on line 4 Last, but not least, excuse me if I asked stupid questions or pointed mistakes that weren't or sent too many mails to the list. And thank you. -- V. From bludwulf at crackrock.net Thu Jul 26 00:06:01 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Thu, 26 Jul 2001 00:06:01 -0700 (MST) Subject: [mapserver-users] Point layers and php_mapscript 3.5 In-Reply-To: <200107260218.f6Q2IJH19442@antonia.nn.cl> Message-ID: I had the same problem. In my case it was because there was nothing at all in the layer. I see you don't have a DATA entry, and you didn't say anything about adding points to the layer in php or perl. Check your apache error log for details about most errors where the page won't even display. It's usually in /usr/local/apache/logs/error_log. =) -Beau Gunderson On Wed, 25 Jul 2001, Vinko Vrsalovic B. wrote: > > Last message of the night: > > I have this layer on my map file: > > LAYER > NAME clicks > TYPE POINT > STATUS OFF > CLASS > SYMBOL circle > SIZE 1 > END > END > > All the other functionality works, except when I turn on this layer, either > via > > $l_clicks=$map->getLayerByName("clicks"); > $l_clicks->set("status",1) > > or via putting STATUS ON on the map file. > > When I activate it, it crashes and a 'can't display page' page appears. > > It worked on perl mapscript 3.4 (I couldn't compile php_mapscript 3.4 because > of a sed unterminated 's' command on conftest.s1 line 74) > > Any help is really appreciated. > From benenet at free.fr Thu Jul 26 02:09:48 2001 From: benenet at free.fr (Benoit =?iso-8859-1?Q?V=E9ler?=) Date: Thu, 26 Jul 2001 11:09:48 +0200 Subject: [mapserver-users] mapscript Message-ID: <3B5FDE5C.66E6FD78@free.fr> Hello, I won't give up... ;-) I'm not at all used to deal with programs like Apache, Php, mysql, and stuffs like cgi, programing and so on... I'm only used to deal kindly with usual gis desktop programs, that's why things are complicated today for me. I'm investing time in learning free softwares, I believe I'll be better soon ;-) Anyway I guess I'm not to far from being there, I suspect a version compatibility problem... : * now I can see the http://localhost/mapscript/phpinfo_mapscript.phtml, as I've followed Daniel's (very good) advices... * but this page don't look very sane : I've got a list of message errors, the two last of them being : Warning: Function registration failed - duplicate name - ms_getscale in c:\program files\apache group\apache\htdocs\mapscript\phpinfo_mapscript.phtml on line 17 Warning: MapScript: Unable to register functions, unable to load in Unknown on line 0 * The first two line are reproduced for each mapscript function, I believe. * The rest of the file is like a classic info.php file * The http://localhost/mapscript/test_draw_map.phtml file is a whole page of errors. Warning: Function registration failed - duplicate name - ms_getversion in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newmapobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newlayerobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newclassobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newpointobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newlineobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newshapeobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newshapefileobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_newrectobj in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_getcwd in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_getpid in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: Function registration failed - duplicate name - ms_getscale in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 22 Warning: MapScript: Unable to register functions, unable to load in Unknown on line 0 Warning: MapServer Error in msLoadMap(): (c:\program files\apache group\apache\htdocs\mapscript\demo.map) in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 34 Fatal error: Failed to open map file demo.map in c:\program files\apache group\apache\htdocs\mapscript\test_draw_map.phtml on line 34 Cheers, Ben. From andreag at crs4.it Thu Jul 26 05:48:44 2001 From: andreag at crs4.it (A. Giacomelli) Date: Thu, 26 Jul 2001 14:48:44 +0200 Subject: [mapserver-users] problems displaying shp coming from join operation in AV Message-ID: <3B6011AC.DCBFCA42@crs4.it> hi, I have a shapefile which displays regularly via mapserver. via Arcview (3.0a), I have edited the shp by joining a table with some additional attribute and exported it to a new shp. With the new shapefile, mapserver+php mapscript (3.4 binary, winNT) complains about an error in msOpenSHPFile()... TIA for any suggestions, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From pkishor at GeoAnalytics.com Thu Jul 26 05:54:42 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 26 Jul 2001 07:54:42 -0500 Subject: [mapserver-users] finding extent of a polygon In-Reply-To: <200107260426.f6Q4Q7B20787@antonia.nn.cl> Message-ID: <200107261256.HAA03466@lists.gis.umn.edu> Hi all, The following is proving to be inordinately difficult. I hope someone on the list can either guide me to the correct way, or confirm that it is not possible so I stop wasting my time. For simplicity sake, say, I have a parcels layer with an attribute called parcel_id. Given a parcel_id I want that polygon (or polygons, if I have more than one parcel_id), get its extent, and zoom to it. The closest I have gotten is trying to read in the parcel.shp file using ms_newShapeFileObj like so -- $shapeFile = ms_newShapefileObj( "data/parcel", -1 ); which, of course, doesn't work right there... gives me a "Fatal error: Failed to open shapefile data/parcel. Even if I could get the shape file open, I really don't know quite what to do next. I can't really query the shape file with $parcel_id because $parcel_id is an attribute and is really stored in the parcel.dbf. However, parcel.dbf doesn't have any (visible) link between the attribute and the shape file... there must be one... some kind of shape index... what is it? where is it stored? how do I access it? As I said above, at the very least I need to know whether the above is even possible or not. Then I have worry about why I can't open the shape file? then I have to find the link between the shape file and the dbf file for that layer. Many tia, pk/ From morissette at dmsolutions.ca Thu Jul 26 07:14:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 26 Jul 2001 10:14:49 -0400 Subject: [mapserver-users] mapscript References: <3B5FDE5C.66E6FD78@free.fr> Message-ID: <3B6025D9.417C6DF3@dmsolutions.ca> Benoit V?ler wrote: > > * now I can see the > http://localhost/mapscript/phpinfo_mapscript.phtml, as I've followed > Daniel's (very good) advices... > * but this page don't look very sane : I've got a list of message > errors, the two last of them being : > > Warning: Function registration failed - duplicate name - ms_getscale > in c:\program files\apache > group\apache\htdocs\mapscript\phpinfo_mapscript.phtml on line 17 > Benoit, This is because you're attempting to load php_mapscript.dll twice. Could it be that you had added an "extension=php_mapscript.dll" line in your php.ini? You don't need this line when you use dl()... or you don't need to call dl() if you add this line in php.ini. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Thu Jul 26 08:04:42 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 26 Jul 2001 11:04:42 -0400 Subject: [mapserver-users] Drawing Maps Message-ID: <004001c115e4$4c7509f0$2f01a8c0@morpheus> OK I am a little new to this GIS/MapServer stuff. I can not figure out what I need to do to get a map to drag after I zoom in( clik in image). I dont know what variable need to be set .... All I want to do is zoom in, when I click a point in my map. I can get the X Y cgi variables from the click on the image, but I dont understand what i use to zoom in to that point?? Do I set the extents? Create a point object. Is there any examples for perl? thanks -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Thu Jul 26 08:06:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 26 Jul 2001 11:06:40 -0400 Subject: [mapserver-users] queryUsingPoint References: <200107260426.f6Q4Q7B20787@antonia.nn.cl> Message-ID: <3B603200.B17CDB8A@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Well, it wasn't the last message of the night. :) > > Browsing to php_mapscript.c dated 2001/07/23 I can't seem > to find queryUsingPoint, only queryByPoint. > > Will queryUsingPoint disappear? > Yes, queryUsingPoint() is gone... well actually it was renamed to queryByPoint() because of the way queries work (the return value in this case) changed in 3.5 and renaming the call is the only way to make sure users update their scripts... otherwise scripts would just silently fail. > Does queryByPoint return an int? (doc bug?) > No... this time it's not a doc bug... the new queryByPoint() returns MS_SUCCESS or MS_FAILURE, and the query results are accessable via the layerObj's getResult() method. However there's a bug in the LayerObj docs: the queryUsingPoint() and family are still listed but they should be gone... I'll have this fixed. > And my last problem: > > When I load a map with this layer: > > LAYER > NAME rbusproj > TYPE LINE > STATUS OFF > DATA rbusproj > QUERY > TEMPLATE "q1.html" > END > CLASS > COLOR 100 150 54 > END > END > > Warning: MapServer Error in loadLayer(): (QUERY):(66) in /file/path line 4 > > Fatal error: Failed to open map file ../mymap.map in /file/path on line 4 The QUERY object is gone in 3.5 and its parameters moved into the CLASS object... you have to move your TEMPLATE parameter inside the CLASS object when going from 3.4 to 3.5. Finally, I attached below portions of code extracted from gmap75.php3 (for MapServer 3.5) that shows how to deal with the new query functions. The whole Gmap distribution for MapServer 3.5 can be downloaded at http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-20010726.tar.gz or http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-20010726.zip (I added this file in our download page this morning... I thought it had been there for quite a while but it was not... so I apologize to those of you that I pointed to "the gmap demo for ms 3.5 on our download site" since this file didn't exist until today.) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. // This code performs a point query given georeferenced coodrinates: // GMapDumpQueryResults() will be called later on to display // a table with the results if something was found. $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); // Use '@' to avoid warning if query found nothing @$gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); $gbShowQueryResults = TRUE; //... //... /************************************************************************/ /* function GMapDumpQueryResults() */ /* */ /* Produce a table with query results. */ /* Simply prints an " " if there are no query results. */ /************************************************************************/ function GMapDumpQueryResults() { GLOBAL $gpoMap, $gbShowQueryResults; if (! $gbShowQueryResults ) { printf(" "); return; } $numResultsTotal = 0; for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) { $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); if ($numResults == 0) continue; // No results in this layer // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer->open($gpoMap->shapepath); $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); printf("
\n"); printf("\n"); printf("\n"); // // Table header: attribute names... // printf("\n"); for ($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); // // One row in table for each selected record // for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); printf("\n"); printf("\n", $oShape->bounds->minx, $oShape->bounds->miny, $oShape->bounds->maxx, $oShape->bounds->maxy); for($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); $oShape->free(); $numResultsTotal++; } $oLayer->close(); printf("
", sizeof($selFields)); printf("
%s
", $oLayer->getMetaData("DESCRIPTION")); printf("
"); printf("%s",$selFields[$iField]); printf("
"); printf("%s", $oShape->values[$selFields[$iField]]); printf("
\n"); } if ($numResultsTotal == 0) echo "Nothing found at query location."; } From LBallard at YesVirginia.org Thu Jul 26 10:15:17 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Thu, 26 Jul 2001 13:15:17 -0400 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CD84@communications> Say, for example, you needed to display/serve high-res imagery (on the Internet) for a large spatial extent (e.g., a state or region). There would be several ways to get this done. For example: 1. You could use multiple images and reference each as an individual layer (administrative nightmare). 2. You could use multiple images and get at them through an image catalog. 3. You could mosaic them into one large image (could get REALLY big fast--probably not feasible) 4. If pyramid layers/aux/MrSid were supported you use them to display moderate sized mosaics or original imagery (greatly reduce storage footprint but uncomressing hammers CPU cycles). 5. You could resample imagery at different resolutions (1m pixel resolution; 5m; 10m) and reference each collection (e.g., 5m) with a different image catalog depending on viewing scale (i.e., viewing at county-extent use 10m catalog; city-level use 5m; subdivision use 1m). 6. You store them all in SDE (~2:1 compression lossless). 7. About any combination of the above (e.g., resample imagery to 1m, 5m etc and create pyramids for those). 8. ....... I'm curious how others would accomplish/approach this task. I can post a summary. Thanks, Lowell Ballard From steve.lime at dnr.state.mn.us Thu Jul 26 10:23:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Jul 2001 12:23:13 -0500 Subject: [mapserver-users] Fwd: shapefiles Message-ID: An embedded message was scrubbed... From: "Chan B. Huynh" Subject: shapefiles Date: Thu, 26 Jul 2001 13:16:40 -0400 Size: 1821 URL: From chuynh at ideorlando.org Thu Jul 26 11:11:48 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Thu, 26 Jul 2001 14:11:48 -0400 Subject: [mapserver-users] Obtaining shape files for the world map Message-ID: Hello, Where can I obtain shape files for the world map like the "Digital Map of the World - Australia" in the Gallery link? Thanks for your help. -chan From steve.lime at dnr.state.mn.us Thu Jul 26 11:21:20 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Jul 2001 13:21:20 -0500 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: Hi Lowell: Option 1 sucks so don't even consider that. I've used 2 stratagies here, the image catalog and single images at multiple resolution. Both certainly have their place and work well under the right circumstances. We serve USGS DRGs and DOQs for the entire state (~1200 tiles) using tiled GeoTIFFs. Works great as long as you display at appropriate scales which isn't much of an issue with those datasets since they're only useful over a limited number of scales. The DOQ dataset is about 20Gb, the 3 DRG datasets are about 6Gb. We also have a LandSat TM mosaic. We serve those using a pyramid type system where each reduced resolution image is a layer tied to a scale range. Finally there are the source images that are handled using tiling. Neither LizardTech nor ERMapper (ECW) are forthcoming with anything but Windows APIs so don't look for support there. The ERMapper folks do have a demo out there that uses MapServer on top of their imagery using a plugin they developed. Perhaps JPEG2000 will be ready soon. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ballard,Lowell" 07/26/01 12:15PM >>> Say, for example, you needed to display/serve high-res imagery (on the Internet) for a large spatial extent (e.g., a state or region). There would be several ways to get this done. For example: 1. You could use multiple images and reference each as an individual layer (administrative nightmare). 2. You could use multiple images and get at them through an image catalog. 3. You could mosaic them into one large image (could get REALLY big fast--probably not feasible) 4. If pyramid layers/aux/MrSid were supported you use them to display moderate sized mosaics or original imagery (greatly reduce storage footprint but uncomressing hammers CPU cycles). 5. You could resample imagery at different resolutions (1m pixel resolution; 5m; 10m) and reference each collection (e.g., 5m) with a different image catalog depending on viewing scale (i.e., viewing at county-extent use 10m catalog; city-level use 5m; subdivision use 1m). 6. You store them all in SDE (~2:1 compression lossless). 7. About any combination of the above (e.g., resample imagery to 1m, 5m etc and create pyramids for those). 8. ....... I'm curious how others would accomplish/approach this task. I can post a summary. Thanks, Lowell Ballard From v at w.cl Thu Jul 26 11:35:45 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 26 Jul 2001 14:35:45 -0400 (CLT) Subject: [mapserver-users] Drawing Maps In-Reply-To: <004001c115e4$4c7509f0$2f01a8c0@morpheus> from "Jim Burnett" at Jul 26, 2001 11:04:42 AM Message-ID: <200107261835.f6QIZj527388@antonia.nn.cl> > All I want to do is zoom in, when I click a point in my map. > I can get the X Y cgi variables from the click on the image, but I dont = > understand what i use to zoom in to that point?? > Do I set the extents? Create a point object. Is there any examples for = > perl? =20 It depends on the version of mapscript you're using, if it's 3.4 you have to set the new extent on your own, there's a perl example that works on 3.4 in http://maps.dnr.state.mn.us/cgi-bin/mapquakes.pl If you're using 3.5 there's a method from the map object called zoompoint, here's an example in php, should be easy to port to perl: $zoom_p = ms_newPointObj(); // new Point $zoom_p->setxy($img_x,$img_y); // the coords of the click $zoom_e = ms_newRectObj(); //new Rect // here you must put the actual extent of the map (for sucessive zooms, you have to keep the extent in a hidden variable and set the map extent previously to the values that return from the submission of the form) $zoom_e->setextent($map->extent->minx,$map->extent->miny, $map->extent->maxx,$map->extent->maxy); $map->zoompoint($zoom_f,$zoom_p,$map->width,$map->height,$zoom_e,$zoom_m); $img = $map->draw(); $zoom_f is the zoom factor, for a constant factor you just put an integer there (ie zoom in in a factor of 2, just put 2). $map->width and $map->height are the size in pixels of the image. $zoom_m is another RectObj that sets the maximum extent (the map won't zoom or pan more than what's set in this variable). It's optional. you can refer to the docs in http://www2.dmsolutions.ca/webtools/php_mapscript/php_mapscript_docs.html and use the perl equivalent for the calls on the methods. hth, -- V. From pramsey at refractions.net Thu Jul 26 14:05:35 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 26 Jul 2001 14:05:35 -0700 Subject: [mapserver-users] Image Speed Questions---Generic References: <509989F9E1D38D47ADA73ED9CF5BF32A16CD84@communications> Message-ID: <3B60861F.4D64E71C@refractions.net> This is something we have thought about on occasion. I bet the OSSIM people have some good insights on this too. Our take has always been that an efficient system is going to have to resort to (5) if they want to display imagary at a large range of scales. If you want to have a large range of scales and you don't re-sample ahead of time, you have to re-sample on the fly, which could be incredibly onerous (open up 100 orthos and grab 10 pixels from each, fun). "Ballard,Lowell" wrote: > > 5. You could resample imagery at different resolutions (1m pixel resolution; > 5m; 10m) and reference each collection (e.g., 5m) with a different image > catalog depending on viewing scale (i.e., viewing at county-extent use 10m > catalog; city-level use 5m; subdivision use 1m). -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From spaske at kapur-assoc.com Thu Jul 26 14:03:30 2001 From: spaske at kapur-assoc.com (Sam Paske) Date: Thu, 26 Jul 2001 16:03:30 -0500 Subject: [mapserver-users] Image Speed Questions---Generic In-Reply-To: <509989F9E1D38D47ADA73ED9CF5BF32A16CD84@communications> Message-ID: I tangled with this one when I was putting together a page just to get familiar with mapserver http://www.kapurgis.com/agsmaps/t-cdrbrg/zoning_init.html ). What you see on the page referred to above is a township in Wisconsin, USA. There are nine orthorectified photos tiled to produce an aerial image of the entire township. Each one is a 30 meg tif. I tried it the simple way first, just to get it working. I just put each tif in the map file as a separate layer. Seems to work well, but on my 450mhz mapserving machine (x86), it slows down quite a bit as it processes 270 mb of image data. If the viewer is on a slow modem the difference is not so noticable, but on a lan it is significant. One thing I did notice is that as one zooms into the map, the draw time will decrease as the server processes fewer of the images. At least that is what appears to be happening. The performance when zoomed way in is pretty good, so my next step was to create a single, lower resolution image of the 9. My plan was to use this image at greater viewing extents, and switch to the 9 greater detail images as the user zooms in. After a bit of experimenting, I ended up with a 60mb image (a composite of the nine) for zoomed out viewing and the nine origionals for zoomed in viewing, making a total of ten layers in my map file necesary. I was pretty happy with the result, so I didn't go on to try any other methods. However, my example only references a single township. If I were working with an entire county (or a state) of 30mb images, I might vary my approach. Hope this helps, Sam Paske Kapur AGS -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Ballard,Lowell Sent: Thursday, July 26, 2001 12:15 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Image Speed Questions---Generic Say, for example, you needed to display/serve high-res imagery (on the Internet) for a large spatial extent (e.g., a state or region). There would be several ways to get this done. For example: 1. You could use multiple images and reference each as an individual layer (administrative nightmare). 2. You could use multiple images and get at them through an image catalog. 3. You could mosaic them into one large image (could get REALLY big fast--probably not feasible) 4. If pyramid layers/aux/MrSid were supported you use them to display moderate sized mosaics or original imagery (greatly reduce storage footprint but uncomressing hammers CPU cycles). 5. You could resample imagery at different resolutions (1m pixel resolution; 5m; 10m) and reference each collection (e.g., 5m) with a different image catalog depending on viewing scale (i.e., viewing at county-extent use 10m catalog; city-level use 5m; subdivision use 1m). 6. You store them all in SDE (~2:1 compression lossless). 7. About any combination of the above (e.g., resample imagery to 1m, 5m etc and create pyramids for those). 8. ....... I'm curious how others would accomplish/approach this task. I can post a summary. Thanks, Lowell Ballard From Matt.Wilkie at gov.yk.ca Thu Jul 26 14:26:44 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 26 Jul 2001 14:26:44 -0700 Subject: [mapserver-users] Obtaining shape files for the world map Message-ID: <6DD7370C9452D31192A10008C75D07530B3B672C@raptor.gov.yk.ca> > Where can I obtain shape files for the world map like the > "Digital Map of the World - Australia" in the Gallery link? > > Thanks for your help. > -chan > From steve.lime at dnr.state.mn.us Thu Jul 26 14:35:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 26 Jul 2001 16:35:30 -0500 Subject: [mapserver-users] Fwd: [wms-dev] ArcIMS ServiceName parameter Message-ID: Seems I'm not alone... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Bart Adriaanse" Subject: [wms-dev] ArcIMS ServiceName parameter Date: Thu, 26 Jul 2001 23:15:48 +0200 Size: 3452 URL: From v at w.cl Thu Jul 26 17:44:48 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 26 Jul 2001 20:44:48 -0400 (CLT) Subject: [mapserver-users] Querying In-Reply-To: from "Sam Paske" at Jul 26, 2001 04:03:30 PM Message-ID: <200107270044.f6R0inp32425@antonia.nn.cl> Hi again. I'm getting this error: Fatal error: Object has an invalid '_map_handle_' property in /file/path on line 157 and it happens on this line of code: $l_click->draw($imag); the l_click layer in the map file is: LAYER NAME clicks TYPE POINT STATUS ON DATA theme3 CLASS NAME "Clicks" SYMBOL 2 SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 0 255 LABEL OUTLINECOLOR 0 0 0 COLOR 0 0 255 SIZE MEDIUM POSITION AUTO PARTIALS TRUE END END END $imag is the return value of $map->prepareImage(); The layer has data added through $l_click->addFeature($shape); $shape is valid (i write it to a file through a shapefileObj and I can visualize it in ArcView) And if I draw a point on the layer through $point->draw(...) it works too. What am I doing wrong? -- V. From v at w.cl Thu Jul 26 19:14:04 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Thu, 26 Jul 2001 22:14:04 -0400 (CLT) Subject: [mapserver-users] gmap and queries Message-ID: <200107270214.f6R2E5500768@antonia.nn.cl> Hello, I've seen the gmap for mapscript 3.5 and how to handle the new queries functions, but can't get it right. The manual says that the query is performed on all the shapes that are part of a class that contains a template parameter. How can I tell if a shape is part of a class? And the template has to be a dummy file in the case of mapscript? (I couldn't find the ttt_query.html file) What defines a match for the query functions? And CLASSITEM is the right parameter to set the record that will be asked about? I can use the CLASSITEM and EXPRESSION parameters to define what will be drawn in the image, but when i click on a point and do queryByPoint, nothing matches. (The point is in georeferenced coords using the GMapPix2Geo function, just to be sure they're converted right) I have even defined a rectobj with all the map extent and using queryByRect with that rectobj gives me 'no matching records' too. The tolerance factor is set to 5 in each layer of the mapfile. The querymap object is defined in the mapfile. The layers are of type LINE. I tried with a POINT type too but with no avail. -- V. From epkanegae at myrealbox.com Fri Jul 27 03:06:54 2001 From: epkanegae at myrealbox.com (Eduardo Patto Kanegae) Date: Fri, 27 Jul 2001 10:06:54 GMT Subject: [mapserver-users] polygon countour??? Message-ID: <996228414.466epkanegae@myrealbox.com> hi there doesn't mapserver has a way to show polygon 'countours' as ESRI MapObjects or GeoTools? Eduardo Patto Kanegae From morissette at dmsolutions.ca Fri Jul 27 04:55:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 27 Jul 2001 07:55:14 -0400 Subject: [mapserver-users] Drawing Maps References: <200107261835.f6QIZj527388@antonia.nn.cl> Message-ID: <3B6156A2.87DC0620@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > If you're using 3.5 there's a method from the map object called zoompoint, > here's an example in php, should be easy to port to perl: > Quick note: the zoompoint(), zoomrectangle() and zoomscale() methods are in PHP/MapScript only and were there in 3.4 as well. They are not available in the Perl version but they are likely going to be added to the Perl MapScript by Steve before the 3.5 release. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Fri Jul 27 05:16:16 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 27 Jul 2001 08:16:16 -0400 Subject: [mapserver-users] Querying References: <200107270044.f6R0inp32425@antonia.nn.cl> Message-ID: <3B615B90.969076AB@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > Hi again. > > I'm getting this error: > > Fatal error: Object has an invalid '_map_handle_' property in /file/path > on line 157 > That's a problem with PHP MapScript vs PHP4.0.6 ... it's fixed in the latest MapServer 3.5 CVS but not for 3.4 ... see: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.5 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From warmerdam at pobox.com Fri Jul 27 07:37:47 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 27 Jul 2001 10:37:47 -0400 Subject: [mapserver-users] Image Speed Questions---Generic References: <509989F9E1D38D47ADA73ED9CF5BF32A16CD84@communications> Message-ID: <3B617CBB.76A63F6F@pobox.com> Lowell, If you use MapServer 3.5 and the GDAL link for TIFF support you can add overviews to the existing DRG files (using the gdaladdo utility, or addtifo) and the image catalog (there is also a gdal utility for creating tile indexes). This gives good performance (only needed files are touched, with lots of overviews (pyramids) you don't have to read much data from each file), and you don't have to massage you data too much. If you have alot of files, I would also encourage you to build at least one full region overview file to avoid having to touch every file to show a region wide map. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From v at w.cl Fri Jul 27 07:48:20 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 27 Jul 2001 10:48:20 -0400 (CLT) Subject: [mapserver-users] polygon countour??? In-Reply-To: <996228414.466epkanegae@myrealbox.com> from "Eduardo Patto Kanegae" at Jul 27, 2001 10:06:54 AM Message-ID: <200107271448.f6REmKZ04448@antonia.nn.cl> > > hi there > > doesn't mapserver has a way to show polygon 'countours' as > ESRI MapObjects or GeoTools? The OUTLINECOLOR parameter defines the color of the 'contours' of the polygons. -- V. From v at w.cl Fri Jul 27 07:55:23 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 27 Jul 2001 10:55:23 -0400 (CLT) Subject: [mapserver-users] Querying In-Reply-To: <3B615B90.969076AB@dmsolutions.ca> from "Daniel Morissette" at Jul 27, 2001 08:16:16 AM Message-ID: <200107271455.f6REtNv04640@antonia.nn.cl> > > "Vinko Vrsalovic B." wrote: > > > > Hi again. > > > > I'm getting this error: > > > > Fatal error: Object has an invalid '_map_handle_' property in /file/path > > on line 157 > > > > That's a problem with PHP MapScript vs PHP4.0.6 ... it's fixed in the > latest MapServer 3.5 CVS but not for 3.4 ... see: > > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.5 I seem to have the 'reverse' problem. i have php 4.0.3 with ms 3.5 (latest cvs version), is this possible or i should upgrade my php version? -- V. From steve.lime at dnr.state.mn.us Fri Jul 27 08:21:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Jul 2001 10:21:38 -0500 Subject: [mapserver-users] polygon countour??? Message-ID: Sure set the layer TYPE to POLYLINE instead of POLYGON. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Eduardo Patto Kanegae 07/27/01 05:06AM >>> hi there doesn't mapserver has a way to show polygon 'countours' as ESRI MapObjects or GeoTools? Eduardo Patto Kanegae From morissette at dmsolutions.ca Fri Jul 27 08:46:17 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 27 Jul 2001 11:46:17 -0400 Subject: [mapserver-users] Querying References: <200107271455.f6REtNv04640@antonia.nn.cl> Message-ID: <3B618CC9.2888F0BE@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > > > http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.5 > > I seem to have the 'reverse' problem. > > i have php 4.0.3 with ms 3.5 (latest cvs version), is this possible or i > should upgrade my php version? > That's possible that the fix breaks things with older versions of PHP. PHP4.0.3 is quite old anyway (in Internet time that is ;) so try upgrading to 4.0.6 and please let us know if it works so that the FAQ can be updated if needed. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From tieumaymay at yahoo.com Fri Jul 27 10:35:11 2001 From: tieumaymay at yahoo.com (Chan Bao Huynh) Date: Fri, 27 Jul 2001 10:35:11 -0700 (PDT) Subject: [mapserver-users] shapefiles format Message-ID: <20010727173511.98706.qmail@web11802.mail.yahoo.com> Mapserver-users, What format are the shapefiles compatible for mapserver? I've downloaded the demo and it works great on my NT server. I saw the shapefiles data in the folder /data that is in triplet set shp shx dbf Where can I obtain shapefile for the worldmap? I went on the net last night and get this set of data including 5 sets of files shp shx dbf sbn sbx for the world map. However, the system could load those file. When I execute the program, there's image files created in temp folder but no image content. I'm afraid mapserver could not read my shapefile format in order to produce an image like Minnesota demo. Also, what is the units used for EXTEND command I thought that should be latitude and longitude? But it's 5 digit #. What unit format is that? How can I specify the EXTEND limit for the worldmap? Your assistant is highly appreciated. -chan huynh DA Intern, STRICOM Orlando, FL __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ From chuynh at ideorlando.org Fri Jul 27 10:56:42 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Fri, 27 Jul 2001 13:56:42 -0400 Subject: [mapserver-users] extend command unit Message-ID: Hi there, What is the unit of the 5-digit minx,maxx,miny,maxy for EXTENT command in the Map Object? I thought that should be latitude and longitude??? Thanks for your help. -chan DA Intern, STRICOM Orlando,FL From jeremy at geocaching.com Fri Jul 27 11:29:13 2001 From: jeremy at geocaching.com (Jeremy) Date: Fri, 27 Jul 2001 11:29:13 -0700 Subject: [mapserver-users] Professional Assistance? In-Reply-To: <3B617CBB.76A63F6F@pobox.com> Message-ID: Is this list open to requests for professional assistance to set up Mapserver? If not, is there a place to go and ask for such assistance? Many thanks. Jeremy Irish Webmaster, Geocaching.com From cnielsen at co.tillamook.or.us Fri Jul 27 11:43:31 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Fri, 27 Jul 2001 11:43:31 -0700 Subject: [mapserver-users] line breaks in map file strings Message-ID: <000001c116cc$086d12f0$8f05a7cd@co.tillamook.or.us> Is there a way to add a line break to a layer name or a class name in a map file? Some of my names are kinda long and its making my legend really wide. Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From steve.lime at dnr.state.mn.us Fri Jul 27 11:50:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Jul 2001 13:50:49 -0500 Subject: [mapserver-users] extend command unit Message-ID: It's whatever the UNITS parameters is set to in the mapfile and should match the output projection system. The CGI version when compiled with proj.4 will do some automatic recognition of lat/lon coordinates and do the projection for you, but otherwise extents are always taken as mentioned above. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chan B. Huynh" 07/27/01 12:56PM >>> Hi there, What is the unit of the 5-digit minx,maxx,miny,maxy for EXTENT command in the Map Object? I thought that should be latitude and longitude??? Thanks for your help. -chan DA Intern, STRICOM Orlando,FL From steve.lime at dnr.state.mn.us Fri Jul 27 11:54:05 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 27 Jul 2001 13:54:05 -0500 Subject: [mapserver-users] line breaks in map file strings Message-ID: Nope. Code get's real messy if that's the case. I have experimented with it but was never able to get cood results. That's mainly due to the way the freetype interface to gd works. For the best legends I've always found that using pre-generated images from photoshop works best. They can be displayed dynamically given the appearance of the current legends. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chad Nielsen" 07/27/01 01:43PM >>> Is there a way to add a line break to a layer name or a class name in a map file? Some of my names are kinda long and its making my legend really wide. Chad Chad M. Nielsen, GIS Programmer/Analyst Tillamook County Performance Partnership (TCPP) Tillamook Coastal Watershed Resource Center (TCWRC) GIS: http://gisweb.co.tillamook.or.us TCPP: http://www.co.tillamook.or.us/countygovernment/Estuary/homepage.htm TCWRC: http://www.tcwrc.org From ed at topozone.com Fri Jul 27 13:12:39 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 27 Jul 2001 16:12:39 -0400 Subject: [mapserver-users] Professional Assistance? Message-ID: <13858AA1A74F30419F319ACB66A9D122CF6A@mercator.topozone.com> Jeremy - I think the list is open to such requests. DMSolutions has quite a bit of expertise in MapServer development and several people who are very active on the list. There may be others I don't know about and I'll let them speak for themselves. We have started a line of business hosting and serving MapServer applications. If you're interested in talking about that, let me know. Our hosting gives you access to a large library of data (currently, USA only). If you're interested in taking a look at some possibly interesting MapServer applications that are almost ready for prime time (such as USGS topo maps of the entire USA ), let me know. Since I'm posting this to the whole list, I am just getting some interesting apps ready that I'd like folks to try out - they'll be ready at the beginning of next week. They will also serve to illustrate some notes I'm writing up on the issue of serving large raster datasets with MapServer. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Jeremy [mailto:jeremy at geocaching.com] Sent: Friday, July 27, 2001 2:29 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Professional Assistance? Is this list open to requests for professional assistance to set up Mapserver? If not, is there a place to go and ask for such assistance? Many thanks. Jeremy Irish Webmaster, Geocaching.com From chuynh at ideorlando.org Fri Jul 27 13:21:55 2001 From: chuynh at ideorlando.org (Chan B. Huynh) Date: Fri, 27 Jul 2001 16:21:55 -0400 Subject: [mapserver-users] extend command unit In-Reply-To: Message-ID: Stephen, Thanks, but what do you mean by "output projection system". Do you mean the projection system of the shapefiles? I saw in the codes you use UTM which to be compatible with PROJ.4. Well, what I want to do is to extend the minnesota dem that you have to the map of the world like "Digital Map of The World - Australia" that you have in the gallary link. Is it possible that I can get the source code for that map? Who do I need to talk to? I try to build the digital map of the world myself as well by getting the shapefiles from www.bluemountaingeo.com as recommended by Mark...something. Everything runs well except the .gif map create in the tmp dir is nothing in there. How can I specify the EXTENT xmin,xmax, ymin, ymax for this world map? I used x,y value that you use for your minnesota demo map and that's what i get. What did I do wrong? -chan -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, July 27, 2001 2:51 PM To: chuynh at ideorlando.org; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] extend command unit It's whatever the UNITS parameters is set to in the mapfile and should match the output projection system. The CGI version when compiled with proj.4 will do some automatic recognition of lat/lon coordinates and do the projection for you, but otherwise extents are always taken as mentioned above. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Chan B. Huynh" 07/27/01 12:56PM >>> Hi there, What is the unit of the 5-digit minx,maxx,miny,maxy for EXTENT command in the Map Object? I thought that should be latitude and longitude??? Thanks for your help. -chan DA Intern, STRICOM Orlando,FL From pkishor at GeoAnalytics.com Fri Jul 27 13:59:53 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 27 Jul 2001 15:59:53 -0500 Subject: [mapserver-users] shapefiles format Message-ID: Hi Chan, > What format are the shapefiles compatible for > mapserver? I've downloaded the demo and it works > great on my NT server. I saw the shapefiles data in > the folder /data that is in triplet set > shp > shx > dbf not sure what you mean... shapefiles are shapefiles, a format established by ESRI. > for the world map. However, the system could load > those file. When I execute the program, there's image > files created in temp folder but no image content. > I'm afraid mapserver could not read my shapefile > format in order to produce an image like Minnesota > demo. if you think something is the matter with your shapefiles try opening them with ArcView. If the shapefiles are fine then there is likely something wrong with your map file. > Also, what is the units used for > EXTEND command > I thought that should be latitude and longitude? But > it's 5 digit #. What unit format is that? How can I > specify the EXTEND limit for the worldmap? I think you are referring to the EXTENT keyword. This is the minx, miny, maxx, maxy extent of the map, typically a rectangle within which your entire map is comfortably contained. The units are in map units... what units that the shapefiles were produced in... lat long, decimal degrees, feet, state plane, etc. Again, the easiest way I know to find the extent of a shapefile is to open it in ArcView, draw a rectangle so it completely contains your map, select the rectangle and right-click with your mouse... choose properties and you will see the coords for the rect. Use that. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From v at w.cl Fri Jul 27 14:33:42 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 27 Jul 2001 17:33:42 -0400 (CLT) Subject: [mapserver-users] extend command unit In-Reply-To: from "Chan B. Huynh" at Jul 27, 2001 01:56:42 PM Message-ID: <200107272133.f6RLXgv09910@antonia.nn.cl> > > Hi there, Hi! (one message is enough ;) ) > What is the unit of the 5-digit minx,maxx,miny,maxy for EXTENT command in > the Map Object? > I thought that should be latitude and longitude??? Nope, the extent defines the area of display and it depends on what coords is your shape (geografic coords, UTM, etc.) the demo comes with a perl script called showextent.pl that shows you the extent of a shape. -- V. From Matt.Wilkie at gov.yk.ca Fri Jul 27 16:15:59 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 27 Jul 2001 16:15:59 -0700 Subject: [mapserver-users] extend command unit Message-ID: <6DD7370C9452D31192A10008C75D07530B3B6CA0@raptor.gov.yk.ca> Hi Chan, A lot of your problems might be solved by using the Tim Poindexter Mapserver workbench: http://msworkbench.sourceforge.net. It takes care of setting up the desfault image extents, etc. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From jeremy at geocaching.com Fri Jul 27 16:34:31 2001 From: jeremy at geocaching.com (Jeremy) Date: Fri, 27 Jul 2001 16:34:31 -0700 Subject: [mapserver-users] Professional Assistance? In-Reply-To: <13858AA1A74F30419F319ACB66A9D122CF6A@mercator.topozone.com> Message-ID: Thanks for everyone's emails. I sent a few responses, but here's basically the project in case people are interested. One thought was to provide a "how-to" as a result of the dev work on this project so others can use similar tools to build theirs. Although outsourcing is a good option for my basic needs, I need to work on firmly integrating a mapserver with the functionality of the web site. I don't need the exactness of Topozone since I can link to you folks to get "real" maps ;) It'd be nice of course, but basic features are only really needed so people can get a general idea of where things are in relation to caches and other waypoints. --------------- Geocaching.com is looking for assistance in integrating Mapserver with the web site, currently running with IIS and ASP on Windows2k with a SQL2k database. We currently have a COM object called AspMap, which works quite well, but I'm afraid will not be able to handle the traffic. This month we'll have 2mil pageviews, and I expect with maps we'll get considerably more traffic from people clicking to zoom, pan, etc once the maps are in place. Here's a simple map of the world using two shapefiles - one with geocaches in the last 7 days (yellow)and one of the other active caches (white). We're at 4500 points and increasing by 350 caches a week (this number is growing) http://www.geocaching.com/map Here's one specific to Washington State. Zooming in gives you more features (but still sparse). Green ones listed are the new caches shapefile (last 7 days) and the rest in blue with the orange lid. If you had an account it would also show the ones you visited as checked off (another layer generated on-the-fly) http://www.geocaching.com/map/wa.asp I'm looking for assistance to do the following - 1. Set up Mapserver in an NT environment (of course!). We do have linux boxes but since the site runs in ASP and some functions will involve session cookies it made more sense to stick with the platform. 2. Generate worldwide maps of cache locations, and allow zooming to street level for US (and hopefully the rest of the world where maps are available). 2a. I will need to acquire these maps/shapefiles as well. Any idea of cost estimates for this data would be helpful. 3. Allow integration of data from the SQL2k database, including vector files (such as track logs from a GPS unit), and caches. Also other items such as interesting locations, etc as different icons. I can handle all the database development, but need assistance integrating with ASP (or another option). 4. Be able to map URLs to the image to allow clicking on points and having the site relocate you to the new URL. Thanks folks! Jeremy From pkishor at GeoAnalytics.com Fri Jul 27 18:31:36 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 27 Jul 2001 20:31:36 -0500 Subject: [mapserver-users] getExtent / setExtent problems Message-ID: well, I've growed a lot in the past few days, and the mysterious beauty of Mapserver/Mapscript is only now beginning to appear clearly to me... But, here's a foggy bit... I am trying to getExtent of a shape that I have retrieved using its index. $shapeExtObj = $shapeFileObj->getExtent($row_id); $minx = $shapeExtObj->minx; $miny = $shapeExtObj->miny; $maxx = $shapeExtObj->maxx; $maxy = $shapeExtObj->maxy; $border = 1000; $minx = $minx - $border; $miny = $miny - $border; $maxx = $maxx + $border; $maxy = $maxy + $border; $mapObj->setExtent( $minx, $miny, $maxx, $maxy); except, the resulting map extent of the map is slightly off-center... if my logic above is correct, the chosen shape should be exactly centered on the resulting image, with a border of 1000 feet (map coords are in feet) around it. Except, the chosen shape appears in the bottom left corner of the image. What is the obviously obvious that I am doing wrong? -- Oh... nudderthing... I am unable to query the dbf files on my *nix box using PHP... says dbase_open() etc. are not copacetic. Could that be because the PHP install does not have a dbase module compiled in it? I thought that was automatically included. What gives here? -- pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 From ycnyon at pd.jaring.my Sun Jul 29 19:49:27 2001 From: ycnyon at pd.jaring.my (nyon) Date: Mon, 30 Jul 2001 10:49:27 +0800 Subject: [mapserver-users] RE: To SCSI or not ? Message-ID: <03b001c118a2$40ac8060$147a7ac0@tm.net.my> Hi, I am setting up my map server on a shoestring budget and was wondering whether a SCSI hardisk makes a big difference compared to a IDE- 7200rpm hd for serving maps. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From fuerp at atlas.gis.univie.ac.at Mon Jul 30 05:42:49 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpass) Date: Mon, 30 Jul 2001 14:42:49 +0200 Subject: [mapserver-users] Presentation of the AtOS Protoype Message-ID: <3B655649.6570D2D5@atlas.gis.univie.ac.at> Hello! Now its end of July and also the end of my project and so i want to present the result: It is an internet version of an multinational, scientific internet atlas. The printed version of the atlas is known as the Atlas of East and Southeastern Europe produced by the Austrian Institute of East and Southeast European Studies. The internet version AtOS was produced in a co-operation between the University of Vienna, Department of Geography and Regional Research and the Austrian Institute of East and Southeast European Studies. If some of you take part in the ICA Meeting in Beijing this August, i will invite you to take part in 1 or more of the 3 presentations which will talk about this Internet Atlas: Session 19: Robert Saul, Interface Design Aspects for an Interactive Atlas Project Session 27: Christian Fuerpasz, Suitability of an Internet Mapserver from a Cartographic Perspective Session 40: Christian Resch, Characteristics in Data Management within a scientific Regional Internet Atlas Please notify that the result of the project is only a prototype so the only browser on which the application runs is unfortunately the Internet Explorer. :-(( If you have any suggestions or questions feel free to write me a feedback. Thanks in advance Christian Fuerpasz PS: After summer the work at the AtOS will progress.... :-) -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From jimburnett at ntelos.net Mon Jul 30 06:21:53 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 30 Jul 2001 09:21:53 -0400 Subject: [mapserver-users] RE: To SCSI or not ? References: <03b001c118a2$40ac8060$147a7ac0@tm.net.my> Message-ID: <001b01c118fa$99675060$2f01a8c0@morpheus> Yes, With SCSI more then 1 application can access your hard drive at a time. With IDE, only 1 aplpication can access your hard drive at a time. So If you go with SCSI, then if you have 10 people request a map from your mapserver, then each persons request wont have to waite for the previous request to finish( on the hard drive). If you plan on getting a ton of hits( people using your site), got with SCSI. -jim ----- Original Message ----- From: nyon To: mapserver-users at lists.gis.umn.edu Sent: Sunday, July 29, 2001 10:49 PM Subject: [mapserver-users] RE: To SCSI or not ? Hi, I am setting up my map server on a shoestring budget and was wondering whether a SCSI hardisk makes a big difference compared to a IDE- 7200rpm hd for serving maps. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Mon Jul 30 08:25:15 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 30 Jul 2001 11:25:15 -0400 Subject: [mapserver-users] getExtent / setExtent problems References: Message-ID: <3B657C5B.9240FD3D@dmsolutions.ca> Puneet Kishor wrote: > > I am trying to getExtent of a shape that I have retrieved using its index. > > $shapeExtObj = $shapeFileObj->getExtent($row_id); > $minx = $shapeExtObj->minx; > $miny = $shapeExtObj->miny; > $maxx = $shapeExtObj->maxx; > $maxy = $shapeExtObj->maxy; > > $border = 1000; > > $minx = $minx - $border; > $miny = $miny - $border; > $maxx = $maxx + $border; > $maxy = $maxy + $border; > > $mapObj->setExtent( $minx, $miny, $maxx, $maxy); > > except, the resulting map extent of the map is slightly off-center... if my > logic above is correct, the chosen shape should be exactly centered on the > resulting image, with a border of 1000 feet (map coords are in feet) around > it. Except, the chosen shape appears in the bottom left corner of the image. > > What is the obviously obvious that I am doing wrong? > It's so obvious that I can't see it either! :) The PHP mapObj.setExtent() method calls msAdjustExtent() internally and this will adjust the extents you've specified to fit the output image's width/height ratio. msAdjustExtent() should keep the extent you've specified centered on the image, so I don't understand why that doesn't work for you. Perhaps you could try to print the values of $mapObj->extent->minx, etc. before and after the call to SetExtent and that may give some clues on what the problem is. > -- > > Oh... nudderthing... I am unable to query the dbf files on my *nix box using > PHP... says dbase_open() etc. are not copacetic. Could that be because the > PHP install does not have a dbase module compiled in it? I thought that was > automatically included. What gives here? > No, dbase support is not included by default in PHP. On Unix you have to specify --with-dbase when you configure PHP, and on Windows I think PHP comes with a PHP_DBASE.DLL that you can load using dl(). -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Mon Jul 30 08:29:26 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 30 Jul 2001 11:29:26 -0400 Subject: [mapserver-users] MS_PNG or MS_JPEG Message-ID: <004601c1190c$6b17d330$2f01a8c0@morpheus> MS_PNG or MS_JPEG int saveImage(string filename, int type, int transparent, int interlace, int quality) Writes image object to specifed filename. Passing an empty filename sends output to stdout. In this case, the PHP header() function should be used to set the documents's content-type prior to calling saveImage(). Type can be either MS_PNG or MS_JPEG Quality should be a value in the range 0-95, higher value implies higher image quality and larger image sizes. If quality is negative, then the default IJG JPEG quality value is used. The function returns -1 on error. On success, it returns either 0 if writing to an external file, or the number of bytes written if output is sent to stdout. no GIF support? -jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From frost at cnsnet.com Mon Jul 30 09:12:16 2001 From: frost at cnsnet.com (Eric Frost) Date: Mon, 30 Jul 2001 11:12:16 -0500 Subject: Fw: [mapserver-users] RE: To SCSI or not ? Message-ID: <001601c11912$67b73450$0d85e5d8@DELL600301> The way I understand it, IDE uses a lot of CPU time if you have many requests, SCSI uses next to none.. on one of our servers (file/print/ terminal) we have a 4-drive SCSI array and one 80 GB IDE drive for temporary storage... when anyone transfers large amounts of data to/from the IDE drive, the terminal services sessions start to hang-- and this is a dual-CPU machine. Anyway, SCSI just does better for servers.. but can definitely eat up your budget. You could start with the IDE drive--it will work--, then depending on how many hits you eventually get, the IDE machine may need to be replaced with a faster machine sooner than if you started with a SCSI drive... Eric ----- Original Message ----- From: Jim Burnett To: nyon ; mapserver-users at lists.gis.umn.edu Sent: Monday, July 30, 2001 8:21 AM Subject: Re: [mapserver-users] RE: To SCSI or not ? Yes, With SCSI more then 1 application can access your hard drive at a time. With IDE, only 1 aplpication can access your hard drive at a time. So If you go with SCSI, then if you have 10 people request a map from your mapserver, then each persons request wont have to waite for the previous request to finish( on the hard drive). If you plan on getting a ton of hits( people using your site), got with SCSI. -jim ----- Original Message ----- From: nyon To: mapserver-users at lists.gis.umn.edu Sent: Sunday, July 29, 2001 10:49 PM Subject: [mapserver-users] RE: To SCSI or not ? Hi, I am setting up my map server on a shoestring budget and was wondering whether a SCSI hardisk makes a big difference compared to a IDE- 7200rpm hd for serving maps. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Mon Jul 30 10:38:19 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 30 Jul 2001 12:38:19 -0500 Subject: [mapserver-users] getExtent / setExtent problems Message-ID: figured it out... I was using the wrong $row_id... I haven't yet figured out how to get back the shape index for getExtent, so I added a row_id to the parcel.dbf, and used row_id as the shape index. well, the first row is actually the header row, so the first row with any data in it is actually the second row. I was getting the wrong row offset... adding 1 to the row_id solved the problem. Anyone, any idea how I can retrieve the row_id for a shape.dbf without actually having to add that as a field? -- a house-keeping question -- I find that the messages I post to the mapserver list take several hours to appear in my email... 5-8 hours delay. Does the mapserver listserver not broadcast the posted emails immediately? Seems not, so, is it not possible to do so? Is it possible to migrate to a web-based forums so we can access the forums (and not just the archives) from anywhere? I use Cold Fusion driven forums a lot (Macromedia's CF support forums are on the web), and the Forums software is open source, although it does require a CF server (I might be able to convince my company to host 'em). There are other cgi-driven forums as well. Any thoughts from the listkeepers and other listusers? -- pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Monday, July 30, 2001 10:25 AM > To: Puneet Kishor > Cc: mapserver-users > Subject: Re: [mapserver-users] getExtent / setExtent problems > > > Puneet Kishor wrote: > > > > I am trying to getExtent of a shape that I have retrieved > using its index. > > > > $shapeExtObj = $shapeFileObj->getExtent($row_id); > > $minx = $shapeExtObj->minx; > > $miny = $shapeExtObj->miny; > > $maxx = $shapeExtObj->maxx; > > $maxy = $shapeExtObj->maxy; > > > > $border = 1000; > > > > $minx = $minx - $border; > > $miny = $miny - $border; > > $maxx = $maxx + $border; > > $maxy = $maxy + $border; > > > > $mapObj->setExtent( $minx, $miny, $maxx, $maxy); > > > > except, the resulting map extent of the map is slightly > off-center... if my > > logic above is correct, the chosen shape should be exactly > centered on the > > resulting image, with a border of 1000 feet (map coords are > in feet) around > > it. Except, the chosen shape appears in the bottom left > corner of the image. > > > > What is the obviously obvious that I am doing wrong? > > > > It's so obvious that I can't see it either! :) > > The PHP mapObj.setExtent() method calls msAdjustExtent() > internally and > this will adjust the extents you've specified to fit the > output image's > width/height ratio. msAdjustExtent() should keep the extent you've > specified centered on the image, so I don't understand why > that doesn't > work for you. > > Perhaps you could try to print the values of > $mapObj->extent->minx, etc. > before and after the call to SetExtent and that may give some clues on > what the problem is. > > > -- > > > > Oh... nudderthing... I am unable to query the dbf files on > my *nix box using > > PHP... says dbase_open() etc. are not copacetic. Could that > be because the > > PHP install does not have a dbase module compiled in it? I > thought that was > > automatically included. What gives here? > > > > No, dbase support is not included by default in PHP. On Unix you have > to specify --with-dbase when you configure PHP, and on Windows I think > PHP comes with a PHP_DBASE.DLL that you can load using dl(). > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From nacht at widerstand.org Mon Jul 30 10:57:24 2001 From: nacht at widerstand.org (.d.z.a.) Date: Mon, 30 Jul 2001 18:57:24 +0100 Subject: [mapserver-users] RE: To SCSI or not ? In-Reply-To: <03b001c118a2$40ac8060$147a7ac0@tm.net.my> Message-ID: <001101c11921$16e0f020$3e00a8c0@goodfella> Sort off, well that depends really. In most cases you will do fine in with IDE. Seems like the time generating and latency due to the program out ways that of 7200rpm IDE drives. What it boils down to though is how many users you are expecting to hit the website, if its a lot >500 a day or so, SCSI will make a slight difference. IMO though I have set up commercial servers, not for GIS based web application however, on IDE Raids that gives me the performance I need for substantially lower costs than an equivalent SCSI based system. The other argument is that there is so much latency in accessing anything over the web, that the performance gain in using SCSI is insignificant. my .02 -----Original Message -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of nyon Sent: 30 July 2001 03:49 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] RE: To SCSI or not ? Hi, I am setting up my map server on a shoestring budget and was wondering whether a SCSI hardisk makes a big difference compared to a IDE- 7200rpm hd for serving maps. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkishor at GeoAnalytics.com Mon Jul 30 11:34:35 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 30 Jul 2001 13:34:35 -0500 Subject: [mapserver-users] MS_PNG or MS_JPEG Message-ID: Jim, Mapserver depends upon an external library called GD (available from www.boutell.com) for generating images. GD was initially developed to generate gifs, but when Unisys came down with their claim to gif, GD was modified to stop making gifs. If you want gifs, you have to simply look for the older version of GD (methinks v 1.2 and earlier -- still available in many places) and compile Mapserver with that. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Monday, July 30, 2001 10:29 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MS_PNG or MS_JPEG MS_PNG or MS_JPEG int saveImage(string filename, int type, int transparent, int interlace, int quality) Writes image object to specifed filename. Passing an empty filename sends output to stdout. In this case, the PHP header() function should be used to set the documents's content-type prior to calling saveImage(). Type can be either MS_PNG or MS_JPEG Quality should be a value in the range 0-95, higher value implies higher image quality and larger image sizes. If quality is negative, then the default IJG JPEG quality value is used. The function returns -1 on error. On success, it returns either 0 if writing to an external file, or the number of bytes written if output is sent to stdout. no GIF support? -jim From jimburnett at ntelos.net Mon Jul 30 12:25:06 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 30 Jul 2001 15:25:06 -0400 Subject: [mapserver-users] MS_PNG or MS_JPEG References: Message-ID: <000a01c1192d$57514090$2f01a8c0@morpheus> I have the older GHD lib because I can use the mapserver compiled CGI script with the demo. I just was testing from PHP , and (tring) to return the image in an img src=/.php tag. Right now if I use jpeg, it seem to take forever to load the image, then when it doesn finish, it display nothing. SO I went back to using gifs. -jim ----- Original Message ----- From: "Puneet Kishor" To: "'Jim Burnett'" ; Sent: Monday, July 30, 2001 2:34 PM Subject: RE: [mapserver-users] MS_PNG or MS_JPEG > Jim, > > Mapserver depends upon an external library called GD (available from > www.boutell.com) for generating images. GD was initially developed to > generate gifs, but when Unisys came down with their claim to gif, GD was > modified to stop making gifs. If you want gifs, you have to simply look for > the older version of GD (methinks v 1.2 and earlier -- still available in > many places) and compile Mapserver with that. > > pk/ > > -- > Puneet Kishor > pkishor at geoanalytics.com > www.geoanalytics.com > > GeoAnalyics, Inc. > 1716 Fordem Ave > Madison WI 53704 > > -----Original Message----- > From: Jim Burnett [mailto:jimburnett at ntelos.net] > Sent: Monday, July 30, 2001 10:29 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] MS_PNG or MS_JPEG > > > MS_PNG or MS_JPEG > > int saveImage(string filename, int type, int transparent, int interlace, > int quality) > Writes image object to specifed filename. > Passing an empty filename sends output to stdout. In this case, > the PHP header() function should be used to set the documents's > content-type prior to calling saveImage(). > Type can be either MS_PNG or MS_JPEG > Quality should be a value in the range 0-95, higher value implies > higher image quality and larger image sizes. > If quality is negative, then the default IJG JPEG quality value is > used. > The function returns -1 on error. On success, it returns either 0 > if writing to an external file, or the number of bytes written if > output is sent to stdout. > > > no GIF support? > > > > -jim > From fuerp at atlas.gis.univie.ac.at Mon Jul 30 12:33:36 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Mon, 30 Jul 2001 21:33:36 +0200 Subject: [mapserver-users] Presentation of the AtOS Protoype References: <3B655649.6570D2D5@atlas.gis.univie.ac.at> Message-ID: <3B65B690.A59E2C5F@atlas.gis.univie.ac.at> I am very sorry, but when i wrote the last mail, i was little bit in stress, so i forgot the URL. I think everybody knows the last day of a project, you have so much to do ans so little time.... ;) So i am really sorry for this delay, but here is the URL: http://dtm6.gis.univie.ac.at Christian Fuerpass -- __________________________________________________________ INSTITUT fuer GEOGRAFIE der UNIVERSITAET WIEN Kartografie und Geoinformation Tel: (+43 1) 4277 48658 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ __________________________________________________________ From Matt.Wilkie at gov.yk.ca Mon Jul 30 12:36:04 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Mon, 30 Jul 2001 12:36:04 -0700 Subject: [mapserver-users] RE: To SCSI or not ? Message-ID: <6DD7370C9452D31192A10008C75D07530B4B4A5E@raptor.gov.yk.ca> > The way I understand it, IDE uses a lot of CPU time if you have > many requests, SCSI uses next to none.. on one of our servers > (file/print/terminal) we have a 4-drive SCSI array and one 80 > GB IDE drive for temporary storage... when anyone transfers > large amounts of data to/from the IDE drive, the terminal > services sessions start to hang-- and this is a dual-CPU machine. SCSI is definately better, but if the SCSI price tag is simply too much you can get add on IDE RAID cards which will off-load most of the work from the CPU. Some new motherboards also come with embedded IDE-RAID controllers. Note that Software RAID is slower than Hardware RAID, make sure you know which one is being offered. Not all IDE cards are created equal: search the newsgroups for problems on the particular model(s) you are interested in. Also check the combinations, sometimes an otherwise reliable card just won't work well with a particular motherboard or chipset. Promise seems to be one of the most reliable brands (or at least one with best mindshare). For an article which tells you way more than you ever wanted to know see (page 6 of 30) http://www.anandtech.com/storage/showdoc.html?i=1491&p=6 If you aren't a hardware nut there are companies who sell boxed IDE RAID solutions. Search Keywords: IDE|SCSI RAID, JBOD (Just a Bunch Of Disks), SAN (Storage Area Network), NAS (Network Attached Storage). Bottom line: if the server is likely to be around for awhile and you haven't purchased it (or all the drives) yet, go with scsi and take the time to plan/research everything out. If you already have a server in production with IDE drives, try a cheap test: buy a two drive IDE drive controller (ATA66 or better) and see what happens. The card shouldn't set you back more than $100US. cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From shawatw at Princeton.EDU Mon Jul 30 13:02:06 2001 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Mon, 30 Jul 2001 16:02:06 -0400 Subject: [mapserver-users] Mime-Version: 1.0 Message-ID: <3.0.32.20010730160206.01560cb0@imap.princeton.edu> Please unsubscribe me From ed at topozone.com Mon Jul 30 13:09:43 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 30 Jul 2001 16:09:43 -0400 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> Lowell - Since November, 1999, the TopoZone has been in the business of serving "high-res imagery" "for a large spatial extent" by providing USGS DRG (topographic) maps of the entire US online. We're now migrating that application to a MapServer platform so we can add some interesting stuff to it. I've been in and out of the PC graphics biz for about 20 years now, and I've learned a bit about performance. I wanted to take the time to write a thorough commentary on raster tips, but that's going to take me a while. Here's a shorter version along with a promise for a more extensive treatment someday as soon as I can. For computer graphics in general I like to live by two golden rules - (1) precompute the hell out of everything, and (2) trivially reject as much as you can as fast as you can. Here are some notes on both rules. 1. Precompute everything - if you're trying to serve a lot of users on the Web with relatively inexpensive hardware, you'll find that a fast RAID-5 SCSI array is much cheaper than lots of RAM and CPU. Wherever it's possible, think hard about how you can precompute raster results rather than doing them on the fly. Look at a simple case - zooming out from a raster image that's viewed at 100% (1:1) zoom. When you zoom out 4x, you're reading 16 times more input pixels than you are writing output pixels. At 16x it's 256 times more; you're basically reading a lot of data and throwing 99.5% of it away. For the TopoZone site we chose to offer four fixed zoom levels - period. They are all precomputed and there is no on-the-fly scaling. This is a more reasonable approach for topo maps, because they're useful (i.e. readable) only at a relatively small range of scales. For aerial or satellite imagery, or other continuous-tone imagery, you can zoom out farther and still have things work. Using GDAL support with overviews (built with GDALADDO) is a very easy way to do this. Precomputing zoom scales offers a tradeoff between disk space and speed - the more space you use, the faster things will go. However, the highest-level overviews require the smallest amount of space but actually save the most time. If you created only one 4x overview, it would (roughly) increase your storage space by only about 7% (since the 4x view is 1/16th the size of the original) but for all views zoomed out beyond 4x you're going to deal with 1/16th as many pixels. Creating lots of overviews (2, 4, 8, 16, 32, etc.) gives you the best performance, but think very hard about whether you really need that 2x overview. Your mileage may vary based on usage, CPU speed, RAM, disk performance, etc. so you really should test things yourself in your real environment. 2. Trivially reject as much as you can - "trivial rejection" is the process of very quickly deciding which input data is not needed in the output map, and ignoring it as quickly as possible. For raster data sets, the way to do this is with a TILEINDEX shapefile. By reading ONE input fileset (the TILEINDEX shapefile), you can very quickly determine exactly which TIFF input files are needed to create the requested map. This is enormously faster than reading lots of TIFF/GeoTIFF files, extracting the bounding box from each, and then discovering that you never needed to open most of them in the first place. Disk seek time is expensive compared to sequential reading, so reading 100,000 bytes from one file is much, much faster than reading 100 bytes from each of 1,000 files. In addition to these general rules, make sure your images don't make life difficult for MapServer. For TIFF images, this particularly means making sure they are created with only one (or a few) rows per strip. Some image libraries create single-strip TIFF files, with all the rows in one strip. If you are using any sort of data compression (PackBits, for example) MapServer will need to read and interpret (i.e. decompress) all the data in that strip up to the point you need. For example, if you've got a 7,000-row file in one strip, and you need to display the bottom few rows of that file, MapServer will need to read from disk AND decompress essentially the entire file just to get a few lines from it. If you have one row per strip, you will get less effective compression (because each row is compressed independently) but you will only need to read the rows you need. A compromise with a small number of rows per strip might give you better compression with acceptable performance. Finally, know your data and your users. Some data types compress better than others. Some are virtually incompressible (at least within the world of formats TIFF supports). Some data types are used differently than others - as I suggested above, a 32x zoom out on a 1-meter aerial photo is a somewhat reasonable thing to ask for, while the same zoom on a topographic map produces illegible mush. I'm still shuffling around some R&D equipment, but sometime this week I'll post a link to a MapServer site that offers a 30-meter shaded relief map of the entire US and 2.5-meter topographic maps of the entire US. Together they're over 60,000 files with about 300 GB of data, and they illustrate some of the things I've talked about here. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Ballard,Lowell [mailto:LBallard at YesVirginia.org] Sent: Thursday, July 26, 2001 1:15 PM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Image Speed Questions---Generic Say, for example, you needed to display/serve high-res imagery (on the Internet) for a large spatial extent (e.g., a state or region). There would be several ways to get this done. For example: 1. You could use multiple images and reference each as an individual layer (administrative nightmare). 2. You could use multiple images and get at them through an image catalog. 3. You could mosaic them into one large image (could get REALLY big fast--probably not feasible) 4. If pyramid layers/aux/MrSid were supported you use them to display moderate sized mosaics or original imagery (greatly reduce storage footprint but uncomressing hammers CPU cycles). 5. You could resample imagery at different resolutions (1m pixel resolution; 5m; 10m) and reference each collection (e.g., 5m) with a different image catalog depending on viewing scale (i.e., viewing at county-extent use 10m catalog; city-level use 5m; subdivision use 1m). 6. You store them all in SDE (~2:1 compression lossless). 7. About any combination of the above (e.g., resample imagery to 1m, 5m etc and create pyramids for those). 8. ....... I'm curious how others would accomplish/approach this task. I can post a summary. Thanks, Lowell Ballard From Chip.Hankley at GASAI.Com Mon Jul 30 13:20:56 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 30 Jul 2001 15:20:56 -0500 Subject: [mapserver-users] Using data on Mapped Drives? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3DC3@postoffice.GASAI.Com> I have a PHP MapScript project that _was_ working great. I moved the data off of the local drive to a shared network drive, then changed the paths in the map file, but my app now bombs out with the following error: Fatal error: MapServer Error in msDrawRaster(): (S:\Projects\20000156\Images\drg2.tif) in zoom.php on line 151 The offending line in php (151) is: $img = $map->draw(); Am I missing something? I can't seem to find anything in the documentation that would prevent me from access- ing data on an NT share. I'm using MS 3.4 w/ php 4.04pl1 on WinNT w/ PWS Thanks! Chip Hankley From frost at cnsnet.com Mon Jul 30 13:46:47 2001 From: frost at cnsnet.com (Eric Frost) Date: Mon, 30 Jul 2001 15:46:47 -0500 Subject: Fw: [mapserver-users] MS_PNG or MS_JPEG Message-ID: <007001c11938$c2c97490$0d85e5d8@DELL600301> By the way, has anyone played with the mapserver feature (now in beta) in Manifold enough to recognize if it builds off UMN mapserver? Thanks, Eric From johnsche at netins.net Mon Jul 30 14:46:41 2001 From: johnsche at netins.net (J Scheidecker) Date: Mon, 30 Jul 2001 16:46:41 -0500 Subject: [mapserver-users] orthorectification and mosaicking Message-ID: <002301c11941$319e2160$0200a8c0@tiny> Does anyone know where I can find inexpensive image processing software to orthorectify and mosaic a few aerial photos of farmer?s fields? Jean Scheidecker -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Mon Jul 30 15:13:40 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 30 Jul 2001 16:13:40 -0600 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location Message-ID: <5.1.0.14.0.20010730160917.00afe3a8@mail.GreenwoodMap.com> Hello All, I am on an NT machine and I can't seem get my TileIndex to work when the TileItem Location references a mapped network drive, or a UNC path. I get an error: " msDrawRaster(): Unable to access file. " But it works fine with a local drive letter. Anybody have any knowledge of this problem? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From vguzman at bigfoot.com Mon Jul 30 17:58:14 2001 From: vguzman at bigfoot.com (Vladimir =?iso-8859-1?Q?Guzm=E1n?=) Date: Mon, 30 Jul 2001 19:58:14 -0500 Subject: [mapserver-users] help with tcl Message-ID: <3B6602A6.8876AF7B@bigfoot.com> Hello. I've been trying to make tcl-script works, but I think I've missed some simple thing (I'm not a tcl expert). When I try to run some script tcl says: can't find package Mapscript while executing "package require Mapscript" (file "msexplorer.tcl" line 23) I suppose there is a problem with paths or something. Could you help me, please? Thank you Vladimir Guzm?n From joemayfair at usa.net Mon Jul 30 18:16:31 2001 From: joemayfair at usa.net (Walt Lin) Date: Mon, 30 Jul 2001 21:16:31 -0400 Subject: [mapserver-users] Image Speed Questions---Generic In-Reply-To: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> References: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> Message-ID: <20010730211631.A1420@shenandoah> On the note of trivial rejection and tileindices, what about this solution: store the extents of all the different shapefiles (perhaps one per county on a national level) in a postgres table with an R-Tree index. When a request comes in, query Postgres for all the shapefiles that intersect and load them using mapserver. Of course, POSTGIS would be optimal, storing everything in Postgres, but from what I've heard this is really slow in practice. Thoughts? Walt From ddnebert at fgdc.gov Tue Jul 31 05:20:20 2001 From: ddnebert at fgdc.gov (Doug Nebert) Date: Tue, 31 Jul 2001 08:20:20 -0400 Subject: [mapserver-users] Image Speed Questions---Generic References: <13858AA1A74F30419F319ACB66A9D12201913F@mercator.topozone.com> <20010730211631.A1420@shenandoah> Message-ID: <3B66A284.155B89B3@fgdc.gov> Walt Lin wrote: > > On the note of trivial rejection and tileindices, what about this solution: store the extents of all the different shapefiles (perhaps one per county on a national level) in a postgres table with an R-Tree index. When a request comes in, query Postgres for all the shapefiles that intersect and load them using mapserver. Of course, POSTGIS would be optimal, storing everything in Postgres, but from what I've heard this is really slow in practice. Thoughts? > > Walt Actually a simpler technique is quite feasible: If you request a map using the exact same URL (extents, layers, etc) then a caching webserver will provide the map from the cache instead of requesting it. I have seen this work quite well on all sizes of datasets. By having pre-set extents, such as counties, you can encourage this behavior. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From LBallard at YesVirginia.org Tue Jul 31 05:55:23 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Tue, 31 Jul 2001 08:55:23 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16CDE9@communications> I'm not sure how things NT work but.....I would imagine the account the webserver is running as would need privileges to the data on the share. Have you tried blowing open the privs just to see if that fixes it? You might try dumping a simple shapefile over on the share and adding it as a layer in your .map file. Just to see if things on that level work. I added my Image Catalog as a POLY layer when I was debugging the same thing a week ago or so.....just for sanity. -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Monday, July 30, 2001 6:14 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location Hello All, I am on an NT machine and I can't seem get my TileIndex to work when the TileItem Location references a mapped network drive, or a UNC path. I get an error: " msDrawRaster(): Unable to access file. " But it works fine with a local drive letter. Anybody have any knowledge of this problem? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From shawatw at Princeton.EDU Tue Jul 31 06:54:51 2001 From: shawatw at Princeton.EDU (Tsering Wangyal Shawa) Date: Tue, 31 Jul 2001 09:54:51 -0400 Subject: [mapserver-users] Help unsubscribe me Message-ID: <3.0.32.20010731095451.01519a80@imap.princeton.edu> I am trying to unsubscribe the list as written in the MapServer document but could not do it. Since, I will be away for a month and will not get access my email. Any help will be appreciated. Thanks. -Wangyal From tpoindex at nyx.net Tue Jul 31 07:49:53 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Tue, 31 Jul 2001 08:49:53 -0600 Subject: [mapserver-users] help with tcl In-Reply-To: <3B6602A6.8876AF7B@bigfoot.com>; from vguzman@bigfoot.com on Mon, Jul 30, 2001 at 07:58:14PM -0500 References: <3B6602A6.8876AF7B@bigfoot.com> Message-ID: <20010731084953.A13504@nyx10.nyx.net> On Mon, Jul 30, 2001 at 07:58:14PM -0500, Vladimir Guzm?n wrote: > Hello. > I've been trying to make tcl-script works, but I think I've missed some > simple thing (I'm not a tcl expert). When I try to run some script tcl > says: > can't find package Mapscript > while executing > "package require Mapscript" > (file "msexplorer.tcl" line 23) > I suppose there is a problem with paths or something. > Could you help me, please? This would indicate that you either didn't install Mapscript/Tcl, or it is installed in a place where the Tcl interpreter can't find it. Please read the README for both MapServer Workbench and in the mapscript/mapscript/tcl directory. If you still have problems, please write back with: -which platform your are using (unix/linux, windows) -which version of Tcl you have installed -which verison of MapServer (should be 3.4) -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From ed at topozone.com Tue Jul 31 07:50:28 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 31 Jul 2001 10:50:28 -0400 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: <13858AA1A74F30419F319ACB66A9D122CF82@mercator.topozone.com> Hmmm. Since these pages are generated by a CGI program, I'd be surprised to find a server caching them. How does the server know that the program isn't querying a database that just got updated? If my page was: http://mybank.com/account.cgi?getbalance=345678980 and it reported my bank account balance, I would expect the server to NOT cache the result. On the other hand, your BROWSER could very well be doing this. Depending on your browser version and brand preference, there are various settings that will control whether the browser will re-query the Web server for an identical URL. Your browser may be set up to not check again (at least during the current session) if the URL is the same. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Doug Nebert [mailto:ddnebert at fgdc.gov] Sent: Tuesday, July 31, 2001 8:20 AM To: Mapserver Users Subject: Re: [mapserver-users] Image Speed Questions---Generic Walt Lin wrote: > > On the note of trivial rejection and tileindices, what about this solution: store the extents of all the different shapefiles (perhaps one per county on a national level) in a postgres table with an R-Tree index. When a request comes in, query Postgres for all the shapefiles that intersect and load them using mapserver. Of course, POSTGIS would be optimal, storing everything in Postgres, but from what I've heard this is really slow in practice. Thoughts? > > Walt Actually a simpler technique is quite feasible: If you request a map using the exact same URL (extents, layers, etc) then a caching webserver will provide the map from the cache instead of requesting it. I have seen this work quite well on all sizes of datasets. By having pre-set extents, such as counties, you can encourage this behavior. Doug. -- Douglas D. Nebert Geospatial Data Clearinghouse Coordinator FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html From Jean-Francois.Doyon at CCRS.NRCan.gc.ca Tue Jul 31 09:31:27 2001 From: Jean-Francois.Doyon at CCRS.NRCan.gc.ca (Doyon, Jean-Francois) Date: Tue, 31 Jul 2001 12:31:27 -0400 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: <7CDD7B94357FD5119E800002A537C46E22FB35@s5-ccr-r1.ccrs.nrcan.gc.ca> That's what he meant, the browser will do the caching for a given URL unless the HTTP headers indicated otherwise. By default MapServer pages ARE cached by the browser, unless you added some custom headers to change that behavior, which is a fairly standard trick. This is especially easy if you're using MapScript/PHP, but can also be done through Apache configuration. J.F. > ---------- > From: Ed McNierney[SMTP:ed at topozone.com] > Sent: Tuesday, July 31, 2001 10:50 AM > To: ddnebert at fgdc.gov; Mapserver Users > Subject: RE: [mapserver-users] Image Speed Questions---Generic > > Hmmm. Since these pages are generated by a CGI program, I'd be > surprised to find a server caching them. How does the server know that > the program isn't querying a database that just got updated? If my page > was: > > http://mybank.com/account.cgi?getbalance=345678980 > > and it reported my bank account balance, I would expect the server to > NOT cache the result. > > On the other hand, your BROWSER could very well be doing this. > Depending on your browser version and brand preference, there are > various settings that will control whether the browser will re-query the > Web server for an identical URL. Your browser may be set up to not > check again (at least during the current session) if the URL is the > same. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: Doug Nebert [mailto:ddnebert at fgdc.gov] > Sent: Tuesday, July 31, 2001 8:20 AM > To: Mapserver Users > Subject: Re: [mapserver-users] Image Speed Questions---Generic > > > Walt Lin wrote: > > > > On the note of trivial rejection and tileindices, what about this > solution: store the extents of all the different shapefiles (perhaps one > per county on a national level) in a postgres table with an R-Tree > index. When a request comes in, query Postgres for all the shapefiles > that intersect and load them using mapserver. Of course, POSTGIS would > be optimal, storing everything in Postgres, but from what I've heard > this is really slow in practice. Thoughts? > > > > Walt > > Actually a simpler technique is quite feasible: If you request a map > using the exact same URL (extents, layers, etc) then a caching > webserver will provide the map from the cache instead of requesting > it. I have seen this work quite well on all sizes of datasets. By > having pre-set extents, such as counties, you can encourage this > behavior. > > Doug. > -- > Douglas D. Nebert > Geospatial Data Clearinghouse Coordinator > FGDC/GSDI Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755 > Pager Messaging: http://clearinghouse3.fgdc.gov/dougmsg.html > From Chip.Hankley at GASAI.Com Tue Jul 31 10:54:27 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 31 Jul 2001 12:54:27 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HE LP! Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3DD3@postoffice.GASAI.Com> Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From Pietro.Musella at Informsrl.it Tue Jul 31 11:01:10 2001 From: Pietro.Musella at Informsrl.it (Musella Pietro) Date: Tue, 31 Jul 2001 19:01:10 +0100 Subject: [mapserver-users] Image Catalog Message-ID: Hello All, How to use Image Catalog (ArcView) in MapServer? Can you send to me some example? Thanks Pietro Musella T.S.A. Consulting s.r.l. Padova - Italy -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Tue Jul 31 12:14:23 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 31 Jul 2001 15:14:23 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! References: <3DFF131E4E6D2D4198CDD758F35A53536E3DD3@postoffice.GASAI.Com> Message-ID: <3B67038F.6B2EB91E@dmsolutions.ca> "Hankley, Chip" wrote: > > Richard and I are having the same problem I think... > > I'm beginning to think that on NT, your data HAS to be on a local drive.... > It's the first time we hear of this kind of problem AFAIK. Are you (both) using MapScript, or the MapServer CGI? And if you're using PHP MapScript then with which version of PHP is it? Also, are you both running IIS/PWS or did one of you try with Apache? > Lowell wrote: > >You might try dumping a simple shapefile over on the share and adding it > as > >a layer in your .map file. Just to see if things on that level work. > > I tried this yesterday and got the same results. I used a map file with one > simple polygon layer. Did it local, worked fine, on a share, didnt' work. > Did you try on a local disk but different from the disk where the map file lives, e.g. - place .map file under c: - place data files on D: (local HD) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ed at topozone.com Tue Jul 31 12:50:24 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 31 Jul 2001 15:50:24 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Message-ID: <13858AA1A74F30419F319ACB66A9D122019145@mercator.topozone.com> No, on NT your data does NOT have to be on a local drive. This is probably a permissions problem. But you need to know a bit more about IIS and NT security. By default (you can change it), NT creates a unique user account called IUSR_ for IIS. If your machine is named FOO, then the account is named IUSR_FOO. This is NOT a domain-level account - it's a local machine account. This gives you fine control over exactly what files this account has access to, and it minimizes the risk that you'll give a Web user access to something you shouldn't. If you're using anonymous Web access, all Web server activities run under the security context of the IUSR_FOO account. In other words, the person sitting at the Web browser is acting like they have logged in as the user IUSR_FOO. The first thing you'll need to do is to make sure IUSR_FOO has appropriate access to all the directories it will need. This generally comes down to Read permission on the template and map files, Read and Execute on the CGI directory, and Read and Write permission on the directory where MapServer creates output files. However, the restrictions on the IUSR_FOO account prevent it from getting access to domain resources. That's what local accounts are supposed to do. If you want your Web server to have access to domain resources (that is, shared files on other machines in the domain) you will need to change IIS to use a domain-level account rather than a local machine account. This is easy to do - under Internet Services Manager, right-click on the Web site and select Properties. On the Directory Security page, hit the Edit... button to edit anonymous access control, the hit the next Edit... button to change the account IIS uses for that Web site. Each site can have its own account if you need that. Be sure to create this account first, and remember that it needs to be a domain-level account. Now you will have IIS running in a domain-level security context. You can grant it permission to do anything to any file anywhere on your domain. This can be very helpful, but it can be very dangerous, too. Make sure you keep that new IIS account on a short leash - don't make it a member of any groups, and remember that anything that's accessible to all users on your domain will be accessible to the Web user. This is a vulnerability that's very unlikely to be exploited by a person, but puts you at risk of being attacked by viruses/worms/etc. It's not a bad thing - I do it on my systems - but you have to be careful. You should get your network administrator, or at least a consultant who knows something about NT security, to review your configuration and make recommendations before you expose it to the wide world. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Tuesday, July 31, 2001 1:54 PM To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From Chip.Hankley at GASAI.Com Tue Jul 31 13:06:18 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 31 Jul 2001 15:06:18 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HE LP! Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3DD7@postoffice.GASAI.Com> > Are you (both) using MapScript, or the MapServer CGI? And if you're > using PHP MapScript then with which version of PHP is it? > > Also, are you both running IIS/PWS... I'm using MS 3.4 w/ php 4.04pl1 on WinNT w/ PWS > or did one of you try with Apache? > Unfortunately b/c of internal politics, that's not an option right now... > Did you try on a local disk but different from the disk where the map > file lives, e.g. > - place .map file under c: > - place data files on D: (local HD) I only have one physical HD, BUT I tried a different _partition_ on the same disk, and that worked fine. I also tried reading the data off of a CD (IDE device, 2nd IDE Channel) and that also worked fine. If I substitute a drive letter that is _NOT_ local, or a UNC to another place on the network, it fails. BTW, I am specifying the locations in a map file, not using MapScript (I don't even know if you can do that...) Chip From morissette at dmsolutions.ca Tue Jul 31 13:09:07 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 31 Jul 2001 16:09:07 -0400 Subject: [mapserver-users] MS_PNG or MS_JPEG References: <004601c1190c$6b17d330$2f01a8c0@morpheus> Message-ID: <3B671063.240EFDEF@dmsolutions.ca> > Jim Burnett wrote: > > MS_PNG or MS_JPEG > > int saveImage(string filename, int type, int transparent, int > interlace, > int quality) > Writes image object to specifed filename. > Passing an empty filename sends output to stdout. In this > case, > the PHP header() function should be used to set the > documents's > content-type prior to calling saveImage(). > Type can be either MS_PNG or MS_JPEG > Quality should be a value in the range 0-95, higher value > implies > higher image quality and larger image sizes. > If quality is negative, then the default IJG JPEG quality > value is > used. > The function returns -1 on error. On success, it returns > either 0 > if writing to an external file, or the number of bytes written > if > output is sent to stdout. > > no GIF support? > The documentation you quoted was from MapServer 3.4 ... in that version, the saveImage() function had 2 possible forms depending on which GD you compiled with. So to answer your question, no there was no GIF support when using GD 1.8 but if you comiled MapServer with older versions of GD (1.2, 1.3 at least) then you could still use GIF (see http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs.html): ------ With GD 1.2, 1.3, 1.6: int saveImage(string filename, int transparent, int interlace) With GD 1.8 (only if JPEG enabled in GD 1.8): int saveImage(string filename, int type, int transparent, int interlace, int quality) ------ In MapServer 3.5, there is only one version of the saveImage() call which supports all the formats that your GD lib supports (see http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_docs35.html): ------ int saveImage(string filename, int type, int transparent, int interlace, int quality) Writes image object to specifed filename. Passing an empty filename sends output to stdout. In this case, the PHP header() function should be used to set the documents's content-type prior to calling saveImage(). Type can be either MS_GIF, MS_PNG, MS_JPEG or MS_WBMP (depends on which version of GD was used to compile MapScript) Quality should be a value in the range 0-95, higher value implies higher image quality and larger image sizes. If quality is negative, then the default IJG JPEG quality value is used (the quality value is ignored for all formats other than JPEG). The function returns -1 on error. On success, it returns either 0 if writing to an external file, or the number of bytes written if output is sent to stdout. ------ Note that you can also get a patched GD1.8.4 that supports GIF and will work with MapServer 3.5 ... as long as you're aware of the Unisys patent issues of course! ;) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Tue Jul 31 13:24:23 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 31 Jul 2001 15:24:23 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HE LP! Message-ID: Chip, Richard, Fwiw, here's what I know... I can confirm what you have experienced... putting data on a mapped drive or UNC named drive causes Mapserver to choke (I was using Win2k). Copying all the data to the c: drive (where Mapserver is installed) made good. IIS/PWS use an account called IUSR_. So, if you computer is called mapper, an account called IUSR_mapper is automatically created, and a random password is generated for it. This insures that anyone hitting the webserver is able to view the website. IIS service itself logs on as a local system account. Look forward to what you guys figure out, because it does have ramifications on how distributed mapplication is deployed. pk/ -- Puneet Kishor pkishor at geoanalytics.com www.geoanalytics.com GeoAnalyics, Inc. 1716 Fordem Ave Madison WI 53704 > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Tuesday, July 31, 2001 12:54 PM > To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] msDrawRaster TileIndex > TileItem Location > HE LP! > > > Richard and I are having the same problem I think... > > I'm beginning to think that on NT, your data HAS to be on a > local drive.... > > Lowell wrote: > >You might try dumping a simple shapefile over on the share > and adding it > as > >a layer in your .map file. Just to see if things on that > level work. > > I tried this yesterday and got the same results. I used a map > file with one > simple polygon layer. Did it local, worked fine, on a share, > didnt' work. > > >Have you tried blowing open the privs just to see if that fixes it? > > This is possible, does anyone know what USER IIS or PWS acts > as on NT? Does > it take on the credentials of whoever is logged in, or is it > something more > obsure, like %SYSTEM? > > Man, if anyone knows the definitive answer to this, please > speak up! This > has some significant ramifications for how I deploy some > applications, and > I'm totally stuck. > > Chip Hankley > From spaske at kapur-assoc.com Tue Jul 31 14:32:22 2001 From: spaske at kapur-assoc.com (Sam Paske) Date: Tue, 31 Jul 2001 16:32:22 -0500 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A53536E3DD3@postoffice.GASAI.Com> Message-ID: I remember wrestling with user priviledge issues when I first set up a mapserver site. I went around the issue a few times trying to get the cgi to work, yet restrict access to the map file (because that file contains drive and data path information, which could help compromise a server...). The user accessing the content, if coming from the internet, should be IUSR_* (the * could be a computer name or something else). This user is considered anonymous and has not authenticated in any way. Check your IIS directory security properties and see how your users are authenticating - you could be allowing a range of users to log on, from anonymous to domain authenticated. The domain of this user will most likely not be the domain(s) in which the machine is a member, but the machine name itself. In other words, IUSR_* is not a member of any domain. This is how our Win2000 server works. So if you want an internet user to have access to a file, you must explicitly grant IUSR_* access to the file, but that could be complicated if the file is on another machine in the domain. That machine may require _authorized_ (and authentic) users to be members of the domain, and that would not be a good idea for the anonymous internet account. Of course, this all depends on what user is accessing the file. Perhaps the anonymous user is not actually accessing the data files - the server software is. If the server software is accessing a file as admin (or similar), can it access the domain? I doubt it, because it is running under a local account, not a domain account. There are Microsoft protocols that can be used to access/execute files on other machines, but I am not too familiar with them. That is the extent of my Windows knowledge, and our guru is gone for the day. (And not because windows networks are sooo easy to administer.... :) Sam Paske Kapur AGS -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: Tuesday, July 31, 2001 12:54 PM To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From ed at topozone.com Tue Jul 31 17:10:31 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 31 Jul 2001 20:10:31 -0400 Subject: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Message-ID: <13858AA1A74F30419F319ACB66A9D122019146@mercator.topozone.com> Sam et al. - I think I covered a lot of this with my previous post, but there seems to be enough interest to warrant some clarification. I've worked with both Windows and UNIX networks for a long time, and I don't find either particularly hard to manage or easy to manage, but they're certainly different. It's really worth spending some time understanding the philosophy behind Windows networking before you expose your network assets to the world. One of the fundamental precepts of Windows NT/2000 security is that EVERY access to every resource on every system is done through a security context. For most purposes, it's simple enough to think of this as a user context or user login. For every operation there is always the notion of an authenticated user context. In particular, the comment "This user is considered anonymous and has not authenticated in any way" is correct from a Web site security point of view (no dialog box popped up when someone tried to access your Web page) but it is completely incorrect from a Windows networking point of view. When a Web site developer tells IIS to permit anonymous access to a Web site, or to a page on a site, Windows basically says "OK, since all those Web users look the same to me, and they haven't logged in anywhere, YOU give me a valid user account and password for them to use." This is the role served, by default, by the IUSR_ account. You can change that to any account you like, but obviously all Web visitors use the same account because there's no way to tell them apart. Although (as someone mentioned) the Web server itself (IIS) is running under the local SYSTEM account, it impersonates the IUSR_ account for all access to files and other resources. This includes every single file, even if your Web server is doing nothing but serving one, simple HTML file. The IUSR_ account must have Read access to that file. Windows networking supports local machine accounts and domain accounts. Local machine accounts can ONLY have access to resources on their local machine. Domain accounts can use resources on any machine on the network, provided they are granted access rights to those resources. You CAN'T sit down at machine FOO and set the permissions on a file to give BAR\IUSR_BAR Read access to that file. (BAR\IUSR_BAR means the local account IUSR_BAR on the MACHINE named BAR.) If FOO and BAR are members of a domain named BAZ, then you can grant access (on FOO) to any domain account (BAZ\Guest or BAZ\Administrator or anything). If you want IIS to grant an anonymous Web visitor rights to read any file that's not on the local IIS machine, you MUST change IIS' default (and conservative) setting and assign a domain user account for it to use. You can then set the access rights on any file or other resource to grant that domain user account access. That machine must have access to a domain controller so the IIS login account can be authenticated when the first anonymous access occurs. Always create an account that is used only for this purpose; don't share another account. Always realize that this account can potentially have access to any resource on your network, so be careful. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Sam Paske [mailto:spaske at kapur-assoc.com] Sent: Tuesday, July 31, 2001 5:32 PM To: Hankley, Chip Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! I remember wrestling with user priviledge issues when I first set up a mapserver site. I went around the issue a few times trying to get the cgi to work, yet restrict access to the map file (because that file contains drive and data path information, which could help compromise a server...). The user accessing the content, if coming from the internet, should be IUSR_* (the * could be a computer name or something else). This user is considered anonymous and has not authenticated in any way. Check your IIS directory security properties and see how your users are authenticating - you could be allowing a range of users to log on, from anonymous to domain authenticated. The domain of this user will most likely not be the domain(s) in which the machine is a member, but the machine name itself. In other words, IUSR_* is not a member of any domain. This is how our Win2000 server works. So if you want an internet user to have access to a file, you must explicitly grant IUSR_* access to the file, but that could be complicated if the file is on another machine in the domain. That machine may require _authorized_ (and authentic) users to be members of the domain, and that would not be a good idea for the anonymous internet account. Of course, this all depends on what user is accessing the file. Perhaps the anonymous user is not actually accessing the data files - the server software is. If the server software is accessing a file as admin (or similar), can it access the domain? I doubt it, because it is running under a local account, not a domain account. There are Microsoft protocols that can be used to access/execute files on other machines, but I am not too familiar with them. That is the extent of my Windows knowledge, and our guru is gone for the day. (And not because windows networks are sooo easy to administer.... :) Sam Paske Kapur AGS -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Hankley, Chip Sent: Tuesday, July 31, 2001 12:54 PM To: 'Richard Greenwood'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] msDrawRaster TileIndex TileItem Location HELP! Richard and I are having the same problem I think... I'm beginning to think that on NT, your data HAS to be on a local drive.... Lowell wrote: >You might try dumping a simple shapefile over on the share and adding it as >a layer in your .map file. Just to see if things on that level work. I tried this yesterday and got the same results. I used a map file with one simple polygon layer. Did it local, worked fine, on a share, didnt' work. >Have you tried blowing open the privs just to see if that fixes it? This is possible, does anyone know what USER IIS or PWS acts as on NT? Does it take on the credentials of whoever is logged in, or is it something more obsure, like %SYSTEM? Man, if anyone knows the definitive answer to this, please speak up! This has some significant ramifications for how I deploy some applications, and I'm totally stuck. Chip Hankley From morissette at dmsolutions.ca Tue Jul 31 17:13:22 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 31 Jul 2001 20:13:22 -0400 Subject: [mapserver-users] getExtent / setExtent problems References: Message-ID: <3B6749A2.68898DF4@dmsolutions.ca> Puneet Kishor wrote: > > Anyone, any idea how I can retrieve the row_id for a shape.dbf without > actually having to add that as a field? > When you call dbase_get_record() or dbase_get_record_with_names() to read a DBF record you have to pass a record_id ... the corresponding shapeid is (record_id - 1) In other words, the shapeids in the .shp files are in the same sequence as the records in the DBF... it's just that shapeids start at 0 in MapScript, and DBF recordids start at 1 in the PHP dbase module. > -- > > a house-keeping question -- > > I find that the messages I post to the mapserver list take several hours to > appear in my email... 5-8 hours delay. Does the mapserver listserver not > broadcast the posted emails immediately? Seems not, so, is it not possible > to do so? > You're not the first one to report this... I'm lucky I'm probably in the first 100 in the list and get the messages within 30 minutes but I heard of up to 9 hours delays from others too. I Emailed Steve about this not long ago... and he forwarded my request to the list admins but I still have no news. I never administered a list like this, but perhaps a cleanup of the addresses that fail too often could help? Or perhaps offering a daily-digest option (for those who want it) could reduce the load on the mail server and help a bit? > Is it possible to migrate to a web-based forums so we can access the forums > (and not just the archives) from anywhere? I use Cold Fusion driven forums a > lot (Macromedia's CF support forums are on the web), and the Forums software > is open source, although it does require a CF server (I might be able to > convince my company to host 'em). There are other cgi-driven forums as well. > Please no!!!!! Unless there is still an option to receive the messages and reply by Email. ;) I hate those web-only forums where it takes forever to read and reply to a message. (Of course, that's just my opinion :) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From JohnHockaday at auslig.gov.au Tue Jul 31 17:34:15 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 1 Aug 2001 10:34:15 +1000 Subject: [mapserver-users] Help unsubscribe me Message-ID: <53273E187450D311ACF6009027927B12022C0DE7@smtpgate.auslig.gov.au> "If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe mapserver-users " John > -----Original Message----- > From: Tsering Wangyal Shawa [SMTP:shawatw at Princeton.EDU] > Sent: Tuesday, July 31, 2001 11:55 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Help unsubscribe me > > I am trying to unsubscribe the list as written in the MapServer document > but could not do it. Since, I will be away for a month and will not get > access my email. Any help will be appreciated. > > Thanks. > -Wangyal From pkishor at GeoAnalytics.com Tue Jul 31 17:48:03 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 31 Jul 2001 19:48:03 -0500 Subject: [mapserver-users] getExtent / setExtent problems In-Reply-To: <3B6749A2.68898DF4@dmsolutions.ca> Message-ID: <200108010049.TAA28966@lists.gis.umn.edu> Hi Daniel, On Tuesday, July 31, 2001, at 07:13 PM, Daniel Morissette wrote: > Puneet Kishor wrote: >> >> Anyone, any idea how I can retrieve the row_id for a shape.dbf without >> actually having to add that as a field? >> > > When you call dbase_get_record() or dbase_get_record_with_names() to > read a DBF record you have to pass a record_id ... the corresponding > shapeid is (record_id - 1) > > In other words, the shapeids in the .shp files are in the same sequence > as the records in the DBF... it's just that shapeids start at 0 in > MapScript, and DBF recordids start at 1 in the PHP dbase module. Thanks for the explanation. I have to find a work-around though... my problem is selecting records from a MySQL table, and using the primary key (parcel_id, or tax_id, or whatever_id) to find the associated record in the .dbf, get its row number, lookup the shape to get its extent, etc. I have decided to load a copy of the dbf into a MySQL table and thereby completely bypassing the dbf altogether. Works much better except for the minor issue of keeping the dbf and its MySQL copy synced. Maybe having an Xbase query method in Mapscript (SDL talked of something like this in v. 3.5) would alleviate such contortions. > >> -- >> >> a house-keeping question -- >> >> I find that the messages I post to the mapserver list take several >> hours to >> appear in my email... 5-8 hours delay. Does the mapserver listserver >> not >> broadcast the posted emails immediately? Seems not, so, is it not >> possible >> to do so? >> > > You're not the first one to report this... I'm lucky I'm probably in the > first 100 in the list and get the messages within 30 minutes but I heard > of up to 9 hours delays from others too. > > I Emailed Steve about this not long ago... and he forwarded my request > to the list admins but I still have no news. > > I never administered a list like this, but perhaps a cleanup of the > addresses that fail too often could help? Or perhaps offering a > daily-digest option (for those who want it) could reduce the load on the > mail server and help a bit? As I recall, there are approx. 400 subscribers to the list... that should not be a _large_ load. In any case, I would be happy to receive mail digest format if that is the only way to get the postings quicker. I do get 7-10 hour delays. So, usually I find it better to cc the email to the original poster as well (like this one to you). However, if in a bind to get an answer quickly, the delay still stinks. > > >> Is it possible to migrate to a web-based forums so we can access the >> forums >> (and not just the archives) from anywhere? I use Cold Fusion driven >> forums a >> lot (Macromedia's CF support forums are on the web), and the Forums >> software >> is open source, although it does require a CF server (I might be able >> to >> convince my company to host 'em). There are other cgi-driven forums as >> well. >> > > Please no!!!!! Unless there is still an option to receive the messages > and reply by Email. ;) > I hate those web-only forums where it takes forever to read and reply to > a message. (Of course, that's just my opinion :) You are absolutely right... but, indeed, there are forums that include the email option... I have been developing on Cold Fusion now for half a decade, and find the CF support forums invaluable (forums.allaire.com). I post on the forum, of course, it is instantaneous. And, I have an option of subscribing to that thread. So, all future postings to that thread (or to any/all subscribed threads) get emailed to me. In the email is embedded a link to the actual post on the web as well. This way I have the best of both worlds... immediate posting and response (usually all queries get answered within the hour), and I don't even have to go to the web site if I don't want to or can't... emails come to me. Right now there is the issue of the delay, of course. In addition, the search interface is really cruddy... surely, a threaded interface is more attractive and intuitive. Again, something to think about. pk/ From Rich at GreenwoodMap.com Tue Jul 31 20:07:12 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 31 Jul 2001 21:07:12 -0600 Subject: [mapserver-users] Image Speed Questions---Generic Message-ID: <5.1.0.14.0.20010731210250.040858c0@mail.GreenwoodMap.com> Hello List, Ed McNierney sent this reply to me in which he explains strips and rows in TIFF files. I found his explanation useful and informative. Since I did not see it come thru the list, I thought I'd forward it. Rich >Each TIFF file is made up of one or more strips, each of which contains >one or more rows. Files with lots of rows per strip are smaller (under >any compression method) while files with few rows per strip are faster. >That's because the strip needs to be read from its beginning in order to >find any row inside it. This is pretty insignificant for uncompressed >TIFFs, because the location of any row start inside a strip can be >readily calculated, and the file read pointer moved right there. > >For compressed TIFFs (packbits, lzw, or other) this is more of a >problem. Each strip is compressed as a single block of data, and >(especially with LZW) you can't just jump to the start of data in the >middle of a compressed block. You need to actually start uncompressing >the whole strip starting from the beginning until you generate the >appropriate number of output bytes to get you to the start of your >desired row. THEN you can decompress and read your data. > >The worst possible case is if you need the last row of a single-strip >TIFF/LZW file. The entire file needs to be read from disk AND >decompressed in order to get your data. For a typical topo map, that's >reading and decoding some 7,000 rows just to figure out the starting >point of the last row! > >LZW vs. packbits is a tricky question - it depends. LZW compression is >more compute-intensive, but it uses computation that modern, fast >processors do well. If you have a fast CPU, that's a point in LZW's >favor. If you have a slow disk, that's in LZW's favor, too, because >you'll need to read less from the disk. This is particularly true for a >non-SCSI disk. You should look carefully at your data set, too. Aerial >photos (DOQQs) are pretty incompressible under any of these methods, and >you're better off just leaving them uncompressed. For DRGs, LZW >compression produces files that are about 1/3rd the size of PackBits >compression, and (with a fast CPU) the tradeoff is certainly worth it. > >Look at http://www.remotesensing.org for the libtiff and libgeotiff >projects. They'll give you all the tools you need to fiddle with TIFFs. > > - Ed > >Ed McNierney >Chief Mapmaker >TopoZone.com >ed at topozone.com >(978) 251-4242 > > >-----Original Message----- >From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] >Sent: Tuesday, July 31, 2001 1:48 PM >To: Ed McNierney >Subject: RE: [mapserver-users] Image Speed Questions---Generic > > >Ed, > >Thanks for your excellent discussion of image speed issues. I was with >you >for about the first 2/3, but you lost me when you went over the various >stripping options. How would you go about determining how many rows and >strips your tiff file had? What tools would you recommend for altering >tiff >file formats? What about LZW compression; what effect does that have on >performance issues? > >Thanks for sharing your expertise. > >Rich > >Richard W. Greenwood, PLS >Greenwood Mapping, Inc. >Rich at GreenwoodMap.com >(307) 733-0203 >http://www.GreenwoodMap.com From bludwulf at crackrock.net Mon Jul 23 22:28:41 2001 From: bludwulf at crackrock.net (Beau Gunderson) Date: Mon, 23 Jul 2001 22:28:41 -0700 (MST) Subject: [mapserver-users] Documentation bug In-Reply-To: <200107232200.f6NM0Nd24686@antonia.nn.cl> Message-ID: While we're at it, addFeature is in the mapObj methods when it should be in the layerObj methods. =) On Mon, 23 Jul 2001, Vinko Vrsalovic B. wrote: > Object: > > mapObj > > Method: > > embedScalebar() should be embedScalebar($img) > embedLegend() should be embedLegend($img) > > From rburghol at vt.edu Sun Jul 1 04:52:36 2001 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Sun, 01 Jul 2001 07:52:36 -0400 Subject: [mapserver-users] color selection? References: <614FCE5F14A6D41180C200010240D6A2A905FE@LINNMS> <3CF4284F.530F8F07@swoodbridge.com> <20020530074233.GA3681@intevation.de> Message-ID: <3B3F0F04.1086A25E@vt.edu> Does anyone have a hint as to a little "color picker" application that one could use to help decide on the numbers needed for line and backgroiund colors? One that runs on a linux machine preferably?? sorry for the triviality. Robert Burgholzer