From tmm8 at Lehigh.EDU Thu May 1 07:24:52 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Thu, 01 May 2008 10:24:52 -0400 Subject: [mapserver-users] finding php_mapserver.so Message-ID: <4819D2B4.5090606@lehigh.edu> So our installation of Mapserver, in combination, with PMapper, we are getting an error that it cannot find php_mapserver.so. While I configured Mapserver to work with PHP, and it went through fine, I cannot find the php_mapserver.so file anywhere on my server. Was it supposed to be delivered in the mapserver package? If so, where would it have gone? If not, where can I find it? Thanks, Tim -- Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary From Kyle.Wilcox at noaa.gov Thu May 1 07:40:23 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Thu, 01 May 2008 10:40:23 -0400 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819D2B4.5090606@lehigh.edu> References: <4819D2B4.5090606@lehigh.edu> Message-ID: <4819D657.4020003@Noaa.gov> If you installed Mapserver from source with the ---with-php=DIR option and everything went ok, the php_mapscript.so file will be located in the mapscript/php3/ directory. Copy this file to your PHP extensions directory. You can find the extensions directory by doing a ]$ php -i | grep extension_dir. You may want to rename php_mapscript.so to something like php_mapscript_MAPSERVERVERSION.so. There a setting in the pmapper config files called msVersion. You must set this to MAPSERVERSION if you change the name of the file. Tim McGeary wrote: > So our installation of Mapserver, in combination, with PMapper, we are > getting an error that it cannot find php_mapserver.so. While I > configured Mapserver to work with PHP, and it went through fine, I > cannot find the php_mapserver.so file anywhere on my server. > > Was it supposed to be delivered in the mapserver package? If so, where > would it have gone? If not, where can I find it? > > Thanks, > Tim > -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov From tmm8 at Lehigh.EDU Thu May 1 07:50:12 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Thu, 01 May 2008 10:50:12 -0400 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819D657.4020003@Noaa.gov> References: <4819D2B4.5090606@lehigh.edu> <4819D657.4020003@Noaa.gov> Message-ID: <4819D8A4.5020002@lehigh.edu> No, it isn't there. I did a: find / -name php_mapscript.so and it came up with nothing. So it isn't on the server at all. Yes, I did install Mapserver from source. Here's what is in mapscript/php3 [root at rust php3]# pwd /usr/local/mapserver-5.0.2/mapscript/php3 [root at rust php3]# ls -l total 716 drwxr-xr-x 2 root root 4096 Jan 28 10:56 examples -rw-r--r-- 1 root root 2103 Jul 26 2004 hashtable_i.c -rw-r--r-- 1 root root 4344 Apr 29 15:37 Makefile -rwxr-xr-x 1 root root 3770 Jun 11 2007 Makefile.in -rwxr-xr-x 1 root root 2097 Feb 14 2006 Makefile.vc -rwxr-xr-x 1 root root 34328 Aug 16 2007 mapscript_i.c -rw-r--r-- 1 root root 1049 Feb 14 2006 nmake.opt -rwxr-xr-x 1 root root 502728 Jan 8 12:04 php_mapscript.c -rwxr-xr-x 1 root root 16760 Aug 16 2007 php_mapscript.h -rw-r--r-- 1 root root 17046 Jun 15 2007 php_mapscript_util.c -rw-r--r-- 1 root root 7450 Jun 15 2007 php_mapscript_util.h -rw-r--r-- 1 root root 25958 Jun 14 2005 php_proj.c -rw-r--r-- 1 root root 3103 Jul 23 2007 php_regex.c -rwxr-xr-x 1 root root 68315 Jan 8 12:04 README -rwxr-xr-x 1 root root 3821 Jun 21 2001 README.WIN32 Thanks, Tim Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary Kyle Wilcox wrote: > If you installed Mapserver from source with the ---with-php=DIR option > and everything went ok, the php_mapscript.so file will be located in the > mapscript/php3/ directory. Copy this file to your PHP extensions > directory. You can find the extensions directory by doing a ]$ php -i > | grep extension_dir. > > You may want to rename php_mapscript.so to something like > php_mapscript_MAPSERVERVERSION.so. > > There a setting in the pmapper config files called msVersion. You must > set this to MAPSERVERSION if you change the name of the file. > > > Tim McGeary wrote: >> So our installation of Mapserver, in combination, with PMapper, we are >> getting an error that it cannot find php_mapserver.so. While I >> configured Mapserver to work with PHP, and it went through fine, I >> cannot find the php_mapserver.so file anywhere on my server. >> >> Was it supposed to be delivered in the mapserver package? If so, >> where would it have gone? If not, where can I find it? >> >> Thanks, >> Tim >> > From tmm8 at Lehigh.EDU Thu May 1 08:09:00 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Thu, 01 May 2008 11:09:00 -0400 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819D945.4090809@Noaa.gov> References: <4819D2B4.5090606@lehigh.edu> <4819D657.4020003@Noaa.gov> <4819D878.8090108@lehigh.edu> <4819D945.4090809@Noaa.gov> Message-ID: <4819DD0C.3070200@lehigh.edu> I did specify the --with-php=DIR as --with-php=/usr/include/php/ Here's the output of the configure script for the PHP/Mapscript: configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes checking for location of config.h or php_config.h... /usr/include/php//main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured. checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -------------- Renderer Settings --------- zlib support: png support: jpeg support: -DUSE_JPEG iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: Proj.4 support: EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: GDAL support: GEOS support: Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: WMS Client: WFS Server: WFS Client: WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes FYI, I'm running PHP 5.1.6 Tim Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary Kyle Wilcox wrote: > Did you specify the --with-php=DIR? > > DIR is obviously the directory of the php version you want to use. > > Step through the output from ./configure and see what it says about > PHP/Mapscript. I think it is towards the end. > > > Tim McGeary wrote: >> No, it isn't there. I did a: >> >> find / -name php_mapscript.so >> >> and it came up with nothing. So it isn't on the server at all. Yes, >> I did install Mapserver from source. >> >> Here's what is in mapscript/php3 >> >> [root at rust php3]# pwd >> /usr/local/mapserver-5.0.2/mapscript/php3 >> [root at rust php3]# ls -l >> total 716 >> drwxr-xr-x 2 root root 4096 Jan 28 10:56 examples >> -rw-r--r-- 1 root root 2103 Jul 26 2004 hashtable_i.c >> -rw-r--r-- 1 root root 4344 Apr 29 15:37 Makefile >> -rwxr-xr-x 1 root root 3770 Jun 11 2007 Makefile.in >> -rwxr-xr-x 1 root root 2097 Feb 14 2006 Makefile.vc >> -rwxr-xr-x 1 root root 34328 Aug 16 2007 mapscript_i.c >> -rw-r--r-- 1 root root 1049 Feb 14 2006 nmake.opt >> -rwxr-xr-x 1 root root 502728 Jan 8 12:04 php_mapscript.c >> -rwxr-xr-x 1 root root 16760 Aug 16 2007 php_mapscript.h >> -rw-r--r-- 1 root root 17046 Jun 15 2007 php_mapscript_util.c >> -rw-r--r-- 1 root root 7450 Jun 15 2007 php_mapscript_util.h >> -rw-r--r-- 1 root root 25958 Jun 14 2005 php_proj.c >> -rw-r--r-- 1 root root 3103 Jul 23 2007 php_regex.c >> -rwxr-xr-x 1 root root 68315 Jan 8 12:04 README >> -rwxr-xr-x 1 root root 3821 Jun 21 2001 README.WIN32 >> >> Thanks, >> Tim >> >> Tim McGeary >> Senior Systems Specialist >> Lehigh University >> 610-758-4998 >> tim.mcgeary at lehigh.edu >> Google Talk: timmcgeary >> Yahoo IM: timmcgeary >> >> Kyle Wilcox wrote: >>> If you installed Mapserver from source with the ---with-php=DIR >>> option and everything went ok, the php_mapscript.so file will be >>> located in the mapscript/php3/ directory. Copy this file to your PHP >>> extensions directory. You can find the extensions directory by >>> doing a ]$ php -i | grep extension_dir. >>> >>> You may want to rename php_mapscript.so to something like >>> php_mapscript_MAPSERVERVERSION.so. >>> >>> There a setting in the pmapper config files called msVersion. You >>> must set this to MAPSERVERSION if you change the name of the file. >>> >>> >>> Tim McGeary wrote: >>>> So our installation of Mapserver, in combination, with PMapper, we >>>> are getting an error that it cannot find php_mapserver.so. While I >>>> configured Mapserver to work with PHP, and it went through fine, I >>>> cannot find the php_mapserver.so file anywhere on my server. >>>> >>>> Was it supposed to be delivered in the mapserver package? If so, >>>> where would it have gone? If not, where can I find it? >>>> >>>> Thanks, >>>> Tim >>>> >>> > From susanne.kalliany at tefis.at Thu May 1 08:24:44 2008 From: susanne.kalliany at tefis.at (susanne.kalliany at tefis.at) Date: Thu, 1 May 2008 17:24:44 +0200 (CEST) Subject: [mapserver-users] PostGis not displayed byMapServer Message-ID: <83.65.63.194.1209655484.wm@webmail.inode.at> Hello to everyone, I have an (already mentioned but - as it seems to me - not yet solved) problem concerning PostGis used with MapServer. My application can show shape files but not postgis-files. There are no output files (png) generated for this layer. Below is my mapfile. I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany ------------------------------ MAP NAME global_map STATUS ON SIZE 1000 700 EXTENT -100300 260500 -99100 261600 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE png24 WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER NAME Ortho GROUP Ortho DATA "C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif" projection "AUTO" end TYPE RASTER MINSCALE 10 MAXSCALE 10001 STATUS ON DUMP TRUE END LAYER CONNECTIONTYPE postgis NAME UAbt GROUP UAbt CONNECTION "user=postgres password=xxxxxxxx dbname=tefisdb host=localhost port=5432" STATUS ON TYPE line DATA "roads_geom from roads" CLASS SIZE 16 COLOR 0 0 255 END DUMP TRUE END END UAbt with or without projection "AUTO" -- DI. Susanne KALLIANY - susanne.kalliany at tefis.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software und GIS) Mobiltelephon: +43 664 1424269 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 From Kyle.Wilcox at noaa.gov Thu May 1 08:32:19 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Thu, 01 May 2008 11:32:19 -0400 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819DD0C.3070200@lehigh.edu> References: <4819D2B4.5090606@lehigh.edu> <4819D657.4020003@Noaa.gov> <4819D878.8090108@lehigh.edu> <4819D945.4090809@Noaa.gov> <4819DD0C.3070200@lehigh.edu> Message-ID: <4819E283.1070609@Noaa.gov> After you run configure, compile mapserver: ]$ make You should see something like this at the end: make[1]: Entering directory `/mapserver/directory/mapscript/php3' g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o -L/mapserver/directory -lmapserver -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lc -lz -lm -lstdc++ make[1]: Leaving directory `/mapserver/directory/mapscript/php3' ]$ ls mapscript/php3/php_mapscript.so If it isn't there, go into the mapscript/php3 directory and type: ]$ make clean && make If that doesn't work it is beyond my knowledge! I just know what I've read in the documentation. Tim McGeary wrote: > I did specify the --with-php=DIR as --with-php=/usr/include/php/ > > Here's the output of the configure script for the PHP/Mapscript: > > configure: checking for PHP/MapScript module options... > checking for g++ -shared ... yes > checking for location of config.h or php_config.h... > /usr/include/php//main/php_config.h > checking whether we have PHP3 or PHP4... -DPHP4 > checking whether we should use PHP's regex... yes > found regex_extra.h - building PHP MapScript with PHP's bundled regex > PHP/MapScript module configured. > checking if --enable-runpath requested... no > checking if --with-java-include-os-name specified... no, autodetected linux > configure: creating ./config.status > config.status: creating Makefile > config.status: creating mapscript/php3/Makefile > config.status: creating mapscript/java/Makefile > config.status: creating mapscript/csharp/Makefile > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: > > -------------- Renderer Settings --------- > zlib support: > png support: > jpeg support: -DUSE_JPEG > iconv support: -DUSE_ICONV > AGG support: > AGG Freetype support: > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: > Proj.4 support: > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: > GDAL support: > GEOS support: > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: > WMS Client: > WFS Server: > WFS Client: > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: yes > > > FYI, I'm running PHP 5.1.6 > > Tim > > Tim McGeary > Senior Systems Specialist > Lehigh University > 610-758-4998 > tim.mcgeary at lehigh.edu > Google Talk: timmcgeary > Yahoo IM: timmcgeary > > Kyle Wilcox wrote: >> Did you specify the --with-php=DIR? >> >> DIR is obviously the directory of the php version you want to use. >> >> Step through the output from ./configure and see what it says about >> PHP/Mapscript. I think it is towards the end. >> >> >> Tim McGeary wrote: >>> No, it isn't there. I did a: >>> >>> find / -name php_mapscript.so >>> >>> and it came up with nothing. So it isn't on the server at all. Yes, >>> I did install Mapserver from source. >>> >>> Here's what is in mapscript/php3 >>> >>> [root at rust php3]# pwd >>> /usr/local/mapserver-5.0.2/mapscript/php3 >>> [root at rust php3]# ls -l >>> total 716 >>> drwxr-xr-x 2 root root 4096 Jan 28 10:56 examples >>> -rw-r--r-- 1 root root 2103 Jul 26 2004 hashtable_i.c >>> -rw-r--r-- 1 root root 4344 Apr 29 15:37 Makefile >>> -rwxr-xr-x 1 root root 3770 Jun 11 2007 Makefile.in >>> -rwxr-xr-x 1 root root 2097 Feb 14 2006 Makefile.vc >>> -rwxr-xr-x 1 root root 34328 Aug 16 2007 mapscript_i.c >>> -rw-r--r-- 1 root root 1049 Feb 14 2006 nmake.opt >>> -rwxr-xr-x 1 root root 502728 Jan 8 12:04 php_mapscript.c >>> -rwxr-xr-x 1 root root 16760 Aug 16 2007 php_mapscript.h >>> -rw-r--r-- 1 root root 17046 Jun 15 2007 php_mapscript_util.c >>> -rw-r--r-- 1 root root 7450 Jun 15 2007 php_mapscript_util.h >>> -rw-r--r-- 1 root root 25958 Jun 14 2005 php_proj.c >>> -rw-r--r-- 1 root root 3103 Jul 23 2007 php_regex.c >>> -rwxr-xr-x 1 root root 68315 Jan 8 12:04 README >>> -rwxr-xr-x 1 root root 3821 Jun 21 2001 README.WIN32 >>> >>> Thanks, >>> Tim >>> >>> Tim McGeary >>> Senior Systems Specialist >>> Lehigh University >>> 610-758-4998 >>> tim.mcgeary at lehigh.edu >>> Google Talk: timmcgeary >>> Yahoo IM: timmcgeary >>> >>> Kyle Wilcox wrote: >>>> If you installed Mapserver from source with the ---with-php=DIR >>>> option and everything went ok, the php_mapscript.so file will be >>>> located in the mapscript/php3/ directory. Copy this file to your >>>> PHP extensions directory. You can find the extensions directory by >>>> doing a ]$ php -i | grep extension_dir. >>>> >>>> You may want to rename php_mapscript.so to something like >>>> php_mapscript_MAPSERVERVERSION.so. >>>> >>>> There a setting in the pmapper config files called msVersion. You >>>> must set this to MAPSERVERSION if you change the name of the file. >>>> >>>> >>>> Tim McGeary wrote: >>>>> So our installation of Mapserver, in combination, with PMapper, we >>>>> are getting an error that it cannot find php_mapserver.so. While I >>>>> configured Mapserver to work with PHP, and it went through fine, I >>>>> cannot find the php_mapserver.so file anywhere on my server. >>>>> >>>>> Was it supposed to be delivered in the mapserver package? If so, >>>>> where would it have gone? If not, where can I find it? >>>>> >>>>> Thanks, >>>>> Tim >>>>> >>>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov From rwburgholzer at deq.virginia.gov Thu May 1 09:57:09 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 1 May 2008 12:57:09 -0400 Subject: [mapserver-users] PostGis not displayed byMapServer Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D1B@deqex01.deq.local> Susanne, Many things can go wrong with your postgis layer, I have two suggestions that may get you moving on your way though: 1) Turn on the DEBUG and look at the PostGIS call on your layer. In MS5+ this is done by including the following in your MAP definition (top of mapfile, you choose the logfile name of course): DEBUG ON CONFIG "MS_ERRORFILE" "C:\Temp\mapserver.log" And then "DEBUG ON" in your layer. 2) I notice there is no projection info on your MAP or your LAYER, I always have that as an explicit declaration. i.e.: PROJECTION "init=epsg:4326" END Entries in both the MAP block and in the LAYER, where the epsg corresponds to your projections. HTH, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of susanne.kalliany at tefis.at Sent: Thursday, May 01, 2008 11:25 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGis not displayed byMapServer Hello to everyone, I have an (already mentioned but - as it seems to me - not yet solved) problem concerning PostGis used with MapServer. My application can show shape files but not postgis-files. There are no output files (png) generated for this layer. Below is my mapfile. I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany ------------------------------ MAP NAME global_map STATUS ON SIZE 1000 700 EXTENT -100300 260500 -99100 261600 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE png24 WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER NAME Ortho GROUP Ortho DATA "C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif" projection "AUTO" end TYPE RASTER MINSCALE 10 MAXSCALE 10001 STATUS ON DUMP TRUE END LAYER CONNECTIONTYPE postgis NAME UAbt GROUP UAbt CONNECTION "user=postgres password=xxxxxxxx dbname=tefisdb host=localhost port=5432" STATUS ON TYPE line DATA "roads_geom from roads" CLASS SIZE 16 COLOR 0 0 255 END DUMP TRUE END END UAbt with or without projection "AUTO" -- DI. Susanne KALLIANY - susanne.kalliany at tefis.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software und GIS) Mobiltelephon: +43 664 1424269 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From tmm8 at Lehigh.EDU Thu May 1 10:13:26 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Thu, 01 May 2008 13:13:26 -0400 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819E283.1070609@Noaa.gov> References: <4819D2B4.5090606@lehigh.edu> <4819D657.4020003@Noaa.gov> <4819D878.8090108@lehigh.edu> <4819D945.4090809@Noaa.gov> <4819DD0C.3070200@lehigh.edu> <4819E283.1070609@Noaa.gov> Message-ID: <4819FA36.1070905@lehigh.edu> I did the make again for kicks and sure enough it is there now. That is so odd because I know I did that before. Thank you for being persistent and patient with me. Cheers, Tim Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary Kyle Wilcox wrote: > After you run configure, compile mapserver: > > ]$ make > > You should see something like this at the end: > > make[1]: Entering directory `/mapserver/directory/mapscript/php3' > g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o > mapscript_i.o php_regex.o -L/mapserver/directory -lmapserver -ltiff > -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -ljpeg -lgd -L/usr/lib -lgd > -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lc -lz -lm -lstdc++ > make[1]: Leaving directory `/mapserver/directory/mapscript/php3' > > ]$ ls mapscript/php3/php_mapscript.so > > If it isn't there, go into the mapscript/php3 directory and type: > > ]$ make clean && make > > > If that doesn't work it is beyond my knowledge! I just know what I've > read in the documentation. > > > Tim McGeary wrote: >> I did specify the --with-php=DIR as --with-php=/usr/include/php/ >> >> Here's the output of the configure script for the PHP/Mapscript: >> >> configure: checking for PHP/MapScript module options... >> checking for g++ -shared ... yes >> checking for location of config.h or php_config.h... >> /usr/include/php//main/php_config.h >> checking whether we have PHP3 or PHP4... -DPHP4 >> checking whether we should use PHP's regex... yes >> found regex_extra.h - building PHP MapScript with PHP's bundled regex >> PHP/MapScript module configured. >> checking if --enable-runpath requested... no >> checking if --with-java-include-os-name specified... no, autodetected >> linux >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: creating mapscript/php3/Makefile >> config.status: creating mapscript/java/Makefile >> config.status: creating mapscript/csharp/Makefile >> >> MapServer is now configured for >> >> -------------- Compiler Info ------------- >> C compiler: gcc -O2 -fPIC -Wall >> C++ compiler: g++ -O2 -fPIC -Wall >> Debug: -DNEED_NONBLOCKING_STDERR >> Generic NINT: >> Threading support: >> >> -------------- Renderer Settings --------- >> zlib support: >> png support: >> jpeg support: -DUSE_JPEG >> iconv support: -DUSE_ICONV >> AGG support: >> AGG Freetype support: >> Ming(flash) support: >> PDFLib support: >> >> -------------- Data Format Drivers ------- >> native tiff support: -DUSE_TIFF >> PostGIS support: >> Proj.4 support: >> EPPL7 support: -DUSE_EPPL >> ArcSDE support: >> OGR support: >> GDAL support: >> GEOS support: >> Oracle Spatial support: >> FastCGI support: >> >> -------------- OGC Services -------------- >> WMS Server: >> WMS Client: >> WFS Server: >> WFS Client: >> WCS Server: >> SOS Server: >> >> -------------- MapScript ----------------- >> PHP MapScript: yes >> >> >> FYI, I'm running PHP 5.1.6 >> >> Tim >> >> Tim McGeary >> Senior Systems Specialist >> Lehigh University >> 610-758-4998 >> tim.mcgeary at lehigh.edu >> Google Talk: timmcgeary >> Yahoo IM: timmcgeary >> >> Kyle Wilcox wrote: >>> Did you specify the --with-php=DIR? >>> >>> DIR is obviously the directory of the php version you want to use. >>> >>> Step through the output from ./configure and see what it says about >>> PHP/Mapscript. I think it is towards the end. >>> >>> >>> Tim McGeary wrote: >>>> No, it isn't there. I did a: >>>> >>>> find / -name php_mapscript.so >>>> >>>> and it came up with nothing. So it isn't on the server at all. >>>> Yes, I did install Mapserver from source. >>>> >>>> Here's what is in mapscript/php3 >>>> >>>> [root at rust php3]# pwd >>>> /usr/local/mapserver-5.0.2/mapscript/php3 >>>> [root at rust php3]# ls -l >>>> total 716 >>>> drwxr-xr-x 2 root root 4096 Jan 28 10:56 examples >>>> -rw-r--r-- 1 root root 2103 Jul 26 2004 hashtable_i.c >>>> -rw-r--r-- 1 root root 4344 Apr 29 15:37 Makefile >>>> -rwxr-xr-x 1 root root 3770 Jun 11 2007 Makefile.in >>>> -rwxr-xr-x 1 root root 2097 Feb 14 2006 Makefile.vc >>>> -rwxr-xr-x 1 root root 34328 Aug 16 2007 mapscript_i.c >>>> -rw-r--r-- 1 root root 1049 Feb 14 2006 nmake.opt >>>> -rwxr-xr-x 1 root root 502728 Jan 8 12:04 php_mapscript.c >>>> -rwxr-xr-x 1 root root 16760 Aug 16 2007 php_mapscript.h >>>> -rw-r--r-- 1 root root 17046 Jun 15 2007 php_mapscript_util.c >>>> -rw-r--r-- 1 root root 7450 Jun 15 2007 php_mapscript_util.h >>>> -rw-r--r-- 1 root root 25958 Jun 14 2005 php_proj.c >>>> -rw-r--r-- 1 root root 3103 Jul 23 2007 php_regex.c >>>> -rwxr-xr-x 1 root root 68315 Jan 8 12:04 README >>>> -rwxr-xr-x 1 root root 3821 Jun 21 2001 README.WIN32 >>>> >>>> Thanks, >>>> Tim >>>> >>>> Tim McGeary >>>> Senior Systems Specialist >>>> Lehigh University >>>> 610-758-4998 >>>> tim.mcgeary at lehigh.edu >>>> Google Talk: timmcgeary >>>> Yahoo IM: timmcgeary >>>> >>>> Kyle Wilcox wrote: >>>>> If you installed Mapserver from source with the ---with-php=DIR >>>>> option and everything went ok, the php_mapscript.so file will be >>>>> located in the mapscript/php3/ directory. Copy this file to your >>>>> PHP extensions directory. You can find the extensions directory >>>>> by doing a ]$ php -i | grep extension_dir. >>>>> >>>>> You may want to rename php_mapscript.so to something like >>>>> php_mapscript_MAPSERVERVERSION.so. >>>>> >>>>> There a setting in the pmapper config files called msVersion. You >>>>> must set this to MAPSERVERSION if you change the name of the file. >>>>> >>>>> >>>>> Tim McGeary wrote: >>>>>> So our installation of Mapserver, in combination, with PMapper, we >>>>>> are getting an error that it cannot find php_mapserver.so. While >>>>>> I configured Mapserver to work with PHP, and it went through fine, >>>>>> I cannot find the php_mapserver.so file anywhere on my server. >>>>>> >>>>>> Was it supposed to be delivered in the mapserver package? If so, >>>>>> where would it have gone? If not, where can I find it? >>>>>> >>>>>> Thanks, >>>>>> Tim >>>>>> >>>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Thu May 1 11:28:19 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 1 May 2008 13:28:19 -0500 Subject: [mapserver-users] PostGis not displayed byMapServer In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13D1B@deqex01.deq.local> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBCFA@s-sp22.pca.state.mn.us> For testing the layer, I would actually suggest stripping any projection information out of the map file. If all of the layers in the map file are in the same projection, no projection definitions are needed. I would also strip it down to one layer and set the status of that layer to DEFAULT. You would also want to make sure that your data falls within the bounding box described in your extent line. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Burgholzer,Robert Sent: Thursday, May 01, 2008 11:57 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] PostGis not displayed byMapServer Susanne, Many things can go wrong with your postgis layer, I have two suggestions that may get you moving on your way though: 1) Turn on the DEBUG and look at the PostGIS call on your layer. In MS5+ this is done by including the following in your MAP definition (top of mapfile, you choose the logfile name of course): DEBUG ON CONFIG "MS_ERRORFILE" "C:\Temp\mapserver.log" And then "DEBUG ON" in your layer. 2) I notice there is no projection info on your MAP or your LAYER, I always have that as an explicit declaration. i.e.: PROJECTION "init=epsg:4326" END Entries in both the MAP block and in the LAYER, where the epsg corresponds to your projections. HTH, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of susanne.kalliany at tefis.at Sent: Thursday, May 01, 2008 11:25 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGis not displayed byMapServer Hello to everyone, I have an (already mentioned but - as it seems to me - not yet solved) problem concerning PostGis used with MapServer. My application can show shape files but not postgis-files. There are no output files (png) generated for this layer. Below is my mapfile. I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany ------------------------------ MAP NAME global_map STATUS ON SIZE 1000 700 EXTENT -100300 260500 -99100 261600 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE png24 WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER NAME Ortho GROUP Ortho DATA "C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif" projection "AUTO" end TYPE RASTER MINSCALE 10 MAXSCALE 10001 STATUS ON DUMP TRUE END LAYER CONNECTIONTYPE postgis NAME UAbt GROUP UAbt CONNECTION "user=postgres password=xxxxxxxx dbname=tefisdb host=localhost port=5432" STATUS ON TYPE line DATA "roads_geom from roads" CLASS SIZE 16 COLOR 0 0 255 END DUMP TRUE END END UAbt with or without projection "AUTO" -- DI. Susanne KALLIANY - susanne.kalliany at tefis.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software und GIS) Mobiltelephon: +43 664 1424269 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeffmckenna at gmail.com Thu May 1 11:35:07 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Thu, 1 May 2008 14:35:07 -0400 Subject: [mapserver-users] PostGis not displayed byMapServer In-Reply-To: <83.65.63.194.1209655484.wm@webmail.inode.at> References: <83.65.63.194.1209655484.wm@webmail.inode.at> Message-ID: <18064E8A-B4D5-4A53-9891-2568A4119722@gmail.com> My thoughts: 1) MS4W is preconfigured for the following imagepath and imageurl settings, in case you are not aware: IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" 2) I assume that the postgis layer is in the same projection as the local layer? - test this by setting the extents to the postgis layer and removing the local layer from the mapfile 3) use ogrinfo to verify the extents of the postgis layer e.g. ogrinfo -ro PG:"host=127.0.0.1 user=postgres dbname=gmap" yourlayername --summary 4) make sure you specified an srid when you loaded the data into postgis e.g. shp2pgsql -s 42304 province.shp province > province.sql 5) here is my my working tiny mapfile with a postgis layer: # # Start of map file # # NAME "postgis" STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.txt ## ESPG:42304 extents: EXTENT -2200000 -712631 3072800 3840000 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt # # Start of web interface definition # WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END PROJECTION "init=epsg:42304" END # # Start of layer definitions # LAYER NAME provinces TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "host=127.0.0.1 user=postgres port=5432 dbname=gmap" DATA "the_geom FROM province USING unique gid using srid=42304" PROJECTION "init=epsg:42304" END CLASS NAME "Land" STYLE COLOR 240 240 240 OUTLINECOLOR 199 199 199 END END END # layer END # Map File 6) test your mapfile with the shp2img utility (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img ) e.g. shp2img -m gmap75_postgis.map -o test.png -map_debug 3 --jeff On 1-May-08, at 11:24 AM, wrote: > Hello to everyone, > > I have an (already mentioned but - as it seems to me - not yet solved) > problem concerning PostGis used with MapServer. > > My application can show shape files but not postgis-files. There are > no > output files (png) generated for this layer. > > Below is my mapfile. > > I would be very pleased if anyone can give me some usefull hint. > > Thanks a lot, > > Susanne Kalliany > > ------------------------------ > MAP > NAME global_map > STATUS ON > SIZE 1000 700 > EXTENT -100300 260500 -99100 261600 > UNITS meters > IMAGECOLOR 255 255 255 > IMAGETYPE png24 > > WEB > IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" > IMAGEURL "/tmp/" > END > > LAYER > NAME Ortho > GROUP Ortho > DATA "C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif" > projection > "AUTO" > end > TYPE RASTER > MINSCALE 10 > MAXSCALE 10001 > STATUS ON > DUMP TRUE > END > > LAYER > CONNECTIONTYPE postgis > NAME UAbt > GROUP UAbt > CONNECTION "user=postgres password=xxxxxxxx > dbname=tefisdb host=localhost port=5432" > STATUS ON > TYPE line > DATA "roads_geom from roads" > CLASS > SIZE 16 > COLOR 0 0 255 > END > DUMP TRUE > END > > END > > UAbt with or without > projection "AUTO" > > -- > DI. Susanne KALLIANY - susanne.kalliany at tefis.at > > TeFiS - www.tefis.at > Technische und forstliche Informationssysteme > (Forstliche Software und GIS) > > Mobiltelephon: +43 664 1424269 > Telephon: +43 316 931746-0, Fax: -15 > > A-8010 Graz, Schillerstrasse 58 > A-1040 Wien, Schaumburgergasse 11/13 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bruce at gov.mb.ca Thu May 1 11:59:47 2008 From: Bob.Bruce at gov.mb.ca (Bruce, Bob (CON)) Date: Thu, 1 May 2008 13:59:47 -0500 Subject: [mapserver-users] finding php_mapserver.so In-Reply-To: <4819DD0C.3070200@lehigh.edu> References: <4819D2B4.5090606@lehigh.edu> <4819D657.4020003@Noaa.gov><4819D878.8090108@lehigh.edu> <4819D945.4090809@Noaa.gov> <4819DD0C.3070200@lehigh.edu> Message-ID: <2D7230119FDBCE4DB0984678195B920033BA18@OC1EX04.ME.MBGOV.CA> Tim: I believe that the problem is that you specified a trailing / character in your name. Try using --with-php=/usr/include/php , I see that the output from your configure has double / characters and that is probably why you are not getting it to build the mapscript module. Here are the messages that I got when I did the configure with the option shown above: checking for location of config.h or php_config.h... /usr/include/php/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured And the php_mapscript.so file was built in the mapscript/php3 directory. Bob Bruce -----Original Message----- From: Tim McGeary [mailto:tmm8 at Lehigh.EDU] Sent: Thursday, 01 May, 2008 10:09 AM To: Kyle Wilcox; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] finding php_mapserver.so I did specify the --with-php=DIR as --with-php=/usr/include/php/ Here's the output of the configure script for the PHP/Mapscript: configure: checking for PHP/MapScript module options... checking for g++ -shared ... yes checking for location of config.h or php_config.h... /usr/include/php//main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes found regex_extra.h - building PHP MapScript with PHP's bundled regex PHP/MapScript module configured. checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -------------- Renderer Settings --------- zlib support: png support: jpeg support: -DUSE_JPEG iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: Proj.4 support: EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: GDAL support: GEOS support: Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: WMS Client: WFS Server: WFS Client: WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes FYI, I'm running PHP 5.1.6 Tim Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary Kyle Wilcox wrote: > Did you specify the --with-php=DIR? > > DIR is obviously the directory of the php version you want to use. > > Step through the output from ./configure and see what it says about > PHP/Mapscript. I think it is towards the end. > > > Tim McGeary wrote: >> No, it isn't there. I did a: >> >> find / -name php_mapscript.so >> >> and it came up with nothing. So it isn't on the server at all. Yes, >> I did install Mapserver from source. >> >> Here's what is in mapscript/php3 >> >> [root at rust php3]# pwd >> /usr/local/mapserver-5.0.2/mapscript/php3 >> [root at rust php3]# ls -l >> total 716 >> drwxr-xr-x 2 root root 4096 Jan 28 10:56 examples >> -rw-r--r-- 1 root root 2103 Jul 26 2004 hashtable_i.c >> -rw-r--r-- 1 root root 4344 Apr 29 15:37 Makefile >> -rwxr-xr-x 1 root root 3770 Jun 11 2007 Makefile.in >> -rwxr-xr-x 1 root root 2097 Feb 14 2006 Makefile.vc >> -rwxr-xr-x 1 root root 34328 Aug 16 2007 mapscript_i.c >> -rw-r--r-- 1 root root 1049 Feb 14 2006 nmake.opt >> -rwxr-xr-x 1 root root 502728 Jan 8 12:04 php_mapscript.c >> -rwxr-xr-x 1 root root 16760 Aug 16 2007 php_mapscript.h >> -rw-r--r-- 1 root root 17046 Jun 15 2007 php_mapscript_util.c >> -rw-r--r-- 1 root root 7450 Jun 15 2007 php_mapscript_util.h >> -rw-r--r-- 1 root root 25958 Jun 14 2005 php_proj.c >> -rw-r--r-- 1 root root 3103 Jul 23 2007 php_regex.c >> -rwxr-xr-x 1 root root 68315 Jan 8 12:04 README >> -rwxr-xr-x 1 root root 3821 Jun 21 2001 README.WIN32 >> >> Thanks, >> Tim >> >> Tim McGeary >> Senior Systems Specialist >> Lehigh University >> 610-758-4998 >> tim.mcgeary at lehigh.edu >> Google Talk: timmcgeary >> Yahoo IM: timmcgeary >> >> Kyle Wilcox wrote: >>> If you installed Mapserver from source with the ---with-php=DIR >>> option and everything went ok, the php_mapscript.so file will be >>> located in the mapscript/php3/ directory. Copy this file to your PHP >>> extensions directory. You can find the extensions directory by >>> doing a ]$ php -i | grep extension_dir. >>> >>> You may want to rename php_mapscript.so to something like >>> php_mapscript_MAPSERVERVERSION.so. >>> >>> There a setting in the pmapper config files called msVersion. You >>> must set this to MAPSERVERSION if you change the name of the file. >>> >>> >>> Tim McGeary wrote: >>>> So our installation of Mapserver, in combination, with PMapper, we >>>> are getting an error that it cannot find php_mapserver.so. While I >>>> configured Mapserver to work with PHP, and it went through fine, I >>>> cannot find the php_mapserver.so file anywhere on my server. >>>> >>>> Was it supposed to be delivered in the mapserver package? If so, >>>> where would it have gone? If not, where can I find it? >>>> >>>> Thanks, >>>> Tim >>>> >>> > From susanne.kalliany at tefis.at Thu May 1 12:27:20 2008 From: susanne.kalliany at tefis.at (DI. Susanne Kallliany) Date: Thu, 1 May 2008 21:27:20 +0200 Subject: AW: [mapserver-users] PostGis not displayed byMapServer In-Reply-To: <6C097DA58429B743A67070F98BE73A3702B13D1B@deqex01.deq.local> Message-ID: Dear Robert, (and also "hello" to all others who helped with their advice !) It is a shame that I did not know how to activate the debugging mode. (And that feature also will assist me a lot with my next MapServer programming and configuration activities ! ) With DEBUG ON, CONFIG "MS_ERRORFILE" "C:\Temp\mapserver.log", I got this message: > Postgresql reports the error as 'ERROR: column "oid" does not exist > LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... Thus, after creating a new table with oids, now everything is working !! Thanks a lot to all of you, who did reply immediatley on my question. It is great to get support by such a helpful community; I appreciate it a lot ! Many dear thanks and greetings from he city of Graz in Austria (at the "heart of Europe") Susanne 2008-05-01, 19:27 UTC -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Burgholzer,Robert Gesendet: Donnerstag, 01. Mai 2008 18:57 An: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] PostGis not displayed byMapServer Susanne, Many things can go wrong with your postgis layer, I have two suggestions that may get you moving on your way though: 1) Turn on the DEBUG and look at the PostGIS call on your layer. In MS5+ this is done by including the following in your MAP definition (top of mapfile, you choose the logfile name of course): DEBUG ON CONFIG "MS_ERRORFILE" "C:\Temp\mapserver.log" And then "DEBUG ON" in your layer. 2) I notice there is no projection info on your MAP or your LAYER, I always have that as an explicit declaration. i.e.: PROJECTION "init=epsg:4326" END Entries in both the MAP block and in the LAYER, where the epsg corresponds to your projections. HTH, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of susanne.kalliany at tefis.at Sent: Thursday, May 01, 2008 11:25 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGis not displayed byMapServer Hello to everyone, I have an (already mentioned but - as it seems to me - not yet solved) problem concerning PostGis used with MapServer. My application can show shape files but not postgis-files. There are no output files (png) generated for this layer. Below is my mapfile. I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany ------------------------------ MAP NAME global_map STATUS ON SIZE 1000 700 EXTENT -100300 260500 -99100 261600 UNITS meters IMAGECOLOR 255 255 255 IMAGETYPE png24 WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER NAME Ortho GROUP Ortho DATA "C:\ms4w\Apache\htdocs\ortho\alle_e_50cm.tif" projection "AUTO" end TYPE RASTER MINSCALE 10 MAXSCALE 10001 STATUS ON DUMP TRUE END LAYER CONNECTIONTYPE postgis NAME UAbt GROUP UAbt CONNECTION "user=postgres password=xxxxxxxx dbname=tefisdb host=localhost port=5432" STATUS ON TYPE line DATA "roads_geom from roads" CLASS SIZE 16 COLOR 0 0 255 END DUMP TRUE END END UAbt with or without projection "AUTO" -- DI. Susanne KALLIANY - susanne.kalliany at tefis.at TeFiS - www.tefis.at Technische und forstliche Informationssysteme (Forstliche Software und GIS) Mobiltelephon: +43 664 1424269 Telephon: +43 316 931746-0, Fax: -15 A-8010 Graz, Schillerstrasse 58 A-1040 Wien, Schaumburgergasse 11/13 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From condit at sdsc.edu Thu May 1 13:08:29 2008 From: condit at sdsc.edu (Christopher Condit) Date: Thu, 1 May 2008 13:08:29 -0700 Subject: [mapserver-users] PHP MapScript and Inheritance In-Reply-To: <4819D2B4.5090606@lehigh.edu> References: <4819D2B4.5090606@lehigh.edu> Message-ID: <845AADAC1106E44996327D62097E4C6B01026424@et.ad.sdsc.edu> I'm curious if anyone has successful inherited from the php classes exposed by PHP MapScript. I'd to subclass both mapObj and layerObj, but can't quite figure out how. Thanks, -Chris From pramsey at cleverelephant.ca Thu May 1 17:12:00 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 1 May 2008 17:12:00 -0700 Subject: [mapserver-users] RFC 43 Message-ID: <30fe546d0805011712o436b38d7jfaf884e0f6d911e6@mail.gmail.com> All, RFC 43 is basically finished. Please review the following materials and give it a try: http://svn.osgeo.org/mapserver/trunk/mapserver/rfc/ms-rfc-43.txt http://svn.osgeo.org/mapserver/trunk/docs/howto/tile_mode.txt I'm quite pleased with how easy it is to get Mapserver into GMaps and VE now. I'd love to here from someone with Windows on how well it works in 3D mode. Thanks, P. From yatendra.jaiswal at gmail.com Thu May 1 23:48:44 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Thu, 1 May 2008 23:48:44 -0700 (PDT) Subject: [MAPSERVER-USERS] How TO change color of a layer using mapscript(without editing mapfile) In-Reply-To: <16983974.post@talk.nabble.com> References: <16983974.post@talk.nabble.com> Message-ID: <16997022.post@talk.nabble.com> Hi Thanks for reply i tried this code but there is null reference in "$style->color->setRGB( 255, 0, 0 ); $style->outlinecolor->setRGB( 255, 0, 0 );" this step.... Please giude me... color of a layer is not schanging Thanks Regards yatendra wrote: > > Hi friends, > I am using asp.net to develop application on mapserver. > I want to change layer color available in my mapfile. > Is it possible to change layer color without editing layer in mapfile? > What function do i need to use to do this? > Can i give unique value to each feature? > Is it also possible? > Please reply if any one know regarding this. > any idea will also be helpful to me... > Thanks regards > -- View this message in context: http://www.nabble.com/How-TO-change-color-of-a-layer-using-mapscript%28without-editing-mapfile%29-tp16983974p16997022.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mtd at bom.gov.au Fri May 2 00:14:42 2008 From: mtd at bom.gov.au (Matthew Doyle) Date: Fri, 2 May 2008 00:14:42 -0700 (PDT) Subject: [MAPSERVER-USERS] Help raster data access In-Reply-To: <52be2a8b0804252113y79b541c0w325083a2fbda8b90@mail.gmail.com> References: <52be2a8b0804252113y79b541c0w325083a2fbda8b90@mail.gmail.com> Message-ID: <16999703.post@talk.nabble.com> Hi Pablo, This may not exactly relate to your problem, but i have identified (through similar means) that there are some flaws in the raster query and it returning too many responses. I have created a ticket for this problem and it is being looked into. Please follow: http://trac.osgeo.org/mapserver/ticket/2603 to track this issue. Best regards, Matt pablo zader wrote: > > Hello friends, > I am working with MApServer 5, want to do query on layers raster and have > the following problem: on a layers raster once chosen the tool of query > gives the following thing to the clickear: > > " MsQueryByPoint (): Search returned not results. Not matching record (s) > found. " > > The layer raster of my map file defini like that: > > LAYER > NAME "arboles" > TYPE raster > DATA "cobertura/GLC_5Final.tif" > STATUS ON > CLASS > EXPRESSION ([pixel] = 1) > STYLE > COLOR 0 255 0 > > END > TEMPLATE "template/raster.html" > END > > CLASS > EXPRESSION ([pixel] = 1) > STYLE > COLOR 255 226 187 > END > #TEMPLATE "template/raster.html" > END > HEADER "template/raster_header.html" > FOOTER "template/raster_footer.html" > > The file raster.html (that is the principal one in the consultation) > defini > like that: > > > > > Pixel:
> values=[value_list]
> value_0=[value_0]
> value_1=[value_1]
> value_2=[value_2]
> RGB = [RED],[GREEN],[BLUE]

> Class = [class]
> > > > I wait for his help .. from already thank you very much to this forum > that > really contributes things very interesting and good solutions > Regards > > Pablo.- > -- > Pablo Zader > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Help-raster-data-access-tp16909264p16999703.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Fri May 2 00:27:25 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 2 May 2008 00:27:25 -0700 (PDT) Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? Message-ID: <17001397.post@talk.nabble.com> Dear friends, I have seen routing based on postgis routing and oracle network data models. Even though, they serve the purpose very efficiently, they take some 1sec/2sec/3sec to display the routes. I checked them with OpenLayers and Ka-map. Still, I feel there must be a way to reduce this route display time. Is there any any other ways to show routing/directions over mapserver based maps? Any other data structure and programming in C/python can serve the purpose ? Your help will be highly appreciated. Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Any-other-Routing-solution-than-pgRouting-Oracle-NDM---tp17001397p17001397.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yatendra.jaiswal at gmail.com Fri May 2 04:14:24 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Fri, 2 May 2008 04:14:24 -0700 (PDT) Subject: [MAPSERVER-USERS] How to get class expression used in layer in the mapfile Message-ID: <17014924.post@talk.nabble.com> Hi friends, I am using asp.net and mapscript_charp.dll. I have used different classes in a layer in my map file to give differrent color to each feature. Now by using asp.net mapscript i am trying to get the expression i used in layer declaration in map file. I have created a class object. assigned layername used in mapobject. now i got stucked. How to get classes in a layer and how to use different functions of class objects.... Please giude me if anyone have knowladge about this issue. php script will do... I need only idea.. Thanks regards -- View this message in context: http://www.nabble.com/How-to-get-class-expression-used-in-layer-in-the-mapfile-tp17014924p17014924.html Sent from the Mapserver - User mailing list archive at Nabble.com. From condit at sdsc.edu Fri May 2 06:57:06 2008 From: condit at sdsc.edu (Christopher Condit) Date: Fri, 2 May 2008 06:57:06 -0700 Subject: [MAPSERVER-USERS] How to get class expression used in layer in themapfile In-Reply-To: <17014924.post@talk.nabble.com> References: <17014924.post@talk.nabble.com> Message-ID: <845AADAC1106E44996327D62097E4C6B010264BA@et.ad.sdsc.edu> Here's an example in C# (it's from an older project, but I think it should still show what to do): classObj cls = new classObj(myLayerObj); cls.name = "Test Class"; sls.setExpression("count = 5"); styleObj sty = new styleObj(cls); sty.color = new colorObj(255, 255, 0, 1); sty.outlinecolor = new colorObj(0, 0, 0, 2); sty.symbolname = "circle"; sty.size = 8; -Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of yatendra Sent: Friday, May 02, 2008 07:14 To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] How to get class expression used in layer in themapfile Hi friends, I am using asp.net and mapscript_charp.dll. I have used different classes in a layer in my map file to give differrent color to each feature. Now by using asp.net mapscript i am trying to get the expression i used in layer declaration in map file. I have created a class object. assigned layername used in mapobject. now i got stucked. How to get classes in a layer and how to use different functions of class objects.... Please giude me if anyone have knowladge about this issue. php script will do... I need only idea.. Thanks regards -- View this message in context: http://www.nabble.com/How-to-get-class-expression-used-in-layer-in-the-m apfile-tp17014924p17014924.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri May 2 08:03:43 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 02 May 2008 10:03:43 -0500 Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <17001397.post@talk.nabble.com> References: <17001397.post@talk.nabble.com> Message-ID: <481B2D4F.8000708@swoodbridge.com> riteshambastha wrote: > Dear friends, > > I have seen routing based on postgis routing and oracle network data models. > Even though, they serve the purpose very efficiently, they take some > 1sec/2sec/3sec to display the routes. I checked them with OpenLayers and > Ka-map. Still, I feel there must be a way to reduce this route display time. > Is there any any other ways to show routing/directions over mapserver based > maps? Any other data structure and programming in C/python can serve the > purpose ? What is taking too long? 1) is it the route computation 2) transfering the route data to OpenLayers 3) rendering the route data as a vector layer Have you considered writing some code on the server that generates an image file from the route data and returns a url for the image that can be then pinned to OpenLayers like a marker? You could do this by writing a wrapper in your favorite scripting language around the request to generate the route. -Steve W From ssteve52 at yahoo.com Fri May 2 07:13:34 2008 From: ssteve52 at yahoo.com (Steve Smith) Date: Fri, 2 May 2008 07:13:34 -0700 (PDT) Subject: [mapserver-users] php_mapscript.so glibc detected Message-ID: <827085.27108.qm@web45601.mail.sp1.yahoo.com> I just installed mapserver 5.0.2, on a 64-bit machine. Everything works except php_mapscript.so. It compiles with no errors, but when I try and use it I get either a " double free or corruption (!prev)" or a "malloc(): memory corruption" error related to glibc. Looking a past list discussions, I see others have had the same problem, but I have not found a solution to my problem in those discussions. I am using the following configuration: CFLAGS="-fPIC" ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-httpd=/usr/sbin/httpd --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr --without-tiff --with-gd=/usr --without-jpeg --with-freetype=/usr --with-threads --with-wcs --with-postgis=/usr/bin/pg_config --with-geos=/usr/bin/geos-config --with-php=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-agg=/usr --without-pdf --with-wmsclient --with-wfs --with-wfsclient I've read that this problem can be related to conflicts with gdal? Does anybody have experience with this problem? Thanks Steve --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ritesh.linux at gmail.com Fri May 2 07:56:44 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 2 May 2008 07:56:44 -0700 (PDT) Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <481B2D4F.8000708@swoodbridge.com> References: <17001397.post@talk.nabble.com> <481B2D4F.8000708@swoodbridge.com> Message-ID: <17021074.post@talk.nabble.com> Thanks Steve, Route computation is taking an average time of 1.2 sec. Post this, showing route on the browser takes a lot of time. I am not using kamap xml overlay and any lib of openlayers. I am posting this route result xml into a db, and allowing a map file to read this db and show the route on map. I know this is not an efficient way to do the job. I got to know that openlayers libs can help me to achieve the same. I want to know how in-efficient will be to use kamap xml overlay instead of any fn of openlayers. Regards, Ritesh Ambastha Stephen Woodbridge wrote: > > riteshambastha wrote: >> Dear friends, >> >> I have seen routing based on postgis routing and oracle network data >> models. >> Even though, they serve the purpose very efficiently, they take some >> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers and >> Ka-map. Still, I feel there must be a way to reduce this route display >> time. >> Is there any any other ways to show routing/directions over mapserver >> based >> maps? Any other data structure and programming in C/python can serve the >> purpose ? > > What is taking too long? > 1) is it the route computation > 2) transfering the route data to OpenLayers > 3) rendering the route data as a vector layer > > Have you considered writing some code on the server that generates an > image file from the route data and returns a url for the image that can > be then pinned to OpenLayers like a marker? You could do this by writing > a wrapper in your favorite scripting language around the request to > generate the route. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Any-other-Routing-solution-than-pgRouting-Oracle-NDM---tp17001397p17021074.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Fri May 2 09:26:08 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 02 May 2008 11:26:08 -0500 Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <17021074.post@talk.nabble.com> References: <17001397.post@talk.nabble.com> <481B2D4F.8000708@swoodbridge.com> <17021074.post@talk.nabble.com> Message-ID: <481B40A0.4070705@swoodbridge.com> riteshambastha wrote: > Thanks Steve, > > Route computation is taking an average time of 1.2 sec. > Post this, showing route on the browser takes a lot of time. > I am not using kamap xml overlay and any lib of openlayers. > > I am posting this route result xml into a db, and allowing a map file to > read this db and show the route on map. > I know this is not an efficient way to do the job. I would start by adding some timing to a log file so you KNOW where your time is getting spent, then work on optimizing the larger times. I think this is the fastest way to go unless the route is relatively small in the number of nodes in the polyline. You should look at getting rid of the xml, in fact, why are you going to xml at all and then putting it back into the database. The data is being generate in the database then you extract it and format it into xml and then put the xml back into the database for mapserver to pick up. I think you should just put it into a table of routes with a unique sessionid+routeid key then pass the key to mapserver to use on selecting the right record. > I got to know that openlayers libs can help me to achieve the same. I want > to know how in-efficient will be to use kamap xml overlay instead of any fn > of openlayers. You can server the route as a wfs layer, but if it is complicated it might be too many points to handle quickly in the browser. -Steve > Regards, > Ritesh Ambastha > > Stephen Woodbridge wrote: >> riteshambastha wrote: >>> Dear friends, >>> >>> I have seen routing based on postgis routing and oracle network data >>> models. >>> Even though, they serve the purpose very efficiently, they take some >>> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers and >>> Ka-map. Still, I feel there must be a way to reduce this route display >>> time. >>> Is there any any other ways to show routing/directions over mapserver >>> based >>> maps? Any other data structure and programming in C/python can serve the >>> purpose ? >> What is taking too long? >> 1) is it the route computation >> 2) transfering the route data to OpenLayers >> 3) rendering the route data as a vector layer >> >> Have you considered writing some code on the server that generates an >> image file from the route data and returns a url for the image that can >> be then pinned to OpenLayers like a marker? You could do this by writing >> a wrapper in your favorite scripting language around the request to >> generate the route. >> >> -Steve W >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From ritesh.linux at gmail.com Fri May 2 10:38:47 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 2 May 2008 10:38:47 -0700 (PDT) Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <481B40A0.4070705@swoodbridge.com> References: <17001397.post@talk.nabble.com> <481B2D4F.8000708@swoodbridge.com> <17021074.post@talk.nabble.com> <481B40A0.4070705@swoodbridge.com> Message-ID: <17024363.post@talk.nabble.com> Thanks Steve, I am pretty sure your words are making a mapserver enthusiast's life very easy. For Route computation I am using a licensed version of Oracle Spatial DB. Now, as PostGIS is looking so promising in the market, I am also thinking to shift to PostGIS. And after that, I will re-engineer my routing code using : >pgRouting >Ka-map xmlOverlay I guess I am going in the right direction. Regards, Ritesh Ambastha Stephen Woodbridge wrote: > > riteshambastha wrote: >> Thanks Steve, >> >> Route computation is taking an average time of 1.2 sec. >> Post this, showing route on the browser takes a lot of time. >> I am not using kamap xml overlay and any lib of openlayers. >> >> I am posting this route result xml into a db, and allowing a map file to >> read this db and show the route on map. >> I know this is not an efficient way to do the job. > > I would start by adding some timing to a log file so you KNOW where your > time is getting spent, then work on optimizing the larger times. > > I think this is the fastest way to go unless the route is relatively > small in the number of nodes in the polyline. You should look at getting > rid of the xml, in fact, why are you going to xml at all and then > putting it back into the database. The data is being generate in the > database then you extract it and format it into xml and then put the xml > back into the database for mapserver to pick up. I think you should just > put it into a table of routes with a unique sessionid+routeid key then > pass the key to mapserver to use on selecting the right record. > >> I got to know that openlayers libs can help me to achieve the same. I >> want >> to know how in-efficient will be to use kamap xml overlay instead of any >> fn >> of openlayers. > > You can server the route as a wfs layer, but if it is complicated it > might be too many points to handle quickly in the browser. > > -Steve > >> Regards, >> Ritesh Ambastha >> >> Stephen Woodbridge wrote: >>> riteshambastha wrote: >>>> Dear friends, >>>> >>>> I have seen routing based on postgis routing and oracle network data >>>> models. >>>> Even though, they serve the purpose very efficiently, they take some >>>> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers >>>> and >>>> Ka-map. Still, I feel there must be a way to reduce this route display >>>> time. >>>> Is there any any other ways to show routing/directions over mapserver >>>> based >>>> maps? Any other data structure and programming in C/python can serve >>>> the >>>> purpose ? >>> What is taking too long? >>> 1) is it the route computation >>> 2) transfering the route data to OpenLayers >>> 3) rendering the route data as a vector layer >>> >>> Have you considered writing some code on the server that generates an >>> image file from the route data and returns a url for the image that can >>> be then pinned to OpenLayers like a marker? You could do this by writing >>> a wrapper in your favorite scripting language around the request to >>> generate the route. >>> >>> -Steve W >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Any-other-Routing-solution-than-pgRouting-Oracle-NDM---tp17001397p17024363.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Fri May 2 12:12:32 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 2 May 2008 12:12:32 -0700 (PDT) Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data (DBF standard encoding?) In-Reply-To: References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> <16808302.post@talk.nabble.com> Message-ID: <17026013.post@talk.nabble.com> Stefan Schwarzer wrote: > > is there anyway to specify the encoding for DBF > files? When dealing with shapefiles, the dbf is either created a bit > manually in Excel, or via ESRI programs (or other tools). I haven't > seen any possibility to specify the encoding. So I guess that all of > them have the same encoding, no? > I would think that it's generally the responsibility of the program creating the file to specify the encoding. emacs asks me what encoding I want when I save. I would think you'd need to look at the documentation for Excel, ESRI programs, or other tools. Sorry, but I don't have experience with those to be able to offer any better advice. - Rich -- View this message in context: http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p17026013.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thy at 42.dk Fri May 2 12:30:58 2008 From: thy at 42.dk (Kristian Thy) Date: Fri, 2 May 2008 21:30:58 +0200 Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data (DBF standard encoding?) In-Reply-To: References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> <16808302.post@talk.nabble.com> Message-ID: <20080502193057.GC15380@42.dk> On Fri, Apr 25, Stefan Schwarzer wrote: > But: is there anyway to specify the encoding for DBF files? According to this (which is the closest I could come to an official DBF spec), all records in the DBF file format are in ASCII, unless you use a FoxPro format which has a number of codepage options. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From jscarbrough at where2getit.com Fri May 2 14:54:07 2008 From: jscarbrough at where2getit.com (Jon Scarbrough) Date: Fri, 02 May 2008 16:54:07 -0500 Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <17024363.post@talk.nabble.com> References: <17001397.post@talk.nabble.com> <481B2D4F.8000708@swoodbridge.com> <17021074.post@talk.nabble.com> <481B40A0.4070705@swoodbridge.com> <17024363.post@talk.nabble.com> Message-ID: <481B8D7F.1000908@where2getit.com> Ritesh, I need to weigh in little bit since we are using the Oracle Geocoder/Routeserver in conjunction with the Navteq data set. Our experience is that on a well tuned Oracle appserver/db cluster, an normal route will calculate in about .5 secs. But, there is a lot of tuning to get your java engine properly configured to deal with garbage collection and you must have enough memory to hold sufficient partitions in memory so you don't have to go back to disk. We then take the Oracle route response and convert it to xml that is sent back to the browser and have Openlayers lay it on the map using SVG/VML. The biggest amount of time is spent parsing the XML and creating the SVG. There are a lot of moving parts and as Steve mentioned, you need to measure each part (route server, web server handling the conversion of route response to the browser, Openlayers layer manipulation). In my experience, the Oracle router is not the bottleneck. Thanks. Jon Scarbrough Where2GetIt.com riteshambastha wrote: > Thanks Steve, > > I am pretty sure your words are making a mapserver enthusiast's life very > easy. > > For Route computation I am using a licensed version of Oracle Spatial DB. > Now, as PostGIS is looking so promising in the market, I am also thinking to > shift to PostGIS. > > And after that, I will re-engineer my routing code using : > >> pgRouting >> Ka-map xmlOverlay >> > > I guess I am going in the right direction. > > Regards, > Ritesh Ambastha > > > > Stephen Woodbridge wrote: > >> riteshambastha wrote: >> >>> Thanks Steve, >>> >>> Route computation is taking an average time of 1.2 sec. >>> Post this, showing route on the browser takes a lot of time. >>> I am not using kamap xml overlay and any lib of openlayers. >>> >>> I am posting this route result xml into a db, and allowing a map file to >>> read this db and show the route on map. >>> I know this is not an efficient way to do the job. >>> >> I would start by adding some timing to a log file so you KNOW where your >> time is getting spent, then work on optimizing the larger times. >> >> I think this is the fastest way to go unless the route is relatively >> small in the number of nodes in the polyline. You should look at getting >> rid of the xml, in fact, why are you going to xml at all and then >> putting it back into the database. The data is being generate in the >> database then you extract it and format it into xml and then put the xml >> back into the database for mapserver to pick up. I think you should just >> put it into a table of routes with a unique sessionid+routeid key then >> pass the key to mapserver to use on selecting the right record. >> >> >>> I got to know that openlayers libs can help me to achieve the same. I >>> want >>> to know how in-efficient will be to use kamap xml overlay instead of any >>> fn >>> of openlayers. >>> >> You can server the route as a wfs layer, but if it is complicated it >> might be too many points to handle quickly in the browser. >> >> -Steve >> >> >>> Regards, >>> Ritesh Ambastha >>> >>> Stephen Woodbridge wrote: >>> >>>> riteshambastha wrote: >>>> >>>>> Dear friends, >>>>> >>>>> I have seen routing based on postgis routing and oracle network data >>>>> models. >>>>> Even though, they serve the purpose very efficiently, they take some >>>>> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers >>>>> and >>>>> Ka-map. Still, I feel there must be a way to reduce this route display >>>>> time. >>>>> Is there any any other ways to show routing/directions over mapserver >>>>> based >>>>> maps? Any other data structure and programming in C/python can serve >>>>> the >>>>> purpose ? >>>>> >>>> What is taking too long? >>>> 1) is it the route computation >>>> 2) transfering the route data to OpenLayers >>>> 3) rendering the route data as a vector layer >>>> >>>> Have you considered writing some code on the server that generates an >>>> image file from the route data and returns a url for the image that can >>>> be then pinned to OpenLayers like a marker? You could do this by writing >>>> a wrapper in your favorite scripting language around the request to >>>> generate the route. >>>> >>>> -Steve W >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > From ritesh.linux at gmail.com Fri May 2 15:04:48 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 2 May 2008 15:04:48 -0700 (PDT) Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <481B8D7F.1000908@where2getit.com> References: <17001397.post@talk.nabble.com> <481B2D4F.8000708@swoodbridge.com> <17021074.post@talk.nabble.com> <481B40A0.4070705@swoodbridge.com> <17024363.post@talk.nabble.com> <481B8D7F.1000908@where2getit.com> Message-ID: <17028643.post@talk.nabble.com> Yeah Jon, I fully agree with you. I completely agree with the fact that 'Route Computation' and giving an XML response is not taking much time. The only bottleneck is in parsing the xml and rendering it on the map which consumes more time. Regards, Ritesh Ambastha Jon Scarbrough wrote: > > Ritesh, > > I need to weigh in little bit since we are using the Oracle > Geocoder/Routeserver in conjunction with the Navteq data set. Our > experience is that on a well tuned Oracle appserver/db cluster, an > normal route will calculate in about .5 secs. But, there is a lot of > tuning to get your java engine properly configured to deal with garbage > collection and you must have enough memory to hold sufficient partitions > in memory so you don't have to go back to disk. > > We then take the Oracle route response and convert it to xml that is > sent back to the browser and have Openlayers lay it on the map using > SVG/VML. The biggest amount of time is spent parsing the XML and > creating the SVG. There are a lot of moving parts and as Steve > mentioned, you need to measure each part (route server, web server > handling the conversion of route response to the browser, Openlayers > layer manipulation). > > In my experience, the Oracle router is not the bottleneck. > > Thanks. > > Jon Scarbrough > Where2GetIt.com > > > riteshambastha wrote: >> Thanks Steve, >> >> I am pretty sure your words are making a mapserver enthusiast's life very >> easy. >> >> For Route computation I am using a licensed version of Oracle Spatial DB. >> Now, as PostGIS is looking so promising in the market, I am also thinking >> to >> shift to PostGIS. >> >> And after that, I will re-engineer my routing code using : >> >>> pgRouting >>> Ka-map xmlOverlay >>> >> >> I guess I am going in the right direction. >> >> Regards, >> Ritesh Ambastha >> >> >> >> Stephen Woodbridge wrote: >> >>> riteshambastha wrote: >>> >>>> Thanks Steve, >>>> >>>> Route computation is taking an average time of 1.2 sec. >>>> Post this, showing route on the browser takes a lot of time. >>>> I am not using kamap xml overlay and any lib of openlayers. >>>> >>>> I am posting this route result xml into a db, and allowing a map file >>>> to >>>> read this db and show the route on map. >>>> I know this is not an efficient way to do the job. >>>> >>> I would start by adding some timing to a log file so you KNOW where your >>> time is getting spent, then work on optimizing the larger times. >>> >>> I think this is the fastest way to go unless the route is relatively >>> small in the number of nodes in the polyline. You should look at getting >>> rid of the xml, in fact, why are you going to xml at all and then >>> putting it back into the database. The data is being generate in the >>> database then you extract it and format it into xml and then put the xml >>> back into the database for mapserver to pick up. I think you should just >>> put it into a table of routes with a unique sessionid+routeid key then >>> pass the key to mapserver to use on selecting the right record. >>> >>> >>>> I got to know that openlayers libs can help me to achieve the same. I >>>> want >>>> to know how in-efficient will be to use kamap xml overlay instead of >>>> any >>>> fn >>>> of openlayers. >>>> >>> You can server the route as a wfs layer, but if it is complicated it >>> might be too many points to handle quickly in the browser. >>> >>> -Steve >>> >>> >>>> Regards, >>>> Ritesh Ambastha >>>> >>>> Stephen Woodbridge wrote: >>>> >>>>> riteshambastha wrote: >>>>> >>>>>> Dear friends, >>>>>> >>>>>> I have seen routing based on postgis routing and oracle network data >>>>>> models. >>>>>> Even though, they serve the purpose very efficiently, they take some >>>>>> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers >>>>>> and >>>>>> Ka-map. Still, I feel there must be a way to reduce this route >>>>>> display >>>>>> time. >>>>>> Is there any any other ways to show routing/directions over mapserver >>>>>> based >>>>>> maps? Any other data structure and programming in C/python can serve >>>>>> the >>>>>> purpose ? >>>>>> >>>>> What is taking too long? >>>>> 1) is it the route computation >>>>> 2) transfering the route data to OpenLayers >>>>> 3) rendering the route data as a vector layer >>>>> >>>>> Have you considered writing some code on the server that generates an >>>>> image file from the route data and returns a url for the image that >>>>> can >>>>> be then pinned to OpenLayers like a marker? You could do this by >>>>> writing >>>>> a wrapper in your favorite scripting language around the request to >>>>> generate the route. >>>>> >>>>> -Steve W >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Any-other-Routing-solution-than-pgRouting-Oracle-NDM---tp17001397p17028643.html Sent from the Mapserver - User mailing list archive at Nabble.com. From susanne.kalliany at tefis.at Sun May 4 23:39:59 2008 From: susanne.kalliany at tefis.at (SUSANNE) Date: Sun, 4 May 2008 23:39:59 -0700 (PDT) Subject: [MAPSERVER-USERS] problem with GeomFromText - updating PostGis table Message-ID: <17053945.post@talk.nabble.com> Hello to everyone, I have a mapserver/PostGreSQL/PostGis application where I am now able to show PostGis layers. To insert lines I want to set following commands with php: $sql_i = "insert into zobject3 (the_geom) VALUES (GeomFromText('linestring (-99232 261118,-98232 262118)',31282) ) "; pg_query($sql_i); I get following error message: Query failed: ERROR Invalid OGC WKT (does not start with P,L,M,C or G) Inserting a (non geomtric parameter) with following command works OK: $sql_i = "insert into zobject3 (name) VALUES ("test") pg_query($sql_i); I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany -- View this message in context: http://www.nabble.com/problem-with-GeomFromText---updating-PostGis-table-tp17053945p17053945.html Sent from the Mapserver - User mailing list archive at Nabble.com. From susanne.kalliany at tefis.at Sun May 4 23:39:59 2008 From: susanne.kalliany at tefis.at (SUSANNE) Date: Sun, 4 May 2008 23:39:59 -0700 (PDT) Subject: [MAPSERVER-USERS] problem with GeomFromText - updating PostGis table Message-ID: <17053946.post@talk.nabble.com> Hello to everyone, I have a mapserver/PostGreSQL/PostGis application where I am now able to show PostGis layers. To insert lines I want to set following commands with php: $sql_i = "insert into zobject3 (the_geom) VALUES (GeomFromText('linestring (-99232 261118,-98232 262118)',31282) ) "; pg_query($sql_i); I get following error message: Query failed: ERROR Invalid OGC WKT (does not start with P,L,M,C or G) Inserting a (non geomtric parameter) with following command works OK: $sql_i = "insert into zobject3 (name) VALUES ("test") pg_query($sql_i); I would be very pleased if anyone can give me some usefull hint. Thanks a lot, Susanne Kalliany -- View this message in context: http://www.nabble.com/problem-with-GeomFromText---updating-PostGis-table-tp17053946p17053946.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Mon May 5 00:07:16 2008 From: pcreso at pcreso.com (Brent Wood) Date: Mon, 5 May 2008 00:07:16 -0700 (PDT) Subject: [MAPSERVER-USERS] problem with GeomFromText - updating PostGis table In-Reply-To: <17053946.post@talk.nabble.com> Message-ID: <82787.19050.qm@web33208.mail.mud.yahoo.com> --- SUSANNE wrote: Hi Susanne, Try having LINESTRING (upper case) instead of linestring. HTH, Brent Wood > > Hello to everyone, > > I have a mapserver/PostGreSQL/PostGis application where I am now able to > show PostGis layers. > > To insert lines I want to set following commands with php: > > $sql_i = "insert into zobject3 (the_geom) VALUES (GeomFromText('linestring > (-99232 261118,-98232 262118)',31282) ) "; > pg_query($sql_i); > > I get following error message: > Query failed: ERROR Invalid OGC WKT (does not start with P,L,M,C or G) > > Inserting a (non geomtric parameter) with following command works OK: > > $sql_i = "insert into zobject3 (name) VALUES ("test") > pg_query($sql_i); > > I would be very pleased if anyone can give me some usefull hint. > > Thanks a lot, > > Susanne Kalliany > > -- > View this message in context: > http://www.nabble.com/problem-with-GeomFromText---updating-PostGis-table-tp17053946p17053946.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard at winwaed.com Mon May 5 14:37:25 2008 From: richard at winwaed.com (Richard Marsden) Date: Mon, 05 May 2008 16:37:25 -0500 Subject: [mapserver-users] TIFF tiles and indexes Message-ID: <481F7E15.3030503@winwaed.com> I'm making some progress with MapServer, and I now have it using the satellite tile that I wish to use. What I've done so far: The tile was originally a 24 bit JPEG, 5517 x 4889 pixels. MapServer's inbuilt conversion to 8 bit colour was inadequate and the image did not have any alpha encoding (not sure if the JPEG format supports alpha?). The image has black vignettes which should be transparent. Locally on my PC I converted the image to GIF with black set to transparent. The conversion program's TIFF mode did not support transparency. That worked much better in MapServer. Transparency was detected properly, and 8 bit palette colour produced a perfectly acceptable image. I was concerned about efficiency so I looked at tiles. I used gdal_translate to convert the GIF into a tiled TIFF. This was followed by gdaladdo to produce overviews of 8x and 64x decimation. The result still works and is probably a little bit quicker - nothing really obvious mind you. The TIFF file is now 29.3Meg. This compares to the original JPEG of 4.2Meg and the GIF of 14.2Meg. Okay, I would expect the JPEG to be the smallest and the TIFF to be the largest. Also from what I've read, MapServer is meant to be faster with TIFFs because decoding is easy. The area of greatest interest that most users will be looking at is actually quite small. Ie. it will be viewed at high zoom levels. So, is it more efficient to use lots of individual TIFFs (indexed with gdaltindex) or just one big tiled TIFF? My intuition would suggest the individual files are faster, but is also clear that there are quite a few factors and a single file might be quicker? If I choose individual files, what is a good rule of thumb for optimum tile size? Are there any good utilities for making raster sub-tiles? Unless I "can't see for looking", I can't see one in the GDAL utility list? Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com From iansgis at gmail.com Mon May 5 17:09:59 2008 From: iansgis at gmail.com (Ian) Date: Mon, 5 May 2008 17:09:59 -0700 Subject: [mapserver-users] Arrow vector OR label at end of line Message-ID: <5b61c6c50805051709u77eeaf46t412719f217ca3dac@mail.gmail.com> I've seen some discussion of this but have yet to find a solution. I am dynamically drawing ~1000 arrows as lines via inline features. I need to place an arrowhead at the end of each line, following the angle the line is drawn at. Using a custom "arrow" truetype symbol and a negative GAP value I can draw arrowheads along the lines, but they vary according to scale and are along the line itself instead of at the end of it. I could probably do a point layer as arrowhead labels/symbols at angles which I would have to calculate and pass along in addition to the vector layer, but that would turn an already huge amount of inline features into a ginormous amount of inline features. Is there no way to mark one of a line's ends as the "end" and use it in label/symbol positioning? What about specifying an x,y value pair for a label/symbol position? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pearce.wang at gmail.com Mon May 5 21:37:47 2008 From: pearce.wang at gmail.com (wang pearce) Date: Tue, 6 May 2008 12:37:47 +0800 Subject: [mapserver-users] Line label upset down in Chinese Message-ID: Hi: In my mapserver application,Chinese language, I found the label for some road are upset down. For example, I have a vertical road in the map, and the label is "C1 C2 C3 C4". If the line vector is from top to bottom, so I will have a label of "C1 C2 C3 C4", but if the line vector draws from bottom to top, so the label will be displayed from the bottom, and I will get a label like "C4 C3 C2 C1" from top to bottom. I think it's because Chinese is not alphabet language, it's char by char label. I tried to modify label attribute "ANGLE" to auto, follow, but no use. I tried to modified "ANGLE" to a fixed number, it shows the label will not follow the road line. here is a screen shot: http://www.abovecloud.com/tmp/mapserv1.png How to make the label follow the road by first character appears on top of the line? Thanks. My font file: # This be the fonts list fz simfang.ttf My map file: MAP IMAGETYPE PNG EXTENT 116.2101 39.81697 116.559 40.0301 SIZE 800 600 #400 IMAGECOLOR 235 234 232 SHAPEPATH "/gis/data/sw/01" FONTSET "/gis/maps/fonts/fonts.list" SYMBOLSET "/gis/maps/symbols/symbols.sym" UNITS DD LAYER NAME "LEVEL0" CONNECTIONTYPE OGR CONNECTION "R.TAB" STATUS OFF TYPE LINE CLASSITEM "KIND" LABELITEM "PATHNAME" CLASS NAME "CHW" EXPRESSION ('[KIND]'='0101' || '[KIND]'='0102' || '[KIND]'='0103' || '[KIND]'='0105' || '[KIND]'='0107') STYLE COLOR 210 208 205 WIDTH 7 END STYLE COLOR 241 190 35 WIDTH 5 END LABEL COLOR 86 121 190 SHADOWCOLOR 255 255 255 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT fz SIZE 10 ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 300 BUFFER 4 encoding gb2312 ANGLE follow END #LABEL END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue May 6 00:45:39 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 6 May 2008 09:45:39 +0200 Subject: [mapserver-users] TIFF tiles and indexes References: <481F7E15.3030503@winwaed.com> Message-ID: Hi Richard, > The tile was originally a 24 bit JPEG, 5517 x 4889 pixels. our tiles are RGB images, each 4000x4000 pixels in size. If 8bit mode looks ugly you could use dithering but if you have the possibility you might want to use Gimp or the like to manually create an indexed image with an optimized palette. > I was concerned about efficiency so I looked at tiles. I used > gdal_translate to convert the GIF into a tiled TIFF. This was followed > by gdaladdo to produce overviews of 8x and 64x decimation. The size for internal tiling defaults to 256x256 pixels. You might try smaller sizes with the BLOCKXSIZE/BLOCKYSIZE creation option. Also, you should probably add more overviews. MapServer always tries to scale down. So if you have a zoom level lower than 8x MS loads and scales the full resolution image which might be slow. Since overviews are created offline you can safely select -r average for scaling and use the fast nearest neighbor resampler for on-the-fly scaling at runtime. > The TIFF file is now 29.3Meg. This compares to the original JPEG of > 4.2Meg and the GIF of 14.2Meg. > Also from what I've read, MapServer is meant to be faster with TIFFs > because decoding is easy. That's right, the fastest thing you can get is an uncompressed TIFF as long as your storage is fast enough. It's basically a tradeoff between IO time and CPU time. If you have a fast hard drive you can save CPU cycles by using an uncompressed TIFF but if you load your data from a floppy you might want to load only as few as possible from it and use CPU cycles for decompressing. > So, is it more efficient to use lots of individual TIFFs (indexed with > gdaltindex) or just one big tiled TIFF? As long as possible I would use a single file with internal overviews and tiling since using external tiles always leads to an index scan, filename loading and a open-load-close-cycle for every tile. So if you zoom out MS has to load more and more tiles which is _much_ slower than simply open a single file, select the best matching overview, load the appropriate data portion (the internal tiles) and close the file. Note that TIFFs can not get bigger than 4Gig as long as you have no BigTIFF-support... > If I choose individual files, what is a good rule of thumb for optimum > tile size? The optimum tile size depends on the raster size MS normally has to serve. If the size is static you can create tiles in a size that MS has to touch only 4 files in the worst case before switching to the next overview layer... You can go and make your tiles as large as possible (4Gig) but if your data changes you have to do that again. > Are there any good utilities for making raster sub-tiles? Unless I > "can't see for looking", I can't see one in the GDAL utility list? There's a python script "gdal_retile.py" in the GDAL suite. From lists at fuchsschwanzdomain.de Tue May 6 01:59:13 2008 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Tue, 6 May 2008 08:59:13 +0000 (UTC) Subject: [mapserver-users] Howto generate 24-bit png data from mapscript Message-ID: Hi there, looks like I got bitten by some mapscript bug, because I am unable to produce 24-bit png output via mapscript from my raster layers. I always get 8-bit rasters :( Despite the bug, I need a workaround for this as 8-bit rasters are insufficient for my purpose. Here is what my current testscript looks like: --cut-- import mapscript def index(req): req = mapscript.OWSRequest() req.loadParams() map = mapscript.mapObj() map.name = "TestMap" map.shapepath = "/path/to/orthoimage/" map.setProjection("init=epsg:4326") map.setMetaData("wms_srs","epsg:4326") map.setExtent(-180.0,-90.0,180.0,90.0) outputFormat=mapscript.outputFormatObj("GD/PNG") outputFormat.name="png" outputFormat.setMimetype("image/png") outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA outputFormat.transparent=1 outputFormat.setExtension("png") map.setOutputFormat(outputFormat) layer = mapscript.layerObj(map) layer.name= "foobar" layer.type = mapscript.MS_LAYER_RASTER layer.status = mapscript.MS_DEFAULT layer.data = "my_otho_image.img" map.save("/tmp/buggy.map") map.OWSDispatch(req) --cut-- Do you know a suitable workaround for this Problem? I consider this as a bug, because I am able to produce perfect 24-bit png data when using the genearted mapfile from cgi-mapserv. Regards Sven P.S.: I already reported this, but did not get a responce https://trac.osgeo.org/mapserver/ticket/2587 -- Threading is a performance hack. (The Art of Unix Programming by Eric S. Raymond) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From lists at fuchsschwanzdomain.de Tue May 6 02:05:56 2008 From: lists at fuchsschwanzdomain.de (Sven Geggus) Date: Tue, 6 May 2008 11:05:56 +0200 Subject: [mapserver-users] Howto generate 24-bit png data from mapscript? Message-ID: <20080506090555.GA15078@ultimate100.geggus.net> Hi there, looks like I got bitten by some mapscript bug, because I am unable to produce 24-bit png output via mapscript from my raster layers. I always get 8-bit rasters :( Despite the bug, I need a workaround for this as 8-bit rasters are insufficient for my purpose. Here is what my current testscript looks like: --cut-- import mapscript def index(req): req = mapscript.OWSRequest() req.loadParams() map = mapscript.mapObj() map.name = "TestMap" map.shapepath = "/path/to/orthoimage/" map.setProjection("init=epsg:4326") map.setMetaData("wms_srs","epsg:4326") map.setExtent(-180.0,-90.0,180.0,90.0) outputFormat=mapscript.outputFormatObj("GD/PNG") outputFormat.name="png" outputFormat.setMimetype("image/png") outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA outputFormat.transparent=1 outputFormat.setExtension("png") map.setOutputFormat(outputFormat) layer = mapscript.layerObj(map) layer.name= "foobar" layer.type = mapscript.MS_LAYER_RASTER layer.status = mapscript.MS_DEFAULT layer.data = "my_otho_image.img" map.save("/tmp/buggy.map") map.OWSDispatch(req) --cut-- Do you know a suitable workaround for this Problem? I consider this as a bug, because I am able to produce perfect 24-bit png data when using the genearted mapfile from cgi-mapserv. Regards Sven P.S.: I already reported this, but did not get a responce https://trac.osgeo.org/mapserver/ticket/2587 -- Threading is a performance hack. (The Art of Unix Programming by Eric S. Raymond) /me is giggls at ircnet, http://sven.gegg.us/ on the Web From guillaume.sueur at neogeo-online.net Tue May 6 02:44:44 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 06 May 2008 11:44:44 +0200 Subject: [mapserver-users] Howto generate 24-bit png data from mapscript? In-Reply-To: <20080506090555.GA15078@ultimate100.geggus.net> References: <20080506090555.GA15078@ultimate100.geggus.net> Message-ID: <4820288C.9070800@neogeo-online.net> Hi, Did you try using map.setOutputFormat("image/png") or map.setOutputFormat("png") ? Guillaume Sven Geggus a ?crit : > Hi there, > > looks like I got bitten by some mapscript bug, because I am unable to produce > 24-bit png output via mapscript from my raster layers. I always get 8-bit > rasters :( > > Despite the bug, I need a workaround for this as 8-bit rasters are > insufficient for my purpose. > > Here is what my current testscript looks like: > > --cut-- > import mapscript > > def index(req): > req = mapscript.OWSRequest() > req.loadParams() > > map = mapscript.mapObj() > map.name = "TestMap" > map.shapepath = "/path/to/orthoimage/" > map.setProjection("init=epsg:4326") > map.setMetaData("wms_srs","epsg:4326") > map.setExtent(-180.0,-90.0,180.0,90.0) > > outputFormat=mapscript.outputFormatObj("GD/PNG") > outputFormat.name="png" > outputFormat.setMimetype("image/png") > outputFormat.imagemode=mapscript.MS_IMAGEMODE_RGBA > outputFormat.transparent=1 > outputFormat.setExtension("png") > map.setOutputFormat(outputFormat) > > layer = mapscript.layerObj(map) > layer.name= "foobar" > layer.type = mapscript.MS_LAYER_RASTER > layer.status = mapscript.MS_DEFAULT > layer.data = "my_otho_image.img" > > map.save("/tmp/buggy.map") > > map.OWSDispatch(req) > --cut-- > > Do you know a suitable workaround for this Problem? > > I consider this as a bug, because I am able to produce perfect 24-bit png > data when using the genearted mapfile from cgi-mapserv. > > Regards > > Sven > > P.S.: I already reported this, but did not get a responce > https://trac.osgeo.org/mapserver/ticket/2587 > From jruiter at scheemda.nl Tue May 6 02:48:31 2008 From: jruiter at scheemda.nl (Johan Ruiter) Date: Tue, 6 May 2008 11:48:31 +0200 Subject: [mapserver-users] IE 7 Message-ID: Hi list, A lot of years I maintain and develop mapserver based giswebviewers for a number of customers. One of the possibilities for the users is to make a print of a map that they have created on the screen. Most of the users use still Microsoft Internet Explorer 6. More and more users migrate to IE7 and find out that this version automatically scale their landscape maps to fit on a portrait paper position. When they change the paper position back to landscape including the 'fitting' option, IE7 doesn't scale the map back to its original size. The only way to do this is to cancel the print-window, right-click on the map-window, choose 'Print Preview' and use the buttons of this window to print the map the right way. Most users don't understand this strange procedure and I don't like it either. To solve this problem, I tried to find a (JavaScript) function to use for users using IE7 that opens the 'Print Preview' window, so that the users will be able to handle all modifications to their map. Does anybody know such a function or another solution to this problem? Regards, Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Walter.Pleyer at lfrz.at Tue May 6 04:35:29 2008 From: Walter.Pleyer at lfrz.at (Pleyer, Walter) Date: Tue, 6 May 2008 13:35:29 +0200 Subject: [mapserver-users] Sequential or parallel access to layer data Message-ID: Hi folks! We have a question regarding performance tuning: When a mapfile contains multiple layers, does it access the data sequentailly or in a parallel way? Does it matter, if different layers all come from the same source or from various sources (file system, database(s) )? Thanks Walter From Schoenhammer.Herbert at Regensburg.de Tue May 6 06:32:04 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?=22Sch=F6nhammer=2C_Herbert=22?=) Date: Tue, 6 May 2008 15:32:04 +0200 Subject: [mapserver-users] Rendering of Static Text is different using gd or AGG ? Message-ID: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> Hi list, Using gd the declaration "©"renders the "copyright"-Sign: LAYER NAME "copyright" REQUIRES .. ... FEATURE POINTS 3 10 END END ... CLASS TEXT "© xxx" LABEL TYPE TRUETYPE FONT 'arial' SIZE 9 POSITION cr COLOR 0 0 0 OUTLINECOLOR 255 255 254 END END END # LAYER But using agg, the text ""© xxx" is rendered in the map. Please lokk at the examples ! Does anybody know, how to render the html-code like done in gd ? Does anybody know another way to render signs like "copyright" with gd ? Thanks very much greetings Herbert <> <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gd-rendering.gif Type: image/gif Size: 4408 bytes Desc: gd-rendering.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: agg-rendering.gif Type: image/gif Size: 4429 bytes Desc: agg-rendering.gif URL: From nellyfromma at gmail.com Tue May 6 06:54:16 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 6 May 2008 09:54:16 -0400 Subject: [mapserver-users] Hello Message-ID: <69935d110805060654k44341417u554813061f195695@mail.gmail.com> Hello everyone, I have experience using MS4W and getting an add-on application within it to generate maps to my liking. Unfortunately, I've been tasked with porting it over to OS X because we have a decent server not being used and we would like to host the above mentioned web app on it. I am running OS X Server 10.4.11 and haven't found very good documentation on setting up Mapserver on OS X Server at all. I have MacPorts set up and have PHP 5 currently loaded as well. Does anyone know of a step-by-step on how to setup Mapserver on OS X server that I could read to sort of point me in the right direction? If not, I can describe the issues I'm having here but it's more than likely that I'd rather just start over if I had a reliable tutorial of sorts. Thanks, Nelson From jeffmckenna at gmail.com Tue May 6 07:02:26 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Tue, 6 May 2008 10:02:26 -0400 Subject: [mapserver-users] Rendering of Static Text is different using gd or AGG ? In-Reply-To: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> References: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> Message-ID: <5EF64AE7-C731-487D-A857-9578415EA946@gmail.com> What about using your operating system's character set? For example on windows pressing ALT-0169 gives the copyright sign, and on MAC pressing OPTION-G. So your mapfile snippet is: TEXT "?" -jeff On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: > Hi list, > > Using gd the declaration "©"renders the "copyright"-Sign: > > LAYER > NAME "copyright" > REQUIRES .. > ... > > FEATURE > POINTS > 3 10 > END > END > > ... > > CLASS > TEXT "© xxx" > LABEL > TYPE TRUETYPE > FONT 'arial' > SIZE 9 > POSITION cr > COLOR 0 0 0 > OUTLINECOLOR 255 255 254 > END > END > > END # LAYER > > > > But using agg, the text ""© xxx" is rendered in the map. > > Please lokk at the examples ! > > Does anybody know, > how to render the html-code like done in gd ? > > Does anybody know another way to render signs like "copyright" with > gd ? > > Thanks very much > > greetings > Herbert > > <> <> > > rendering.gif>_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue May 6 08:19:39 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 06 May 2008 10:19:39 -0500 Subject: [mapserver-users] Rendering of Static Text is different using gd or AGG ? In-Reply-To: <5EF64AE7-C731-487D-A857-9578415EA946@gmail.com> References: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> <5EF64AE7-C731-487D-A857-9578415EA946@gmail.com> Message-ID: <4820770B.3080904@swoodbridge.com> Jeff, This is a good work around, but I think we need to ask the questions: What is the expected behavior? Is this a bug, should it be a bug? Should this behavior be documented? Should this be bugged for 5.2 freeze? Clearly some code is translating the © for the GD renderer. Adding cc: mapserver-dev, let me know If you want to to generate a bug based on this and assign it to 5.2 -Steve W Jeff McKenna wrote: > What about using your operating system's character set? For example on > windows pressing ALT-0169 gives the copyright sign, and on MAC pressing > OPTION-G. So your mapfile snippet is: TEXT "?" > > -jeff > > > > > On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: > >> Hi list, >> >> Using* gd* the declaration "©"renders the "copyright"-Sign: >> >> LAYER >> NAME "copyright" >> REQUIRES .. >> ... >> >> FEATURE >> POINTS >> 3 10 >> END >> END >> >> ... >> >> CLASS >> * TEXT "© xxx" * >> LABEL >> TYPE TRUETYPE >> FONT 'arial' >> SIZE 9 >> POSITION cr >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 254 >> END >> END >> >> END # LAYER >> >> >> >> But using agg, the text ""© xxx" is rendered in the map. >> >> Please lokk at the examples ! >> >> Does anybody know, >> how to render the html-code like done in gd ? >> >> Does anybody know another way to render signs like "copyright" with gd ? >> >> Thanks very much >> >> greetings >> Herbert >> >> <> <> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Tue May 6 07:39:12 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 6 May 2008 07:39:12 -0700 Subject: [mapserver-dev] Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ? In-Reply-To: <4820770B.3080904@swoodbridge.com> References: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> <5EF64AE7-C731-487D-A857-9578415EA946@gmail.com> <4820770B.3080904@swoodbridge.com> Message-ID: <30fe546d0805060739r295cabb6l2f6f1348292823f1@mail.gmail.com> It's a bug, and the regression suite even caught it :) http://trac.osgeo.org/mapserver/ticket/2600 On Tue, May 6, 2008 at 8:19 AM, Stephen Woodbridge wrote: > Jeff, > > This is a good work around, but I think we need to ask the questions: > > What is the expected behavior? > Is this a bug, should it be a bug? > Should this behavior be documented? > Should this be bugged for 5.2 freeze? > > Clearly some code is translating the © for the GD renderer. > > Adding cc: mapserver-dev, let me know If you want to to generate a bug based > on this and assign it to 5.2 > > -Steve W > > Jeff McKenna wrote: >> >> What about using your operating system's character set? For example on >> windows pressing ALT-0169 gives the copyright sign, and on MAC pressing >> OPTION-G. So your mapfile snippet is: TEXT "(c)" >> >> -jeff >> >> >> >> >> On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: >> >>> Hi list, >>> >>> Using* gd* the declaration "©"renders the "copyright"-Sign: >>> >>> LAYER >>> NAME "copyright" >>> REQUIRES .. >>> ... >>> >>> FEATURE >>> POINTS >>> 3 10 >>> END >>> END >>> ... >>> >>> CLASS >>> * TEXT "© xxx" * >>> LABEL >>> TYPE TRUETYPE >>> FONT 'arial' >>> SIZE 9 >>> POSITION cr >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 254 >>> END >>> END >>> END # LAYER >>> >>> >>> >>> But using agg, the text ""© xxx" is rendered in the map. >>> >>> Please lokk at the examples ! >>> >>> Does anybody know, >>> how to render the html-code like done in gd ? >>> >>> Does anybody know another way to render signs like "copyright" with gd ? >>> >>> Thanks very much >>> >>> greetings >>> Herbert >>> >>> <> <> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From David.Fawcett at state.mn.us Tue May 6 08:19:45 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 6 May 2008 10:19:45 -0500 Subject: [mapserver-users] Hello In-Reply-To: <69935d110805060654k44341417u554813061f195695@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD0D@s-sp22.pca.state.mn.us> Nelson, One of the easiest ways to get MapServer and other OS GIS tools up and running on OS X is to use William kyngesburye's frameworks and binaries found at http://www.kyngchaos.com/ David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Tuesday, May 06, 2008 8:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Hello Hello everyone, I have experience using MS4W and getting an add-on application within it to generate maps to my liking. Unfortunately, I've been tasked with porting it over to OS X because we have a decent server not being used and we would like to host the above mentioned web app on it. I am running OS X Server 10.4.11 and haven't found very good documentation on setting up Mapserver on OS X Server at all. I have MacPorts set up and have PHP 5 currently loaded as well. Does anyone know of a step-by-step on how to setup Mapserver on OS X server that I could read to sort of point me in the right direction? If not, I can describe the issues I'm having here but it's more than likely that I'd rather just start over if I had a reliable tutorial of sorts. Thanks, Nelson _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue May 6 09:29:47 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 06 May 2008 11:29:47 -0500 Subject: AW: [mapserver-users] Rendering of Static Text is different usinggd or AGG ? In-Reply-To: <22A5B28BED748F46B128ACE1C39FDD150622A83A@mail01.Regensburg.de> References: <22A5B28BED748F46B128ACE1C39FDD150622A83A@mail01.Regensburg.de> Message-ID: <4820877B.70604@swoodbridge.com> Created a bug for this: http://trac.osgeo.org/mapserver/ticket/2607 Sch?nhammer, Herbert wrote: > Hi Steve, > Hi Jeff, > > the workaround of jeff is working. > > I think, this is a bug, but I don't know how to generate a bug ! > > Could anybody do this for me ? > (Only if there are more people who think, this is a bug !) > > Thanks very much, > Herbert > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag >> von Stephen Woodbridge >> Gesendet: Dienstag, 6. Mai 2008 17:20 >> An: Jeff McKenna >> Cc: mapserver-dev; Mapserver-users >> Betreff: Re: [mapserver-users] Rendering of Static Text is >> different usinggd or AGG ? >> >> >> Jeff, >> >> This is a good work around, but I think we need to ask the questions: >> >> What is the expected behavior? >> Is this a bug, should it be a bug? >> Should this behavior be documented? >> Should this be bugged for 5.2 freeze? >> >> Clearly some code is translating the © for the GD renderer. >> >> Adding cc: mapserver-dev, let me know If you want to to generate a bug >> based on this and assign it to 5.2 >> >> -Steve W >> >> Jeff McKenna wrote: >>> What about using your operating system's character set? For >> example on >>> windows pressing ALT-0169 gives the copyright sign, and on >> MAC pressing >>> OPTION-G. So your mapfile snippet is: TEXT "?" >>> >>> -jeff >>> >>> >>> >>> >>> On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: >>> >>>> Hi list, >>>> >>>> Using* gd* the declaration "©"renders the "copyright"-Sign: >>>> >>>> LAYER >>>> NAME "copyright" >>>> REQUIRES .. >>>> ... >>>> >>>> FEATURE >>>> POINTS >>>> 3 10 >>>> END >>>> END >>>> >>>> ... >>>> >>>> CLASS >>>> * TEXT "© xxx" * >>>> LABEL >>>> TYPE TRUETYPE >>>> FONT 'arial' >>>> SIZE 9 >>>> POSITION cr >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 254 >>>> END >>>> END >>>> >>>> END # LAYER >>>> >>>> >>>> >>>> But using agg, the text ""© xxx" is rendered in the map. >>>> >>>> Please lokk at the examples ! >>>> >>>> Does anybody know, >>>> how to render the html-code like done in gd ? >>>> >>>> Does anybody know another way to render signs like >> "copyright" with gd ? >>>> Thanks very much >>>> >>>> greetings >>>> Herbert >>>> >>>> <> <> >>>> >>>> >> __________________________ >> _____________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> --------------------------------------------------------------- >> --------- >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From thomas.bonfort at gmail.com Tue May 6 08:36:52 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 6 May 2008 17:36:52 +0200 Subject: [mapserver-dev] Re: AW: [mapserver-users] Rendering of Static Text is different usinggd or AGG ? In-Reply-To: <4820877B.70604@swoodbridge.com> References: <22A5B28BED748F46B128ACE1C39FDD150622A83A@mail01.Regensburg.de> <4820877B.70604@swoodbridge.com> Message-ID: This should already be fixed in trunk. regards, thomas On Tue, May 6, 2008 at 6:29 PM, Stephen Woodbridge wrote: > Created a bug for this: > http://trac.osgeo.org/mapserver/ticket/2607 > > Sch?nhammer, Herbert wrote: > > > Hi Steve, > > Hi Jeff, > > > > the workaround of jeff is working. > > > > I think, this is a bug, but I don't know how to generate a bug ! > > > > Could anybody do this for me ? (Only if there are more people who think, > this is a bug !) > > > > Thanks very much, > > Herbert > > > > > > > -----Urspr?ngliche Nachricht----- > > > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stephen > Woodbridge > > > Gesendet: Dienstag, 6. Mai 2008 17:20 > > > An: Jeff McKenna > > > Cc: mapserver-dev; Mapserver-users > > > Betreff: Re: [mapserver-users] Rendering of Static Text is different > usinggd or AGG ? > > > > > > > > > > > > Jeff, > > > > > > This is a good work around, but I think we need to ask the questions: > > > > > > What is the expected behavior? > > > Is this a bug, should it be a bug? > > > Should this behavior be documented? > > > Should this be bugged for 5.2 freeze? > > > > > > Clearly some code is translating the © for the GD renderer. > > > > > > Adding cc: mapserver-dev, let me know If you want to to generate a bug > based on this and assign it to 5.2 > > > > > > -Steve W > > > > > > Jeff McKenna wrote: > > > > > > > What about using your operating system's character set? For > > > > > > > example on > > > > > > > windows pressing ALT-0169 gives the copyright sign, and on > > > > > > > MAC pressing > > > > > > > OPTION-G. So your mapfile snippet is: TEXT "(c)" > > > > > > > > > > > > > > > > > > > > -jeff > > > > > > > > > > > > > > > > > > > > On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: > > > > > > > > > > > > > Hi list, > > > > > > > > > > Using* gd* the declaration "©"renders the "copyright"-Sign: > > > > > > > > > > LAYER > > > > > NAME "copyright" > > > > > REQUIRES .. > > > > > ... > > > > > > > > > > FEATURE > > > > > POINTS > > > > > 3 10 > > > > > END > > > > > END > > > > > ... > > > > > > > > > > CLASS > > > > > * TEXT "© xxx" * > > > > > LABEL > > > > > TYPE TRUETYPE > > > > > FONT 'arial' > > > > > SIZE 9 > > > > > POSITION cr > > > > > COLOR 0 0 0 > > > > > OUTLINECOLOR 255 255 254 > > > > > END > > > > > END > > > > > END # LAYER > > > > > > > > > > > > > > > > > > > > But using agg, the text ""© xxx" is rendered in the map. > > > > > > > > > > Please lokk at the examples ! > > > > > > > > > > Does anybody know, > > > > > how to render the html-code like done in gd ? > > > > > > > > > > Does anybody know another way to render signs like > > > > > > > > > > > > > > > > > > > > > "copyright" with gd ? > > > > > > > > > > > > Thanks very much > > > > > > > > > > greetings > > > > > Herbert > > > > > > > > > > <> <> > > > > > > > > > > > > > > > > > > > > > > __________________________ > > > _____________________ > > > > > > > > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > > > > > > > > > > > > > > > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------- > > > --------- > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From woodbri at swoodbridge.com Tue May 6 09:44:53 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 06 May 2008 11:44:53 -0500 Subject: [mapserver-dev] Re: [mapserver-users] Rendering of Static Text is different using gd or AGG ? In-Reply-To: <30fe546d0805060739r295cabb6l2f6f1348292823f1@mail.gmail.com> References: <22A5B28BED748F46B128ACE1C39FDD150622A837@mail01.Regensburg.de> <5EF64AE7-C731-487D-A857-9578415EA946@gmail.com> <4820770B.3080904@swoodbridge.com> <30fe546d0805060739r295cabb6l2f6f1348292823f1@mail.gmail.com> Message-ID: <48208B05.9000105@swoodbridge.com> Thanks Paul and Thomas, Thomas just closed it as dup of #2403. I should have tried it on trunk, but didn't have a build conveniently available. -Steve W Paul Ramsey wrote: > It's a bug, and the regression suite even caught it :) > > http://trac.osgeo.org/mapserver/ticket/2600 > > On Tue, May 6, 2008 at 8:19 AM, Stephen Woodbridge > wrote: >> Jeff, >> >> This is a good work around, but I think we need to ask the questions: >> >> What is the expected behavior? >> Is this a bug, should it be a bug? >> Should this behavior be documented? >> Should this be bugged for 5.2 freeze? >> >> Clearly some code is translating the © for the GD renderer. >> >> Adding cc: mapserver-dev, let me know If you want to to generate a bug based >> on this and assign it to 5.2 >> >> -Steve W >> >> Jeff McKenna wrote: >>> What about using your operating system's character set? For example on >>> windows pressing ALT-0169 gives the copyright sign, and on MAC pressing >>> OPTION-G. So your mapfile snippet is: TEXT "(c)" >>> >>> -jeff >>> >>> >>> >>> >>> On 6-May-08, at 9:32 AM, Sch?nhammer, Herbert wrote: >>> >>>> Hi list, >>>> >>>> Using* gd* the declaration "©"renders the "copyright"-Sign: >>>> >>>> LAYER >>>> NAME "copyright" >>>> REQUIRES .. >>>> ... >>>> >>>> FEATURE >>>> POINTS >>>> 3 10 >>>> END >>>> END >>>> ... >>>> >>>> CLASS >>>> * TEXT "© xxx" * >>>> LABEL >>>> TYPE TRUETYPE >>>> FONT 'arial' >>>> SIZE 9 >>>> POSITION cr >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 254 >>>> END >>>> END >>>> END # LAYER >>>> >>>> >>>> >>>> But using agg, the text ""© xxx" is rendered in the map. >>>> >>>> Please lokk at the examples ! >>>> >>>> Does anybody know, >>>> how to render the html-code like done in gd ? >>>> >>>> Does anybody know another way to render signs like "copyright" with gd ? >>>> >>>> Thanks very much >>>> >>>> greetings >>>> Herbert >>>> >>>> <> <> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> From gis at vanbooth.com Tue May 6 10:03:32 2008 From: gis at vanbooth.com (Rob) Date: Tue, 6 May 2008 18:03:32 +0100 Subject: [mapserver-users] msDrawGDAL query Message-ID: <2a955f950805061003y4ee7e635p1d0a469bcf05600c@mail.gmail.com> Apologies if this is a repost - Google mail problems! This is my LAYER level output from a Mapscript 4.8.6 install, which results in a blank image appearing with its copyright message. The missing Context layer is made up of four non-overlapping TIF images, which are indexed via a shapefile. [Tue May 6 17:09:09 2008].48097 msDrawRasterLayerLow(Context): entering. [Tue May 6 17:09:09 2008].51092 msDrawGDAL(): src=0,0,1050,1950, dst=80,483,1,2 [Tue May 6 17:09:09 2008].54071 msDrawGDAL(): src=0,0,1050,1950, dst=80,483,1,2 [Tue May 6 17:09:09 2008].57269 msDrawGDAL(): src=0,0,1050,1950, dst=80,483,1,2 [Tue May 6 17:09:09 2008].60451 msDrawGDAL(): src=0,0,1050,1950, dst=80,483,1,2 [Tue May 6 17:09:09 2008].69079 msDrawMap(): Layer 0 (Context), 0.022s [Tue May 6 17:09:09 2008].69259 msDrawMap(): Layer 1 (CopyrightMessage), 0.000s [Tue May 6 17:09:09 2008].165473 msDrawMap(): Drawing Label Cache, 0.096s [Tue May 6 17:09:09 2008].165559 msDrawMap() total time: 0.119s My query is, do the identical dst values on the msDrawGDAL output lines point to an invalid shapefile for the Context layer? MTIA Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue May 6 12:10:24 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 06 May 2008 15:10:24 -0400 Subject: [mapserver-users] msDrawGDAL query In-Reply-To: <2a955f950805061003y4ee7e635p1d0a469bcf05600c@mail.gmail.com> References: <2a955f950805061003y4ee7e635p1d0a469bcf05600c@mail.gmail.com> Message-ID: <4820AD20.3060302@pobox.com> Rob wrote: > Apologies if this is a repost - Google mail problems! > > This is my LAYER level output from a Mapscript 4.8.6 install, which > results in a blank image appearing with its copyright message. The > missing Context layer is made up of four non-overlapping TIF images, > which are indexed via a shapefile. > > [Tue May 6 17:09:09 2008].48097 msDrawRasterLayerLow(Context): entering. > [Tue May 6 17:09:09 2008].51092 msDrawGDAL(): src=0,0,1050,1950, > dst=80,483,1,2 > [Tue May 6 17:09:09 2008].54071 msDrawGDAL(): src=0,0,1050,1950, > dst=80,483,1,2 > [Tue May 6 17:09:09 2008].57269 msDrawGDAL(): src=0,0,1050,1950, > dst=80,483,1,2 > [Tue May 6 17:09:09 2008].60451 msDrawGDAL(): src=0,0,1050,1950, > dst=80,483,1,2 > [Tue May 6 17:09:09 2008].69079 msDrawMap(): Layer 0 (Context), 0.022s > [Tue May 6 17:09:09 2008].69259 msDrawMap(): Layer 1 > (CopyrightMessage), 0.000s > [Tue May 6 17:09:09 2008].165473 msDrawMap(): Drawing Label Cache, 0.096s > [Tue May 6 17:09:09 2008].165559 msDrawMap() total time: 0.119s > > My query is, do the identical dst values on the msDrawGDAL output lines > point to an invalid shapefile for the Context layer? Rob, It is suspicious that the four input files are all treated the same way. But the output window is 1x2 pixels in size. I suspect they are all essentially mapped to a fraction of a pixel, and the 1x2 result in due to some sort of rounding oddness. You might want to verify that the tileindex coordinates are really in the same coordinate system that the layer is declared with in your mapfile. I suspect a coordinate system problem. 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 | President OSGeo, http://osgeo.org From pramsey at cleverelephant.ca Tue May 6 12:20:16 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 6 May 2008 12:20:16 -0700 Subject: [mapserver-users] Sequential or parallel access to layer data In-Reply-To: References: Message-ID: <30fe546d0805061220w5f2a2575ib29a800a45f1b82b@mail.gmail.com> Except for WMS layers, which are fetched in parallel, Mapserver accesses and renders layers one at a time, from top to bottom in the map file. Where you put your layers won't have much/any effect. On Tue, May 6, 2008 at 4:35 AM, Pleyer, Walter wrote: > Hi folks! > > We have a question regarding performance tuning: > When a mapfile contains multiple layers, does it access the data sequentailly or in a parallel way? > Does it matter, if different layers all come from the same source or from various sources (file system, database(s) )? > > Thanks > Walter > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Schoenhammer.Herbert at Regensburg.de Wed May 7 00:26:52 2008 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?=22Sch=F6nhammer=2C_Herbert=22?=) Date: Wed, 7 May 2008 09:26:52 +0200 Subject: [mapserver-users] Some Problems with WMS-GetLegendGraphic using agg and pixmaps Message-ID: <22A5B28BED748F46B128ACE1C39FDD150622A83E@mail01.Regensburg.de> Hi list, I have got some troubles generating legends with MS 5.0.2, used as a WMS-Server, using agg - driver and generating the legends from a pixmap with getlegendgraphic-request. (See the mapfile snippets below !) First Problem: ========== Using gd the pixmap referenced by KEYIMAGE is scaled to the size defined by KEYSIZE. Using agg the pixmap is NOT scaled. A part of the pixmap is shown as legend-graphic. This part is not scaled, size is 100% as in the original pixmap. (My pixmap is larger than the size defined by KEYSIZE) Second Problem: ============ Scaling the original pixmap DOES NOT really solve the problem, because: Always only a part of the original pixmap is used for generating the legend-graphic: it is the part "cr" (center right) of the pixmap. So, if the original pixmap is scaled, only the "cr"-part is very small drawn in the legend-graphic. The size of the part is correct after scaling the original pixmap, but always only a part of the original pixmap is shown. Solution ? ======= I think this is a bug. But if you know a workaround, please let us know ! Thanks very much Herbert Mapfile Snippets: ============ OUTPUTFORMAT #NAME png #DRIVER "GD/PNG" MIMETYPE "image/png" NAME 'AGG_Q' DRIVER AGG/PNG EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END LEGEND STATUS ON #KEYSIZE 55 40 KEYSIZE 200 520 KEYSPACING 10 5 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT "verdana" SIZE 8 END # END LABEL TRANSPARENT ON IMAGECOLOR 255 255 255 END #LEGEND .... LAYER ... CLASS NAME "Stadtplan farbig" KEYIMAGE "/data/raster/stadtplan/stadtplan_legende_hoch.png" END .... END # LAYER ..... -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Wed May 7 01:45:17 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Wed, 7 May 2008 14:15:17 +0530 Subject: [MAPSERVER-USERS] How TO change color of a layer using mapscript(without editing mapfile) In-Reply-To: <16997022.post@talk.nabble.com> References: <16983974.post@talk.nabble.com> <16997022.post@talk.nabble.com> Message-ID: <2d6d8af10805070145i44d9f9a6meec3ecc616619ac1@mail.gmail.com> Hi Yatendra, To change the colour of a layer, you can create a temporary layer, assign the attributes (like color,outline color etc) and then add the shape to your existing layer and redraw the map image.. The following code might help, //*************Code for creating a temporary layer to be added onto the existing map****** layerObj oTempLayer = new layerObj(map); oTempLayer.type = MS_LAYER_TYPE.MS_LAYER_POLYGON; oTempLayer.status = 1; classObj oTempClass = new classObj(oTempLayer); labelObj oLabel = oTempClass.label; oLabel.color.setRGB(0,0,0); styleObj oStyle = new styleObj(oTempClass); oStyle.outlinecolor.setRGB(100, 12, 12); oStyle.color.setRGB(221, 160, 221); oTempLayer.addFeature(shape); layer.close(); oImg = map.draw(); int i= oTempLayer.draw(map, oImg); //********************************************************************************* Regards, Sucharita On Fri, May 2, 2008 at 12:18 PM, yatendra wrote: > > Hi > Thanks for reply > i tried this code but there is null reference in > "$style->color->setRGB( 255, 0, 0 ); > $style->outlinecolor->setRGB( 255, 0, 0 );" > this step.... > Please giude me... > color of a layer is not schanging > > Thanks Regards > > > yatendra wrote: > > > > Hi friends, > > I am using asp.net to develop application on mapserver. > > I want to change layer color available in my mapfile. > > Is it possible to change layer color without editing layer in mapfile? > > What function do i need to use to do this? > > Can i give unique value to each feature? > > Is it also possible? > > Please reply if any one know regarding this. > > any idea will also be helpful to me... > > Thanks regards > > > > -- > View this message in context: > http://www.nabble.com/How-TO-change-color-of-a-layer-using-mapscript%28without-editing-mapfile%29-tp16983974p16997022.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From goutosig at yahoo.fr Wed May 7 01:48:03 2008 From: goutosig at yahoo.fr (guillaume champlong) Date: Wed, 7 May 2008 08:48:03 +0000 (GMT) Subject: [mapserver-users] mapserver compilation Message-ID: <690213.49687.qm@web27309.mail.ukl.yahoo.com> Hi everyone, I am trying to compile mapserver 5.0.0, but an error occurs. configure options: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: agg_font_freetype.o Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: no then when I launch 'make', these errors come : mapowscommon.c:(.text+0xfa9): undefined reference to `xmlNewComment' mapowscommon.c:(.text+0xfb5): undefined reference to `xmlAddSibling' or also: mapowscommon.c:(.text+0x1087): undefined reference to `xmlNewNs' mapowscommon.c:(.text+0x1099): undefined reference to `xmlNewNode' mapowscommon.c:(.text+0x10eb): undefined reference to `xmlNewChild' What can I do? thanks G. __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Wed May 7 02:25:11 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Wed, 7 May 2008 14:55:11 +0530 Subject: [mapserver-users] Coverting lat/long to pixel Message-ID: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> Hi friends, Can somebody please help me with a code to convert the latitude and longitude of a point to pixel co-ordinates? I am using ASP.NET. I have heard that GDAL has a method for this conversion. MS4W comes with GDAL as its tools, but I don't know how to implement it in C#.NET. Thanks in advance, Regards, Sucharita -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandeepkumar.jakkaraju at gmail.com Wed May 7 02:50:23 2008 From: sandeepkumar.jakkaraju at gmail.com (Sandeep Kumar Jakkaraju) Date: Wed, 7 May 2008 15:20:23 +0530 Subject: [mapserver-users] Coverting lat/long to pixel In-Reply-To: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> References: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> Message-ID: This can be done using simple interpolation also .................................... On 5/7/08, Sucharita Samuel wrote: > > Hi friends, > Can somebody please help me with a code to convert the > latitude and longitude of a point to pixel co-ordinates? I am using > ASP.NET . I have heard that GDAL has a method for this > conversion. MS4W comes with GDAL as its tools, but I don't know how to > implement it in C#.NET. > > > Thanks in advance, > > Regards, > Sucharita > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Thanks Regards Sandeep Kumar Jakkaraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Wed May 7 02:52:56 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Wed, 7 May 2008 15:22:56 +0530 Subject: [mapserver-users] Coverting lat/long to pixel In-Reply-To: References: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> Message-ID: <2d6d8af10805070252q5b81c01esaf502e6055c62b64@mail.gmail.com> Hi Sandeep, A code fragment will be really helpful. Thanks, Sucharita On Wed, May 7, 2008 at 3:20 PM, Sandeep Kumar Jakkaraju < sandeepkumar.jakkaraju at gmail.com> wrote: > > This can be done using simple interpolation also > .................................... > > > On 5/7/08, Sucharita Samuel wrote: > > > Hi friends, > > Can somebody please help me with a code to convert the > > latitude and longitude of a point to pixel co-ordinates? I am using > > ASP.NET . I have heard that GDAL has a method for this > > conversion. MS4W comes with GDAL as its tools, but I don't know how to > > implement it in C#.NET. > > > > > > Thanks in advance, > > > > Regards, > > Sucharita > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- > Thanks > Regards > > Sandeep Kumar Jakkaraju > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Wed May 7 04:41:54 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Wed, 7 May 2008 17:11:54 +0530 Subject: [mapserver-users] Coverting lat/long to pixel In-Reply-To: References: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> <2d6d8af10805070252q5b81c01esaf502e6055c62b64@mail.gmail.com> Message-ID: <2d6d8af10805070441g1a74106eye6a99957565f51da@mail.gmail.com> Thanks a lot Sandeep. I think the code works. Regards, Sucharita On Wed, May 7, 2008 at 3:40 PM, Sandeep Kumar Jakkaraju < sandeepkumar.jakkaraju at gmail.com> wrote: > > Hi Sucharita > > > these are example values........ > > private double minlat=28.6023 ; > private double minlon=77.2018 ; > private double maxlat=28.6382 ; > private double maxlon=77.2493 ; > > private int screenwidth=2156; > private int screenheight=1674; > private Point p; > > > public Point convertLatLonToPixel(double lat,double lon) > { > double cellsizex = (maxlon-minlon)/screenwidth; > double cellsizey = (maxlat-minlat)/screenheight; > > int ix = (int) ((lon-minlon)/cellsizex); > int iy1 = (int) ((maxlat-lat)/cellsizex); > int iy2 = (int) ((maxlat-lat)/cellsizey); > int iy = (int) (iy1+iy2)/2; > > p = new Point(ix,iy); > return p; > } > > > > > On 5/7/08, Sucharita Samuel wrote: > > > > Hi Sandeep, > > A code fragment will be really helpful. > > > > Thanks, > > Sucharita > > > > > > On Wed, May 7, 2008 at 3:20 PM, Sandeep Kumar Jakkaraju < > > sandeepkumar.jakkaraju at gmail.com> wrote: > > > > > > > > This can be done using simple interpolation also > > > .................................... > > > > > > > > > On 5/7/08, Sucharita Samuel wrote: > > > > > > > Hi friends, > > > > Can somebody please help me with a code to convert the > > > > latitude and longitude of a point to pixel co-ordinates? I am using > > > > ASP.NET . I have heard that GDAL has a method for > > > > this conversion. MS4W comes with GDAL as its tools, but I don't know how to > > > > implement it in C#.NET. > > > > > > > > > > > > Thanks in advance, > > > > > > > > Regards, > > > > Sucharita > > > > > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > -- > > > Thanks > > > Regards > > > > > > Sandeep Kumar Jakkaraju > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > -- > Thanks > Regards > > Sandeep Kumar Jakkaraju > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at westnet.com.au Wed May 7 04:07:10 2008 From: tim.bowden at westnet.com.au (Tim Bowden) Date: Wed, 07 May 2008 19:07:10 +0800 Subject: [mapserver-users] mapserver compilation In-Reply-To: <690213.49687.qm@web27309.mail.ukl.yahoo.com> References: <690213.49687.qm@web27309.mail.ukl.yahoo.com> Message-ID: <1210158430.7528.3.camel@edoras> On Wed, 2008-05-07 at 08:48 +0000, guillaume champlong wrote: > Hi everyone, > > I am trying to compile mapserver 5.0.0, but an error occurs. > configure options: > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > AGG Freetype support: agg_font_freetype.o > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > Proj.4 support: -DUSE_PROJ > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > GEOS support: -DUSE_GEOS > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > then when I launch 'make', these errors come : > > mapowscommon.c:(.text+0xfa9): undefined reference to `xmlNewComment' > mapowscommon.c:(.text+0xfb5): undefined reference to `xmlAddSibling' > > or also: > > mapowscommon.c:(.text+0x1087): undefined reference to `xmlNewNs' > mapowscommon.c:(.text+0x1099): undefined reference to `xmlNewNode' > mapowscommon.c:(.text+0x10eb): undefined reference to `xmlNewChild' > > What can I do? > thanks > > G. What do you get from: $head config.log $tail config.log What platform are you compiling on? Tim Bowden > From goutosig at yahoo.fr Wed May 7 05:23:10 2008 From: goutosig at yahoo.fr (guillaume champlong) Date: Wed, 7 May 2008 12:23:10 +0000 (GMT) Subject: [mapserver-users] mapserver compilation Message-ID: <265546.26564.qm@web27307.mail.ukl.yahoo.com> I am compiling on fedora 7. ----- Message d'origine ---- De : Tim Bowden ? : guillaume champlong Cc : Mapserver Users Envoy? le : Mercredi, 7 Mai 2008, 16h37mn 10s Objet : Re: [mapserver-users] mapserver compilation On Wed, 2008-05-07 at 08:48 +0000, guillaume champlong wrote: > Hi everyone, > > I am trying to compile mapserver 5.0.0, but an error occurs. > configure options: > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > AGG Freetype support: agg_font_freetype.o > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > Proj.4 support: -DUSE_PROJ > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > GEOS support: -DUSE_GEOS > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > then when I launch 'make', these errors come : > > mapowscommon.c:(.text+0xfa9): undefined reference to `xmlNewComment' > mapowscommon.c:(.text+0xfb5): undefined reference to `xmlAddSibling' > > or also: > > mapowscommon.c:(.text+0x1087): undefined reference to `xmlNewNs' > mapowscommon.c:(.text+0x1099): undefined reference to `xmlNewNode' > mapowscommon.c:(.text+0x10eb): undefined reference to `xmlNewChild' > > What can I do? > thanks > > G. What do you get from: $head config.log $tail config.log What platform are you compiling on? Tim Bowden > __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From atul.dravid at iworktech.com Wed May 7 06:01:26 2008 From: atul.dravid at iworktech.com (Atul Dravid) Date: Wed, 7 May 2008 18:31:26 +0530 Subject: [mapserver-users] using GEos.GDAL In-Reply-To: <1210158430.7528.3.camel@edoras> References: <690213.49687.qm@web27309.mail.ukl.yahoo.com> <1210158430.7528.3.camel@edoras> Message-ID: <020301c8b042$768fba00$9600a8c0@ATULDRAVID> Dear Friends, This question is not directly related mapserver but it is related to application we are developing using mapserver. We want .NET library of GDAL and we are unable to find it... Any clues ? From brian.hulbert at linquest.com Wed May 7 06:03:15 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Wed, 7 May 2008 09:03:15 -0400 Subject: [mapserver-users] Coverting lat/long to pixel In-Reply-To: <2d6d8af10805070441g1a74106eye6a99957565f51da@mail.gmail.com> References: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> <2d6d8af10805070252q5b81c01esaf502e6055c62b64@mail.gmail.com> <2d6d8af10805070441g1a74106eye6a99957565f51da@mail.gmail.com> Message-ID: <004901c8b042$b71cfec0$2556fc40$@hulbert@linquest.com> Something else to consider if your map uses multiple (or switches between) "projections". My C# map application uses both equirectangular and orthographic projections. Therefore, I do the following before the lines of code that Sandeep presented: // create a Mapserver pointObj for the point being converted pointObj pObj = new pointObj(location.LongitudeDeg, location.LatitudeDeg, 0, 0); // create 2 projection objects - a From projection object (a latlong projection) and a To projection object (the current projection) projectionObj projectionFrom = new projectionObj("+proj=latlong +ellps=WGS84 +datum=WGS84 +over"); projectionObj projectionTo = new projectionObj(m_baseMap.getProjection()); // perform the projection of the point from the current projection to a latlong projection; the point's x (lon) and y (lat) are updated in place bool bSuccess = (((int)MS_RETURN_VALUE.MS_SUCCESS) == pObj.project(projectionFrom, projectionTo)); if (bSuccess) { // Sandeep's code here } // cleanup temporary objects pObj.Dispose(); projectionFrom.Dispose(); projectionTo.Dispose(); Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sucharita Samuel Sent: Wednesday, May 07, 2008 7:42 AM To: Sandeep Kumar Jakkaraju Cc: mapserver-users Subject: Re: [mapserver-users] Coverting lat/long to pixel Thanks a lot Sandeep. I think the code works. Regards, Sucharita On Wed, May 7, 2008 at 3:40 PM, Sandeep Kumar Jakkaraju wrote: Hi Sucharita these are example values........ private double minlat=28.6023 ; private double minlon=77.2018 ; private double maxlat=28.6382 ; private double maxlon=77.2493 ; private int screenwidth=2156; private int screenheight=1674; private Point p; public Point convertLatLonToPixel(double lat,double lon) { double cellsizex = (maxlon-minlon)/screenwidth; double cellsizey = (maxlat-minlat)/screenheight; int ix = (int) ((lon-minlon)/cellsizex); int iy1 = (int) ((maxlat-lat)/cellsizex); int iy2 = (int) ((maxlat-lat)/cellsizey); int iy = (int) (iy1+iy2)/2; p = new Point(ix,iy); return p; } On 5/7/08, Sucharita Samuel wrote: Hi Sandeep, A code fragment will be really helpful. Thanks, Sucharita On Wed, May 7, 2008 at 3:20 PM, Sandeep Kumar Jakkaraju wrote: This can be done using simple interpolation also .................................... On 5/7/08, Sucharita Samuel wrote: Hi friends, Can somebody please help me with a code to convert the latitude and longitude of a point to pixel co-ordinates? I am using ASP.NET . I have heard that GDAL has a method for this conversion. MS4W comes with GDAL as its tools, but I don't know how to implement it in C#.NET. Thanks in advance, Regards, Sucharita _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Thanks Regards Sandeep Kumar Jakkaraju _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Thanks Regards Sandeep Kumar Jakkaraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed May 7 06:33:51 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 7 May 2008 15:33:51 +0200 Subject: [mapserver-users] using GEos.GDAL In-Reply-To: <020301c8b042$768fba00$9600a8c0@ATULDRAVID> References: <690213.49687.qm@web27309.mail.ukl.yahoo.com> <1210158430.7528.3.camel@edoras> <020301c8b042$768fba00$9600a8c0@ATULDRAVID> Message-ID: Hi, GDAL contains a SWIG generated c# interface containing assembly wrappers for the GDAL/OGR/OSR libraries for more information see: http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp The related binaries are contained by the FWTools package, or you can compile the binaries from the source according to this description: http://trac.osgeo.org/gdal/wiki/GdalOgrCsharpCompile You can find the examples in the source tree for accessing the interface: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps Best regards, Tamas 2008/5/7 Atul Dravid : > Dear Friends, > > This question is not directly related mapserver but it is related to > application we are developing using mapserver. > > We want .NET library of GDAL and we are unable to find it... > > Any clues ? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Gagan.Bansal at relianceada.com Wed May 7 08:49:37 2008 From: Gagan.Bansal at relianceada.com (Gagan.Bansal at relianceada.com) Date: Wed, 7 May 2008 21:19:37 +0530 Subject: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? In-Reply-To: <481B8D7F.1000908@where2getit.com> Message-ID: Hi Jon, I am from Ritesh team. We are getting around 2 secs average response time for analysis in Oracle routing . I am in process of fine tuning like incorporating link level preference, fine tuning the partition size, connected components. I was also thinking of precaching the results(may be with xml) if it is available. Have you used any precaching also? Regards Gagan Jon Scarbrough Sent by: mapserver-users-bounces at lists.osgeo.org 05/03/2008 03:24 AM To riteshambastha cc mapserver-users at lists.osgeo.org Subject Re: [MAPSERVER-USERS] Any other Routing solution than pgRouting/Oracle NDM ? Ritesh, I need to weigh in little bit since we are using the Oracle Geocoder/Routeserver in conjunction with the Navteq data set. Our experience is that on a well tuned Oracle appserver/db cluster, an normal route will calculate in about .5 secs. But, there is a lot of tuning to get your java engine properly configured to deal with garbage collection and you must have enough memory to hold sufficient partitions in memory so you don't have to go back to disk. We then take the Oracle route response and convert it to xml that is sent back to the browser and have Openlayers lay it on the map using SVG/VML. The biggest amount of time is spent parsing the XML and creating the SVG. There are a lot of moving parts and as Steve mentioned, you need to measure each part (route server, web server handling the conversion of route response to the browser, Openlayers layer manipulation). In my experience, the Oracle router is not the bottleneck. Thanks. Jon Scarbrough Where2GetIt.com riteshambastha wrote: > Thanks Steve, > > I am pretty sure your words are making a mapserver enthusiast's life very > easy. > > For Route computation I am using a licensed version of Oracle Spatial DB. > Now, as PostGIS is looking so promising in the market, I am also thinking to > shift to PostGIS. > > And after that, I will re-engineer my routing code using : > >> pgRouting >> Ka-map xmlOverlay >> > > I guess I am going in the right direction. > > Regards, > Ritesh Ambastha > > > > Stephen Woodbridge wrote: > >> riteshambastha wrote: >> >>> Thanks Steve, >>> >>> Route computation is taking an average time of 1.2 sec. >>> Post this, showing route on the browser takes a lot of time. >>> I am not using kamap xml overlay and any lib of openlayers. >>> >>> I am posting this route result xml into a db, and allowing a map file to >>> read this db and show the route on map. >>> I know this is not an efficient way to do the job. >>> >> I would start by adding some timing to a log file so you KNOW where your >> time is getting spent, then work on optimizing the larger times. >> >> I think this is the fastest way to go unless the route is relatively >> small in the number of nodes in the polyline. You should look at getting >> rid of the xml, in fact, why are you going to xml at all and then >> putting it back into the database. The data is being generate in the >> database then you extract it and format it into xml and then put the xml >> back into the database for mapserver to pick up. I think you should just >> put it into a table of routes with a unique sessionid+routeid key then >> pass the key to mapserver to use on selecting the right record. >> >> >>> I got to know that openlayers libs can help me to achieve the same. I >>> want >>> to know how in-efficient will be to use kamap xml overlay instead of any >>> fn >>> of openlayers. >>> >> You can server the route as a wfs layer, but if it is complicated it >> might be too many points to handle quickly in the browser. >> >> -Steve >> >> >>> Regards, >>> Ritesh Ambastha >>> >>> Stephen Woodbridge wrote: >>> >>>> riteshambastha wrote: >>>> >>>>> Dear friends, >>>>> >>>>> I have seen routing based on postgis routing and oracle network data >>>>> models. >>>>> Even though, they serve the purpose very efficiently, they take some >>>>> 1sec/2sec/3sec to display the routes. I checked them with OpenLayers >>>>> and >>>>> Ka-map. Still, I feel there must be a way to reduce this route display >>>>> time. >>>>> Is there any any other ways to show routing/directions over mapserver >>>>> based >>>>> maps? Any other data structure and programming in C/python can serve >>>>> the >>>>> purpose ? >>>>> >>>> What is taking too long? >>>> 1) is it the route computation >>>> 2) transfering the route data to OpenLayers >>>> 3) rendering the route data as a vector layer >>>> >>>> Have you considered writing some code on the server that generates an >>>> image file from the route data and returns a url for the image that can >>>> be then pinned to OpenLayers like a marker? You could do this by writing >>>> a wrapper in your favorite scripting language around the request to >>>> generate the route. >>>> >>>> -Steve W >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yosoycore at gmail.com Wed May 7 10:34:37 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Wed, 7 May 2008 19:34:37 +0200 Subject: [mapserver-users] Layer always turn on (not possible to activate/deactivate) Message-ID: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> Hi everyone, here's a newbie question: I'm using mapserver with ka-map and I have different layers in a unique mapfile. I want to set ONE of this layers always visible, without possibility to turn off (deactivate) it. For this purpose I thought the STATUS tag on this LAYER was the solution: Status DEFAULT to turn on this layer permanently... but it didn't work. This is the code of the always-turn-on layer: LAYER NAME "ambits" METADATA "DESCRIPTION" "?mbitos catalanes" END GROUP "BASE" TYPE LINE STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "host=*** dbname=*** user=*** password=*** port=5432 options='-c client_encoding=LATIN1'" DATA "the_geom from car_aft_line" CLASS NAME 'Ambits' COLOR 143 143 143 END END With this code I can turn on/turn off this layer... so what's the problem? (the other layers seems to behave properly well) Thanks a lot! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.casagrande at gmail.com Wed May 7 10:45:30 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Wed, 7 May 2008 19:45:30 +0200 Subject: [mapserver-users] Layer always turn on (not possible to activate/deactivate) In-Reply-To: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> References: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> Message-ID: <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> Il giorno 07/mag/08, alle ore 19:34, Emilio Ponce ha scritto: > Hi everyone, here's a newbie question: > > I'm using mapserver with ka-map and I have different layers in a > unique mapfile. I want to set ONE of this layers always visible, > without possibility to turn off (deactivate) it. For this purpose I > thought the STATUS tag on this LAYER was the solution: Status > DEFAULT to turn on this layer permanently... but it didn't work. > You have to set no GROUP at all for that layer. With this setting, layer will go in "base" group and will stays always on. Bye -- Luca Casagrande Gubbio (PG) "Siamo tutti in una fogna, ma che alcuni di noi guardano le stelle" O. Wilde -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at westnet.com.au Wed May 7 19:42:34 2008 From: tim.bowden at westnet.com.au (Tim Bowden) Date: Thu, 08 May 2008 10:42:34 +0800 Subject: [mapserver-users] mapserver compilation In-Reply-To: <651694.2848.qm@web27314.mail.ukl.yahoo.com> References: <651694.2848.qm@web27314.mail.ukl.yahoo.com> Message-ID: <1210214554.5965.7.camel@edoras> On Wed, 2008-05-07 at 12:22 +0000, guillaume champlong wrote: > I am compiling on fedora 7. > > What can I do? > > thanks > > > > G. > > What do you get from: > $head config.log > $tail config.log > > What platform are you compiling on? > > Tim Bowden Please don't top post. It makes it much more difficult to follow the progression of the thread over multiple posts. Also please keep this on the list. That way others can also benefit from seeing the problem solved. What do you get when you do: head config.log and: tail config.log Regards, Tim Bowden From goutosig at yahoo.fr Wed May 7 21:00:52 2008 From: goutosig at yahoo.fr (guillaume champlong) Date: Thu, 8 May 2008 04:00:52 +0000 (GMT) Subject: [mapserver-users] mapserver compilation Message-ID: <876308.52854.qm@web27311.mail.ukl.yahoo.com> hi, head of config.log is: It was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --with-png --with-agg=/usr/local/src/agg-2.5 --with-freetype --with-postgis=/usr/loca/pgsql/bin --with-proj --with-ogr --with-gdal --with-geos --with-tiff --with-wfs --with-wfsclient --with-wms --with-wmsclient --with-wcs --with-gd --with-jpeg ## --------- ## ## Platform. ## tail of config.log is: #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define YYTEXT_POINTER 1 #define STDC_HEADERS 1 configure: exit 0 thanks for your help G. ----- Message d'origine ---- De : Tim Bowden ? : guillaume champlong Cc : Mapserver Users Envoy? le : Jeudi, 8 Mai 2008, 8h12mn 34s Objet : Re: Re : [mapserver-users] mapserver compilation On Wed, 2008-05-07 at 12:22 +0000, guillaume champlong wrote: > I am compiling on fedora 7. > > What can I do? > > thanks > > > > G. > > What do you get from: > $head config.log > $tail config.log > > What platform are you compiling on? > > Tim Bowden Please don't top post. It makes it much more difficult to follow the progression of the thread over multiple posts. Also please keep this on the list. That way others can also benefit from seeing the problem solved. What do you get when you do: head config.log and: tail config.log Regards, Tim Bowden __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Wed May 7 23:39:57 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Thu, 08 May 2008 08:39:57 +0200 Subject: [mapserver-users] ROSA applet with PHP Mapscript Message-ID: <4822A03D.6090802@sis-ter.it> Hi all. I'm trying to use ROSA applet with PHPMapscript (I had jbox with cgi mapserver, and I'd like to have similar functions). Looking for documentation (both in web and in downloaded .tar), I've found only few pages. Does anyone know any link with deeper documentation or usage examples? But it is not necessary to use ROSA: is there something other, which can be used for the same tasks? Thanks a lot. Regards, Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From yosoycore at gmail.com Thu May 8 03:22:40 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Thu, 8 May 2008 12:22:40 +0200 Subject: [mapserver-users] Layer always turn on (not possible to activate/deactivate) In-Reply-To: <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> References: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> Message-ID: <9c2e09570805080322n64acce8dgf80506c01f77b3b3@mail.gmail.com> Hi Luca, Thanks for your help. To set no GROUP is not working.. Maybe this is the solution using mapserver only, but with ka-map if I don't set group to this layer then the other layers disappear from the legend and in general everything stops work well. Is there other way? thanks anyway 2008/5/7 Luca Casagrande : > > Il giorno 07/mag/08, alle ore 19:34, Emilio Ponce ha scritto: > > Hi everyone, here's a newbie question: > > I'm using mapserver with ka-map and I have different layers in a unique > mapfile. I want to set ONE of this layers always visible, without > possibility to turn off (deactivate) it. For this purpose I thought the > STATUS tag on this LAYER was the solution: Status DEFAULT to turn on this > layer permanently... but it didn't work. > > > You have to set no GROUP at all for that layer. > With this setting, layer will go in "base" group and will stays always on. > > Bye > -- > Luca Casagrande > Gubbio (PG) > > "Siamo tutti in una fogna, ma che alcuni di noi guardano le stelle" O. > Wilde > > -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.casagrande at gmail.com Thu May 8 03:40:26 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Thu, 8 May 2008 12:40:26 +0200 Subject: [mapserver-users] Layer always turn on (not possible to activate/deactivate) In-Reply-To: <9c2e09570805080322n64acce8dgf80506c01f77b3b3@mail.gmail.com> References: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> <9c2e09570805080322n64acce8dgf80506c01f77b3b3@mail.gmail.com> Message-ID: <8d09169d0805080340w186e3d57idb579f9576e11b1f@mail.gmail.com> On Thu, May 8, 2008 at 12:22 PM, Emilio Ponce wrote: > Hi Luca, Thanks for your help. > > To set no GROUP is not working.. Maybe this is the solution using mapserver > only, but with ka-map if I don't set group to this layer then the other > layers disappear from the legend and in general everything stops work well. > Is there other way? > > thanks anyway > Hy Emilio, I think there's a problem with your mapfile. In ka-Map the layers without the attribute GROUP, are all merged in the base layer; you can check this in the Foss4g 2006 presentation (page 12). Let me know. Luca [1]: http://www.ominiverdi.org/ka-map/ka-map/presentations/foss4g2006/foss4g2006.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Thu May 8 05:27:05 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Thu, 8 May 2008 17:57:05 +0530 Subject: [mapserver-users] Coverting lat/long to pixel In-Reply-To: <6093050626285877431@unknownmsgid> References: <2d6d8af10805070225w47f0b037w4f8eb3d34802854c@mail.gmail.com> <2d6d8af10805070252q5b81c01esaf502e6055c62b64@mail.gmail.com> <2d6d8af10805070441g1a74106eye6a99957565f51da@mail.gmail.com> <6093050626285877431@unknownmsgid> Message-ID: <2d6d8af10805080527y539924d4le08f35dbb8ef2a7f@mail.gmail.com> Thanks Brian. I actually need to find the intersection of a rectangle and circle. As you must be aware that a circle in mapserver terminology is a shapeobject drawn using the upper left and bottom right co-ordinates of a rectangle. In the above case I get the intersection of two rectangles, but as the circle lies inside the rectangle, i am not able to find whether my first rectangle intersects with the bottom corner of the rectangle(that contains the circle), which is not part of the circle. Any solution in this case would be of great help. Thanks, Sucharita On Wed, May 7, 2008 at 6:33 PM, Hulbert, Brian wrote: > Something else to consider if your map uses multiple (or switches > between) "projections". > > > > My C# map application uses both equirectangular and orthographic > projections. Therefore, I do the following before the lines of code that > Sandeep presented: > > > > // create a Mapserver pointObj for the point being converted > > pointObj pObj = new pointObj(location.LongitudeDeg, > location.LatitudeDeg, 0, 0); > > > > // create 2 projection objects - a From projection object (a > latlong projection) and a To projection object (the current projection) > > projectionObj projectionFrom = new projectionObj("+proj=latlong > +ellps=WGS84 +datum=WGS84 +over"); > > projectionObj projectionTo = new projectionObj > (m_baseMap.getProjection()); > > > > // perform the projection of the point from the current > projection to a latlong projection; the point's x (lon) and y (lat) are > updated in place > > bool bSuccess = (((int)MS_RETURN_VALUE.MS_SUCCESS) == > pObj.project(projectionFrom, projectionTo)); > > > > if (bSuccess) > > { > > // Sandeep's code here > > } > > // cleanup temporary objects > > pObj.Dispose(); > > projectionFrom.Dispose(); > > projectionTo.Dispose(); > > > > Brian > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Sucharita Samuel > *Sent:* Wednesday, May 07, 2008 7:42 AM > *To:* Sandeep Kumar Jakkaraju > *Cc:* mapserver-users > *Subject:* Re: [mapserver-users] Coverting lat/long to pixel > > > > Thanks a lot Sandeep. I think the code works. > > Regards, > Sucharita > > On Wed, May 7, 2008 at 3:40 PM, Sandeep Kumar Jakkaraju < > sandeepkumar.jakkaraju at gmail.com> wrote: > > > > Hi Sucharita > > > > > > these are example values........ > > > > private double minlat=28.6023 ; > private double minlon=77.2018 ; > private double maxlat=28.6382 ; > private double maxlon=77.2493 ; > > private int screenwidth=2156; > private int screenheight=1674; > private Point p; > > > public Point convertLatLonToPixel(double lat,double lon) > { > double cellsizex = (maxlon-minlon)/screenwidth; > double cellsizey = (maxlat-minlat)/screenheight; > > int ix = (int) ((lon-minlon)/cellsizex); > int iy1 = (int) ((maxlat-lat)/cellsizex); > int iy2 = (int) ((maxlat-lat)/cellsizey); > int iy = (int) (iy1+iy2)/2; > > p = new Point(ix,iy); > > return p; > } > > > > > > > > > On 5/7/08, *Sucharita Samuel* wrote: > > Hi Sandeep, > A code fragment will be really helpful. > > Thanks, > Sucharita > > > > On Wed, May 7, 2008 at 3:20 PM, Sandeep Kumar Jakkaraju < > sandeepkumar.jakkaraju at gmail.com> wrote: > > > > This can be done using simple interpolation also > .................................... > > > > On 5/7/08, *Sucharita Samuel* wrote: > > Hi friends, > Can somebody please help me with a code to convert the > latitude and longitude of a point to pixel co-ordinates? I am using > ASP.NET . I have heard that GDAL has a method for this > conversion. MS4W comes with GDAL as its tools, but I don't know how to > implement it in C#.NET. > > > Thanks in advance, > > Regards, > Sucharita > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Thanks > Regards > > Sandeep Kumar Jakkaraju > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- > Thanks > Regards > > Sandeep Kumar Jakkaraju > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Thu May 8 05:38:17 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Thu, 8 May 2008 18:08:17 +0530 Subject: [mapserver-users] Re: How TO change color of a layer using mapscript(without editing mapfile) In-Reply-To: <19491491.131210225195548.JavaMail.nabble@isper.nabble.com> References: <19491491.131210225195548.JavaMail.nabble@isper.nabble.com> Message-ID: <2d6d8af10805080538k697dccb5leece5eedc1237bbf@mail.gmail.com> Hi Yatendra, layer.close(); , here layer is the base layer. The code that I have provided is used to colour features in the layer (You can change the entire layer color also). The layer has many features, which can be retrieved using shapeObj shape = layer.getFeature(shapeInd, -1); "shapeInd" is the index of the shape. This is the shape that i use to add into the temporary layer created oTempLayer.addFeature(shape); So, once I add the shape that I want to color to the temporary layer, I close the base layer using layer.close(); I hope this helps. Regards, Sucharita > On Thu, May 8, 2008 at 11:09 AM, wrote: > Dear Sucharita, > I have one more question. U have used > "oTempLayer.addFeature(shape);" > > How to get shape? > > Which layers shape are you talking about? Please clarify my doubt. > I am newbie to asp.net mapserver. > Thanks Regards > Yatendra Jaiswal > > Sucharita Samuel wrote: > > > > Hi Yatendra, > > To change the colour of a layer, you can create a > > temporary layer, assign the attributes (like color,outline color etc) and > > then add the shape to your existing layer and redraw the map image.. > > The following code might help, > > > > //*************Code for creating a temporary layer to be added onto the > > existing map****** > > > > layerObj oTempLayer = new layerObj(map); > > oTempLayer.type = MS_LAYER_TYPE.MS_LAYER_POLYGON; > > oTempLayer.status = 1; > > classObj oTempClass = new classObj(oTempLayer); > > labelObj oLabel = oTempClass.label; > > oLabel.color.setRGB(0,0,0); > > styleObj oStyle = new styleObj(oTempClass); > > oStyle.outlinecolor.setRGB(100, 12, 12); > > oStyle.color.setRGB(221, 160, 221); > > oTempLayer.addFeature(shape); > > layer.close(); > > oImg = map.draw(); > > int i= oTempLayer.draw(map, oImg); > > > > > //********************************************************************************* > > > > Regards, > > Sucharita > > > > > > On Fri, May 2, 2008 at 12:18 PM, yatendra > > wrote: > > > >> > >> Hi > >> Thanks for reply > >> i tried this code but there is null reference in > >> "$style->color->setRGB( 255, 0, 0 ); > >> $style->outlinecolor->setRGB( 255, 0, 0 );" > >> this step.... > >> Please giude me... > >> color of a layer is not schanging > >> > >> Thanks Regards > >> > >> > >> yatendra wrote: > >> > > >> > Hi friends, > >> > I am using asp.net to develop application on mapserver. > >> > I want to change layer color available in my mapfile. > >> > Is it possible to change layer color without editing layer in mapfile? > >> > What function do i need to use to do this? > >> > Can i give unique value to each feature? > >> > Is it also possible? > >> > Please reply if any one know regarding this. > >> > any idea will also be helpful to me... > >> > Thanks regards > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/How-TO-change-color-of-a-layer-using-mapscript%28without-editing-mapfile%29-tp16983974p16997022.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > Quoted from: > > http://www.nabble.com/How-TO-change-color-of-a-layer-using-mapscript%28without-editing-mapfile%29-tp16983974p17100215.html > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu May 8 07:23:44 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 08 May 2008 10:23:44 -0400 Subject: [mapserver-users] ROSA applet with PHP Mapscript In-Reply-To: <4822A03D.6090802@sis-ter.it> References: <4822A03D.6090802@sis-ter.it> Message-ID: <48230CF0.1020208@mapgears.com> Carlo Pelliconi wrote: > Hi all. > I'm trying to use ROSA applet with PHPMapscript (I had jbox with cgi > mapserver, and I'd like to have similar functions). > Looking for documentation (both in web and in downloaded .tar), I've > found only few pages. > Does anyone know any link with deeper documentation or usage examples? > But it is not necessary to use ROSA: is there something other, which > can be used for the same tasks? FYI the mapserv CGI also has support for ROSA applet parameters, see at the bottom of this page: http://mapserver.gis.umn.edu/docs/reference/cgi/controls Unfortunately that documentation doesn't include usage examples so you'd have to figure the way to setup your mapserv CGI template yourself. With respect to ROSA with PHP MapScript, there is the good old GMap demo app that uses both. Not the best example of good coding, but at least that's something to get started. You can download the GMap demo with all scripts and data at http://dl.maptools.org/dl/gmap-ms46.zip and you can see it online at http://www.mapsherpa.com/gmap/ Daniel -- Daniel Morissette http://www.mapgears.com/ From nellyfromma at gmail.com Thu May 8 07:51:39 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Thu, 8 May 2008 10:51:39 -0400 Subject: [mapserver-users] Transparencies and IE6 Message-ID: <69935d110805080751s35479e16q7da6860663606d54@mail.gmail.com> I am having trouble getting cross-browser uniformity with MapServer. None of my transparent-enabled layers appear to draw at all under IE6 and in Firefox 2 The layers draw, but without transparency enabled. They work as expected with IE7 however. Is there a known issue with this? From bartvde at osgis.nl Thu May 8 07:56:04 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 08 May 2008 16:56:04 +0200 Subject: [mapserver-users] Transparencies and IE6 In-Reply-To: <69935d110805080751s35479e16q7da6860663606d54@mail.gmail.com> References: <69935d110805080751s35479e16q7da6860663606d54@mail.gmail.com> Message-ID: <252a4b0620d57cfde8db9ba2021fc77d@pop02.backbone.tiscomhosting.nl> This a known issue/bug in IE6. You can use a png hack to overcome this problem (though performance might be an issue), e.g.: http://code.google.com/p/pnghack/ Best regards, Bart On Thu, 8 May 2008 10:51:39 -0400, "Nelson Soto" wrote: > I am having trouble getting cross-browser uniformity with MapServer. > None of my transparent-enabled layers appear to draw at all under IE6 > and in Firefox 2 The layers draw, but without transparency enabled. > They work as expected with IE7 however. Is there a known issue with > this? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From charles.theobald at ncmail.net Thu May 8 07:37:35 2008 From: charles.theobald at ncmail.net (Charles Theobald) Date: Thu, 08 May 2008 10:37:35 -0400 Subject: [mapserver-users] Simple polygon imagemap creation Message-ID: <4823102F.20501@ncmail.net> Does anyone have an code example of a simple polygon imagemap? We want to display a county map, and go to a specific page for the county that is selected (clicked on). Thanks in advance. -- Charles Theobald NC Division of Water Resources charles.theobald at ncmail.net 919-715-5425 From David.Fawcett at state.mn.us Thu May 8 08:15:20 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 8 May 2008 10:15:20 -0500 Subject: [mapserver-users] Simple polygon imagemap creation In-Reply-To: <4823102F.20501@ncmail.net> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD1E@s-sp22.pca.state.mn.us> Charles, Take a look at this HowTo that I wrote quite a while ago. http://mapserver.gis.umn.edu/docs/howto/imagemaps This gets you the imagemap, I used a separate mapserver request to get the image. A comment by Robert Burgholzer indicates that you can get both the image and the imagemap if you add a querymap object to your map file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Charles Theobald Sent: Thursday, May 08, 2008 9:38 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Simple polygon imagemap creation Does anyone have an code example of a simple polygon imagemap? We want to display a county map, and go to a specific page for the county that is selected (clicked on). Thanks in advance. -- Charles Theobald NC Division of Water Resources charles.theobald at ncmail.net 919-715-5425 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rwburgholzer at deq.virginia.gov Thu May 8 08:19:01 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 8 May 2008 11:19:01 -0400 Subject: [mapserver-users] Simple polygon imagemap creation Message-ID: <6C097DA58429B743A67070F98BE73A37025DD742@deqex01.deq.local> Charles, I have done just this thing, and it is quite easy. Coincidentally, I have just completed a set of these for Virginia's Water Resources division. I am doing this for a drought monitoring application, creating static, clickable image maps that then connect to a small data retrieval application. Here is an example (coincidentally on the Virginia - North Carolina border): http://www.deq.virginia.gov/watersupplyplanning/drought/southside/curren t.html I based my version on a good example by Steve Lime: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_ma ps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap =true Anyhow, the basics are: the layer that defines the image map needs to have header, footer, and body templates set. The header just has to open the tag, and the footer closes it , and the bodytemplate has to have the stuff that tells mapserver where to put the shapes. Entities in brackets [] in these files are variables from your layer. In my example, I am using a PostGIS layer, but the same holds true for shapefiles. The only other contingency is that you should have a querymap defined (at least in the way that I am calling it, one needs this), and that is simple: QUERYMAP STATUS ON STYLE NORMAL END Please get in touch if I can help at all. I call it with the following: http://172.16.210.66/cgi-bin/mapserv.exe?map=C:\usr\local\home\httpd\deq _website\watersupplyplanning\drought\state\imagemap.map&qlayer=proj_segg roups&mode=nquery&layers=proj_seggroups%20sym_box%20sym_flow%20sym_preci p%20poli_bounds%20copyright%20sym_pdi%20sym_gw%20statusnormal%20statuswa rn%20statuswatch%20statusemerg%20statusblank My layer, and templates are as follows: LAYER CONNECTIONTYPE postgis CONNECTION "host=localhost user=dbfoo password=xoxoxo dbname=wsp" NAME proj_seggroups GROUP proj_seggroups TYPE POLYGON STATUS ON DEBUG OFF DATA "the_geom from proj_seggroups" TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" CLASS NAME "proj_seggroups" SYMBOL 'circle' SIZE 3 COLOR -1 -1 -1 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 END TOLERANCE 10 PROJECTION "proj=latlong" END METADATA "DESCRIPTION" "Stat Results" END END imapheader.html: bodytemplate.html: [groupname] imapfooter.html: Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Charles Theobald Sent: Thursday, May 08, 2008 10:38 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Simple polygon imagemap creation Does anyone have an code example of a simple polygon imagemap? We want to display a county map, and go to a specific page for the county that is selected (clicked on). Thanks in advance. -- Charles Theobald NC Division of Water Resources charles.theobald at ncmail.net 919-715-5425 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Thu May 8 08:20:46 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 8 May 2008 09:20:46 -0600 Subject: [mapserver-users] OpenLayers + dBox + Postgres text search Message-ID: I had a bad link in the site below, which I have fixed. I've been working on an OpenLayers site that incorporates the dBox tree legend that is popular with many MapServer users. dBox is based on YUI and was developed by Steve Lime and others at the Minnesota DNR. The site is still pretty sloppy but may be of interest: http://www2.tetonwyo.org/mapserver/ol.html Also of possible interest is the use of the new PostgreSQL 8.3 full text search. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From nellyfromma at gmail.com Thu May 8 08:49:03 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Thu, 8 May 2008 11:49:03 -0400 Subject: [mapserver-users] Tile Indexing Shape files. Message-ID: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> I'm trying to split up and index my parcel layer and perhaps other layers to address performance concerns. I have used the shp2tile program to split my files, but now where do I go from here? I have used gdaltindex before to utilize orthos that were already tiled, so I understand the concept but this is slightly different. What do I do from here? From woodbri at swoodbridge.com Thu May 8 09:59:10 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 08 May 2008 11:59:10 -0500 Subject: [mapserver-users] Tile Indexing Shape files. In-Reply-To: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> References: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> Message-ID: <4823315E.9010900@swoodbridge.com> Nelson Soto wrote: > I'm trying to split up and index my parcel layer and perhaps other > layers to address performance concerns. I have used the shp2tile > program to split my files, but now where do I go from here? I have > used gdaltindex before to utilize orthos that were already tiled, so I > understand the concept but this is slightly different. What do I do > from here? cd /path/to/shapepath find parcel_dir -name \*.shp -print > parcels.in tile4ms parcels.in parcels-tidx shptree parcels-tidx find parcel_dir -name \*.shp -exec shptree {} \; this should create a tile index based on the files in parcels.in and create spatial indexes for all the tiled shapefiles. If you are on windows, you are on you own :) or you can install cygwin to run the commands above. -Steve From deangadoury at gmail.com Thu May 8 08:59:43 2008 From: deangadoury at gmail.com (Dean Gadoury) Date: Thu, 8 May 2008 11:59:43 -0400 Subject: [mapserver-users] Tile Indexing Shape files. In-Reply-To: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> References: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> Message-ID: <30a1c6fa0805080859n2a947d1dl150e96291b95feaf@mail.gmail.com> The next step is to use tile4ms to create your tile index. You can find info here: http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms Dean On Thu, May 8, 2008 at 11:49 AM, Nelson Soto wrote: > I'm trying to split up and index my parcel layer and perhaps other > layers to address performance concerns. I have used the shp2tile > program to split my files, but now where do I go from here? I have > used gdaltindex before to utilize orthos that were already tiled, so I > understand the concept but this is slightly different. What do I do > from here? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Thu May 8 10:09:13 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Thu, 8 May 2008 13:09:13 -0400 Subject: [mapserver-users] How do I make a shapefile polygon thicker within UMN Mapserver Message-ID: Hi, How do I make a shapefile polygon thicker within UMN Mapserver? I have listed below the layer that correctly displays the outlines contained within the shapefile, but I can't figure out how to make the polygon outlines thicker. LAYER # name of layer NAME stlouisxdrive GROUP "gv:stlouisxdrive" PROJECTION "init=epsg:26915" END # what type of data is this? TYPE POLYGON DATA "C:/TEMP/64Resolution" # always returned with interface STATUS ON CLASS OUTLINECOLOR 255 0 0 END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Thu May 8 10:17:26 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 8 May 2008 13:17:26 -0400 Subject: [mapserver-users] How do I make a shapefile polygon thicker withinUMN Mapserver Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D4C@deqex01.deq.local> John, One very common approach is to use a symbol for your line style, and then adjust the size. Viz: CLASS NAME "proj_seggroups" SYMBOL 'circle' SIZE 3 COLOR -1 -1 -1 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 END And then of course, you need to have the symbol 'circle' defined. This is done in the top portion of the mapfile (perhaps the order is not important, but in all the examples I have seen it is there): SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Mitchell Sent: Thursday, May 08, 2008 1:09 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How do I make a shapefile polygon thicker withinUMN Mapserver Hi, How do I make a shapefile polygon thicker within UMN Mapserver? I have listed below the layer that correctly displays the outlines contained within the shapefile, but I can't figure out how to make the polygon outlines thicker. LAYER # name of layer NAME stlouisxdrive GROUP "gv:stlouisxdrive" PROJECTION "init=epsg:26915" END # what type of data is this? TYPE POLYGON DATA "C:/TEMP/64Resolution" # always returned with interface STATUS ON CLASS OUTLINECOLOR 255 0 0 END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Thu May 8 10:17:32 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 8 May 2008 10:17:32 -0700 Subject: [mapserver-users] Tile Indexing Shape files. In-Reply-To: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> References: <69935d110805080849n33c42030i3069049da1e044aa@mail.gmail.com> Message-ID: <30fe546d0805081017t2ddf7bd5ra7b69af67c687c3f@mail.gmail.com> Nelson, If you are on Linux and can compile your own Mapserver, consider compiling the svn trunk version, it has a shape file performance improvement that may obviate the need for tiling. Yours, Paul On Thu, May 8, 2008 at 8:49 AM, Nelson Soto wrote: > I'm trying to split up and index my parcel layer and perhaps other > layers to address performance concerns. I have used the shp2tile > program to split my files, but now where do I go from here? I have > used gdaltindex before to utilize orthos that were already tiled, so I > understand the concept but this is slightly different. What do I do > from here? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From deangadoury at gmail.com Thu May 8 10:23:30 2008 From: deangadoury at gmail.com (Dean Gadoury) Date: Thu, 8 May 2008 13:23:30 -0400 Subject: [mapserver-users] How do I make a shapefile polygon thicker within UMN Mapserver In-Reply-To: References: Message-ID: <30a1c6fa0805081023o168e9525mc2e5c62b26b706b4@mail.gmail.com> I don't think you can change the thickness of a polygon's outline. You may have to draw the layer twice, once as TYPE POLYGON, then again ad TYPE LINE. MapServer actually allows you to draw polygon features as lines. With line layers you can change the thickness of features. Your second layer could be done like this: LAYER NAME stlouisxdrive GROUP "gv:stlouisxdrive" PROJECTION "init=epsg:26915" END TYPE LINE DATA "C:/TEMP/64Resolution" STATUS ON CLASS STYLE COLOR 255 0 0 END END On Thu, May 8, 2008 at 1:09 PM, John Mitchell wrote: > Hi, > > How do I make a shapefile polygon thicker within UMN Mapserver? > > I have listed below the layer that correctly displays the outlines > contained within the shapefile, but I can't figure out how to make the > polygon outlines thicker. > > > LAYER > # name of layer > NAME stlouisxdrive > GROUP "gv:stlouisxdrive" > > PROJECTION > "init=epsg:26915" > END > > # what type of data is this? > TYPE POLYGON > > DATA "C:/TEMP/64Resolution" > > # always returned with interface > STATUS ON > > CLASS > OUTLINECOLOR 255 0 0 > END > END > > > -- > John J. Mitchell > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From deangadoury at gmail.com Thu May 8 10:26:02 2008 From: deangadoury at gmail.com (Dean Gadoury) Date: Thu, 8 May 2008 13:26:02 -0400 Subject: [mapserver-users] How do I make a shapefile polygon thicker within UMN Mapserver In-Reply-To: <30a1c6fa0805081023o168e9525mc2e5c62b26b706b4@mail.gmail.com> References: <30a1c6fa0805081023o168e9525mc2e5c62b26b706b4@mail.gmail.com> Message-ID: <30a1c6fa0805081026m4449f855h281bf017194355e4@mail.gmail.com> Oops. Sorry about that. Hit send by accident. LAYER NAME stlouisxdrive GROUP "gv:stlouisxdrive" PROJECTION "init=epsg:26915" END TYPE LINE DATA "C:/TEMP/64Resolution" STATUS ON CLASS STYLE COLOR 255 0 0 WIDTH 2 END END END If you are using Mapserver 5.x this will work. If you are using an older version, you will need to use the method another user suggested using the circle symbol. Dean On Thu, May 8, 2008 at 1:23 PM, Dean Gadoury wrote: > I don't think you can change the thickness of a polygon's outline. You may > have to draw the layer twice, once as TYPE POLYGON, then again ad TYPE LINE. > MapServer actually allows you to draw polygon features as lines. With line > layers you can change the thickness of features. > > Your second layer could be done like this: > > LAYER > NAME stlouisxdrive > GROUP "gv:stlouisxdrive" > PROJECTION > "init=epsg:26915" > END > > TYPE LINE > > DATA "C:/TEMP/64Resolution" > > STATUS ON > CLASS > STYLE > COLOR 255 0 0 > END > END > > On Thu, May 8, 2008 at 1:09 PM, John Mitchell > wrote: > >> Hi, >> >> How do I make a shapefile polygon thicker within UMN Mapserver? >> >> I have listed below the layer that correctly displays the outlines >> contained within the shapefile, but I can't figure out how to make the >> polygon outlines thicker. >> >> >> LAYER >> # name of layer >> NAME stlouisxdrive >> GROUP "gv:stlouisxdrive" >> >> PROJECTION >> "init=epsg:26915" >> END >> >> # what type of data is this? >> TYPE POLYGON >> >> DATA "C:/TEMP/64Resolution" >> >> # always returned with interface >> STATUS ON >> >> CLASS >> OUTLINECOLOR 255 0 0 >> END >> END >> >> >> -- >> John J. Mitchell >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu May 8 10:14:18 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 08 May 2008 19:14:18 +0200 Subject: [mapserver-users] How do I make a shapefile polygon thicker within UMN Mapserver In-Reply-To: References: Message-ID: <482334EA.1080704@osgis.nl> See the FAQ under section How do I set line width in my maps? http://mapserver.gis.umn.edu/docs/faq Best regards, Bart John Mitchell wrote: > Hi, > > How do I make a shapefile polygon thicker within UMN Mapserver? > > I have listed below the layer that correctly displays the outlines > contained within the shapefile, but I can't figure out how to make the > polygon outlines thicker. > > > LAYER > # name of layer > NAME stlouisxdrive > GROUP "gv:stlouisxdrive" > > PROJECTION > "init=epsg:26915" > END > > # what type of data is this? > TYPE POLYGON > > DATA "C:/TEMP/64Resolution" > > # always returned with interface > STATUS ON > > CLASS > OUTLINECOLOR 255 0 0 > END > END > > > -- > John J. Mitchell > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From rwburgholzer at deq.virginia.gov Thu May 8 11:04:26 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 8 May 2008 14:04:26 -0400 Subject: [mapserver-users] Using PHPMapscript from php script called in console Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D4E@deqex01.deq.local> I am having a strange occurrence. I have a php script that uses PHP mapscript to manipulate some maps. I have no problem with it if I call the script from my web browser, however, when I call it via command line PHP, i.e., "php scriptname.php", it fails when I try to do anything with the map object. I have done a phpinfo() from my script and verified that mapscript is in fact loaded when php is invoked from the command line. It looks as thought the command that I am using to instantiate the map object instance is failing. To create the object, I use: $this->map = ms_newMapObj($map_path.$map_file); To verify this creation I use: print_r((array)$this->map ); Which yields, Array( [0] => ) when I call it from the command line, and a fill set of object properties from the browser, as in: Array ( [_handle_] => Resource id #41 [numlayers] => 8 [name] => PrecipMap [status] => 1 [debug] => 1 [width] => 720 [height] => 500 [maxsize] => 2048 [transparent] => -1111 [interlace] => -1111 [imagetype] => AGG [imagequality] => -1111 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #42 [minx] => -79.322914123535 ... (etc. etc.) The only difference that I can think of is that the php-cgi.exe is getting used by the browser, while php.exe is used at the command line. I tried executing the script with the cgi version, but to no avail, same behaviour, script dies without any word whenever I try to call a mapObj method. System: Windows XP PHP 5.2.5 Mapscript - PHP MapScript Version => ($Revision: 7251 $ $Date: 2008-01-08 12:04:53 -0500 (Tue, 08 Jan 2008) $) Any guidance would be appreciated, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From csmith at insequenceinc.com Thu May 8 12:48:39 2008 From: csmith at insequenceinc.com (csmith) Date: Thu, 8 May 2008 15:48:39 -0400 Subject: [mapserver-users] tiling (WMS-C) Message-ID: <01d601c8b144$833c2ab0$1914000a@InSequence.local> Hello, I would like to take advantage of the expediency of visual feedback afforded by presenting my raster image as a mosaic of tiles, rather than the user waiting for, for example, a single .png in my viewport- typical, now-ubiquitous tiling behavior. I am able to initiate a WMS query with service type WMS-C (i.e. SERVICE=WMS_C) successfully to another service, but am unsuccessful when querying through my MapServer instance. Is it possible that MapServer doesn't support WMS-C? Hopefully, it is just my ignorance. I confess that I merely changed my existing URL-encoded string, replacing WMS with WMS-C (pretty optimistic, huh!). I believe my shapefile refererenced by the mapfile is properly comprised of appropriate tile images. Can you straighten me out, please? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Thu May 8 13:31:44 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 8 May 2008 13:31:44 -0700 Subject: [mapserver-users] tiling (WMS-C) In-Reply-To: <01d601c8b144$833c2ab0$1914000a@InSequence.local> References: <01d601c8b144$833c2ab0$1914000a@InSequence.local> Message-ID: <30fe546d0805081331g68a24423s28b776f41f24806@mail.gmail.com> Chris, Tiling is a property of the client, not the server... the client breaks the problem of filling the viewport up into files and sends the tile requests, usually in parallel, to the server. What user interface are you building with? P On Thu, May 8, 2008 at 12:48 PM, csmith wrote: > Hello, > > I would like to take advantage of the expediency of visual feedback afforded > by presenting my raster image as a mosaic of tiles, rather than the user > waiting for, for example, a single .png in my viewport- typical, > now-ubiquitous tiling behavior. > > I am able to initiate a WMS query with service type WMS-C (i.e. > SERVICE=WMS_C) successfully to another service, but am unsuccessful when > querying through my MapServer instance. Is it possible that MapServer > doesn't support WMS-C? Hopefully, it is just my ignorance. I confess that > I merely changed my existing URL-encoded string, replacing WMS with WMS-C > (pretty optimistic, huh!). I believe my shapefile refererenced by the > mapfile is properly comprised of appropriate tile images. Can you > straighten me out, please? > > Thanks, > Chris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pramsey at cleverelephant.ca Thu May 8 15:17:19 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 8 May 2008 15:17:19 -0700 Subject: [mapserver-users] tiling (WMS-C) In-Reply-To: <020f01c8b158$8ad173c0$1914000a@InSequence.local> References: <01d601c8b144$833c2ab0$1914000a@InSequence.local> <30fe546d0805081331g68a24423s28b776f41f24806@mail.gmail.com> <020f01c8b158$8ad173c0$1914000a@InSequence.local> Message-ID: <8BE65B59-C20F-4164-856E-6B9D62AAF307@cleverelephant.ca> Chris, That makes more sense. So MapBuilder is magically noticing the WMS-C in your URL and converting its requests to a tiled mode. Unfortunately, Mapserver does not understand the WMS-C keyword and is croaking, even though there is no functional difference (from a WMS PoV) to serving a WMS-C request and a WMS request. A quick and dirty fix would be to write a small PHP script to sit in front of mapserver, convert the WMS-C to a WMS and then pass the request onwards. Alternately (and more elegantly), perhaps there is some way to trick mapbuilder into the tiled mode without the WMS-C keyword in the URL? Check your Mapbuilder docs. Paul On May 8, 2008, at 3:12 PM, csmith wrote: > Hi Paul, > > I am using MapBuilder's latest instance, which renders with Open > Layers, and is capable of tiling. I load an initial map, querying a > local http server and designating the WMS service type as WMS-C, > and, voila, rendering of tiles where previously (service type plain > WMS) the entire viewport is rendered as one. When I attempt a > similar request of my MapServer instance, which handles all of my > hosted raster imagery, I get the error: > > mapserv(): Web application error. Traditional BROWSE mode requires a > TEMPLATE in the WEB section, but none was provided. > > Which I meant to include in my first post, sorry. Any guidance? > > Thanks, > Chris > > > > ----- Original Message ----- From: "Paul Ramsey" > > To: "csmith" > Cc: > Sent: Thursday, May 08, 2008 4:31 PM > Subject: Re: [mapserver-users] tiling (WMS-C) > > >> Chris, >> >> Tiling is a property of the client, not the server... the client >> breaks the problem of filling the viewport up into files and sends >> the >> tile requests, usually in parallel, to the server. What user >> interface are you building with? >> >> P >> >> On Thu, May 8, 2008 at 12:48 PM, csmith >> wrote: >>> Hello, >>> >>> I would like to take advantage of the expediency of visual >>> feedback afforded >>> by presenting my raster image as a mosaic of tiles, rather than >>> the user >>> waiting for, for example, a single .png in my viewport- typical, >>> now-ubiquitous tiling behavior. >>> >>> I am able to initiate a WMS query with service type WMS-C (i.e. >>> SERVICE=WMS_C) successfully to another service, but am >>> unsuccessful when >>> querying through my MapServer instance. Is it possible that >>> MapServer >>> doesn't support WMS-C? Hopefully, it is just my ignorance. I >>> confess that >>> I merely changed my existing URL-encoded string, replacing WMS >>> with WMS-C >>> (pretty optimistic, huh!). I believe my shapefile refererenced by >>> the >>> mapfile is properly comprised of appropriate tile images. Can you >>> straighten me out, please? >>> >>> Thanks, >>> Chris >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > -- Paul Ramsey pramsey at cleverelephant.ca +1 250 885 0632 From cheung.jackey at gmail.com Thu May 8 19:59:18 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Fri, 9 May 2008 10:59:18 +0800 Subject: [mapserver-users] How do I make a shapefile polygon thicker within UMN Mapserver In-Reply-To: <482334EA.1080704@osgis.nl> References: <482334EA.1080704@osgis.nl> Message-ID: The good news is, if I recall correctly, starting from MapServer 5.0, the WIDTH parameter affects the width of the outline of polygon layers. On Fri, May 9, 2008 at 1:14 AM, Bart van den Eijnden (OSGIS) < bartvde at osgis.nl> wrote: > See the FAQ under section > > > How do I set line width in my maps? > > http://mapserver.gis.umn.edu/docs/faq > > Best regards, > Bart > > John Mitchell wrote: > >> Hi, >> >> How do I make a shapefile polygon thicker within UMN Mapserver? >> >> I have listed below the layer that correctly displays the outlines >> contained within the shapefile, but I can't figure out how to make the >> polygon outlines thicker. >> >> >> LAYER >> # name of layer >> NAME stlouisxdrive >> GROUP "gv:stlouisxdrive" >> >> PROJECTION >> "init=epsg:26915" >> END >> # what type of data is this? >> TYPE POLYGON >> DATA "C:/TEMP/64Resolution" >> >> # always returned with interface >> STATUS ON >> >> CLASS >> OUTLINECOLOR 255 0 0 >> END >> END >> >> >> -- >> John J. Mitchell >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iworktech.sucharita at gmail.com Fri May 9 00:08:34 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Fri, 9 May 2008 12:38:34 +0530 Subject: [mapserver-users] Intersection of rectangle and circle Message-ID: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> Hi friends, I need to find the intersection of a rectangle and circle. As you must be aware that a circle in mapserver terminology is a shapeobject drawn using the upper left and bottom right co-ordinates of a rectangle. In the above case I get the intersection of two rectangles, but as the circle lies inside the rectangle, i am not able to find whether my first rectangle intersects with the bottom corner of the rectangle(that contains the circle), which is not part of the circle. I am using ASP.NET. Any solution in this case would be of great help. Thanks in advance, Sucharita -------------- next part -------------- An HTML attachment was scrubbed... URL: From goutosig at yahoo.fr Fri May 9 04:25:30 2008 From: goutosig at yahoo.fr (guillaume champlong) Date: Fri, 9 May 2008 11:25:30 +0000 (GMT) Subject: [mapserver-users] mapserver compilation Message-ID: <246340.15945.qm@web27307.mail.ukl.yahoo.com> Hi, sorry if my message comes twice, but I received an error message from the administrator system, and as I get no answer, so I post again: head config.log returns: This file was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --with-png --with-agg=/usr/local/src/agg-2.5 --with-freetype --with-postgis=/usr/loca/pgsql/bin --with-proj --with-ogr --with-gdal --with-geos --with-tiff --with-wfs --with-wfsclient --with-wms --with-wmsclient --with-wcs --with-gd --with-jpeg ## --------- ## ## Platform. ## tail config.log returns: #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define YYTEXT_POINTER 1 #define STDC_HEADERS 1 configure: exit 0 thanks for your help G. ----- Message d'origine ---- De : Tim Bowden ? : guillaume champlong Cc : Mapserver Users Envoy? le : Jeudi, 8 Mai 2008, 8h12mn 34s Objet : Re: Re : [mapserver-users] mapserver compilation On Wed, 2008-05-07 at 12:22 +0000, guillaume champlong wrote: > I am compiling on fedora 7. > > What can I do? > > thanks > > > > G. > > What do you get from: > $head config.log > $tail config.log > > What platform are you compiling on? > > Tim Bowden Please don't top post. It makes it much more difficult to follow the progression of the thread over multiple posts. Also please keep this on the list. That way others can also benefit from seeing the problem solved. What do you get when you do: head config.log and: tail config.log Regards, Tim Bowden __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit?s http://mail.yahoo.fr Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Fri May 9 04:47:26 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Fri, 09 May 2008 13:47:26 +0200 Subject: [mapserver-users] ROSA applet with PHP Mapscript In-Reply-To: <48230CF0.1020208@mapgears.com> References: <4822A03D.6090802@sis-ter.it> <48230CF0.1020208@mapgears.com> Message-ID: <482439CE.4080302@sis-ter.it> Thank you very much, I will use those links. Regards, Carlo Daniel Morissette ha scritto: > Carlo Pelliconi wrote: >> Hi all. >> I'm trying to use ROSA applet with PHPMapscript (I had jbox with cgi >> mapserver, and I'd like to have similar functions). >> Looking for documentation (both in web and in downloaded .tar), I've >> found only few pages. >> Does anyone know any link with deeper documentation or usage examples? >> But it is not necessary to use ROSA: is there something other, which >> can be used for the same tasks? > > FYI the mapserv CGI also has support for ROSA applet parameters, see > at the bottom of this page: > http://mapserver.gis.umn.edu/docs/reference/cgi/controls > > Unfortunately that documentation doesn't include usage examples so > you'd have to figure the way to setup your mapserv CGI template yourself. > > With respect to ROSA with PHP MapScript, there is the good old GMap > demo app that uses both. Not the best example of good coding, but at > least that's something to get started. You can download the GMap demo > with all scripts and data at http://dl.maptools.org/dl/gmap-ms46.zip > and you can see it online at http://www.mapsherpa.com/gmap/ > > Daniel -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From crystal.li at idisis.com Fri May 9 05:39:55 2008 From: crystal.li at idisis.com (=?utf-8?B?Q3J5c3RhbCBMaQ==?=) Date: Fri, 9 May 2008 12:39:55 +0000 Subject: [mapserver-users] ROSA applet with PHP Mapscript In-Reply-To: <4822A03D.6090802@sis-ter.it> References: <4822A03D.6090802@sis-ter.it> Message-ID: <1019408825-1210336818-cardhu_decombobulator_blackberry.rim.net-1905653816-@bxe014.bisx.prod.on.blackberry> A axes x sexxxxx xxax Sent on the TELUS Mobility network with BlackBerry -----Original Message----- From: Carlo Pelliconi Date: Thu, 08 May 2008 08:39:57 To:mapserver-users at lists.osgeo.org Subject: [mapserver-users] ROSA applet with PHP Mapscript Hi all. I'm trying to use ROSA applet with PHPMapscript (I had jbox with cgi mapserver, and I'd like to have similar functions). Looking for documentation (both in web and in downloaded .tar), I've found only few pages. Does anyone know any link with deeper documentation or usage examples? But it is not necessary to use ROSA: is there something other, which can be used for the same tasks? Thanks a lot. Regards, Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Fri May 9 06:11:23 2008 From: punk.kish at gmail.com (P Kishor) Date: Fri, 9 May 2008 08:11:23 -0500 Subject: [mapserver-users] Intersection of rectangle and circle In-Reply-To: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> References: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> Message-ID: Let's clarify a few things first -- On 5/9/08, Sucharita Samuel wrote: > Hi friends, > I need to find the intersection of a rectangle and circle. what exactly do you need to find? - the points at which they intersect? - whether or not they intersect? - the overlapping area of their intersection? - whether the circle is contained in the rect? - whether the rect is contained in the circle? > As you > must be aware that a circle in mapserver terminology is a shapeobject > drawn > using the upper left and bottom right co-ordinates of a rectangle. I am now aware of that at all. My MapServer is extremely rusty, but I remember drawing circles using MapScript and an equation that provided the center of the circle and the radius. As you can see, there are more than one ways to do it. > In the above case I get the intersection of two rectangles, but as the > circle lies inside the rectangle, i am not able to find whether my first > rectangle intersects with the bottom corner of the rectangle(that contains > the circle), which is not part of the circle. > once again, your question is not clear. If a circle 'C' lies inside rectangle R, then the minimum bounding rectangle (MBR) of the circle 'C' (which is always a square) will lie completely within 'R'. Depending on your definition of intersection, there may or may not be any intersection at all. > I am using ASP.NET. Any solution in this case would be of great help. > ASP.NET is irrelevant here. Figure out clearly what you want to achieve, solve the problem as an algorithm problem, then you can implement it in any language you want to use. As is, at least to me, your question is not clear at all. > Thanks in advance, > Sucharita > > From bartvde at osgis.nl Fri May 9 06:53:29 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 09 May 2008 15:53:29 +0200 Subject: [mapserver-users] date format? Message-ID: Hi list, using a shapefile with a Date column, is it possible to change the date format (string) that Mapserver will use in the WFS GetFeature output? Now it outputs: 19690101 whereas we would want 1969-01-01 Best regards, Bart From tom at eryr.com Fri May 9 08:42:03 2008 From: tom at eryr.com (Tom Chase) Date: Fri, 09 May 2008 16:42:03 +0100 Subject: [mapserver-users] Linking symbolSetObj to map in mapscript Message-ID: <482470CB.6040505@eryr.com> Morning! In mapscript, if I was to create a symbolset from scratch, how would I then link it to a map? The method map.setSymbolSet() takes a filename but not a symbolset object, and the property map.symbolset is immutable. FWIW, I'm using python. Am I just being stupid? Cheers, have a good weekend! -- ------------------------------------------------------------------------ *STOP!* Do not print unless necessary! Leave some trees for the monkeys! From tom at eryr.com Fri May 9 08:57:23 2008 From: tom at eryr.com (Tom Chase) Date: Fri, 09 May 2008 16:57:23 +0100 Subject: [mapserver-users] Linking symbolSetObj to map in mapscript Message-ID: <48247463.3030306@eryr.com> Morning! In mapscript, if I was to create a symbolset from scratch, how would I then link it to a map? The method map.setSymbolSet() takes a filename but not a symbolset object, and the property map.symbolset is immutable. FWIW, I'm using python. Am I just being stupid? Cheers, have a good weekend! -- ------------------------------------------------------------------------ *STOP!* Do not print unless necessary! Leave some trees for the monkeys! From pramsey at cleverelephant.ca Fri May 9 09:32:23 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 9 May 2008 09:32:23 -0700 Subject: [mapserver-users] FOSS4G 2008 - Call for Papers Message-ID: <30fe546d0805090932l27c1af37of79d171249cb9e05@mail.gmail.com> Hi guys, this just in from the 2008 conference committee: the call for papers deadline approaches! -- Free and Open Source Geospatial 2008, Cape Town, South Africa. September 29 - Oct 3 2008. Reminder: The paper / presentation submission deadline is this coming Monday 12 May. Go to http://www.foss4g2008.org and click on 'Call for Papers'. Early-bird registration closes on 15th June, so register soon! FOSS4G is renowned for its hands-on WORKSHOPS and LABS. 2008 is no exception. The Workshop/labs track has been going well in terms of submissions. We have (as of 9th May 2008) 26 interesting and relevant submissions to choose from, ranging across a wide spectrum of GIS topics. Desktop GIS (with spatial analysis and geovisualization to the fore) is a common theme and there is a strong representation from the broad Internet GIS field (web map servers, rich internet applications/web clients, OGC web services). Themes also making an appearance are geoportals, metadata, spatial ETL and the use of spatial databases. There is also some focus on programming/scripting. The emphasis is heavily on showing what is possible with FOSS4G through practical "how-to's", getting software/services up and running quickly and trying them out. Many of the workshops emphasise the excellent Java-based tools and frameworks. 90 minute Labs are included in the core conference package. Register for the full 5 day package and get to attend up to three 4 hour workshops free! Submit your abstract soon. Come and have a bash in Cape Town. Gavin Fleming FOSS4G 2008 Conference Chair www.foss4g2008.org From havard.tveite at umb.no Fri May 9 09:15:33 2008 From: havard.tveite at umb.no (=?ISO-8859-1?Q?H=E5vard_Tveite?=) Date: Fri, 9 May 2008 18:15:33 +0200 Subject: [mapserver-users] PostGIS problems in nightly Message-ID: <482478A5.4060504@umb.no> I want to report a small problem I faced with a PostGIS connection with the latest nightly build. With the latest build I have problems with one of my PostGIS connections. The problem goes away when I switch back to the nightly build from March 4th 2008. Other PostGIS connections seem to work fine on both builds. The mapserver_log reports: ****************************************************** Fri May 9 17:08:42 2008,2747,128.39.236.206,okart,0,-19379.849812 26500.000000 19379.849812 57500.000000,-1.000000 -1.000000,o-kartpoint o-kartpolygon o-kartline ,msDrawMap(): Image handling error. Failed to draw layer named 'o-kartpoint'.
prepare_database(): Query error. Error declaring cursor: ERROR: current transaction is aborted, commands ignored until end of transaction block With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "symbol"::text,"direction"::text,asbinary(force_collection(force_2d(the_geom)),'XDR'),OID::text from (select oid, symbol, trim(both ' ' from direction) as direction, the_geom from okartpoint order by sequence) as okart WHERE the_geom && setSRID('BOX3D(-19379.8498122653 26500,19379.8498122653 57500)'::BOX3D, -1 )
msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = '(select oid, symbol, trim(both ' ' from direction) as direction, the_geom from okartpoint order by sequence) as okart' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null
****************************************************** PostgreSQL log: ****************************************************** 2008-05-09 17:08:42 MET DST okart guest 128.39.175.213ERROR: syntax error at or near "' from direction) as direction, the_geom from okartpoint order by sequence) as okart'" at character 283 ****************************************************** MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PostgreSQL 8.1.5, POSTGIS="1.3.2" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. 4.5.0, 22 Oct 2006" USE_STATS I am on Solaris 2.7 If I remove the trim statement ("trim(both ' ' from direction) as direction"), and replace it with "direction" (untrimmed) there is no error situation in the latest nightly. Is this a bug? Regards, -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From woodbri at swoodbridge.com Fri May 9 11:11:49 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 09 May 2008 13:11:49 -0500 Subject: [mapserver-users] PostGIS problems in nightly In-Reply-To: <482478A5.4060504@umb.no> References: <482478A5.4060504@umb.no> Message-ID: <482493E5.9010508@swoodbridge.com> H?vard, Try: trim(both from direction) which does the same thing as: trim(both ' ' from direction) this looks like it might be an unescaped ' and in single quotes string. you could also try: trim(both \' \' from direction) or trim(both \\' \\' from direction) and report if either of these work. This would help narrow down the issue and maybe give you a work around. -Steve W H?vard Tveite wrote: > I want to report a small problem I faced with a PostGIS > connection with the latest nightly build. > > With the latest build I have problems with one of my > PostGIS connections. > The problem goes away when I switch back to the nightly > build from March 4th 2008. Other PostGIS connections > seem to work fine on both builds. > > The mapserver_log reports: > ****************************************************** > Fri May 9 17:08:42 2008,2747,128.39.236.206,okart,0,-19379.849812 > 26500.000000 19379.849812 57500.000000,-1.000000 -1.000000,o-kartpoint > o-kartpolygon o-kartline ,msDrawMap(): Image handling error. Failed to > draw layer named 'o-kartpoint'.
> prepare_database(): Query error. Error declaring cursor: ERROR: current > transaction is aborted, commands ignored until end of transaction block > > With query string: DECLARE mycursor BINARY CURSOR FOR SELECT > "symbol"::text,"direction"::text,asbinary(force_collection(force_2d(the_geom)),'XDR'),OID::text > from (select oid, symbol, trim(both ' ' from direction) as direction, > the_geom from okartpoint order by sequence) as okart WHERE the_geom && > setSRID('BOX3D(-19379.8498122653 26500,19379.8498122653 57500)'::BOX3D, > -1 ) >
> msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS > statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, > pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and > pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and > pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = > '(select oid, symbol, trim(both ' ' from direction) as direction, > the_geom from okartpoint order by sequence) as okart' and > pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null
> ****************************************************** > > PostgreSQL log: > ****************************************************** > 2008-05-09 17:08:42 MET DST okart guest 128.39.175.213ERROR: syntax > error at or near "' from direction) as direction, the_geom from > okartpoint order by sequence) as okart'" at character 283 > ****************************************************** > > MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 > INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > PostgreSQL 8.1.5, POSTGIS="1.3.2" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. > 4.5.0, 22 Oct 2006" USE_STATS > I am on Solaris 2.7 > > If I remove the trim statement ("trim(both ' ' from direction) > as direction"), and replace it with "direction" (untrimmed) there > is no error situation in the latest nightly. > > Is this a bug? > > > Regards, > From paul_pag00 at hotmail.com Fri May 9 11:35:20 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Fri, 9 May 2008 18:35:20 +0000 Subject: [mapserver-users] loading colors using layer files Message-ID: Hello i wantio to know if it's posible to use a schema of colors using a lyr file made in arcgis and how i coud use it, plese give me a hand Thanks _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From jshort at lodgingcompany.com Fri May 9 12:55:00 2008 From: jshort at lodgingcompany.com (Jeremy Short) Date: Fri, 09 May 2008 12:55:00 -0700 Subject: [mapserver-users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles Message-ID: <4824AC14.2070002@lodgingcompany.com> My goal is to render an SVG image map to PNG to display on our website within a mapviewer of some sort with panning and zooming capability. We have many maps. I want to use an Open Source solution. Our web server is running Apache. Additionally we want to add a "layer" of text labels which will not get bigger when we zoom in. Too, since we have large pictures so they don't degrade when one zooms in, we would like to explore the ability to send only "tiles" of the map picture if it's required. What I have found thus far: 1. Using OpenLayers as a client gives us the ability to load a PNG file, pan, and zoom. 2. For the ability to add layers of text labels and transport tiles of data I explored the possiblity to use Mapserver. It appears Mapserver requires a map file like an SHP file as input and it will output a PNG. I would like to feed it as input a PNG file but I don't know if Mapserver is designed for this. Looking further into this I see one can possibly use a tool like gvSIG or AB Viewer to translate a PNG to a SHP file but I want to automate the process without this extra step because people will be modifying the SVG file periodically. There seems like there must be a better way to accomplish what I want which is to render PNG images in a client web browser with the ability to navigate within the map and to render text labels and transport tiles of information. Is there? -- Jeremy Short IT Programmer The Lodging Company http://www.skihills.com/ From neumann at karto.baug.ethz.ch Fri May 9 14:50:33 2008 From: neumann at karto.baug.ethz.ch (Andreas Neumann) Date: Fri, 09 May 2008 23:50:33 +0200 Subject: [mapserver-users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles In-Reply-To: <4824AC14.2070002@lodgingcompany.com> References: <4824AC14.2070002@lodgingcompany.com> Message-ID: <4824C729.1050402@karto.baug.ethz.ch> So, if I understand you correctly, your original map data is stored in SVG files. In that case you can use Apache Batik to render into georeferenced PNG files (if your SVG data is georeferenced). You can trigger this rasterization process whenever there was a change in the SVG data. This georeferenced raster data can be fed into UMN Mapserver for fast delivery. My guess is, while the quality of the Apache Batik rendering process is excellent, it won't be as fast as the UMN Mapserver, when delivering maps. Alternatively, you can consider to serve the SVG data directly, without going through PNG files. You can also combine SVG with Postgis where the vector data is stored in Postgis and the SVG is generated on the fly. You can see an example of this approach at http://www.carto.net/williams/yosemite/ - for bigger SVG files it is certainly faster if you store your geodata in a spatial database and deliver customized extents, simplified versions and sub-selects appropriate to the chosen mapscale. Hope this helps, Andreas Jeremy Short wrote: > My goal is to render an SVG image map to PNG to display on our website > within a mapviewer of some sort with panning and zooming capability. > We have many maps. I want to use an Open Source solution. Our web > server is running Apache. > > Additionally we want to add a "layer" of text labels which will not > get bigger when we zoom in. Too, since we have large pictures so they > don't degrade when one zooms in, we would like to explore the ability > to send only "tiles" of the map picture if it's required. > > What I have found thus far: > > 1. Using OpenLayers as a client gives us the ability to load a PNG > file, pan, and zoom. > > 2. For the ability to add layers of text labels and transport tiles of > data I explored the possiblity to use Mapserver. It appears Mapserver > requires a map file like an SHP file as input and it will output a > PNG. I would like to feed it as input a PNG file but I don't know if > Mapserver is designed for this. > > Looking further into this I see one can possibly use a tool like gvSIG > or AB Viewer to translate a PNG to a SHP file but I want to automate > the process without this extra step because people will be modifying > the SVG file periodically. > > There seems like there must be a better way to accomplish what I want > which is to render PNG images in a client web browser with the ability > to navigate within the map and to render text labels and transport > tiles of information. Is there? > > > -- -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From jshort at lodgingcompany.com Fri May 9 16:54:33 2008 From: jshort at lodgingcompany.com (Jeremy Short) Date: Fri, 09 May 2008 16:54:33 -0700 Subject: [mapserver-users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles In-Reply-To: <4824C729.1050402@karto.baug.ethz.ch> References: <4824AC14.2070002@lodgingcompany.com> <4824C729.1050402@karto.baug.ethz.ch> Message-ID: <4824E439.4020407@lodgingcompany.com> The original data is stored in SVG and it is not georeferenced. It is a collection of hand-rendered maps in Inkscape, an SVG editor, with geographical measuring units like latitude or longitude. We wanted to stay away from serving up SVG because Firefox supports SVG but not IE and we didn't want to force people to have to install a plugin. I tried the link (http://www.carto.net/williams/yosemite/) and it looks good but it looks like the plugin is needed for IE. Any ideas for non-georeferenced SVG/PNG source files to serve up PNG files which can be used as a base layer for a map? Can I even use a non-georeferenced SVG/PNG with Mapserver? Andreas Neumann wrote: > So, if I understand you correctly, your original map data is stored in > SVG files. > > In that case you can use Apache Batik to render into georeferenced PNG > files (if your SVG data is georeferenced). You can trigger this > rasterization process whenever there was a change in the SVG data. > This georeferenced raster data can be fed into UMN Mapserver for fast > delivery. My guess is, while the quality of the Apache Batik rendering > process is excellent, it won't be as fast as the UMN Mapserver, when > delivering maps. > > Alternatively, you can consider to serve the SVG data directly, > without going through PNG files. You can also combine SVG with Postgis > where the vector data is stored in Postgis and the SVG is generated on > the fly. You can see an example of this approach at > http://www.carto.net/williams/yosemite/ - for bigger SVG files it is > certainly faster if you store your geodata in a spatial database and > deliver customized extents, simplified versions and sub-selects > appropriate to the chosen mapscale. > > Hope this helps, > Andreas > > > Jeremy Short wrote: >> My goal is to render an SVG image map to PNG to display on our >> website within a mapviewer of some sort with panning and zooming >> capability. We have many maps. I want to use an Open Source solution. >> Our web server is running Apache. >> >> Additionally we want to add a "layer" of text labels which will not >> get bigger when we zoom in. Too, since we have large pictures so they >> don't degrade when one zooms in, we would like to explore the ability >> to send only "tiles" of the map picture if it's required. >> >> What I have found thus far: >> >> 1. Using OpenLayers as a client gives us the ability to load a PNG >> file, pan, and zoom. >> >> 2. For the ability to add layers of text labels and transport tiles >> of data I explored the possiblity to use Mapserver. It appears >> Mapserver requires a map file like an SHP file as input and it will >> output a PNG. I would like to feed it as input a PNG file but I don't >> know if Mapserver is designed for this. >> >> Looking further into this I see one can possibly use a tool like >> gvSIG or AB Viewer to translate a PNG to a SHP file but I want to >> automate the process without this extra step because people will be >> modifying the SVG file periodically. >> >> There seems like there must be a better way to accomplish what I want >> which is to render PNG images in a client web browser with the >> ability to navigate within the map and to render text labels and >> transport tiles of information. Is there? >> >> >> > > -- Jeremy Short IT Programmer The Lodging Company http://www.skihills.com/ From mlinden at zeelandnet.nl Fri May 9 23:38:09 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Sat, 10 May 2008 08:38:09 +0200 Subject: [mapserver-users] Open Source solution to display PNG maps converted from SVG in a map viewer with labels and possibly tiles In-Reply-To: <4824E439.4020407@lodgingcompany.com> References: <4824AC14.2070002@lodgingcompany.com> <4824C729.1050402@karto.baug.ethz.ch> <4824E439.4020407@lodgingcompany.com> Message-ID: <482542D1.1080404@zeelandnet.nl> Even data that is not georeferenced has some sort of projection being it 0,0 for the lower left corner and 600,600 for the upper right. So you should be able to put that in Mapserver with a self created projection (1). Problems arise when you want to combine your maps with for instance satellite imagery because in that case you will need transformations to do the matching, and for transformations you need parameters to convert one projection to another (2). A quick and dirty solution for (2) would be to create images and georeference them manually with a GIS. qGIS has a nice georeferencing plugin that will help you in that process. As you state in (2) "Mapserver requires a mapfile like a SHP"; that assumption is wrong. A mapfile is a metafile and in that way more like a mapinfo wor file (workspace, I don't know the equivalent for esri) which has the great possibility to create meta descriptions for layers of an (almost) unlimited amount of known GIS sources. So, the most important think to ask yourself is: - Am I going to combine my SVG data source with layers that are georeferenced? Because then you have some extra work at hand, but using mapserver to host your data is always an option. Kind regards, Milo van der Linden Jeremy Short wrote: > The original data is stored in SVG and it is not georeferenced. It is > a collection of hand-rendered maps in Inkscape, an SVG editor, with > geographical measuring units like latitude or longitude. > > We wanted to stay away from serving up SVG because Firefox supports > SVG but not IE and we didn't want to force people to have to install a > plugin. I tried the link (http://www.carto.net/williams/yosemite/) and > it looks good but it looks like the plugin is needed for IE. > > Any ideas for non-georeferenced SVG/PNG source files to serve up PNG > files which can be used as a base layer for a map? Can I even use a > non-georeferenced SVG/PNG with Mapserver? > > Andreas Neumann wrote: >> So, if I understand you correctly, your original map data is stored >> in SVG files. >> >> In that case you can use Apache Batik to render into georeferenced >> PNG files (if your SVG data is georeferenced). You can trigger this >> rasterization process whenever there was a change in the SVG data. >> This georeferenced raster data can be fed into UMN Mapserver for fast >> delivery. My guess is, while the quality of the Apache Batik >> rendering process is excellent, it won't be as fast as the UMN >> Mapserver, when delivering maps. >> >> Alternatively, you can consider to serve the SVG data directly, >> without going through PNG files. You can also combine SVG with >> Postgis where the vector data is stored in Postgis and the SVG is >> generated on the fly. You can see an example of this approach at >> http://www.carto.net/williams/yosemite/ - for bigger SVG files it is >> certainly faster if you store your geodata in a spatial database and >> deliver customized extents, simplified versions and sub-selects >> appropriate to the chosen mapscale. >> >> Hope this helps, >> Andreas >> >> >> Jeremy Short wrote: >>> My goal is to render an SVG image map to PNG to display on our >>> website within a mapviewer of some sort with panning and zooming >>> capability. We have many maps. I want to use an Open Source >>> solution. Our web server is running Apache. >>> >>> Additionally we want to add a "layer" of text labels which will not >>> get bigger when we zoom in. Too, since we have large pictures so >>> they don't degrade when one zooms in, we would like to explore the >>> ability to send only "tiles" of the map picture if it's required. >>> >>> What I have found thus far: >>> >>> 1. Using OpenLayers as a client gives us the ability to load a PNG >>> file, pan, and zoom. >>> >>> 2. For the ability to add layers of text labels and transport tiles >>> of data I explored the possiblity to use Mapserver. It appears >>> Mapserver requires a map file like an SHP file as input and it will >>> output a PNG. I would like to feed it as input a PNG file but I >>> don't know if Mapserver is designed for this. >>> >>> Looking further into this I see one can possibly use a tool like >>> gvSIG or AB Viewer to translate a PNG to a SHP file but I want to >>> automate the process without this extra step because people will be >>> modifying the SVG file periodically. >>> >>> There seems like there must be a better way to accomplish what I >>> want which is to render PNG images in a client web browser with the >>> ability to navigate within the map and to render text labels and >>> transport tiles of information. Is there? >>> >>> >>> >> >> > From iworktech.sucharita at gmail.com Sat May 10 01:57:14 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Sat, 10 May 2008 14:27:14 +0530 Subject: [mapserver-users] Intersection of rectangle and circle In-Reply-To: References: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> Message-ID: <2d6d8af10805100157m6af673a8re62f46f1f8ae5f3e@mail.gmail.com> Hi Kishore, I hope the following explanation will make the problem clear to you, I have a map image (of India with states marked on it. Each state is a feature). When the user clicks on any position of the map, I draw a circle of 5km radius around the clicked point. Now I want to find out the the states that are completely covered by the circle, and the percentage of the other states that lie inside the circle. I have drawn the circle using a bounding rectangle. Now the problem is, if there is a very small state that lies in any four corners of the rectangle, but not actually inside the circle, my algorithm considers it to be lying inside the circle as the state actually lies within the boundaries of the bounding rectangle. I need to find out the states that actually lie inside the circle, the states that are completely excluded and the percentage of states that partially lie inside the circle(and not the bounding rectangle) Can You help me with this? Thanks, Sucharita On Fri, May 9, 2008 at 6:41 PM, P Kishor wrote: > Let's clarify a few things first -- > > On 5/9/08, Sucharita Samuel wrote: > > Hi friends, > > I need to find the intersection of a rectangle and circle. > > what exactly do you need to find? > - the points at which they intersect? > - whether or not they intersect? > - the overlapping area of their intersection? > - whether the circle is contained in the rect? > - whether the rect is contained in the circle? > > > > > As you > > must be aware that a circle in mapserver terminology is a shapeobject > > drawn > > using the upper left and bottom right co-ordinates of a rectangle. > > I am now aware of that at all. My MapServer is extremely rusty, but I > remember drawing circles using MapScript and an equation that provided > the center of the circle and the radius. As you can see, there are > more than one ways to do it. > > > > In the above case I get the intersection of two rectangles, but as > the > > circle lies inside the rectangle, i am not able to find whether my first > > rectangle intersects with the bottom corner of the rectangle(that > contains > > the circle), which is not part of the circle. > > > > once again, your question is not clear. If a circle 'C' lies inside > rectangle R, then the minimum bounding rectangle (MBR) of the circle > 'C' (which is always a square) will lie completely within 'R'. > Depending on your definition of intersection, there may or may not be > any intersection at all. > > > > I am using ASP.NET. Any solution in this case would be of great help. > > > > > ASP.NET is irrelevant here. Figure out clearly what you want to > achieve, solve the problem as an algorithm problem, then you can > implement it in any language you want to use. > > As is, at least to me, your question is not clear at all. > > > > Thanks in advance, > > Sucharita > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Sat May 10 04:16:14 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Sat, 10 May 2008 04:16:14 -0700 (PDT) Subject: [MAPSERVER-USERS] OpenLayers + dBox + Postgres text search In-Reply-To: References: Message-ID: <17162251.post@talk.nabble.com> Good work Richard! You need to improve your map file. Else, I liked the stuffs ! Richard Greenwood wrote: > > I had a bad link in the site below, which I have fixed. > > I've been working on an OpenLayers site that incorporates the dBox > tree legend that is popular with many MapServer users. dBox is based > on YUI and was developed by Steve Lime and others at the Minnesota > DNR. The site is still pretty sloppy but may be of interest: > > http://www2.tetonwyo.org/mapserver/ol.html > > Also of possible interest is the use of the new PostgreSQL 8.3 full text > search. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/OpenLayers-%2B-dBox-%2B-Postgres-text-search-tp17129991p17162251.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Sat May 10 04:24:35 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Sat, 10 May 2008 04:24:35 -0700 (PDT) Subject: [MAPSERVER-USERS] Transparencies and IE6 In-Reply-To: <252a4b0620d57cfde8db9ba2021fc77d@pop02.backbone.tiscomhosting.nl> References: <69935d110805080751s35479e16q7da6860663606d54@mail.gmail.com> <252a4b0620d57cfde8db9ba2021fc77d@pop02.backbone.tiscomhosting.nl> Message-ID: <17162307.post@talk.nabble.com> Yes, this is a known issue for IE6. I hope FF and IE7 works fine with your program. It should work with Firefox. Else, you must check your code. Regards, Ritesh Bart van den Eijnden wrote: > > This a known issue/bug in IE6. > > You can use a png hack to overcome this problem (though performance might > be an issue), e.g.: > > http://code.google.com/p/pnghack/ > > Best regards, > Bart > > On Thu, 8 May 2008 10:51:39 -0400, "Nelson Soto" > wrote: >> I am having trouble getting cross-browser uniformity with MapServer. >> None of my transparent-enabled layers appear to draw at all under IE6 >> and in Firefox 2 The layers draw, but without transparency enabled. >> They work as expected with IE7 however. Is there a known issue with >> this? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Transparencies-and-IE6-tp17129341p17162307.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Sat May 10 05:03:36 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Sat, 10 May 2008 05:03:36 -0700 (PDT) Subject: [MAPSERVER-USERS] Layer always turn on (not possible to activate/deactivate) In-Reply-To: <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> References: <9c2e09570805071034o274ffb2vb8b1f4c580ad08f4@mail.gmail.com> <288F5812-22A7-4513-8B49-96254EEC53BC@gmail.com> Message-ID: <17162596.post@talk.nabble.com> I would suggest to check the kamap config.php file. >From mapserver side, it should work STATUS [on|off|default] Sets the current status of the layer. Often modified by MapServer itself. Default turns the layer on permanently. Some notes regarding the STATUS values: * In CGI mode, layers with STATUS DEFAULT cannot be turned off using normal mechanisms. It is recommended to set layers to STATUS DEFAULT while debugging a problem, but set them back to ON/OFF in normal use. * For WMS, layers in the server mapfile with STATUS DEFAULT are always sent to the client. Regards, Ambastha Luca Casagrande wrote: > > > Il giorno 07/mag/08, alle ore 19:34, Emilio Ponce ha scritto: > >> Hi everyone, here's a newbie question: >> >> I'm using mapserver with ka-map and I have different layers in a >> unique mapfile. I want to set ONE of this layers always visible, >> without possibility to turn off (deactivate) it. For this purpose I >> thought the STATUS tag on this LAYER was the solution: Status >> DEFAULT to turn on this layer permanently... but it didn't work. >> > > You have to set no GROUP at all for that layer. > With this setting, layer will go in "base" group and will stays > always on. > > Bye > -- > Luca Casagrande > Gubbio (PG) > > "Siamo tutti in una fogna, ma che alcuni di noi guardano le stelle" > O. Wilde > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Layer-always-turn-on-%28not-possible-to-activate-deactivate%29-tp17110472p17162596.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Sat May 10 06:51:10 2008 From: punk.kish at gmail.com (P Kishor) Date: Sat, 10 May 2008 08:51:10 -0500 Subject: [mapserver-users] Intersection of rectangle and circle In-Reply-To: <2d6d8af10805100157m6af673a8re62f46f1f8ae5f3e@mail.gmail.com> References: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> <2d6d8af10805100157m6af673a8re62f46f1f8ae5f3e@mail.gmail.com> Message-ID: On 5/10/08, Sucharita Samuel wrote: > Hi Kishore, > > I hope the following explanation will make the problem clear to you, > > I have a map image (of India with states marked on it. Each state is a > feature). When the user clicks on any position of the map, I draw a circle > of 5km radius around the clicked point. Now I want to find out the the > states that are completely covered by the circle, and the percentage of the > other states that lie inside the circle. > > I have drawn the circle using a bounding rectangle. Now the problem is, if > there is a very small state that lies in any four corners of the rectangle, > but not actually inside the circle, my algorithm considers it to be lying > inside the circle as the state actually lies within the boundaries of the > bounding rectangle. > > I need to find out the states that actually lie inside the circle, the > states that are completely excluded and the percentage of states that > partially lie inside the circle(and not the bounding rectangle) > > Can You help me with this? Sorry, I can't help you with this, but I am pretty sure you cannot solve the above problem with just MapServer. You will either need to script a solution, or use PostGIS to be able to determine poly-in-poly as well as % overlap. For what you want to do, PostGIS would be the most appropriate tool as even scripting would be complicated. If I recall correctly, someone on the PostGIS list was asking recently about determining % overlap of polys. You can search the PostGIS archives for that thread. Using the bounding box is applicable only for simplistic solutions, and it won't work for the scenario that you are describing above. > > Thanks, > Sucharita > > > On Fri, May 9, 2008 at 6:41 PM, P Kishor wrote: > > Let's clarify a few things first -- > > > > > > On 5/9/08, Sucharita Samuel wrote: > > > Hi friends, > > > I need to find the intersection of a rectangle and circle. > > > > what exactly do you need to find? > > - the points at which they intersect? > > - whether or not they intersect? > > - the overlapping area of their intersection? > > - whether the circle is contained in the rect? > > - whether the rect is contained in the circle? > > > > > > > > > > > As you > > > must be aware that a circle in mapserver terminology is a shapeobject > > > drawn > > > using the upper left and bottom right co-ordinates of a rectangle. > > > > I am now aware of that at all. My MapServer is extremely rusty, but I > > remember drawing circles using MapScript and an equation that provided > > the center of the circle and the radius. As you can see, there are > > more than one ways to do it. > > > > > > > > > In the above case I get the intersection of two rectangles, but as > the > > > circle lies inside the rectangle, i am not able to find whether my > first > > > rectangle intersects with the bottom corner of the rectangle(that > contains > > > the circle), which is not part of the circle. > > > > > > > once again, your question is not clear. If a circle 'C' lies inside > > rectangle R, then the minimum bounding rectangle (MBR) of the circle > > 'C' (which is always a square) will lie completely within 'R'. > > Depending on your definition of intersection, there may or may not be > > any intersection at all. > > > > > > > > > I am using ASP.NET. Any solution in this case would be of great help. > > > > > > > > > ASP.NET is irrelevant here. Figure out clearly what you want to > > achieve, solve the problem as an algorithm problem, then you can > > implement it in any language you want to use. > > > > As is, at least to me, your question is not clear at all. > > > > > > > Thanks in advance, > > > Sucharita > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- Puneet Kishor From sacchetti at nepero.net Sat May 10 08:41:46 2008 From: sacchetti at nepero.net (Giacomo Sacchetti) Date: Sat, 10 May 2008 17:41:46 +0200 Subject: [mapserver-users] Pattern Message-ID: Hi all, how I can create dashed HATCH symbols? There are just few lines of documentation for the HATCH symbol... Best, GS From David.Fawcett at state.mn.us Sat May 10 09:16:07 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Sat, 10 May 2008 11:16:07 -0500 Subject: [mapserver-users] Images utilizing rotation parameters in world file Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD2D@s-sp22.pca.state.mn.us> About six months ago, I posted a question about whether MapServer would properly rotate images that depend on the rotation parameters in their world files. I never got a really definitive answer. I can confirm that MapServer will render these images properly. If every tile needs to be rotated, the render seems relatively expensive (which is understandable). If I was going to use images like this for a production app, I would definitely preprocess them. The latest version of QGIS can also now utilize the rotation parameters to correctly render the images. David. -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Sun May 11 00:33:21 2008 From: havard.tveite at umb.no (Havard Tveite) Date: Sun, 11 May 2008 09:33:21 +0200 Subject: [mapserver-users] Pattern In-Reply-To: References: Message-ID: <4826A141.2080902@umb.no> Giacomo Sacchetti wrote: > Hi all, > > how I can create dashed HATCH symbols? There are just few lines of > documentation for the HATCH symbol... I don't think you can accomplish this using HATCH, but you can make such a symbol using VECTOR or PIXMAP. H?vard -- H?vard Tveite Department of Mathematical Sciences and Technology Norwegian University of Life Sciences From havard.tveite at umb.no Sun May 11 00:42:30 2008 From: havard.tveite at umb.no (Havard Tveite) Date: Sun, 11 May 2008 09:42:30 +0200 Subject: [mapserver-users] PostGIS problems in nightly In-Reply-To: <482493E5.9010508@swoodbridge.com> References: <482478A5.4060504@umb.no> <482493E5.9010508@swoodbridge.com> Message-ID: <4826A366.6050804@umb.no> Sorry for not testing more, Steve. Answers to your questions below. Stephen Woodbridge wrote: > H?vard, > > Try: > > trim(both from direction) works > which does the same thing as: > > trim(both ' ' from direction) > > this looks like it might be an unescaped ' and in single quotes string. > > you could also try: > > trim(both \' \' from direction) does not work (still "crash"). > > or > > trim(both \\' \\' from direction) does not work (still "crash"). Regards, H?vard > and report if either of these work. > > This would help narrow down the issue and maybe give you a work around. > > -Steve W > > H?vard Tveite wrote: >> I want to report a small problem I faced with a PostGIS >> connection with the latest nightly build. >> >> With the latest build I have problems with one of my >> PostGIS connections. >> The problem goes away when I switch back to the nightly >> build from March 4th 2008. Other PostGIS connections >> seem to work fine on both builds. >> >> The mapserver_log reports: >> ****************************************************** >> Fri May 9 17:08:42 2008,2747,128.39.236.206,okart,0,-19379.849812 >> 26500.000000 19379.849812 57500.000000,-1.000000 -1.000000,o-kartpoint >> o-kartpolygon o-kartline ,msDrawMap(): Image handling error. Failed to >> draw layer named 'o-kartpoint'.
>> prepare_database(): Query error. Error declaring cursor: ERROR: current >> transaction is aborted, commands ignored until end of transaction block >> >> With query string: DECLARE mycursor BINARY CURSOR FOR SELECT >> "symbol"::text,"direction"::text,asbinary(force_collection(force_2d(the_geom)),'XDR'),OID::text >> from (select oid, symbol, trim(both ' ' from direction) as direction, >> the_geom from okartpoint order by sequence) as okart WHERE the_geom && >> setSRID('BOX3D(-19379.8498122653 26500,19379.8498122653 57500)'::BOX3D, >> -1 ) >>
>> msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS >> statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, >> pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and >> pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and >> pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = >> '(select oid, symbol, trim(both ' ' from direction) as direction, >> the_geom from okartpoint order by sequence) as okart' and >> pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null
>> ****************************************************** >> >> PostgreSQL log: >> ****************************************************** >> 2008-05-09 17:08:42 MET DST okart guest 128.39.175.213ERROR: syntax >> error at or near "' from direction) as direction, the_geom from >> okartpoint order by sequence) as okart'" at character 283 >> ****************************************************** >> >> MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 >> INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> PostgreSQL 8.1.5, POSTGIS="1.3.2" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. >> 4.5.0, 22 Oct 2006" USE_STATS >> I am on Solaris 2.7 >> >> If I remove the trim statement ("trim(both ' ' from direction) >> as direction"), and replace it with "direction" (untrimmed) there >> is no error situation in the latest nightly. >> >> Is this a bug? >> >> >> Regards, >> > -- -- H?vard Tveite Department of Mathematical Sciences and Technology Norwegian University of Life Sciences From woodbri at swoodbridge.com Sun May 11 07:48:28 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 11 May 2008 09:48:28 -0500 Subject: [mapserver-users] PostGIS problems in nightly In-Reply-To: <4826A366.6050804@umb.no> References: <482478A5.4060504@umb.no> <482493E5.9010508@swoodbridge.com> <4826A366.6050804@umb.no> Message-ID: <4827073C.5030102@swoodbridge.com> Havard, This sounds like a bug, can you create a bug on this so it gets resolved for 5.2. If not let me know, and I'll write on. Thanks, -Steve W Havard Tveite wrote: > Sorry for not testing more, Steve. Answers to your questions > below. > > Stephen Woodbridge wrote: >> H?vard, >> >> Try: >> >> trim(both from direction) > > works > >> which does the same thing as: >> >> trim(both ' ' from direction) >> >> this looks like it might be an unescaped ' and in single quotes string. >> >> you could also try: >> >> trim(both \' \' from direction) > > does not work (still "crash"). > >> >> or >> >> trim(both \\' \\' from direction) > > does not work (still "crash"). > > > Regards, > > H?vard > >> and report if either of these work. >> >> This would help narrow down the issue and maybe give you a work around. >> >> -Steve W >> >> H?vard Tveite wrote: >>> I want to report a small problem I faced with a PostGIS >>> connection with the latest nightly build. >>> >>> With the latest build I have problems with one of my >>> PostGIS connections. >>> The problem goes away when I switch back to the nightly >>> build from March 4th 2008. Other PostGIS connections >>> seem to work fine on both builds. >>> >>> The mapserver_log reports: >>> ****************************************************** >>> Fri May 9 17:08:42 2008,2747,128.39.236.206,okart,0,-19379.849812 >>> 26500.000000 19379.849812 57500.000000,-1.000000 -1.000000,o-kartpoint >>> o-kartpolygon o-kartline ,msDrawMap(): Image handling error. Failed to >>> draw layer named 'o-kartpoint'.
>>> prepare_database(): Query error. Error declaring cursor: ERROR: current >>> transaction is aborted, commands ignored until end of transaction block >>> >>> With query string: DECLARE mycursor BINARY CURSOR FOR SELECT >>> "symbol"::text,"direction"::text,asbinary(force_collection(force_2d(the_geom)),'XDR'),OID::text >>> >>> from (select oid, symbol, trim(both ' ' from direction) as direction, >>> the_geom from okartpoint order by sequence) as okart WHERE the_geom && >>> setSRID('BOX3D(-19379.8498122653 26500,19379.8498122653 57500)'::BOX3D, >>> -1 ) >>>
>>> msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS >>> statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, >>> pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and >>> pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and >>> pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = >>> '(select oid, symbol, trim(both ' ' from direction) as direction, >>> the_geom from okartpoint order by sequence) as okart' and >>> pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null >>>
>>> ****************************************************** >>> >>> PostgreSQL log: >>> ****************************************************** >>> 2008-05-09 17:08:42 MET DST okart guest 128.39.175.213ERROR: syntax >>> error at or near "' from direction) as direction, the_geom from >>> okartpoint order by sequence) as okart'" at character 283 >>> ****************************************************** >>> >>> MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 >>> INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> PostgreSQL 8.1.5, POSTGIS="1.3.2" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. >>> 4.5.0, 22 Oct 2006" USE_STATS >>> I am on Solaris 2.7 >>> >>> If I remove the trim statement ("trim(both ' ' from direction) >>> as direction"), and replace it with "direction" (untrimmed) there >>> is no error situation in the latest nightly. >>> >>> Is this a bug? >>> >>> >>> Regards, >>> >> > From havard.tveite at umb.no Sun May 11 16:53:28 2008 From: havard.tveite at umb.no (Havard Tveite) Date: Mon, 12 May 2008 01:53:28 +0200 Subject: [mapserver-users] PostGIS problems in nightly In-Reply-To: <4827073C.5030102@swoodbridge.com> References: <482478A5.4060504@umb.no> <482493E5.9010508@swoodbridge.com> <4826A366.6050804@umb.no> <4827073C.5030102@swoodbridge.com> Message-ID: <482786F8.4000609@umb.no> David Fuhry has already made a patch: http://trac.osgeo.org/mapserver/ticket/2613 After applying the patch, the behaviour seems to be back to normal. Regards, H?vard Stephen Woodbridge wrote: > Havard, > > This sounds like a bug, can you create a bug on this so it gets resolved > for 5.2. If not let me know, and I'll write on. > > Thanks, > -Steve W > > Havard Tveite wrote: >> Sorry for not testing more, Steve. Answers to your questions >> below. >> >> Stephen Woodbridge wrote: >>> H?vard, >>> >>> Try: >>> >>> trim(both from direction) >> works >> >>> which does the same thing as: >>> >>> trim(both ' ' from direction) >>> >>> this looks like it might be an unescaped ' and in single quotes string. >>> >>> you could also try: >>> >>> trim(both \' \' from direction) >> does not work (still "crash"). >> >>> or >>> >>> trim(both \\' \\' from direction) >> does not work (still "crash"). >> >> >> Regards, >> >> H?vard >> >>> and report if either of these work. >>> >>> This would help narrow down the issue and maybe give you a work around. >>> >>> -Steve W >>> >>> H?vard Tveite wrote: >>>> I want to report a small problem I faced with a PostGIS >>>> connection with the latest nightly build. >>>> >>>> With the latest build I have problems with one of my >>>> PostGIS connections. >>>> The problem goes away when I switch back to the nightly >>>> build from March 4th 2008. Other PostGIS connections >>>> seem to work fine on both builds. >>>> >>>> The mapserver_log reports: >>>> ****************************************************** >>>> Fri May 9 17:08:42 2008,2747,128.39.236.206,okart,0,-19379.849812 >>>> 26500.000000 19379.849812 57500.000000,-1.000000 -1.000000,o-kartpoint >>>> o-kartpolygon o-kartline ,msDrawMap(): Image handling error. Failed to >>>> draw layer named 'o-kartpoint'.
>>>> prepare_database(): Query error. Error declaring cursor: ERROR: current >>>> transaction is aborted, commands ignored until end of transaction block >>>> >>>> With query string: DECLARE mycursor BINARY CURSOR FOR SELECT >>>> "symbol"::text,"direction"::text,asbinary(force_collection(force_2d(the_geom)),'XDR'),OID::text >>>> >>>> from (select oid, symbol, trim(both ' ' from direction) as direction, >>>> the_geom from okartpoint order by sequence) as okart WHERE the_geom && >>>> setSRID('BOX3D(-19379.8498122653 26500,19379.8498122653 57500)'::BOX3D, >>>> -1 ) >>>>
>>>> msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS >>>> statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, >>>> pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and >>>> pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and >>>> pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = >>>> '(select oid, symbol, trim(both ' ' from direction) as direction, >>>> the_geom from okartpoint order by sequence) as okart' and >>>> pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null >>>>
>>>> ****************************************************** >>>> >>>> PostgreSQL log: >>>> ****************************************************** >>>> 2008-05-09 17:08:42 MET DST okart guest 128.39.175.213ERROR: syntax >>>> error at or near "' from direction) as direction, the_geom from >>>> okartpoint order by sequence) as okart'" at character 283 >>>> ****************************************************** >>>> >>>> MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 >>>> INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> PostgreSQL 8.1.5, POSTGIS="1.3.2" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. >>>> 4.5.0, 22 Oct 2006" USE_STATS >>>> I am on Solaris 2.7 >>>> >>>> If I remove the trim statement ("trim(both ' ' from direction) >>>> as direction"), and replace it with "direction" (untrimmed) there >>>> is no error situation in the latest nightly. >>>> >>>> Is this a bug? >>>> >>>> >>>> Regards, >>>> > -- -- H?vard Tveite Department of Mathematical Sciences and Technology Norwegian University of Life Sciences From mhungc at gmail.com Sun May 11 17:59:45 2008 From: mhungc at gmail.com (mhungc) Date: Sun, 11 May 2008 17:59:45 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver 3D images Message-ID: <17179939.post@talk.nabble.com> Hi, I want to kown how can i develop in mapserver php mapscript functionalities as view the maps in 3D. How can i do that? Images in 3D when i have shapes in 2D?.... Can i convert shapes in 2D to 3D? I dont kown how can i visualize the images in 3D... Help please. Thanks. -- View this message in context: http://www.nabble.com/Mapserver-3D-images-tp17179939p17179939.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iworktech.sucharita at gmail.com Mon May 12 03:31:15 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Mon, 12 May 2008 16:01:15 +0530 Subject: [mapserver-users] How to draw a circle with a centroid and radius Message-ID: <2d6d8af10805120331q571941bdveeffae4a307991fd@mail.gmail.com> Hi Friends, I am really stuck up with this for a long time now. As far as I have googled, I have found that to draw a circle, either using a mapfile or dynamically using a mapscript, the circle has to be defined by two set of points of its bounding rectangle. The image that I get on my screen is a circle (because the layer is defined as a circle), but to draw this circle, a set of two points is used which ultimately is a line. I will provide my code sample below, DrawCircle(double x, double y, double dRadius) { double minx = x - dRadius; double miny = y + dRadius; double maxx = x + dRadius; double maxy = y - dRadius; //upper left corner of the bounding rectangle pointObj oPointMin = pixel2point(new pointObj(minx, miny, 0, 0)); //lower right corner of the bounding rectangle pointObj oPointMax = pixel2point(new pointObj(maxx, maxy, 0, 0)); lineObj oLine = new lineObj(); oLine.add(oPointMin); oLine.add(oPointMax); shapeObj oShp = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_LINE); oShp.add(oLine); // Creation of a temporary layer (for circle) layerObj oTempLayer = new layerObj(map); oTempLayer.name = "UserCircle"; oTempLayer.status = 1; oTempLayer.type = MS_LAYER_TYPE.MS_LAYER_CIRCLE; classObj oTempClass = new classObj(oTempLayer); styleObj oStyle = new styleObj(oTempClass); oStyle.outlinecolor.setRGB(0, 0, 0); oStyle.color.setRGB(255, 227, 255); oTempLayer.addFeature(oShp); In the last line, I add the shape object to the temporary layer and then draw that layer which thus gives me a circle. But now, I want to find the intersection of this circle with the underlying layer features which I am unable to do, as the circle is not actually a circle or polygon that will give me the intersection and thus the area of intersection. The link http://lists.dmsolutions.ca/pipermail/mapserver-users/2004-March/016983.html has a code sample to draw a circle with polygon but that code doesn't seem to work because it does not give me a circle but some other shaped polygon. Friends, please help me with this problem. Thanks, Sucharita. -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Mon May 12 06:46:38 2008 From: punk.kish at gmail.com (P Kishor) Date: Mon, 12 May 2008 09:46:38 -0400 Subject: [mapserver-users] How to draw a circle with a centroid and radius In-Reply-To: <2d6d8af10805120331q571941bdveeffae4a307991fd@mail.gmail.com> References: <2d6d8af10805120331q571941bdveeffae4a307991fd@mail.gmail.com> Message-ID: Sucharita, Did you read some of the things I wrote in my reply to you? Look below for more... On 5/12/08, Sucharita Samuel wrote: > Hi Friends, > I am really stuck up with this for a long time now. As far as > I have googled, I have found that to draw a circle, either using a mapfile > or dynamically using a mapscript, the circle has to be defined by two set of > points of its bounding rectangle. The image that I get on my screen is a > circle (because the layer is defined as a circle), but to draw this circle, > a set of two points is used which ultimately is a line. I will provide my > code sample below, > > DrawCircle(double x, double y, double dRadius) > { > double minx = x - dRadius; > double miny = y + dRadius; > double maxx = x + dRadius; > double maxy = y - dRadius; > > //upper left corner of the bounding rectangle > pointObj oPointMin = pixel2point(new pointObj(minx, miny, 0, 0)); > > //lower right corner of the bounding rectangle > pointObj oPointMax = pixel2point(new pointObj(maxx, maxy, 0, 0)); > > lineObj oLine = new lineObj(); > oLine.add(oPointMin); > oLine.add(oPointMax); > shapeObj oShp = new > shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_LINE); > oShp.add(oLine); > > // Creation of a temporary layer (for circle) > layerObj oTempLayer = new layerObj(map); > oTempLayer.name = "UserCircle"; > oTempLayer.status = 1; > oTempLayer.type = MS_LAYER_TYPE.MS_LAYER_CIRCLE; > classObj oTempClass = new classObj(oTempLayer); > styleObj oStyle = new styleObj(oTempClass); > oStyle.outlinecolor.setRGB(0, 0, 0); > oStyle.color.setRGB(255, 227, 255); > oTempLayer.addFeature(oShp); > > In the last line, I add the shape object to the temporary layer and > then draw that layer which thus gives me a circle. But now, I want to find > the intersection of this circle with the underlying layer features which I > am unable to do, as the circle is not actually a circle or polygon that will > give me the intersection and thus the area of intersection. > > The link > http://lists.dmsolutions.ca/pipermail/mapserver-users/2004-March/016983.html > has a code sample to draw a circle with polygon but that code doesn't seem > to work because it does not give me a circle but some other shaped polygon. That shape is indeed a circle. Think about it... a circle is a polygon with points that lie on the circumference. Right? There are infinite such points, so the more points you draw the smoother will be your circle. Of course, too many points becomes pointless because a coarse circle can be good enough for one's purpose. The code that is referenced in the email above uses a 10 degrees increment to place 37 points on the circle's circumference (the last point is the same as the first point). Ok, that takes care of the circle. Your problem doesn't end with creating a circle. You want to find out the percentage overlap with a polygon. My MapServer/MapScript knowledge is extremely rusty, but I am not sure there is any way to do that with MapServer. It may be possible with MapScript (I am actually writing some poly-on-poly routines in Perl, but they are difficult to do). To do a poly-on-poly overlay, you will likely have to implement PostGIS. You have been asking this question for a while on this list and you haven't really received any definitive answer other than mine. Maybe you should start with determining the capabilities of MapServer/MapScript first to evaluate if that can solve your problem. > > > Friends, please help me with this problem. > > Thanks, > Sucharita. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ From thomas.bonfort at gmail.com Mon May 12 10:29:04 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 12 May 2008 19:29:04 +0200 Subject: [mapserver-users] Pattern In-Reply-To: References: Message-ID: The functionality has been freshly implemented in trunk. you get it with SYMBOL TYPE HATCH PATTERN 2 2 END END regards, thomas On Sat, May 10, 2008 at 5:41 PM, Giacomo Sacchetti wrote: > Hi all, > > how I can create dashed HATCH symbols? There are just few lines of > documentation for the HATCH symbol... > > Best, > GS > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Mon May 12 10:38:57 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 12 May 2008 19:38:57 +0200 Subject: [mapserver-users] AGG vs. GD: Label placement problems In-Reply-To: References: <47DEC5BA.2080401@mapgears.com> Message-ID: This issue should now be fixed in trunk, if you have time to confirm that would be great! regards, thomas On Tue, Mar 18, 2008 at 2:10 PM, thomas bonfort wrote: > http://trac.osgeo.org/mapserver/ticket/2357 > > > > On Tue, Mar 18, 2008 at 1:05 PM, Doyon, Jean-Francois > wrote: > > Thanks Thomas, that'd be great ... is there a ticket open for this, or > > should I open one? (I'd like to track progress on this issue ...) > > > > J.F. > > > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas > > bonfort > > Sent: March 18, 2008 03:42 > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] AGG vs. GD: Label placement problems > > > > Yes, that's exactly the problem, as there's a difference of a few pixels > > between the size of the label calculated by gd and the size it actually > > takes when rendered with agg. I realize now that it can cause some quite > > visible problems in the case you show here (labels to the left), as in > > that case the few pixels difference can cause the label to overlap the > > point symbol. I'll see if I can fix this in the days/weeks to come so > > this can be included in 5.2 > > > > cheers, > > thomas > > > > On Mon, Mar 17, 2008 at 8:25 PM, Daniel Morissette > > wrote: > > > Doyon, Jean-Francois wrote: > > > > > > > > Labels that are to the left of the point seem to be placed > > differently ... Look top-right ("Les Escoumins", "Saint Anne de Port > > Neuf", etc ...) for an example, though it happens all over the place I > > think. Labels to the right of the point however seem ok. > > > > > > > > Is this a bug? A design change? Can anything be done from the > > mapfiel to mitigate this? > > > > > > > > > > A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd > > > is still used [...] for the calculation of label sizes (thus some > > > subtle discreptancies in label placement, mostly visible if using a > > > label > > > backgroundcolor)": > > > > > > http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html > > > > > > Maybe that's what your running into? Hopefully Thomas will see this > > > and comment. > > > > > > Daniel > > > -- > > > Daniel Morissette > > > http://www.mapgears.com/ > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From yosoycore at gmail.com Mon May 12 15:20:11 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Tue, 13 May 2008 00:20:11 +0200 Subject: [mapserver-users] Customized layer for Mapserver/Kamap Message-ID: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> Hi everyone, I'm working with mapserver using ka-map. Now I'm trying to create a new layer over the others using alphanumeric data, and I was wondering what's the best method. My idea is to represent this data with a colour gradient. For example if the data are like this: City Population --------------------------- Barcelona 4000000 Madrid 7000000 I want to represent the Barcelona area with a light red colour, and Madrid with a darker red. Someone told me that the only input to Ka-map is mapserver, and mapserver uses GDAL/OGR library for this kind of tasks... so what is the best kind of input format using this library? And in order to represent the data with the colour gradient, where I have to link the alphanumeric data (e.g 4000000) with the colour (e.g. dark red)? Thank you very much guys! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pianosnake at gmail.com Mon May 12 16:22:24 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 12 May 2008 17:22:24 -0600 Subject: [mapserver-users] Customized layer for Mapserver/Kamap In-Reply-To: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> References: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> Message-ID: <1d674ec80805121622l14cb683fn8c700729c15d11ba@mail.gmail.com> Hi, Kamap was designed to only take Mapserver input, yes. Mapserver will take most formats. You can have data in shapefiles, in a database, a raster image, or in a text file. Do you have polygons for the cities or do you want to just draw a circle at their lat/long ? On Mon, May 12, 2008 at 4:20 PM, Emilio Ponce wrote: > Hi everyone, > > I'm working with mapserver using ka-map. Now I'm trying to create a new > layer over the others using alphanumeric data, and I was wondering what's > the best method. > My idea is to represent this data with a colour gradient. For example if the > data are like this: > > City Population > --------------------------- > Barcelona 4000000 > Madrid 7000000 > > I want to represent the Barcelona area with a light red colour, and Madrid > with a darker red. > Someone told me that the only input to Ka-map is mapserver, and mapserver > uses GDAL/OGR library for this kind of tasks... so what is the best kind of > input format using this library? And in order to represent the data with the > colour gradient, where I have to link the alphanumeric data (e.g 4000000) > with the colour (e.g. dark red)? > > Thank you very much guys! > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jjschlafley at yahoo.com Mon May 12 21:01:59 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Mon, 12 May 2008 21:01:59 -0700 (PDT) Subject: [mapserver-users] Does MS4W multi-thread? Message-ID: <737665.65892.qm@web52309.mail.re2.yahoo.com> Hi all, Will the mapserver CGI program multi-thread on an MS4W installation.? I noticed many "mapserver.exe" image names in the task manager on my server.? Assuming each image name corresponds with each request or thread, will the OS delegate the processes to other CPU cores if available?? I currently only have a single core Xeon, but am wondering if a multi-core CPU could be beneficial with Apache and Mapserver (MS4W). Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From sacchetti at nepero.net Mon May 12 23:57:13 2008 From: sacchetti at nepero.net (Giacomo Sacchetti) Date: Tue, 13 May 2008 08:57:13 +0200 Subject: [mapserver-users] Pattern In-Reply-To: References: Message-ID: Thanks a lot! By the way, is it possible to define lines with dash and dots also? Best, GS On May 12, 2008, at 7:29 PM, thomas bonfort wrote: > The functionality has been freshly implemented in trunk. you get it > with > > SYMBOL > TYPE HATCH > PATTERN 2 2 END > END > > regards, > thomas > > On Sat, May 10, 2008 at 5:41 PM, Giacomo Sacchetti > wrote: >> Hi all, >> >> how I can create dashed HATCH symbols? There are just few lines of >> documentation for the HATCH symbol... >> >> Best, >> GS >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- Giacomo Sacchetti | http://www.nepero.net/ "Ogni uomo nasce gemello, colui che e` e colui che crede di essere." -- Martin Kessel From jlf at eniro.dk Mon May 12 23:42:22 2008 From: jlf at eniro.dk (James Lindstorff) Date: Tue, 13 May 2008 08:42:22 +0200 Subject: [mapserver-users] Does MS4W multi-thread? In-Reply-To: <737665.65892.qm@web52309.mail.re2.yahoo.com> References: <737665.65892.qm@web52309.mail.re2.yahoo.com> Message-ID: AFAIK MS4W doesn't multi-thread - actually there is one proccess per request. The good news is that being able to serve multiple request I parallel is not a MapServer issue but an OS issue. So if you OS can detect multiple cores it will execute processes I parallel on the different cores. Therefore MapServer doesn't need to multi-thread for you to serve multiple request I parallel. ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of J.J. Schlafley Sent: 13. maj 2008 06:02 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Does MS4W multi-thread? Hi all, Will the mapserver CGI program multi-thread on an MS4W installation. I noticed many "mapserver.exe" image names in the task manager on my server. Assuming each image name corresponds with each request or thread, will the OS delegate the processes to other CPU cores if available? I currently only have a single core Xeon, but am wondering if a multi-core CPU could be beneficial with Apache and Mapserver (MS4W). Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From liste at geo-dienstleistung.de Tue May 13 00:55:18 2008 From: liste at geo-dienstleistung.de (Frank Broniewski) Date: Tue, 13 May 2008 09:55:18 +0200 Subject: [mapserver-users] Temporary image files In-Reply-To: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> References: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> Message-ID: <200805130955.18590.liste@geo-dienstleistung.de> Hi List I am just setting up a web server for use with mapserver. Targeted use will be php-mapscript and wms map serving. I was just looking through my mapfiles in order to find file system based configurations like shapepath, imagepath etc. Stumbling over imagepath and imageurl parameters, I was wondering for what reason mapserver stores the images in the temporary folder before serving them to the user. When querying mapserver as a wms, there are no temporary files, so this does not seem to be a necessary step to provide a map image to the user. Does mapserver reuse these images? Or is the temporary files approach a remain from more static web map pages where the image could be reused more often? Coming to my next question, I presume that my php code causes the storage of the image - $mapimageurl = $mapimage->saveWebImage(); Is it possible to deliver the image directly to the browser instead of passing an URI? From lorenzetti at faunalia.it Tue May 13 01:12:01 2008 From: lorenzetti at faunalia.it (Walter Lorenzetti) Date: Tue, 13 May 2008 10:12:01 +0200 Subject: [mapserver-users] Temporary image files In-Reply-To: <200805130955.18590.liste@geo-dienstleistung.de> References: <2d6d8af10805090008raea431sd1e1fee9b820dbae@mail.gmail.com> <200805130955.18590.liste@geo-dienstleistung.de> Message-ID: <48294D51.8020001@faunalia.it> Frank Broniewski ha scritto: Hi Frank, > Hi List > > I am just setting up a web server for use with mapserver. Targeted use will be > php-mapscript and wms map serving. > > I was just looking through my mapfiles in order to find file system based > configurations like shapepath, imagepath etc. > > Stumbling over imagepath and imageurl parameters, I was wondering for what > reason mapserver stores the images in the temporary folder before serving > them to the user. When querying mapserver as a wms, there are no temporary > files, so this does not seem to be a necessary step to provide a map image to > the user. > Does mapserver reuse these images? Or is the temporary files approach a remain > from more static web map pages where the image could be reused more often? > I know this is not possible, because mapserver uses timestamp... but I don't sure... > Coming to my next question, I presume that my php code causes the storage of > the image - $mapimageurl = $mapimage->saveWebImage(); > Is it possible to deliver the image directly to the browser instead of passing > an URI? > > yes is possible, you've to use $img->saveImage(''); instead of $mapimageurl = $mapimage->saveWebImage(); and in your php page you've to use header('Content-type: image/png'); if you use png format image, image/jpeg for jpeg etc... I hope this can help W -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti at faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy From geotech.sarel at gmail.com Tue May 13 01:16:57 2008 From: geotech.sarel at gmail.com (Sarel Coetzer) Date: Tue, 13 May 2008 10:16:57 +0200 Subject: [mapserver-users] To WFS, WMS or to WCS Message-ID: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> Hi Is there anywhere a brief explanation of the deferent types of map services such as WFS, WMS and WCS. What each service does differently then the other and how to identify which one would be the correct service to use for a specific application. I have read the various how to's on the wiki but I am trying to find a one page comparison of capabilities/advantages or disadvantages of these various services. Regards Sarel Regards Sarel -- "http://sarelgis.blogspot.com/" -------------- next part -------------- An HTML attachment was scrubbed... URL: From thy at 42.dk Tue May 13 01:25:02 2008 From: thy at 42.dk (Kristian Thy) Date: Tue, 13 May 2008 10:25:02 +0200 Subject: [mapserver-users] To WFS, WMS or to WCS In-Reply-To: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> References: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> Message-ID: <20080513082502.GB2327@42.dk> On Tue, May 13, Sarel Coetzer wrote: > Is there anywhere a brief explanation of the deferent types of map services > such as WFS, WMS and WCS. WIYF: http://en.wikipedia.org/wiki/Web_Map_Service http://en.wikipedia.org/wiki/Web_Feature_Service http://en.wikipedia.org/wiki/Web_Coverage_Service \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From bartvde at osgis.nl Tue May 13 01:27:55 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 13 May 2008 10:27:55 +0200 Subject: [mapserver-users] To WFS, WMS or to WCS In-Reply-To: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> References: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> Message-ID: <4829510B.6010401@osgis.nl> Hi Sarel, I can probably explain it in a few sentences. WMS is a web mapping service, so it is meant to render an image of data, be it vector or raster data. It only gives you back an image representation of your data. WFS is a web feature service, it is meant to deliver the features (in vector format) to the client, so the "raw" data. The vector format is mostly GML (Geography Markup Language). WCS is a web coverage service, it is the raster version of WFS, so to deliver raster coverages in a "raw" format to the client. If you only need images and a query on a point click, stick with WMS. If you need your users to actually download data, you will need WFS + WCS. There is also a thing called SLD WMS (Styled Layer Descriptor), where the WMS client can change the symbology of the map, and get an image back in different colors/patterns etc. than the default one advertized by the service. Hope this helps. If you have further specific questions, don't hesitate to ask. Best regards, Bart Sarel Coetzer wrote: > Hi > > Is there anywhere a brief explanation of the deferent types of map > services such as WFS, WMS and WCS. > What each service does differently then the other and how to identify > which one would be the correct service to use for a specific application. > I have read the various how to's on the wiki but I am trying to find a > one page comparison of capabilities/advantages or disadvantages of > these various services. > > > Regards > Sarel > > Regards > Sarel > > -- > "http://sarelgis.blogspot.com/" > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From geotech.sarel at gmail.com Tue May 13 01:29:04 2008 From: geotech.sarel at gmail.com (Sarel Coetzer) Date: Tue, 13 May 2008 10:29:04 +0200 Subject: [mapserver-users] WFS, WMS or WCS Message-ID: <89f54d350805130129ice0ee5fr32c7fce5d305cd5c@mail.gmail.com> Hi Is there anywhere a brief explanation of the deferent types of map services such as WFS, WMS and WCS. What each service does differently then the other and how to identify which one would be the correct service to use for a specific application. I have read the various how to's on the wiki but I am trying to find a one page comparison of capabilities/advantages or disadvantages of these various services. -- "http://sarelgis.blogspot.com/" -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue May 13 02:18:24 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 13 May 2008 11:18:24 +0200 Subject: [mapserver-users] To WFS, WMS or to WCS In-Reply-To: <89f54d350805130150x4b381965gc8989df343746364@mail.gmail.com> References: <89f54d350805130116l58aa413ag6c9ff0134a31e02@mail.gmail.com> <4829510B.6010401@osgis.nl> <89f54d350805130150x4b381965gc8989df343746364@mail.gmail.com> Message-ID: <48295CE0.7060206@osgis.nl> Hi Sarel, please cc the list since it might be useful for other people searching the archives one day. 1) AFAIK WMS server does not generate any images in the temp dir when using Mapserver in CGI mode. The WMS client in Mapserver does (so if you use remote WMS layers). I don't think WFS and WCS server store temporary images, but WFS client will store the file. 2) yes, you can use the same MAP file, see the OGC web services workshop. 3) it is not different, it just means the output format differs (so GML for WFS instead of e.g. image/png for WMS), the source data can be the same. 4) I am unaware of any KML support in Mapserver at the moment. Best regards, Bart Sarel Coetzer wrote: > > Thanks for the help Bart > > > > Yes, I do have some questions. > > > > - WMS creates a lot of images in my temp folder (I have a > batch files cleaning this out regularly ), does WCS/WFS create any > temp images? > > - Would one mapfile be able to host all tree services? > > - For my MS WMS am thinking about using the FWTools to export > my postGIS layers from server to client (clients format choice > shpfile,mapinfo or kml), how would WCS or WFS handle this differently? > > - Last one (sorry!) What type of service does KMLMapsever > require, I have tried spitting out KML but I get an error in Google > earth saying it has lost the network connection. > > > > > > Many thanks > > > Regards > Sarel > > > > On Tue, May 13, 2008 at 10:27 AM, Bart van den Eijnden (OSGIS) > > wrote: > > Hi Sarel, > > I can probably explain it in a few sentences. > > WMS is a web mapping service, so it is meant to render an image of > data, be it vector or raster data. It only gives you back an image > representation of your data. > WFS is a web feature service, it is meant to deliver the features > (in vector format) to the client, so the "raw" data. The vector > format is mostly GML (Geography Markup Language). > WCS is a web coverage service, it is the raster version of WFS, so > to deliver raster coverages in a "raw" format to the client. > > If you only need images and a query on a point click, stick with > WMS. If you need your users to actually download data, you will > need WFS + WCS. > > There is also a thing called SLD WMS (Styled Layer Descriptor), > where the WMS client can change the symbology of the map, and get > an image back in different colors/patterns etc. than the default > one advertized by the service. > > Hope this helps. If you have further specific questions, don't > hesitate to ask. > > Best regards, > Bart > > Sarel Coetzer wrote: > > Hi > > Is there anywhere a brief explanation of the deferent types of > map services such as WFS, WMS and WCS. > What each service does differently then the other and how to > identify which one would be the correct service to use for a > specific application. > I have read the various how to's on the wiki but I am trying > to find a one page comparison of capabilities/advantages or > disadvantages of these various services. > > > Regards > Sarel > > Regards > Sarel > > -- > "http://sarelgis.blogspot.com/" > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > > > > -- > "http://sarelgis.blogspot.com/" -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From yosoycore at gmail.com Tue May 13 04:32:41 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Tue, 13 May 2008 13:32:41 +0200 Subject: [mapserver-users] Customized layer for Mapserver/Kamap In-Reply-To: <1d674ec80805121622l14cb683fn8c700729c15d11ba@mail.gmail.com> References: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> <1d674ec80805121622l14cb683fn8c700729c15d11ba@mail.gmail.com> Message-ID: <9c2e09570805130432g42744abwe20c7781aec67124@mail.gmail.com> Hi Florin, I have a layer with polygons representing cities (stored in PostGIS), and my idea is to set the colour of these polygons in function of variables like 'population', as I show on my last e-mail. I'm going to use the same colour for all the polygons, but the colour of the polygon Barcelona will be lighter than the colour of the polygon Madrid, because Madrid has more population. The problem is basically how can I relate the numeric variables like population with the geometry of every city? If I can do this I supose that setting the colour will be not a big problem. Thank you very much! 2008/5/13 Florin A. : > Hi, > > Kamap was designed to only take Mapserver input, yes. > Mapserver will take most formats. You can have data in shapefiles, in > a database, a raster image, or in a text file. > Do you have polygons for the cities or do you want to just draw a > circle at their lat/long ? > > > > On Mon, May 12, 2008 at 4:20 PM, Emilio Ponce wrote: > > Hi everyone, > > > > I'm working with mapserver using ka-map. Now I'm trying to create a new > > layer over the others using alphanumeric data, and I was wondering > what's > > the best method. > > My idea is to represent this data with a colour gradient. For example if > the > > data are like this: > > > > City Population > > --------------------------- > > Barcelona 4000000 > > Madrid 7000000 > > > > I want to represent the Barcelona area with a light red colour, and > Madrid > > with a darker red. > > Someone told me that the only input to Ka-map is mapserver, and > mapserver > > uses GDAL/OGR library for this kind of tasks... so what is the best kind > of > > input format using this library? And in order to represent the data with > the > > colour gradient, where I have to link the alphanumeric data (e.g > 4000000) > > with the colour (e.g. dark red)? > > > > Thank you very much guys! > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.dardini at comune.prato.it Tue May 13 05:00:33 2008 From: l.dardini at comune.prato.it (Leandro Dardini) Date: Tue, 13 May 2008 14:00:33 +0200 Subject: [mapserver-users] Compilation issue, undefined reference to `msyylex_destroy' Message-ID: <6F861500A5092B4C8CD653DE20A4AA0D6FB4D0@exchange3.comune.prato.local> Hello, I am trying to compile mapserver on a Redhat ES4 64bit. I get the following error: g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_ORACLESPATIAL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include/oracle/10.2.0.3/client64/ -I//rdbms/demo -I//rdbms/public -I/usr/include shp2img.o -L. -lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz -L/usr/lib64 -lagg -laggfontfreetype -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/lib64 -lgdal -L/usr/lib64 -lgeos -lgeos_c -logdi31 -lgif -ljpeg -ltiff -lpng -lcfitsio -lpq -L/usr/lib64 -lpq -lz -lm -lrt -ldl -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -L/usr/lib64 -lpq -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -L/usr/lib/oracle/10.2.0.3/client64/lib/ -lclntsh -L/usr/lib64 -lgeos_c -lpthread -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapfile.o)(.text+0x208a): In function `msUpdateLabelFromString': : undefined reference to `msyylex_destroy' ./libmapserver.a(mapfile.o)(.text+0x3265): In function `msUpdateStyleFromString': : undefined reference to `msyylex_destroy' ./libmapserver.a(mapfile.o)(.text+0x4381): In function `msUpdateClassFromString': : undefined reference to `msyylex_destroy' ./libmapserver.a(mapfile.o)(.text+0x5bcb): In function `msUpdateLayerFromString': : undefined reference to `msyylex_destroy' ./libmapserver.a(mapfile.o)(.text+0x608b): In function `msUpdateReferenceMapFromString': : undefined reference to `msyylex_destroy' ./libmapserver.a(mapfile.o)(.text+0x66b1): more undefined references to `msyylex_destroy' follow collect2: ld returned 1 exit status make: *** [shp2img] Error 1 The configuration directive is the following: ./configure --with-geos --with-ogr --with-agg --with-freetype --with-proj --without-tiff --with-threads \\ --without-pdf --with-gdal --with-wmsclient --with-postgis --with-oraclespatial=/ --with-oraclespatial_inc=/usr/include/oracle/10.2.0.3/client64/ \\ --withoraclespatial_lib=/usr/lib/oracle/10.2.0.3/client64/lib/ --with-php=/usr/include/php MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: -laggfontfreetype Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: -DUSE_ORACLESPATIAL FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: yes Compilation went smooth until the shp2img round. Leandro --------------------- Dott. Leandro Dardini Sistema Informativo Comune di Prato Via Cairoli, 16 59100 Prato PO Tel: +39 05741835216 Fax: +39 05721835212 From group.ritesh at gmail.com Tue May 13 05:37:25 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 13 May 2008 05:37:25 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver 3D images In-Reply-To: <17179939.post@talk.nabble.com> References: <17179939.post@talk.nabble.com> Message-ID: <17207355.post@talk.nabble.com> Do read about Data Elevation Models. Regards, Ritesh mhungc wrote: > > Hi, > > I want to kown how can i develop in mapserver php mapscript > functionalities as view the maps in 3D. How can i do that? Images in 3D > when i have shapes in 2D?.... > > Can i convert shapes in 2D to 3D? > > I dont kown how can i visualize the images in 3D... > > Help please. > > Thanks. > -- View this message in context: http://www.nabble.com/Mapserver-3D-images-tp17179939p17207355.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nellyfromma at gmail.com Tue May 13 05:55:33 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 13 May 2008 08:55:33 -0400 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. Message-ID: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> For performance reasons, I may need to convert SHP's into a spatial database. I loosely understand the concept of how this work but my questions to anyone reading are: 1. Has anyone looked into specifically doing the above with their working demo of GeoMoose using SHP files previously? I would hate to scrap the work I've done utilizing the excellent usability of GeoMoose in favor of utilizing a spatial database. 2. If users are typically accessing data but not writing it, will I realize a performance upgrade *typically*. 3. Is there any functionality I can expect to break and essentially head into an 'uncharted territory' if I did indeed attempt this. Can I basically expect to find in my way a high level of techincal issues (I'm very technical, but I am trying to find an efficient approach) Also, here is a description of what I had attempted to do... We have an OS X server which contains 2 dual core Xeons processors and 4GB of ram. We are mainly a Windows house and had aquired the hardware in an anquisition and would like to utilize this hardware as best as possible. This is one of our more ambitious products we one day would like to offer our clients (we currently offer an Access product that is quite dated.). Originally, I had suggested perhaps getting Parellels VM software and just bringing a copy of Windows Server 2003 to the table, but my performance almost seems better on my test machine... I'm not sure if that will apply to concurrent users which is certainly an aspect of the issue at hand, but the VM software only detects 1 core... not good. We are not looking at VMWare or anything where the license will exceed or approach the cost of a new server otherwise we will do so. If I host PostgreSQL or MySQL on the server and away from the server that would host GeoMoose (a new server) I would hopefully like to utilize the Mac in this way seeing as how I can not get the performance I would like out of virtualized hosting. Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, it is a very laborious task and I am foreseeing I will be the one having to maintain this server and while I myself and relatively comfortable maintaining OS X and its Unix skeleton, I want to minimize the work I need to do to this server... I will post this on GeoMoose mailing list as well as Mapserver as I realize there is some overlap in exactly what area's this does cover. While the context of this topic does cover my use of GeoMoose with Mapserver, I'm thinking there are users on both of these lists that have experience with the advantages vs disadvantages of Spatial DB Data vs SHP on disk. At any rate, any input is appreciated. Thanks, Nelson From stefan.schwarzer at grid.unep.ch Tue May 13 06:03:40 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 13 May 2008 15:03:40 +0200 Subject: [mapserver-users] getCapabilities problems Message-ID: Hi there, my getCapabilities request seems to have a problem... But I have no idea why. I've reduced the whole thing on a couple of lines (see below), but still it doesn't work. Can anyone give me a hint why that would be? Thanks for any suggestion! Stef http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms.map&service=wms&version=1.1.1&request=getcapabilities # Map definition --------------------- NAME geo_wms.map STATUS ON SIZE 600 300 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 255 255 255 SHAPEPATH '/www/geodataportal/htdocs/../data' FONTSET '/www/geodataportal/htdocs/mod_map/etc/fonts.txt' SYMBOLSET '/www/geodataportal/htdocs/mod_map/etc/symbols.sym' # End Map definition --------------------- # Projection definition --------------------- PROJECTION 'init=epsg:4326' END # End Projection definition --------------------- # Web definition --------------------- WEB IMAGEPATH '/www/geodataportal/temp/' IMAGEURL 'http://gridca.grid.unep.ch/geodataportal/temp/' METADATA 'wms_title' 'GEO Data Portal WMS Server' 'wms_service_onlineresource' 'http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms.map&' 'wms_srs' 'EPSG:4326' 'wms_getfeatureinfo' 'http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/mod_map/geo_wms.map&' 'wms_featureinfoformat' 'text/plain' END END # End Web definition --------------------- END # Map File From yjacolin at free.fr Tue May 13 06:10:05 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Tue, 13 May 2008 15:10:05 +0200 Subject: [mapserver-users] getCapabilities problems In-Reply-To: References: Message-ID: <200805131510.05320.yjacolin@free.fr> Hi, This url seems ok to me, I succeed to dowload the XML file. You probably find the problem ;) Regards, Y. Le Tuesday 13 May 2008 15:03:40 Stefan Schwarzer, vous avez ?crit?: > Hi there, > > my getCapabilities request seems to have a problem... But I have no > idea why. I've reduced the whole thing on a couple of lines (see > below), but still it doesn't work. Can anyone give me a hint why that > would be? > > Thanks for any suggestion! > > Stef > > > > http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/m >od_map/geo_wms.map&service=wms&version=1.1.1&request=getcapabilities > > > > # Map definition --------------------- > > NAME geo_wms.map > STATUS ON > SIZE 600 300 > EXTENT -180 -90 180 90 > UNITS DD > IMAGECOLOR 255 255 255 > SHAPEPATH '/www/geodataportal/htdocs/../data' > FONTSET '/www/geodataportal/htdocs/mod_map/etc/fonts.txt' > SYMBOLSET '/www/geodataportal/htdocs/mod_map/etc/symbols.sym' > > # End Map definition --------------------- > > > > > # Projection definition --------------------- > > PROJECTION > 'init=epsg:4326' > END > > # End Projection definition --------------------- > > > > > # Web definition --------------------- > > WEB > IMAGEPATH '/www/geodataportal/temp/' > IMAGEURL 'http://gridca.grid.unep.ch/geodataportal/temp/' > METADATA > 'wms_title' 'GEO Data Portal WMS Server' > 'wms_service_onlineresource' > 'http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/m >od_map/geo_wms.map&' 'wms_srs' 'EPSG:4326' > 'wms_getfeatureinfo' > 'http://gridca.grid.unep.ch/cgi-bin/mapserv?map=/www/geodataportal/htdocs/m >od_map/geo_wms.map&' 'wms_featureinfoformat' 'text/plain' > END > END > > # End Web definition --------------------- > > > END # Map File > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin --- http://softlibre.gloobe.org From Andreas.Eichner at sid.sachsen.de Tue May 13 06:14:00 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 13 May 2008 15:14:00 +0200 Subject: [mapserver-users] AW: getCapabilities problems References: Message-ID: > my getCapabilities request seems to have a problem... But I have no > idea why. If you want to get rid off the warnings, give all layers a wms_title metadata. If you ommit this attribute mapserver inserts the layer's name as title and injects a warning message. So try something like LAYER NAME foo METADATA wms_title "Short descriptive title for layer foo" END ... END From stefan.schwarzer at grid.unep.ch Tue May 13 06:16:41 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 13 May 2008 15:16:41 +0200 Subject: [mapserver-users] getCapabilities problems In-Reply-To: References: Message-ID: <6675EFE6-991B-4F8E-AEB2-7B9E01BC7FE1@grid.unep.ch> > my getCapabilities request seems to have a problem... But I have no > idea why. I've reduced the whole thing on a couple of lines (see > below), but still it doesn't work. Can anyone give me a hint why > that would be? so, it seems to be correct; it just doesn't display the XML file in my browser(s) (Safari, Firefox)... From bartvde at osgis.nl Tue May 13 06:19:23 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 13 May 2008 15:19:23 +0200 Subject: [mapserver-users] getCapabilities problems In-Reply-To: <6675EFE6-991B-4F8E-AEB2-7B9E01BC7FE1@grid.unep.ch> References: <6675EFE6-991B-4F8E-AEB2-7B9E01BC7FE1@grid.unep.ch> Message-ID: <4829955B.4030009@osgis.nl> That's logical, since OGC did not define the mime-type as text/xml, but as application/vnd.ogc.wms_xml instead, so browsers have no clue what to do with it, so present the download dialog. You can probably configure your browser to display it as XML though. Best regards, Bart Stefan Schwarzer wrote: >> my getCapabilities request seems to have a problem... But I have no >> idea why. I've reduced the whole thing on a couple of lines (see >> below), but still it doesn't work. Can anyone give me a hint why that >> would be? > > so, it seems to be correct; it just doesn't display the XML file in my > browser(s) (Safari, Firefox)... > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From woklist at kyngchaos.com Tue May 13 06:51:33 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 13 May 2008 08:51:33 -0500 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. In-Reply-To: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> References: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> Message-ID: <6566BE0D-94DE-4D22-AE65-EAD20491E7ED@kyngchaos.com> On May 13, 2008, at 7:55 AM, Nelson Soto wrote: > Originally, I had suggested perhaps getting Parellels VM software and > just bringing a copy of Windows Server 2003 to the table, but my > performance almost seems better on my test machine... I'm not sure if > that will apply to concurrent users which is certainly an aspect of > the issue at hand, but the VM software only detects 1 core... not > good. We are not looking at VMWare or anything where the license will > exceed or approach the cost of a new server otherwise we will do so. > Or install Windows Server raw - you can install Windows on Mac Intel hardware without virtualization (I think you have to use Boot Camp, for drivers). I haven't heard of anyone doing this with an Xserve, so I don't know how complete drivers are. Another problem with Parallels is that it doesn't support 64bit OSs yet, so Windows Server would run in 32bit mode. > Yes, I realize I can just set up Mapserver for OS X but, in my > oppinion, it is a very laborious task and I am foreseeing I will be > the one having to maintain this server and while I myself and > relatively comfortable maintaining OS X and its Unix skeleton, I want > to minimize the work I need to do to this server... > If you mean laborious for getting the software compiled and installed, it's all done. I maintain OSX binaries for MapServer, Postgres/ PostGIS, PHP ([my] MapServer can't/shouldn't use the OSX PHP), and various GIS library dependencies as frameworks. > ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From David.Fawcett at state.mn.us Tue May 13 06:55:14 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 13 May 2008 08:55:14 -0500 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. In-Reply-To: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD38@s-sp22.pca.state.mn.us> I would be surprised if you actually get a performance gain from using a spatial db over a well optimized (tiled, indexed, overviews) set of shape files. Using the spatial db definitely gives you some more flexibility, but I would doubt that it would out perform the shapefiles. I am not completely sure what you are asking in question #1, but a MapServer WMS service based on a PostGIS layer shouldn't look any different to GeoMoose than one based on shapefiles. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Tuesday, May 13, 2008 7:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. For performance reasons, I may need to convert SHP's into a spatial database. I loosely understand the concept of how this work but my questions to anyone reading are: 1. Has anyone looked into specifically doing the above with their working demo of GeoMoose using SHP files previously? I would hate to scrap the work I've done utilizing the excellent usability of GeoMoose in favor of utilizing a spatial database. 2. If users are typically accessing data but not writing it, will I realize a performance upgrade *typically*. 3. Is there any functionality I can expect to break and essentially head into an 'uncharted territory' if I did indeed attempt this. Can I basically expect to find in my way a high level of techincal issues (I'm very technical, but I am trying to find an efficient approach) Also, here is a description of what I had attempted to do... We have an OS X server which contains 2 dual core Xeons processors and 4GB of ram. We are mainly a Windows house and had aquired the hardware in an anquisition and would like to utilize this hardware as best as possible. This is one of our more ambitious products we one day would like to offer our clients (we currently offer an Access product that is quite dated.). Originally, I had suggested perhaps getting Parellels VM software and just bringing a copy of Windows Server 2003 to the table, but my performance almost seems better on my test machine... I'm not sure if that will apply to concurrent users which is certainly an aspect of the issue at hand, but the VM software only detects 1 core... not good. We are not looking at VMWare or anything where the license will exceed or approach the cost of a new server otherwise we will do so. If I host PostgreSQL or MySQL on the server and away from the server that would host GeoMoose (a new server) I would hopefully like to utilize the Mac in this way seeing as how I can not get the performance I would like out of virtualized hosting. Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, it is a very laborious task and I am foreseeing I will be the one having to maintain this server and while I myself and relatively comfortable maintaining OS X and its Unix skeleton, I want to minimize the work I need to do to this server... I will post this on GeoMoose mailing list as well as Mapserver as I realize there is some overlap in exactly what area's this does cover. While the context of this topic does cover my use of GeoMoose with Mapserver, I'm thinking there are users on both of these lists that have experience with the advantages vs disadvantages of Spatial DB Data vs SHP on disk. At any rate, any input is appreciated. Thanks, Nelson _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rwburgholzer at deq.virginia.gov Tue May 13 07:07:18 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Tue, 13 May 2008 10:07:18 -0400 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD38@s-sp22.pca.state.mn.us> Message-ID: <6C097DA58429B743A67070F98BE73A37025DD76C@deqex01.deq.local> Nelson, David explains my thoughts about the shapefile/performance issue better than I did (in a post that didn't make it to the listserv). In a word, the shapefile and mapserver are optimized to have robust access, so they do the job as well as, or in many cases, better than PostGIS in terms of read-only access. As for the concept of having one machine serve the shapes, and the other generate the maps, this is a matter of preference. With a Gigabit backplane, I don't see the performance being that much of a problem, but once again, it depends upon the size of the datasets that you will be delivering. Also, it depends on what else the server may be doing, if the web server has many tasks, and you are doing some fairly intensive geoprocessing stuff, it might be a benefit to have the spatial DB on another box. Of course, all of this comes down to testing on your own setup to find the most optimal configuration. And I have to say that you can't go wrong with providing yourself with the *capability* to provide spatial DB power, and load balancing. That just seems like a smart set of options to keep in your toolbox. r.b. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Fawcett, David Sent: Tue 5/13/2008 9:55 AM To: Nelson Soto; mapserver-users at lists.osgeo.org Cc: Subject: RE: [mapserver-users] PostGIS or Mysql and GeoMoose. I would be surprised if you actually get a performance gain from using a spatial db over a well optimized (tiled, indexed, overviews) set of shape files. Using the spatial db definitely gives you some more flexibility, but I would doubt that it would out perform the shapefiles. I am not completely sure what you are asking in question #1, but a MapServer WMS service based on a PostGIS layer shouldn't look any different to GeoMoose than one based on shapefiles. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Tuesday, May 13, 2008 7:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. For performance reasons, I may need to convert SHP's into a spatial database. I loosely understand the concept of how this work but my questions to anyone reading are: 1. Has anyone looked into specifically doing the above with their working demo of GeoMoose using SHP files previously? I would hate to scrap the work I've done utilizing the excellent usability of GeoMoose in favor of utilizing a spatial database. 2. If users are typically accessing data but not writing it, will I realize a performance upgrade *typically*. 3. Is there any functionality I can expect to break and essentially head into an 'uncharted territory' if I did indeed attempt this. Can I basically expect to find in my way a high level of techincal issues (I'm very technical, but I am trying to find an efficient approach) Also, here is a description of what I had attempted to do... We have an OS X server which contains 2 dual core Xeons processors and 4GB of ram. We are mainly a Windows house and had aquired the hardware in an anquisition and would like to utilize this hardware as best as possible. This is one of our more ambitious products we one day would like to offer our clients (we currently offer an Access product that is quite dated.). Originally, I had suggested perhaps getting Parellels VM software and just bringing a copy of Windows Server 2003 to the table, but my performance almost seems better on my test machine... I'm not sure if that will apply to concurrent users which is certainly an aspect of the issue at hand, but the VM software only detects 1 core... not good. We are not looking at VMWare or anything where the license will exceed or approach the cost of a new server otherwise we will do so. If I host PostgreSQL or MySQL on the server and away from the server that would host GeoMoose (a new server) I would hopefully like to utilize the Mac in this way seeing as how I can not get the performance I would like out of virtualized hosting. Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, it is a very laborious task and I am foreseeing I will be the one having to maintain this server and while I myself and relatively comfortable maintaining OS X and its Unix skeleton, I want to minimize the work I need to do to this server... I will post this on GeoMoose mailing list as well as Mapserver as I realize there is some overlap in exactly what area's this does cover. While the context of this topic does cover my use of GeoMoose with Mapserver, I'm thinking there are users on both of these lists that have experience with the advantages vs disadvantages of Spatial DB Data vs SHP on disk. At any rate, any input is appreciated. Thanks, Nelson _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhungc at gmail.com Tue May 13 07:18:58 2008 From: mhungc at gmail.com (Marco Hung) Date: Tue, 13 May 2008 09:48:58 -0430 Subject: [MAPSERVER-USERS] Mapserver 3D images In-Reply-To: <17207355.post@talk.nabble.com> References: <17179939.post@talk.nabble.com> <17207355.post@talk.nabble.com> Message-ID: Thank Ritesh, But I will re-formulate my question. I have seen in the PNA that having shapes in 2D and you can view the display in 3D i think that this called isotropic or 45 Degree projection. I believe that it is possible to do this in mapserver...... How can we do that? Someone knows? Thanks!!!. On Tue, May 13, 2008 at 8:07 AM, Ritesh Ambastha wrote: > > Do read about Data Elevation Models. > Regards, > Ritesh > > > mhungc wrote: > > > > Hi, > > > > I want to kown how can i develop in mapserver php mapscript > > functionalities as view the maps in 3D. How can i do that? Images in 3D > > when i have shapes in 2D?.... > > > > Can i convert shapes in 2D to 3D? > > > > I dont kown how can i visualize the images in 3D... > > > > Help please. > > > > Thanks. > > > > -- > View this message in context: > http://www.nabble.com/Mapserver-3D-images-tp17179939p17207355.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Tue May 13 07:21:37 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 13 May 2008 10:21:37 -0400 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD76C@deqex01.deq.local> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD38@s-sp22.pca.state.mn.us> <6C097DA58429B743A67070F98BE73A37025DD76C@deqex01.deq.local> Message-ID: <69935d110805130721g6bb3efadt6f1f3f55438531b@mail.gmail.com> This is all very insightful. I appreciate all of the feedback thus far. Very clear and concise. We will need to prioritize internally what we have working now vs. what may be asked of us in the future and whether the end justify the means. Personally, I want this to be as useful overall to the end users now while making the road ahead as easy to pave as possible. We'll see how that goes. Thanks everyone! On Tue, May 13, 2008 at 10:07 AM, Burgholzer,Robert wrote: > > > Nelson, > David explains my thoughts about the shapefile/performance issue better than > I did (in a post that didn't make it to the listserv). In a word, the > shapefile and mapserver are optimized to have robust access, so they do the > job as well as, or in many cases, better than PostGIS in terms of read-only > access. > > As for the concept of having one machine serve the shapes, and the other > generate the maps, this is a matter of preference. With a Gigabit > backplane, I don't see the performance being that much of a problem, but > once again, it depends upon the size of the datasets that you will be > delivering. Also, it depends on what else the server may be doing, if the > web server has many tasks, and you are doing some fairly intensive > geoprocessing stuff, it might be a benefit to have the spatial DB on another > box. > > Of course, all of this comes down to testing on your own setup to find the > most optimal configuration. And I have to say that you can't go wrong with > providing yourself with the *capability* to provide spatial DB power, and > load balancing. That just seems like a smart set of options to keep in your > toolbox. > > r.b. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Fawcett, David > Sent: Tue 5/13/2008 9:55 AM > To: Nelson Soto; mapserver-users at lists.osgeo.org > Cc: > Subject: RE: [mapserver-users] PostGIS or Mysql and GeoMoose. > > I would be surprised if you actually get a performance gain from using a > spatial db over a well optimized (tiled, indexed, overviews) set of > shape files. Using the spatial db definitely gives you some more > flexibility, but I would doubt that it would out perform the shapefiles. > > > I am not completely sure what you are asking in question #1, but a > MapServer WMS service based on a PostGIS layer shouldn't look any > different to GeoMoose than one based on shapefiles. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson > Soto > Sent: Tuesday, May 13, 2008 7:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. > > > For performance reasons, I may need to convert SHP's into a spatial > database. I loosely understand the concept of how this work but my > questions to anyone reading are: > > 1. Has anyone looked into specifically doing the above with their > working demo of GeoMoose using SHP files previously? I would hate to > scrap the work I've done utilizing the excellent usability of GeoMoose > in favor of utilizing a spatial database. > > 2. If users are typically accessing data but not writing it, will I > realize a performance upgrade *typically*. > > 3. Is there any functionality I can expect to break and essentially head > into an 'uncharted territory' if I did indeed attempt this. Can I > basically expect to find in my way a high level of techincal issues (I'm > very technical, but I am trying to find an efficient approach) > > Also, here is a description of what I had attempted to do... > > We have an OS X server which contains 2 dual core Xeons processors and > 4GB of ram. We are mainly a Windows house and had aquired the hardware > in an anquisition and would like to utilize this hardware as best as > possible. This is one of our more ambitious products we one day would > like to offer our clients (we currently offer an Access product that is > quite dated.). > > Originally, I had suggested perhaps getting Parellels VM software and > just bringing a copy of Windows Server 2003 to the table, but my > performance almost seems better on my test machine... I'm not sure if > that will apply to concurrent users which is certainly an aspect of the > issue at hand, but the VM software only detects 1 core... not good. We > are not looking at VMWare or anything where the license will exceed or > approach the cost of a new server otherwise we will do so. > > If I host PostgreSQL or MySQL on the server and away from the server > that would host GeoMoose (a new server) I would hopefully like to > utilize the Mac in this way seeing as how I can not get the performance > I would like out of virtualized hosting. > > Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, > it is a very laborious task and I am foreseeing I will be the one having > to maintain this server and while I myself and relatively comfortable > maintaining OS X and its Unix skeleton, I want to minimize the work I > need to do to this server... > > I will post this on GeoMoose mailing list as well as Mapserver as I > realize there is some overlap in exactly what area's this does cover. > While the context of this topic does cover my use of GeoMoose with > Mapserver, I'm thinking there are users on both of these lists that have > experience with the advantages vs disadvantages of Spatial DB Data vs > SHP on disk. > > At any rate, any input is appreciated. > > Thanks, > Nelson > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Fawcett, David > Sent: Tue 5/13/2008 9:55 AM > To: Nelson Soto; mapserver-users at lists.osgeo.org > Cc: > Subject: RE: [mapserver-users] PostGIS or Mysql and GeoMoose. > > I would be surprised if you actually get a performance gain from using a > spatial db over a well optimized (tiled, indexed, overviews) set of > shape files. Using the spatial db definitely gives you some more > flexibility, but I would doubt that it would out perform the shapefiles. > > > I am not completely sure what you are asking in question #1, but a > MapServer WMS service based on a PostGIS layer shouldn't look any > different to GeoMoose than one based on shapefiles. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson > Soto > Sent: Tuesday, May 13, 2008 7:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. > > > For performance reasons, I may need to convert SHP's into a spatial > database. I loosely understand the concept of how this work but my > questions to anyone reading are: > > 1. Has anyone looked into specifically doing the above with their > working demo of GeoMoose using SHP files previously? I would hate to > scrap the work I've done utilizing the excellent usability of GeoMoose > in favor of utilizing a spatial database. > > 2. If users are typically accessing data but not writing it, will I > realize a performance upgrade *typically*. > > 3. Is there any functionality I can expect to break and essentially head > into an 'uncharted territory' if I did indeed attempt this. Can I > basically expect to find in my way a high level of techincal issues (I'm > very technical, but I am trying to find an efficient approach) > > Also, here is a description of what I had attempted to do... > > We have an OS X server which contains 2 dual core Xeons processors and > 4GB of ram. We are mainly a Windows house and had aquired the hardware > in an anquisition and would like to utilize this hardware as best as > possible. This is one of our more ambitious products we one day would > like to offer our clients (we currently offer an Access product that is > quite dated.). > > Originally, I had suggested perhaps getting Parellels VM software and > just bringing a copy of Windows Server 2003 to the table, but my > performance almost seems better on my test machine... I'm not sure if > that will apply to concurrent users which is certainly an aspect of the > issue at hand, but the VM software only detects 1 core... not good. We > are not looking at VMWare or anything where the license will exceed or > approach the cost of a new server otherwise we will do so. > > If I host PostgreSQL or MySQL on the server and away from the server > that would host GeoMoose (a new server) I would hopefully like to > utilize the Mac in this way seeing as how I can not get the performance > I would like out of virtualized hosting. > > Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, > it is a very laborious task and I am foreseeing I will be the one having > to maintain this server and while I myself and relatively comfortable > maintaining OS X and its Unix skeleton, I want to minimize the work I > need to do to this server... > > I will post this on GeoMoose mailing list as well as Mapserver as I > realize there is some overlap in exactly what area's this does cover. > While the context of this topic does cover my use of GeoMoose with > Mapserver, I'm thinking there are users on both of these lists that have > experience with the advantages vs disadvantages of Spatial DB Data vs > SHP on disk. > > At any rate, any input is appreciated. > > Thanks, > Nelson > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From warmerdam at pobox.com Tue May 13 08:07:13 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 13 May 2008 11:07:13 -0400 Subject: [mapserver-users] Does MS4W multi-thread? In-Reply-To: <737665.65892.qm@web52309.mail.re2.yahoo.com> References: <737665.65892.qm@web52309.mail.re2.yahoo.com> Message-ID: <4829AEA1.5060507@pobox.com> J.J. Schlafley wrote: > Hi all, > > Will the mapserver CGI program multi-thread on an MS4W installation. I > noticed many "mapserver.exe" image names in the task manager on my > server. Assuming each image name corresponds with each request or > thread, will the OS delegate the processes to other CPU cores if > available? I currently only have a single core Xeon, but am wondering > if a multi-core CPU could be beneficial with Apache and Mapserver (MS4W). J.J. Someone else already responded, but I just wanted to say this really simply and clearly for everyone. MapServer is a cgi, so Apache (or IIS) is creating a mapserver process for each request that comes in. This is good for multi-processor/multi-core machines because when several mapserver requests are running at once, they will normally be distributed across the available cores by the operating system. So, by architectural design MapServer cgi takes advantage of multi-core systems well for non-trivial load situations. What MapServer doesn't do is try to distribute a single request over multiple cores. To do so requires a great deal more complication in the core of mapserver, and isn't - to my mind - justified. 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 | President OSGeo, http://osgeo.org From jjschlafley at yahoo.com Tue May 13 08:16:53 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Tue, 13 May 2008 08:16:53 -0700 (PDT) Subject: [mapserver-users] Does MS4W multi-thread? Message-ID: <608477.37362.qm@web52311.mail.re2.yahoo.com> Very good. ----- Original Message ---- From: Frank Warmerdam To: J.J. Schlafley Cc: mapserver-users at lists.osgeo.org Sent: Tuesday, May 13, 2008 11:07:13 AM Subject: Re: [mapserver-users] Does MS4W multi-thread? J.J. Schlafley wrote: > Hi all, >? > Will the mapserver CGI program multi-thread on an MS4W installation.? I > noticed many "mapserver.exe" image names in the task manager on my > server.? Assuming each image name corresponds with each request or > thread, will the OS delegate the processes to other CPU cores if > available?? I currently only have a single core Xeon, but am wondering > if a multi-core CPU could be beneficial with Apache and Mapserver (MS4W). J.J. Someone else already responded, but I just wanted to say this really simply and clearly for everyone. MapServer is a cgi, so Apache (or IIS) is creating a mapserver process for each request that comes in.? This is good for multi-processor/multi-core machines because when several mapserver requests are running at once, they will normally be distributed across the available cores by the operating system. So, by architectural design MapServer cgi takes advantage of multi-core systems well for non-trivial load situations. What MapServer doesn't do is try to distribute a single request over multiple cores.? To do so requires a great deal more complication in the core of mapserver, and isn't - to my mind - justified. 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? ? | President OSGeo, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue May 13 08:20:33 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 13 May 2008 09:20:33 -0600 Subject: [MAPSERVER-USERS] Mapserver 3D images In-Reply-To: References: <17179939.post@talk.nabble.com> <17207355.post@talk.nabble.com> Message-ID: <4829B1C1.6040309@geoanalytic.com> Marco Hung wrote: > Thank Ritesh, > > But I will re-formulate my question. > > I have seen in the PNA that having shapes in 2D and you can view the > display in 3D i think that this called isotropic or 45 Degree > projection. I believe that it is possible to do this in mapserver...... > Marco, There was some discussion along this line (if you are talking about a perspective view) in the Mapserver-DEV list back around Feb 27/March 10 (http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006853.html) Brent Fraser > How can we do that? > > Someone knows? > > Thanks!!!. > > On Tue, May 13, 2008 at 8:07 AM, Ritesh Ambastha > wrote: > > > Do read about Data Elevation Models. > Regards, > Ritesh > > > mhungc wrote: > > > > Hi, > > > > I want to kown how can i develop in mapserver php mapscript > > functionalities as view the maps in 3D. How can i do that? Images > in 3D > > when i have shapes in 2D?.... > > > > Can i convert shapes in 2D to 3D? > > > > I dont kown how can i visualize the images in 3D... > > > > Help please. > > > > Thanks. > > > From bpederse at gmail.com Tue May 13 08:32:37 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Tue, 13 May 2008 08:32:37 -0700 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. In-Reply-To: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> References: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> Message-ID: On Tue, May 13, 2008 at 5:55 AM, Nelson Soto wrote: > For performance reasons, I may need to convert SHP's into a spatial > database. I loosely understand the concept of how this work but my > questions to anyone reading are: > > 1. Has anyone looked into specifically doing the above with their > working demo of GeoMoose using SHP files previously? I would hate to > scrap the work I've done utilizing the excellent usability of GeoMoose > in favor of utilizing a spatial database. > > 2. If users are typically accessing data but not writing it, will I > realize a performance upgrade *typically*. > > 3. Is there any functionality I can expect to break and essentially > head into an 'uncharted territory' if I did indeed attempt this. Can I > basically expect to find in my way a high level of techincal issues > (I'm very technical, but I am trying to find an efficient approach) > > Also, here is a description of what I had attempted to do... > > We have an OS X server which contains 2 dual core Xeons processors and > 4GB of ram. We are mainly a Windows house and had aquired the hardware > in an anquisition and would like to utilize this hardware as best as > possible. This is one of our more ambitious products we one day would > like to offer our clients (we currently offer an Access product that > is quite dated.). > > Originally, I had suggested perhaps getting Parellels VM software and > just bringing a copy of Windows Server 2003 to the table, but my > performance almost seems better on my test machine... I'm not sure if > that will apply to concurrent users which is certainly an aspect of > the issue at hand, but the VM software only detects 1 core... not > good. We are not looking at VMWare or anything where the license will > exceed or approach the cost of a new server otherwise we will do so. > > If I host PostgreSQL or MySQL on the server and away from the server > that would host GeoMoose (a new server) I would hopefully like to > utilize the Mac in this way seeing as how I can not get the > performance I would like out of virtualized hosting. > > Yes, I realize I can just set up Mapserver for OS X but, in my > oppinion, it is a very laborious task and I am foreseeing I will be > the one having to maintain this server and while I myself and > relatively comfortable maintaining OS X and its Unix skeleton, I want > to minimize the work I need to do to this server... > > I will post this on GeoMoose mailing list as well as Mapserver as I > realize there is some overlap in exactly what area's this does cover. > While the context of this topic does cover my use of GeoMoose with > Mapserver, I'm thinking there are users on both of these lists that > have experience with the advantages vs disadvantages of Spatial DB > Data vs SHP on disk. > > At any rate, any input is appreciated. > > Thanks, > Nelson > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > hi, you havent explained what the performance issues are exactly, but if you're user shapefiles with a large extent, the simplest thing to potentially improve performace is shptree http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree -brent From Jim.Klassen at ci.stpaul.mn.us Tue May 13 08:38:55 2008 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Tue, 13 May 2008 10:38:55 -0500 Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBD38@s-sp22.pca.state.mn.us> References: <69935d110805130555j77ec772cr46aa14c5e4308e7e@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5021FBD38@s-sp22.pca.state.mn.us> Message-ID: <48296FBF.1291.004F.0@ci.stpaul.mn.us> I'll try to answer question 1 as the others have been answered already. GeoMOOSE mostly is using mapserver in CGI mode so any data source supported by Mapserver should work fine. I've used SHP, WFS, OracleSpatial, PostGIS and Various OGR data sources successfully. There are also some PHP/Mapscript services that ship with GeoMOOSE which also should work fine with any Mapserver supported data source, but I haven't personally tested them. In my experience tileindexed shapes with all associated .qix files is faster than using a spatial database on the same hardware. (Although PostGIS comes very close in speed and adds a lot of flexibility in terms of types of queries that can be executed and how easy it is to update the data.) Jim >>> On 5/13/2008 at 8:55 AM, "Fawcett, David" wrote: I would be surprised if you actually get a performance gain from using a spatial db over a well optimized (tiled, indexed, overviews) set of shape files. Using the spatial db definitely gives you some more flexibility, but I would doubt that it would out perform the shapefiles. I am not completely sure what you are asking in question #1, but a MapServer WMS service based on a PostGIS layer shouldn't look any different to GeoMoose than one based on shapefiles. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Tuesday, May 13, 2008 7:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PostGIS or Mysql and GeoMoose. For performance reasons, I may need to convert SHP's into a spatial database. I loosely understand the concept of how this work but my questions to anyone reading are: 1. Has anyone looked into specifically doing the above with their working demo of GeoMoose using SHP files previously? I would hate to scrap the work I've done utilizing the excellent usability of GeoMoose in favor of utilizing a spatial database. 2. If users are typically accessing data but not writing it, will I realize a performance upgrade *typically*. 3. Is there any functionality I can expect to break and essentially head into an 'uncharted territory' if I did indeed attempt this. Can I basically expect to find in my way a high level of techincal issues (I'm very technical, but I am trying to find an efficient approach) Also, here is a description of what I had attempted to do... We have an OS X server which contains 2 dual core Xeons processors and 4GB of ram. We are mainly a Windows house and had aquired the hardware in an anquisition and would like to utilize this hardware as best as possible. This is one of our more ambitious products we one day would like to offer our clients (we currently offer an Access product that is quite dated.). Originally, I had suggested perhaps getting Parellels VM software and just bringing a copy of Windows Server 2003 to the table, but my performance almost seems better on my test machine... I'm not sure if that will apply to concurrent users which is certainly an aspect of the issue at hand, but the VM software only detects 1 core... not good. We are not looking at VMWare or anything where the license will exceed or approach the cost of a new server otherwise we will do so. If I host PostgreSQL or MySQL on the server and away from the server that would host GeoMoose (a new server) I would hopefully like to utilize the Mac in this way seeing as how I can not get the performance I would like out of virtualized hosting. Yes, I realize I can just set up Mapserver for OS X but, in my oppinion, it is a very laborious task and I am foreseeing I will be the one having to maintain this server and while I myself and relatively comfortable maintaining OS X and its Unix skeleton, I want to minimize the work I need to do to this server... I will post this on GeoMoose mailing list as well as Mapserver as I realize there is some overlap in exactly what area's this does cover. While the context of this topic does cover my use of GeoMoose with Mapserver, I'm thinking there are users on both of these lists that have experience with the advantages vs disadvantages of Spatial DB Data vs SHP on disk. At any rate, any input is appreciated. Thanks, Nelson _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Tue May 13 09:47:41 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 13 May 2008 09:47:41 -0700 Subject: [mapserver-users] FOSS4G 2008 Call for Papers: Deadline Extension to May 23, 2008 Message-ID: <30fe546d0805130947s697c28bax582c8995aec4db48@mail.gmail.com> >From the trenches... P -- We are pleased to announce an extension in the abstract submission deadline for the 2008 Free and Open Source Software for Geospatial (FOSS4G) conference, incorporating GISSA 2008, being held from 29 September to 3 October, in beautiful Cape Town, South Africa. This is due to the fact that there was a glitch with the online submission process which appeared to be already closed for submissions yesterday, the 12 of May on the last day of submissions. Thank you to those of you who informed us, so that we could rectify the problem. I apologize for the inconvenience caused. As a result we have extended the date for the submissions of abstracts to Friday the 23rd of May 2008. Please endeavor to submit your abstract as soon as possible. We believe that we have ironed out the glitch in the system. In summary the following still applies: Academic Track ~~~~~~~~~~~~~~ This year we are thrilled to host the first academic track for peer reviewed papers at FOSS4G. The date for submission of abstracts to the academic track is now 23 May 2008. Abstracts have to be 500-600 words in length, please ensure that these are long enough as abstracts which are too short will automatically be disregarded. These will be reviewed by the Program Committee of the academic track of FOSS4G 2008. You will be notified of acceptance or otherwise on or before 17 June. If your abstract is accepted for the academic track, you have to submit a full paper by 18 August 2008 for inclusion in the proceedings. The Programme Committee will compile a short list of high quality papers addressing substantial research questions. Authors of these papers will be invited to submit a revised paper in response to reviewer comments and suggestions for inclusion in the South African Computer Journal. Presentation Track ~~~~~~~~~~~~~~~~~~ The date of submission for abstracts of 500-600 words to the presentation track is now the 23 May 2008. Please ensure that your abstract is the correct length as abstracts which are too short will automatically be disregarded. The abstracts submitted to this track will be chosen by an open community process. You will be notified of acceptance or otherwise on or before 17 June. If your abstract is accepted for the presentation track then you will be required to submit your presentation by 18 August 2008 for inclusion in the CD proceedings. Poster Track ~~~~~~~~~~~~ Due to the demand for posters we have included a poster track to the conference. Should you wish to display a poster at the conference, please submit a short abstract of no more than 150 - 300 words detailing the topic and content of your proposed poster. Please also indicate the poster size in the abstract (poster sizes are limited to an A1 or AO size). The deadline for the poster abstract submission is Monday the 30 of June 2008. Posters will be selected as space is limited. You will be notified of acceptance or otherwise on or before the 21 of July 2008. Important Dates ~~~~~~~~~~~~~~~ Submission of abstracts 23 May 2008 Notification of acceptance 17 June 2008 Submission of Posters 30 June 2008 Notification of acceptance of Poster 21 July 2008 FOSS4G2008 Conference 29 September ? 3 October 2008 Submission Process ~~~~~~~~~~~~~~~~~~ In order to submit an abstract please visit the www.foss4g2008.org website, and select Proposal Submission. This will take you to a login page, where you can enter your existing account information, or if you are new to the site, register for a user account before you can proceed. You will then be taken through a step by step process to submit your abstract. Please make sure that you select the correct track option. NOTE: To submit an abstract you will need to be logged in as an Author: From the User Home page, under Roles, select Authors. If you do not have a role of Author available then go to the "my profile" link and check the Author checkbox. You will then have an Author role under the User Home page. General Information ~~~~~~~~~~~~~~~~~~~ All FOSS4G 2008 papers/presentations take the form of 25 minute talks, with 5 minute question and answer sessions at the end. Anyone can submit a presentation or paper and take part in the conference as a presenter. Posters will be on display for the duration of the conference. Designated poster sessions are scheduled to take place on 30 September and 1 October 2008 between 12:00 and 13:00 Author guidelines for the formatting of the paper or presentation are available online on the conference website. Please note that your paper or presentation will only be included in the proceedings once your registration to the conference has been received in full. For more information, see the FOSS4G 2008 site: http://www.foss4g2008.org Should you have any further queries that are not addressed on the website then please contact the following: Technical Programme & submissions: Inge Netterberg [inge.netterberg at gmail.com] Academic Track: Serena Coetzee [scoetzee at cs.up.ac.za] General Track: Inge Netterberg [inge.netterberg at gmail.com] Poster Track: Mandy Vickers [mandyv at mintek.co.za] Kind regards, Inge Netterberg Technical Programme coordinator FOSS4G 2008 From nellyfromma at gmail.com Tue May 13 10:37:54 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 13 May 2008 13:37:54 -0400 Subject: [mapserver-users] JP2 Ortho Aerials Message-ID: <69935d110805131037r320bdb6ap5c579419f6a439b@mail.gmail.com> I have a set of 6 Ortho Tiles in JP2 format that I downlaods from MassGIS. I have created a tile index from them and have created a mapfile that uses this index to tile the files for display accordingly. They do display properly. I do beleive they have multiple resolution images within each tile, but when zoomed out to the extents of the town, it can be an intensive task to load up images for all six tiles. I think the easiest way to remedy this is to use the mapfile to shut off the Ortho Aerials at a particular scale and swap in the lower res jpeg that places over the same extents. My question is based on personal experience, what is the easiest way to go about this? Something as simple as 'print screen'? Are there any good freeware jp2 viewers that I can use to save a particular view of 6 tiles down to perhaps a tiff file? The ortho's need not have transparency themselves for this particular instance. From jjschlafley at yahoo.com Tue May 13 11:47:25 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Tue, 13 May 2008 11:47:25 -0700 (PDT) Subject: [mapserver-users] JP2 Ortho Aerials Message-ID: <225694.2917.qm@web52311.mail.re2.yahoo.com> Create a new image by resampling the image with desktop GIS software....ArcGIS, MapInfo etc.? This will allow you to create a new image file with desired resolution, effectively lowering file size. ----- Original Message ---- From: Nelson Soto To: mapserver-users at lists.osgeo.org Sent: Tuesday, May 13, 2008 1:37:54 PM Subject: [mapserver-users] JP2 Ortho Aerials I have a set of 6 Ortho Tiles in JP2 format that I downlaods from MassGIS. I have created a tile index from them and have created a mapfile that uses this index to tile the files for display accordingly. They do display properly. I do beleive they have multiple resolution images within each tile, but when zoomed out to the extents of the town, it can be an intensive task to load up images for all six tiles. I think the easiest way to remedy this is to use the mapfile to shut off the Ortho Aerials at a particular scale and swap in the lower res jpeg that places over the same extents. My question is based on personal experience, what is the easiest way to go about this? Something as simple as 'print screen'? Are there any good freeware jp2 viewers that I can use to save a particular view of 6 tiles down to perhaps a tiff file? The ortho's need not have transparency themselves for this particular instance. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 13 12:04:44 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 May 2008 22:04:44 +0300 Subject: [mapserver-users] JP2 Ortho Aerials References: <225694.2917.qm@web52311.mail.re2.yahoo.com> Message-ID: Hi, For my mind the best software for this task is called MapServer. Just define GeoTIFF output format and ask for an image with the height and width you want. Then it will be easy to save the image and use it as a quick look layer. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: J.J. Schlafley L?hetetty: ti 13.5.2008 21:47 Vastaanottaja: Nelson Soto; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] JP2 Ortho Aerials Create a new image by resampling the image with desktop GIS software....ArcGIS, MapInfo etc. This will allow you to create a new image file with desired resolution, effectively lowering file size. ----- Original Message ---- From: Nelson Soto To: mapserver-users at lists.osgeo.org Sent: Tuesday, May 13, 2008 1:37:54 PM Subject: [mapserver-users] JP2 Ortho Aerials I have a set of 6 Ortho Tiles in JP2 format that I downlaods from MassGIS. I have created a tile index from them and have created a mapfile that uses this index to tile the files for display accordingly. They do display properly. I do beleive they have multiple resolution images within each tile, but when zoomed out to the extents of the town, it can be an intensive task to load up images for all six tiles. I think the easiest way to remedy this is to use the mapfile to shut off the Ortho Aerials at a particular scale and swap in the lower res jpeg that places over the same extents. My question is based on personal experience, what is the easiest way to go about this? Something as simple as 'print screen'? Are there any good freeware jp2 viewers that I can use to save a particular view of 6 tiles down to perhaps a tiff file? The ortho's need not have transparency themselves for this particular instance. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From w.blanken at geon.nl Tue May 13 13:32:06 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Tue, 13 May 2008 22:32:06 +0200 Subject: [mapserver-users] mapserver image creation In-Reply-To: Message-ID: Hello list, I am experimenting with the agg functionality in mapserver 5. For the project I am working on I need the truetype symbol support which has been scheduled in the 5.2 release. I've downloaded both the nightly build and the CVS but after compiling those versions I run into problems which have nothing to do with my former agg problem. In the current version my legend is written to the temp directory but my map does not. A very strange problem. When I use mode=map the map shows but when I use a template the map is not written to the tmp directory. The legend is written there so it has nothing to do with access problems to the temp dir. When I switch back to mapserver 5.0.1 the map is written ok. Has anybody got a clue? Best regards, Wim Blanken The Netherlands From paulp575 at dog-walker.us Tue May 13 17:38:15 2008 From: paulp575 at dog-walker.us (Paul Yelk) Date: Tue, 13 May 2008 17:38:15 -0700 Subject: [mapserver-users] MapServer vs MS4W FIles To Upload Message-ID: <482A3477.1090104@dog-walker.us> An HTML attachment was scrubbed... URL: From Kyle.Wilcox at noaa.gov Tue May 13 18:57:07 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Tue, 13 May 2008 21:57:07 -0400 Subject: [mapserver-users] MapServer vs MS4W FIles To Upload In-Reply-To: <482A3477.1090104@dog-walker.us> References: <482A3477.1090104@dog-walker.us> Message-ID: <482A46F3.2050508@noaa.gov> MS4W is an acronym for 'MapServer for Windows', not a solution for a Unix based web host. You can try the FGS installer (http://www.maptools.org/fgs/), but being successful relies on how your hosting company has the server set up. Try it and see what happens. It never hurts to call up your hosting company and talk about your requirements. Hosts are a dime a dozen; they often will make a small change for you to keep you happy and keep your business. Anyone have successful experience with certain hosting companies? Hostgis provides an excellent hosting service (http://www.hostgis.com/). You can also install Mapserver and its dependencies from source on a commercial web hosting server. Judging from your post I would thoroughly try out the first option. Paul Yelk wrote: > I am currently playing around with MS4W on my home computer (installed > MS4W latest version plus the Itasca demo). > I need to upload that demo to a web host so I can point others to it so > they can see how it works. > The host is running *Apache version1.3.39 (Unix).* > My specific question is what do I upload to that server? > And how do I set it up? > > Since this if my first adventure into Apache, etc. I am a bit confused > on the differences between MS4W as installed and what to upload on a > Apache/Unix machine. > > Thanks, > > Paul > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rhow at i3.com Tue May 13 20:39:21 2008 From: rhow at i3.com (Randy How) Date: Tue, 13 May 2008 21:39:21 -0600 Subject: [mapserver-users] MSDebug interpreted Message-ID: <006801c8b574$18a2dee0$49e89ca0$@com> Question regarding the MSDebug output. Using DEBUG 2 CONFIG "MS_ERRORFILE" "C:/TEMP/ms_debug.log" I've changed to DEBUG 5, with little change to the output, different than what the reference says: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 We have 315 layers in a map file, yes a lot. In the debug 99.9% of the times are logged as 0.000s or 0.015s or 0.016s. Minimal times = We'll say this is 200 * 0.015 = 3.000s The 4 significant in the debug add up to 12.045s. The total time is 37.890s The QUESTION is what is taking the other 22.845 SECONDS ??? And how to find this out? [Wed May 14 03:57:40 2008].593000 msDrawMap(): Layer 24 (MERGE_L14_I3TIF_E2), 4.437s [Wed May 14 03:58:06 2008].218000 msDrawMap(): Layer 144 (20040915_1_061_AEX_Indianapolis), 2.015s [Wed May 14 03:58:09 2008].390000 msDrawMap(): Layer 223 (20060915_1_050_AEX_Indianapolis), 3.031s [Wed May 14 03:58:13 2008].921000 msDrawMap(): Layer 314 (Metadata - BOTUS-Labels), 2.562s [Wed May 14 03:58:13 2008].921000 msDrawMap() total time: 37.890s Randy How i-cubed - www.i3.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon at sibern.com.au Tue May 13 22:04:13 2008 From: simon at sibern.com.au (simon at sibern.com.au) Date: Wed, 14 May 2008 15:04:13 +1000 (EST) Subject: [mapserver-users] Change reference map image in mapscript Message-ID: <33154.143.188.101.65.1210741453.squirrel@calippo.sibern.com.au> Hi, I am using the java swig mapserver api to access layers, create maps, legend images, etc. When printing a map I have decided to let mapserver create the reference map. This works well except that I have no ability to control the width, height or image name at runtime at all. This problem seems to occur in 5.0 but not in 4.10. 4.10 has all the getters and setters for changing the image and for setting the width and height where as 5 appears to have no setters at all. I have tried using result = referenceMap.set(:variable","value"); approach but that doesn't work either. Any help would be appreciated. Thank you Simon Haddon From boommonge at gmail.com Tue May 13 23:02:11 2008 From: boommonge at gmail.com (LMonge) Date: Tue, 13 May 2008 23:02:11 -0700 Subject: [mapserver-users] I Would like to know about mapfile (.map) Message-ID: <390b64100805132302g5a86fbcs3947b9939d63a719@mail.gmail.com> Hello Everybody I have a question... I think is very basic, but I would like to know. who developed the mapfile (. map)? UMN Mapserver? OGC? ESRI?. Because I would like to propose improvements in the mapfile Greetings Luis Monge -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue May 13 23:07:48 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 14 May 2008 08:07:48 +0200 Subject: [mapserver-users] I Would like to know about mapfile (.map) In-Reply-To: <390b64100805132302g5a86fbcs3947b9939d63a719@mail.gmail.com> References: <390b64100805132302g5a86fbcs3947b9939d63a719@mail.gmail.com> Message-ID: <783c8edbef6d38454e3d3029aad8f170@pop02.backbone.tiscomhosting.nl> UMN Mapserver. Best regards, Bart On Tue, 13 May 2008 23:02:11 -0700, LMonge wrote: > Hello Everybody > > > I have a question... I think is very basic, but I would like to know. > > who developed the mapfile (. map)? UMN Mapserver? OGC? ESRI?. Because I > would like to propose improvements in the mapfile > > > Greetings > > > Luis Monge From yatendra.jaiswal at gmail.com Wed May 14 01:24:48 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Wed, 14 May 2008 01:24:48 -0700 (PDT) Subject: [MAPSERVER-USERS] How To draw Reference map(Overview Window) using asp.net? Message-ID: <17226035.post@talk.nabble.com> Hi friends, Can any one tell me how to draw reference map(overview window) using Asp.net Thanks Regards Yatendra Jaiswal -- View this message in context: http://www.nabble.com/How-To-draw-Reference-map%28Overview-Window%29-using-asp.net--tp17226035p17226035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From johan.hallgren at logica.com Wed May 14 05:42:24 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Wed, 14 May 2008 14:42:24 +0200 Subject: [mapserver-users] Route Engine Message-ID: Hello I'm looking for an open source route engine that can be used for calculate routes and solving traveling salesman problems. Any suggestions for that? /Johan ___________________________________ Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed May 14 05:55:18 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 14 May 2008 14:55:18 +0200 Subject: [mapserver-users] Route Engine In-Reply-To: References: Message-ID: Pgrouting: http://pgrouting.postlbs.org/ Best regards, Bart On Wed, 14 May 2008 14:42:24 +0200, "Hallgren, Johan" wrote: > Hello > > I'm looking for an open source route engine that can be used for calculate > routes and solving traveling salesman problems. > > Any suggestions for that? > > /Johan > ___________________________________ > Johan Hallgren > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se From rwburgholzer at deq.virginia.gov Wed May 14 07:10:25 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed, 14 May 2008 10:10:25 -0400 Subject: [mapserver-users] Using PHPMapscript from php script called inconsole Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D53@deqex01.deq.local> Just an update/repost of a problem that I have with php_mapscript from a command line (DOS prompt in this case). I have not determined the nature of the problem, which is quite vexing, but I did at least to make a workaround. Since the same exact script runs fine via the http process, I used wget to call my script. Anyhow, I thought I would repost in case anyone has experienced this and/or found the cause. Original Message with some updates: I am having a strange occurrence. I have a php script that uses PHP mapscript to manipulate some maps. I have no problem with it if I call the script from my web browser, however, when I call it via command line PHP, i.e., "php scriptname.php", it fails when I try to do anything with the map object. I have tried loading the php_mapscript.dll from the dl() command, just to be certain (although it was most definitely loaded as indicated by the phpinfo() command). I have done a phpinfo() from my script and verified that mapscript is in fact loaded when php is invoked from the command line. It looks as thought the command that I am using to instantiate the map object instance is failing. To create the object, I use: $this->map = ms_newMapObj($map_path.$map_file); To verify this creation I use: print_r((array)$this->map ); When I call this script from the command line it yields: Array( [0] => ) But when I call it from the browser, it gives a valid object: Array ( [_handle_] => Resource id #41 [numlayers] => 8 [name] => PrecipMap [status] => 1 [debug] => 1 [width] => 720 [height] => 500 [maxsize] => 2048 [transparent] => -1111 [interlace] => -1111 [imagetype] => AGG [imagequality] => -1111 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #42 [minx] => -79.322914123535 ... (etc. etc.) The only difference that I can think of is that the php-cgi.exe is getting used by the browser, while php.exe is used at the command line. I tried executing the script with the cgi version, but to no avail, same behaviour, script dies without any word whenever I try to call a mapObj method. System: Windows XP PHP 5.2.5 Mapscript - PHP MapScript Version => ($Revision: 7251 $ $Date: 2008-01-08 12:04:53 -0500 (Tue, 08 Jan 2008) $) Any guidance would be appreciated, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT591917.txt URL: From kloffler at lsu.edu Wed May 14 09:51:09 2008 From: kloffler at lsu.edu (Katja Loffler) Date: Wed, 14 May 2008 11:51:09 -0500 Subject: [mapserver-users] Mapserver configuration/installation problem Message-ID: <482B187D.3010005@lsu.edu> Hello, I am Katja and I am new to mapserver and somehow fighting with the installation. I try to install it under Linux. All required packages are installed, I run ./configure --with-pdf --with-gdal --with-geos --with-png --with-jpeg --with-gif --with-wbmp --with-swf --with-svg --with-postgis=/usr/local/pgsql/bin/pg_config --with-ogr --with-shapefile --with-wfsclient --with-wcs --with-sos --with-proj=/usr/local/proj-4.6.0 --with-threads --with-httpd=/usr/sbin/httpd --with-geos=/usr/local/bin/geos-config --with-wms After that I get the output: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: WFS Server: WFS Client: WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no I do "make" and copy mapserv to /var/www/cgi-bin/ ... Now my problem: /var/www/cgi-bin/mapserv -v gives the following output: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE just as I had not configured mapserver with the options I used. mapserver-config lookes fine - I can see the options I used with configure. What went wrong? Thanks a lot and regards! Katja From rwburgholzer at deq.virginia.gov Wed May 14 10:05:59 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed, 14 May 2008 13:05:59 -0400 Subject: [mapserver-users] Mapserver configuration/installation problem Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D56@deqex01.deq.local> Katja, This is a shot in the dark, but make sure that you do a "make clean" before your "make" just to be sure that some old options didn't get saved by accident. I have sometimes had this difficulty with Make. HTH, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Katja Loffler Sent: Wednesday, May 14, 2008 12:51 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver configuration/installation problem Hello, I am Katja and I am new to mapserver and somehow fighting with the installation. I try to install it under Linux. All required packages are installed, I run ./configure --with-pdf --with-gdal --with-geos --with-png --with-jpeg --with-gif --with-wbmp --with-swf --with-svg --with-postgis=/usr/local/pgsql/bin/pg_config --with-ogr --with-shapefile --with-wfsclient --with-wcs --with-sos --with-proj=/usr/local/proj-4.6.0 --with-threads --with-httpd=/usr/sbin/httpd --with-geos=/usr/local/bin/geos-config --with-wms After that I get the output: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: WFS Server: WFS Client: WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no I do "make" and copy mapserv to /var/www/cgi-bin/ ... Now my problem: /var/www/cgi-bin/mapserv -v gives the following output: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE just as I had not configured mapserver with the options I used. mapserver-config lookes fine - I can see the options I used with configure. What went wrong? Thanks a lot and regards! Katja _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kevin.edmundson at wthtechnology.com Wed May 14 10:36:41 2008 From: kevin.edmundson at wthtechnology.com (Kevin Edmundson) Date: Wed, 14 May 2008 13:36:41 -0400 Subject: [mapserver-users] Label Height Message-ID: <9B9853206D050B49A154B0580DBF5AF906C84D@teutons2.indnpls.in.wthengineering.com> I am setting up my first layer that is purely annotation and I am using a shape text layer that contains the fields for angle, height, orientation. My shape file has units for the height set in feet. Is there a way to make mapserver display those in feet? I only see a designation for pixels in the documentation. I am using Mapserver 5. Thanks for any help. Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Wed May 14 10:53:40 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 14 May 2008 12:53:40 -0500 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories Message-ID: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> I'm trying to get a handle on installing Mapserver on different Linux systems, so I can make recommendations to clients for setting up systems with Mapserver. For standard repositories for different Linux distributions, I see quite a variety of names and versions: Ubuntu: I have 8.04 on my MacBook, so I could check this directly - I find MapServer 5.0.0 and GDAL 1.4.4. A web package list gives me MS 4.10 and GDAL 1.4.1 for 7.10. Debian: the web package listing shows MS 4.10/GDAL 1.5.0 for etch, and MS 5.0.2/GDAL 1.5.1 for the upcoming lenny. Redhat: I couldn't find a web interface to search for packages, but did find a reference to Redhat 5 which has MS 4.10 and GDAL 1.4.2. The Mapserver download page has links to old Mapping Hacks RPMs, and a really old FGS bundle. There's the FWTools, which is supposed to have the latest dev versions of MS and GDAL for almost any 32bit Linux, but I'm not sure I want to put dev versions into a production environment. Any other ideas? - custom repositories with more up to date, or consistent across Linux systems, version? Building from source would only be an option for the more savvy clients. Maybe something similar to FWTools but with stable versions only? I definitely want at least MapServer 5 (though I could live with 4.10 in a pinch). GDAL version is more flexible, though it would be good to have the newer Python bindings in 1.5. Other support dependencies are less of a concern (except maybe PROJ). ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From warmerdam at pobox.com Wed May 14 11:32:55 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 14 May 2008 14:32:55 -0400 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> Message-ID: <482B3057.50408@pobox.com> William Kyngesburye wrote: > The Mapserver download page has links to old Mapping Hacks RPMs, and a > really old FGS bundle. > > There's the FWTools, which is supposed to have the latest dev versions > of MS and GDAL for almost any 32bit Linux, but I'm not sure I want to > put dev versions into a production environment. > > > Any other ideas? - custom repositories with more up to date, or > consistent across Linux systems, version? Building from source would > only be an option for the more savvy clients. Maybe something similar > to FWTools but with stable versions only? > > I definitely want at least MapServer 5 (though I could live with 4.10 in > a pinch). GDAL version is more flexible, though it would be good to > have the newer Python bindings in 1.5. Other support dependencies are > less of a concern (except maybe PROJ). William, For system where you can't get reliable pre-made packages, I'd encourage use of FGS. It is intended for that role. There has been a bunch of work recently to update FGS to more recent versions of the various packages. FGS could definately benefit from more assistance. 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 | President OSGeo, http://osgeo.org From dmorissette at mapgears.com Wed May 14 11:34:07 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 14 May 2008 14:34:07 -0400 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> Message-ID: <482B309F.20600@mapgears.com> William Kyngesburye wrote: > > The Mapserver download page has links to old Mapping Hacks RPMs, and a > really old FGS bundle. > With respect to FGS, there have been no official/public releases in quite a while, but we've continued to use it internally. Recently we've started putting more work towards a new public release and last week a 1.0 release with the latest version of everything has been posted to the download site and mentioned on the FGS list, but unfortunately the website is still lagging behind. Here is the relevant mailing list thread with the download/install info for FGS 1.0: http://lists.maptools.org/pipermail/foss-gis-suite/2008-May/000639.html Daniel -- Daniel Morissette http://www.mapgears.com/ From pianosnake at gmail.com Wed May 14 11:38:52 2008 From: pianosnake at gmail.com (Florin A.) Date: Wed, 14 May 2008 12:38:52 -0600 Subject: [mapserver-users] Customized layer for Mapserver/Kamap In-Reply-To: <9c2e09570805130432g42744abwe20c7781aec67124@mail.gmail.com> References: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> <1d674ec80805121622l14cb683fn8c700729c15d11ba@mail.gmail.com> <9c2e09570805130432g42744abwe20c7781aec67124@mail.gmail.com> Message-ID: <1d674ec80805141138m15a2235ay674979ecd1e72f74@mail.gmail.com> Hi, In your mapfile you define the layers and the colors. See example below. If you have an SRID (projection) for the layer use it. You can see what it is by selecting this sql in pgadmin: "select srid(the_geom) from cities) . Use the number you get here in the mapserver layer definition and in the projection definition as well. If you loaded the cities with shp2pgsql then you should automatically have a gid field on the cities table. And your cities table should have a population field the type of which should be some kind of number. LAYER METADATA "wms_title" "Cities layer" END NAME "cities" TRANSPARENCY 100 CONNECTIONTYPE postgis CONNECTION "host=??? user=??? dbname=??? password='???'" DATA "the_geom from cities using srid=??? USING UNIQUE gid" TYPE POLYGON CLASS NAME "Small cities" EXPRESSION ( [population] <50000) COLOR 0 255 0 END CLASS NAME "Medium cities" EXPRESSION ([population] >50000 AND [population] <1500000 ) COLOR 255 255 0 END CLASS NAME "Big cities" EXPRESSION ([population] > 1500000 ) COLOR 255 0 0 END END Hope this helps, Florin From gregor at hostgis.com Wed May 14 11:45:10 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 14 May 2008 12:45:10 -0600 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> Message-ID: <482B3336.2020708@hostgis.com> > Any other ideas? - custom repositories with more up to date, or > consistent across Linux systems, version? > Maybe something similar > to FWTools but with stable versions only? There's our own open-source product: HostGIS Linux http://www.hostgis.com/linux/ We use it in production on both 32-bit and 64-bit platforms, with great success. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From codeburg at hotmail.com Wed May 14 11:49:04 2008 From: codeburg at hotmail.com (Gail Long) Date: Wed, 14 May 2008 12:49:04 -0600 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: <482B3336.2020708@hostgis.com> References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> <482B3336.2020708@hostgis.com> Message-ID: I can vouch for the HostGIS linux platform that the guys put out there. I've used it for a couple of years now and as a base platform it would be very hard to beat! Gregor and the guys do a great job of putting it together and their support is beyond compare. They and their platform get a 10 out of 10 from me. -- Things are only difficult while you don't understand them. > Date: Wed, 14 May 2008 12:45:10 -0600 > From: gregor at hostgis.com > To: kyngchaos at kyngchaos.com > Subject: Re: [mapserver-users] Mapserver & GDAL in various Linux repositories > CC: gdal-dev at lists.osgeo.org; mapserver-users at lists.osgeo.org > > > Any other ideas? - custom repositories with more up to date, or > > consistent across Linux systems, version? > > Maybe something similar > > to FWTools but with stable versions only? > > There's our own open-source product: HostGIS Linux > http://www.hostgis.com/linux/ > We use it in production on both 32-bit and 64-bit platforms, with great > success. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Stay in touch when you're away with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_messenger_052008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Wed May 14 11:56:51 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 14 May 2008 12:56:51 -0600 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> <482B3336.2020708@hostgis.com> Message-ID: <482B35F3.5080507@hostgis.com> Why, thank you Gail. That just brings out a smile. FYI, I've started construction of HGL 4.3 so this is a great time to hit up the mailing list, and to send in requests and complaints about HGL 4.2 The diffs will be about a dozen bugfixes, and mostly just good ol' package upgrades, and a lot of work toward package upgrades. And now I'll quit spamming plugs for our own product. :) -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From woklist at kyngchaos.com Wed May 14 12:05:59 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 14 May 2008 14:05:59 -0500 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: <482B309F.20600@mapgears.com> References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> <482B309F.20600@mapgears.com> Message-ID: I vaguely remember this, but didn't pay much attention to it ;) It would be good to update the FGS page to show which versions are included. Are the FGS builds of Apache, PHP, Postgres, ... and basic libraries required for FGS MapServer GDAL, and other GIS tools and libraries? Or can they use system copies of these? Clients may not be willing or able to install duplicate copies of stuff available at the same version in the system, especially on an existing server. Also, are there plans for 64bit builds? On May 14, 2008, at 1:34 PM, Daniel Morissette wrote: > William Kyngesburye wrote: >> The Mapserver download page has links to old Mapping Hacks RPMs, >> and a really old FGS bundle. > > With respect to FGS, there have been no official/public releases in > quite a while, but we've continued to use it internally. Recently > we've started putting more work towards a new public release and > last week a 1.0 release with the latest version of everything has > been posted to the download site and mentioned on the FGS list, but > unfortunately the website is still lagging behind. > > Here is the relevant mailing list thread with the download/install > info for FGS 1.0: > http://lists.maptools.org/pipermail/foss-gis-suite/2008-May/ > 000639.html > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From dmorissette at mapgears.com Wed May 14 12:15:08 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 14 May 2008 15:15:08 -0400 Subject: [mapserver-users] Mapserver & GDAL in various Linux repositories In-Reply-To: References: <3D74B43C-9EE7-4725-AA61-485080F18FBB@kyngchaos.com> <482B309F.20600@mapgears.com> Message-ID: <482B3A3C.3050808@mapgears.com> William Kyngesburye wrote: > > It would be good to update the FGS page to show which versions are > included. > That should happen very soon. > Are the FGS builds of Apache, PHP, Postgres, ... and basic libraries > required for FGS MapServer GDAL, and other GIS tools and libraries? Or > can they use system copies of these? Clients may not be willing or able > to install duplicate copies of stuff available at the same version in > the system, especially on an existing server. > Yes, FGS requires that you use its own version of all the base libs. However FGS's installation is self-contained and doesn't pollute any of the system directories (i.e. all files and libs live under /path/to/fgs/...). It is also built to play nicely with the preinstalled versions that may already be on the system. I understand that some admins don't like duplicate copies of the same software on the system, but if we want to integrate with the system tools and libs then we would have to build deb or rpm packages for every OS and version which would be much more work than a single self-contained installer that brings all its dependencies with it and works anywhere. I hope that at some point in the future FGS will be obsoleted by native packages for each Linux distributions but we are not there yet. Another benefit of FGS being self-contained is that you can run multiple instances with different versions of the software (GDAL, MapServer, etc.) on the same system without any problem. This is especially useful for developers or people doing frequent upgrades. In the specific case of Apache, FGS allows you to pick a port to use so it won't conflict with an existing Apache install. In the case of postgres, it could connect to an existing postgres server, you are only required to let it load its own libpq (client lib). Daniel > Also, are there plans for 64bit builds? > Not at the moment... but contributions would be welcome. :) Daniel -- Daniel Morissette http://www.mapgears.com/ From kevin.edmundson at wthtechnology.com Wed May 14 12:49:12 2008 From: kevin.edmundson at wthtechnology.com (Kevin Edmundson) Date: Wed, 14 May 2008 15:49:12 -0400 Subject: [mapserver-users] color coding Message-ID: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> I have a layer that I want to color code the features for a specific field. Is there a way in mapserver to have it automatically color all unique values, or do I specifically have to identify the unique value/color combinations myself in class items? Kevin Edmundson CIO WTH Technology, Inc 567 W Westfield Blvd Indianapolis, IN 46208 317.259.0105 office 317.259.1423 fax 317.501.8560 mobile kevin.edmundson at wthtechnology.com NOTICE: This message is from the technology firm WTH Technology, Inc. This message is intended only for the individual or entity to which it is directed. If you are not the addressee, or if this message has been addressed to you in error, you are not authorized to use, read, copy or distribute this message and any attachments, and we ask that you please immediately delete this message and attachments (including all copies), and notify the sender by return e-mail so that our records can be corrected. All personal messages express views only of the sender, which are not to be attributed to WTH Technology, Inc, and may not be distributed or copied without this statement. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed May 14 15:58:39 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 14 May 2008 17:58:39 -0500 Subject: [mapserver-users] color coding In-Reply-To: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> References: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> Message-ID: <482B6E9F.9000709@swoodbridge.com> Kevin Edmundson wrote: > > > I have a layer that I want to color code the features for a specific field. > > > > Is there a way in mapserver to have it automatically color all unique > values, or do I specifically have to identify the unique value/color > combinations myself in class items? No automatic way to do that. In part is is a performance issue, because you would have to scan all the data to get the set of unique values and then render only the few items in the window for every request. The way this gets cached in mapserver is you have to extract the unique values and then create a CLASS EXPRESSION and assign a color it each item or group of items based on that. -Stephen Woodbridge http://imaptools.com/ > Kevin Edmundson > > CIO > > WTH Technology, Inc > > 567 W Westfield Blvd > > Indianapolis , IN 46208 > > 317.259.0105 office > > 317.259.1423 fax > > 317.501.8560 mobile > > kevin.edmundson at wthtechnology.com > > > > NOTICE: This message is from the technology firm WTH Technology, Inc. > This message is intended only for the individual or entity to which it > is directed. If you are not the addressee, or if this message has been > addressed to you in error, you are not authorized to use, read, copy or > distribute this message and any attachments, and we ask that you please > immediately delete this message and attachments (including all copies), > and notify the sender by return e-mail so that our records can be > corrected. All personal messages express views only of the sender, which > are not to be attributed to WTH Technology, Inc, and may not be > distributed or copied without this statement. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From earchuleta at sanipueblo.org Wed May 14 14:57:48 2008 From: earchuleta at sanipueblo.org (Eric) Date: Wed, 14 May 2008 15:57:48 -0600 Subject: [mapserver-users] ODBC OGR and SrcSQL Message-ID: <000301c8b60d$8f2cb100$6401a8c0@sanigov.local> Hello all- I need help drawing a point layer with OGR ODBC using . I used ogrinfo with ?sql and my DSN to verify that all worked. It did. Next I used ogrinfo against my .ovf file and that worked fine. The point locations where retrieved just fine. When I use shp2img using my map file which contains the point layer using the .ovf file the resulting image is blank. The extent specified in my map file does contain the points as retrieved by ogrinfo but the point layer does not draw. I am at a complete loss. Has anyone tried doing this? Can someone give me some clues as to what I am doing wrong? I have uploaded my .ovf file here: http://rafb.net/p/ah8hTF92.html I have uploaded my map file here: http://rafb.net/p/2rAJqb52.html The ODBC driver is for SQL Server. Thanks Eric No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1427 - Release Date: 5/11/2008 1:08 PM -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulp575 at dog-walker.us Wed May 14 17:07:21 2008 From: paulp575 at dog-walker.us (Paul Yelk) Date: Wed, 14 May 2008 17:07:21 -0700 Subject: [mapserver-users] MapServer vs MS4W FIles To Upload In-Reply-To: <482A46F3.2050508@noaa.gov> References: <482A3477.1090104@dog-walker.us> <482A46F3.2050508@noaa.gov> Message-ID: <482B7EB9.1000305@dog-walker.us> An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Wed May 14 17:53:37 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 15 May 2008 02:53:37 +0200 Subject: [mapserver-users] MapServer vs MS4W FIles To Upload In-Reply-To: <482B7EB9.1000305@dog-walker.us> References: <482A3477.1090104@dog-walker.us> <482A46F3.2050508@noaa.gov> <482B7EB9.1000305@dog-walker.us> Message-ID: <482B8991.8090506@zeelandnet.nl> Hello Paul, Paul Yelk wrote: > Kyle Wilcox wrote: >> MS4W is an acronym for 'MapServer for Windows', not a solution for a >> Unix based web host. > Sorry, I guess I did not clearly state my question(s)! > I knew MS4W stood for the installation of MapServer on a Windows computer. > > What I should have asked was once I had a set up under MS4W, which of > the files would/can I upload to an Apache web host? Or will I have to > completely do a separate set of files for each OS? > > I am hoping that the map files and other files I create on my home > computer using MS4W will be able to uploaded to the web host running > Apache. - mapfiles, font- and symbol files and the data files (shp, dbf, tab, dat and so on) are the files you are talking about. You can indeed upload them to "A webserver capable of running mapserver", change the paths in the mapfile and you should be ok. I would strongly suggesty you to put pressure on the board of directors and tell them map hosting is NOT the same as web hosting, it requires specifically prepped server(s). Make sure they are willing to create some budget before you start making promisses and sign up with the guys at hostgis.com (I know from experience they are willing to set up a test period and their support is excellent) It will save you frustration, tears and sweat and a lot of precious time and you might even be able to live up to the expectations of the people who asked you to put a map online without realizing that GIS and Cartography is a specialism people go to university for... Kind regards and good luck! Milo van der Linden From isao.nasuno at ctc-g.co.jp Wed May 14 18:59:38 2008 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Thu, 15 May 2008 10:59:38 +0900 Subject: [mapserver-users] Converting datum using ogr2ogr Message-ID: <482B990A.4010606@ctc-g.co.jp> Hello, I am new in the mailing list. I want to use ogr2ogr to convert projection/datum of shape files to a same SRS before insert them into postgres for serving by MapServer. However ogr2ogr seems convert only projection even the shape file has .prj file. I checked out that GDAL has no default parameters to convert datum. I need the conversion before inserting to postgres with some reasons, I mean, with translation from shape to shape. Any suggestion to convert datum using ogr2ogr or other stand-alone program ? - The ogr2ogr is included in FWTools 2.1.0. - OS is windows xp. Thanks, Isao NASUNO From Jukka.Rahkonen at mmmtike.fi Wed May 14 21:17:50 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 15 May 2008 07:17:50 +0300 Subject: [mapserver-users] Converting datum using ogr2ogr References: <482B990A.4010606@ctc-g.co.jp> Message-ID: Hi, I don't think you need .prj file with your shapefiles and you should be able even to overrun it. You need to use parameters -s_srs for source projection and -t_srs for target projection. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: NASUNO Isao L?hetetty: to 15.5.2008 4:59 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Converting datum using ogr2ogr Hello, I am new in the mailing list. I want to use ogr2ogr to convert projection/datum of shape files to a same SRS before insert them into postgres for serving by MapServer. However ogr2ogr seems convert only projection even the shape file has .prj file. I checked out that GDAL has no default parameters to convert datum. I need the conversion before inserting to postgres with some reasons, I mean, with translation from shape to shape. Any suggestion to convert datum using ogr2ogr or other stand-alone program ? - The ogr2ogr is included in FWTools 2.1.0. - OS is windows xp. Thanks, Isao NASUNO _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From isao.nasuno at ctc-g.co.jp Wed May 14 21:58:55 2008 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Thu, 15 May 2008 13:58:55 +0900 Subject: [mapserver-users] Converting datum using ogr2ogr In-Reply-To: References: <482B990A.4010606@ctc-g.co.jp> Message-ID: <482BC30F.1080704@ctc-g.co.jp> Hi Jukka, Thank you for your response. yes, I tried with the options (s/t_srs), however it makes conversion for projection but not for datum. In my case, I used following options but the input and output are exactly same. -s_srs "EPSG:4301" -t_srs "EPSG:4326" (GCS with bessel) (GCS with WGS84) I checked GDAL FAQ and found following. http://trac.osgeo.org/gdal/wiki/FAQCoordinateSystemsAndProjections#WhydoesntGDALautomaticallychoosethedatumtransformation ------------------------------------ Why doesn't GDAL automatically choose the datum transformation? There is no such thing as an accurate "default" set of datum transformation parameters for a datum. OGR uses (NADCON) by default, which is the most accurate available for North America, but in the general case (worldwide) this is very hard to determine and there normally is no such thing as a default. The transformation that should be used depends on the exact area covered, accuracy required etc. In other words, user beware and do your homework. ------------------------------------ Is this the reason ? I am not sure if ogr2ogr can accept the parameters in manual. Please help if any idea. Thanks, Isao Rahkonen Jukka wrote: > Hi, > > I don't think you need .prj file with your shapefiles and you should be able even to overrun it. > You need to use parameters -s_srs for source projection and -t_srs for target projection. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: NASUNO Isao > L?hetetty: to 15.5.2008 4:59 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Converting datum using ogr2ogr > > Hello, > > I am new in the mailing list. > > I want to use ogr2ogr to convert projection/datum of shape files to > a same SRS before insert them into postgres for serving by MapServer. > > However ogr2ogr seems convert only projection even the shape file has .prj file. > I checked out that GDAL has no default parameters to convert datum. > > I need the conversion before inserting to postgres with some reasons, > I mean, with translation from shape to shape. > > Any suggestion to convert datum using ogr2ogr or other stand-alone program ? > - The ogr2ogr is included in FWTools 2.1.0. > - OS is windows xp. > > Thanks, > > Isao NASUNO > From oliver.wesp at gmail.com Wed May 14 23:29:45 2008 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Thu, 15 May 2008 08:29:45 +0200 Subject: [mapserver-users] Build Mapserver 5.0.2 with sde support on solaris 5.8 Message-ID: Dear List, I'm trying to build mapserver 5.0.2 with support for sde 9.2 on my solaris 5.8 box. The following problem occurs: Undefined first referenced symbol in file __1cG__CrunKpure_error6F_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunIex_alloc6FI_pv_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunKvector_des6FpvIIpF1_v_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunKvector_con6FpvIIpF1_vp2_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __fabsf /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __floorf /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunKvector_del6FpvIpF1_v_1_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunGex_get6F_pv_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunMex_rethrow_q6F_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunKvector_new6FpvIIpF1_vp2_1_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunSregister_exit_code6FpG_v_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunHex_skip6F_b_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunIex_clean6F_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1cG__CrunKex_rethrow6F_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so c::c(N6, (int0_t)) /export/home/oliver/sde_client/sdeexe92/lib/libsde.so c::c(n6, (int0_t)) /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1c2K6Fpv_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so __1c2k6Fpv_v_ /export/home/oliver/sde_client/sdeexe92/lib/libsde.so ld: fatal: Symbol referencing errors. No output written to shp2img collect2: ld returned 1 exit status I guess the missing references are in libCrun.so.1 so I tried to add "-L/usr/lib -lCrun" but that gives me "libCrun not found" but libCrun.so.1 is located in /usr/lib. Any ideas? I'm trying to build with gcc 3.2.3. best regards, Oliver From Jukka.Rahkonen at mmmtike.fi Wed May 14 23:55:36 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 15 May 2008 09:55:36 +0300 Subject: VS: [mapserver-users] Converting datum using ogr2ogr In-Reply-To: <482BC30F.1080704@ctc-g.co.jp> Message-ID: Hi Isao, I am sorry, I must admit that I haven't done my homework with datum shifting. However, I believe that reason for not getting any change in your reprojection is because the definition in the FWTools epsg ligrary for epsg:4301 is this: # Tokyo <4301> +proj=longlat +ellps=bessel +no_defs <> So it gives no towgs parameters which would tell what kind of shifting should be done. For comparison, this projection using bessel does have towgs84 parameters and a trial with that should lead to different result: # Bukit Rimpah <4219> +proj=longlat +ellps=bessel +towgs84=-384,664,-48,0,0,0,0 +no_defs <> If you can find somewhere the towgs84 parameters and insert them to your source projection you may get what you want. It is not necessary to edit the epsg text file but even better to give the projection directly for ogr2ogr this way: ogr2ogr -s_srs "+proj=longlat +ellps=bessel +towgs84=-384,664,-48,0,0,0,0 +no_defs" -t_srs epsg:4326 Of course with your correct towgs84 parameters. This way it is simple to play with adjusting the parameters, and most important, you know for sure what parameters ogr2ogr is going to use. It is possible that right parameters for you are TOWGS84=-148,507,685,0,0,0,0 but I can't be sure. It was just the first hit from altavista search. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta NASUNO Isao > L?hetetty: 15. toukokuuta 2008 7:59 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Converting datum using ogr2ogr > > Hi Jukka, > > Thank you for your response. > > yes, I tried with the options (s/t_srs), however it makes > conversion for projection but not for datum. > > In my case, I used following options but the input and output > are exactly same. > > -s_srs "EPSG:4301" -t_srs "EPSG:4326" > (GCS with bessel) (GCS with WGS84) > > I checked GDAL FAQ and found following. > > http://trac.osgeo.org/gdal/wiki/FAQCoordinateSystemsAndProject > ions#WhydoesntGDALautomaticallychoosethedatumtransformation > ------------------------------------ > Why doesn't GDAL automatically choose the datum transformation? > There is no such thing as an accurate "default" set of > datum transformation > parameters for a datum. OGR uses (NADCON) by default, which > is the most > accurate available for North America, but in the general > case (worldwide) > this is very hard to determine and there normally is no > such thing as a default. > The transformation that should be used depends on the exact > area covered, > accuracy required etc. In other words, user beware and do > your homework. > ------------------------------------ > > Is this the reason ? > I am not sure if ogr2ogr can accept the parameters in manual. > Please help if any idea. > > Thanks, > > Isao > > > Rahkonen Jukka wrote: > > Hi, > > > > I don't think you need .prj file with your shapefiles and > you should be able even to overrun it. > > You need to use parameters -s_srs for source projection and > -t_srs for target projection. > > > > -Jukka Rahkonen- > > > > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: NASUNO > > Isao > > L?hetetty: to 15.5.2008 4:59 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] Converting datum using ogr2ogr > > > > Hello, > > > > I am new in the mailing list. > > > > I want to use ogr2ogr to convert projection/datum of shape > files to a > > same SRS before insert them into postgres for serving by MapServer. > > > > However ogr2ogr seems convert only projection even the > shape file has .prj file. > > I checked out that GDAL has no default parameters to convert datum. > > > > I need the conversion before inserting to postgres with > some reasons, > > I mean, with translation from shape to shape. > > > > Any suggestion to convert datum using ogr2ogr or other > stand-alone program ? > > - The ogr2ogr is included in FWTools 2.1.0. > > - OS is windows xp. > > > > Thanks, > > > > Isao NASUNO > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From isao.nasuno at ctc-g.co.jp Thu May 15 00:42:27 2008 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Thu, 15 May 2008 16:42:27 +0900 Subject: VS: [mapserver-users] Converting datum using ogr2ogr In-Reply-To: References: Message-ID: <482BE963.8090100@ctc-g.co.jp> Hi Jukka, and List, I got to the conversion that I expect with your advice. Now I understand how to use it. Many thanks ! Isao Rahkonen Jukka wrote: > Hi Isao, > > I am sorry, I must admit that I haven't done my homework with datum shifting. > However, I believe that reason for not getting any change in your reprojection > is because the definition in the FWTools epsg ligrary for epsg:4301 is this: > # Tokyo > <4301> +proj=longlat +ellps=bessel +no_defs <> > > So it gives no towgs parameters which would tell what kind of shifting should > be done. For comparison, this projection using bessel does have towgs84 > parameters and a trial with that should lead to different result: > # Bukit Rimpah > <4219> +proj=longlat +ellps=bessel +towgs84=-384,664,-48,0,0,0,0 +no_defs <> > > If you can find somewhere the towgs84 parameters and insert them to your source > projection you may get what you want. It is not necessary to edit the epsg text > file but even better to give the projection directly for ogr2ogr this way: > > ogr2ogr -s_srs "+proj=longlat +ellps=bessel +towgs84=-384,664,-48,0,0,0,0 +no_defs" -t_srs epsg:4326 > > Of course with your correct towgs84 parameters. This way it is simple to play with > adjusting the parameters, and most important, you know for sure what parameters > ogr2ogr is going to use. It is possible that right parameters for you are > TOWGS84=-148,507,685,0,0,0,0 but I can't be sure. It was just the first hit from > altavista search. > > -Jukka Rahkonen- > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta NASUNO Isao >> L?hetetty: 15. toukokuuta 2008 7:59 >> Vastaanottaja: Rahkonen Jukka >> Kopio: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] Converting datum using ogr2ogr >> >> Hi Jukka, >> >> Thank you for your response. >> >> yes, I tried with the options (s/t_srs), however it makes >> conversion for projection but not for datum. >> >> In my case, I used following options but the input and output >> are exactly same. >> >> -s_srs "EPSG:4301" -t_srs "EPSG:4326" >> (GCS with bessel) (GCS with WGS84) >> >> I checked GDAL FAQ and found following. >> >> http://trac.osgeo.org/gdal/wiki/FAQCoordinateSystemsAndProject >> ions#WhydoesntGDALautomaticallychoosethedatumtransformation >> ------------------------------------ >> Why doesn't GDAL automatically choose the datum transformation? >> There is no such thing as an accurate "default" set of >> datum transformation >> parameters for a datum. OGR uses (NADCON) by default, which >> is the most >> accurate available for North America, but in the general >> case (worldwide) >> this is very hard to determine and there normally is no >> such thing as a default. >> The transformation that should be used depends on the exact >> area covered, >> accuracy required etc. In other words, user beware and do >> your homework. >> ------------------------------------ >> >> Is this the reason ? >> I am not sure if ogr2ogr can accept the parameters in manual. >> Please help if any idea. >> >> Thanks, >> >> Isao >> >> >> Rahkonen Jukka wrote: >>> Hi, >>> >>> I don't think you need .prj file with your shapefiles and >> you should be able even to overrun it. >>> You need to use parameters -s_srs for source projection and >> -t_srs for target projection. >>> -Jukka Rahkonen- >>> >>> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: NASUNO >>> Isao >>> L?hetetty: to 15.5.2008 4:59 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] Converting datum using ogr2ogr >>> >>> Hello, >>> >>> I am new in the mailing list. >>> >>> I want to use ogr2ogr to convert projection/datum of shape >> files to a >>> same SRS before insert them into postgres for serving by MapServer. >>> >>> However ogr2ogr seems convert only projection even the >> shape file has .prj file. >>> I checked out that GDAL has no default parameters to convert datum. >>> >>> I need the conversion before inserting to postgres with >> some reasons, >>> I mean, with translation from shape to shape. >>> >>> Any suggestion to convert datum using ogr2ogr or other >> stand-alone program ? >>> - The ogr2ogr is included in FWTools 2.1.0. >>> - OS is windows xp. >>> >>> Thanks, >>> >>> Isao NASUNO >>> From susanne.kalliany at tefis.at Thu May 15 04:09:20 2008 From: susanne.kalliany at tefis.at (SUSANNE) Date: Thu, 15 May 2008 04:09:20 -0700 (PDT) Subject: [MAPSERVER-USERS] PostGIS: Intersection of 2 areas Message-ID: <17250805.post@talk.nabble.com> Hello, I am struggling with interserction of 2 areas of the same layer. $sql= "SELECT the_geom FROM " . $layername . " where gid= " . $gid1; $res = pg_query ($sql); $row = pg_fetch_array ($res); $geom1= $row[0]; $sql= "SELECT the_geom FROM " . $layername . " where gid= " . $gid2; $res = pg_query ($sql); $row = pg_fetch_array ($res); $geom2= $row[0]; $sql= "SELECT ST_Difference($geom1,$geom2)" ; $res = pg_query ($sql); $row = pg_fetch_array ($res); $geom= $row[0]; ^^^ The current problem is that the last statement does not return anything ! The final goal of my efforts is to get rid of the common area in one of two partially overlapping areas. Is my approach (see above) proper at all for that purpose ?!? With many thanks in advance for any comments and suggestions. Susanne -- View this message in context: http://www.nabble.com/PostGIS%3A-Intersection-of-2-areas-tp17250805p17250805.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yosoycore at gmail.com Thu May 15 05:16:25 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Thu, 15 May 2008 14:16:25 +0200 Subject: [mapserver-users] Customized layer for Mapserver/Kamap In-Reply-To: <1d674ec80805141138m15a2235ay674979ecd1e72f74@mail.gmail.com> References: <9c2e09570805121520q104ba1a7l2cf65e4d571d1ca0@mail.gmail.com> <1d674ec80805121622l14cb683fn8c700729c15d11ba@mail.gmail.com> <9c2e09570805130432g42744abwe20c7781aec67124@mail.gmail.com> <1d674ec80805141138m15a2235ay674979ecd1e72f74@mail.gmail.com> Message-ID: <9c2e09570805150516k758b56e5q18f3f23392475a25@mail.gmail.com> Thank you very much Florin! This code is very useful, is not exactly what I needs but gives me orientation about how to implement my mapfile. 2008/5/14 Florin A. : > Hi, > > In your mapfile you define the layers and the colors. See example below. > > If you have an SRID (projection) for the layer use it. You can see > what it is by selecting this sql in pgadmin: "select srid(the_geom) > from cities) . Use the number you get here in the mapserver layer > definition and in the projection definition as well. If you loaded > the cities with shp2pgsql then you should automatically have a gid > field on the cities table. And your cities table should have a > population field the type of which should be some kind of number. > > > LAYER > METADATA > "wms_title" "Cities layer" > END > NAME "cities" > TRANSPARENCY 100 > CONNECTIONTYPE postgis > CONNECTION "host=??? user=??? dbname=??? password='???'" > DATA "the_geom from cities using srid=??? USING UNIQUE gid" > TYPE POLYGON > > CLASS > NAME "Small cities" > EXPRESSION ( [population] <50000) > COLOR 0 255 0 > END > > CLASS > NAME "Medium cities" > EXPRESSION ([population] >50000 AND [population] <1500000 ) > COLOR 255 255 0 > END > > CLASS > NAME "Big cities" > EXPRESSION ([population] > 1500000 ) > COLOR 255 0 0 > END > > > END > > Hope this helps, > Florin > -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at yahoo.com Thu May 15 06:03:21 2008 From: map.user at yahoo.com (User Map) Date: Thu, 15 May 2008 06:03:21 -0700 (PDT) Subject: [mapserver-users] calculating extent on basis of distance from point Message-ID: <430217.52396.qm@web45710.mail.sp1.yahoo.com> hi, i have OSGB36 data in postgre, srid 27700. what i want to do is to calculate the extent on basis of the distance from a given point. i have geom of type geometry in the table, from which to calculate extent. i have tried the funtions Distance(geom,geom)<50, but it is too slow, as it uses no index. i have calculated the point from the polygon by function Centroid(geom), from where the other distances have to be calculated, but i think its not working properly, as i am also testing it with the mapserver map and map saclebar, they are not matching exactly. i mean the scalebar is not showing 100 meter but instead showing 192 meters. the main isuue is of the time the distance query is taking. is there any why else to do this quickly. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Thu May 15 06:27:22 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 15:27:22 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements Message-ID: <482C3A3A.7070108@neogeo-online.net> Hi, I've just been doing few tests on mapserver trunk version to get an idea of how much the rendering of large shapefiles has been improved by paul's hacks on shx handler (http://blog.cleverelephant.ca/2008/04/see_30.html) My shapefile is 1 208 668 features, 160 Mo for the .shp file itself with a .shx of 5.2 Mo here are the times for a 5x5 km map to be drawn with shp2img, in PNG (no AGG) NO QIX : mapserv 5.0.2 : 0.680 s mapserv trunk : 0.699 s (!) WITH QIX : mapserv 5.0.2 : 0.124 s mapserv trunk : 0.027 s it looks like if the improvement only appears with use of a .qix file, which is highly recommended but sometimes forgotten. Has anyone had the same kind of experiment ? By the way, I noticed that it doesn't seem mandatory anymore to write the mapfile's DATA statement without the .shp extension to make use of the .qix file, as the results are strictly identical on mapserver trunk if I write "streets.shp" or "streets". Can someone confirm that ? Thanks Guillaume From jeffmckenna at gmail.com Thu May 15 06:46:23 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Thu, 15 May 2008 09:46:23 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C3A3A.7070108@neogeo-online.net> References: <482C3A3A.7070108@neogeo-online.net> Message-ID: <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> Hello, comments inline below: On 15-May-08, at 9:27 AM, Guillaume Sueur wrote: > Hi, > > I've just been doing few tests on mapserver trunk version to get an > idea of how much the rendering of large shapefiles has been improved > by paul's hacks on shx handler (http://blog.cleverelephant.ca/2008/04/see_30.html > ) > > My shapefile is 1 208 668 features, 160 Mo for the .shp file itself > with a .shx of 5.2 Mo > > here are the times for a 5x5 km map to be drawn with shp2img, in PNG > (no AGG) > > NO QIX : > mapserv 5.0.2 : 0.680 s > mapserv trunk : 0.699 s (!) > > WITH QIX : > mapserv 5.0.2 : 0.124 s > mapserv trunk : 0.027 s > > > it looks like if the improvement only appears with use of a .qix > file, which is highly recommended but sometimes forgotten. > Has anyone had the same kind of experiment ? yes: http://lists.osgeo.org/pipermail/mapserver-dev/2008-April/007170.html > > > > By the way, I noticed that it doesn't seem mandatory anymore to > write the mapfile's DATA statement without the .shp extension to > make use of the .qix file, as the results are strictly identical on > mapserver trunk if I write "streets.shp" or "streets". Can someone > confirm that ? > Confirmed. This was fixed recently (ticket: http://trac.osgeo.org/mapserver/ticket/590) , verified, and documentation was updated. Therefore the next release of MapServer will no longer require you to omit the '.shp' for the DATA parameter for .qix use. -jeff From guillaume.sueur at neogeo-online.net Thu May 15 07:09:47 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 16:09:47 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> Message-ID: <482C442B.6070608@neogeo-online.net> Thanks for theses informations Jeff. I'd like to suggest to emphasis the need of a .qix file a little bit more in the mapserver documentation. It's only explained in 'Utility Programs' Section and 'Optimizing vector data sources' doc, but the huge benefit of it (25 x faster in this case, but still 5x on small shapes) is not, IMHO, mentionned enough to make people use it on every shapefile. Regards, Guillaume Jeff McKenna a ?crit : > Hello, comments inline below: > > > On 15-May-08, at 9:27 AM, Guillaume Sueur wrote: > >> Hi, >> >> I've just been doing few tests on mapserver trunk version to get an >> idea of how much the rendering of large shapefiles has been improved >> by paul's hacks on shx handler >> (http://blog.cleverelephant.ca/2008/04/see_30.html) >> >> My shapefile is 1 208 668 features, 160 Mo for the .shp file itself >> with a .shx of 5.2 Mo >> >> here are the times for a 5x5 km map to be drawn with shp2img, in PNG >> (no AGG) >> >> NO QIX : >> mapserv 5.0.2 : 0.680 s >> mapserv trunk : 0.699 s (!) >> >> WITH QIX : >> mapserv 5.0.2 : 0.124 s >> mapserv trunk : 0.027 s >> >> >> it looks like if the improvement only appears with use of a .qix file, >> which is highly recommended but sometimes forgotten. >> Has anyone had the same kind of experiment ? > > yes: http://lists.osgeo.org/pipermail/mapserver-dev/2008-April/007170.html > >> >> >> >> By the way, I noticed that it doesn't seem mandatory anymore to write >> the mapfile's DATA statement without the .shp extension to make use of >> the .qix file, as the results are strictly identical on mapserver >> trunk if I write "streets.shp" or "streets". Can someone confirm that ? >> > > Confirmed. This was fixed recently (ticket: > http://trac.osgeo.org/mapserver/ticket/590), verified, and documentation > was updated. Therefore the next release of MapServer will no longer > require you to omit the '.shp' for the DATA parameter for .qix use. > > -jeff > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Thu May 15 07:40:19 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 07:40:19 -0700 Subject: [MAPSERVER-USERS] PostGIS: Intersection of 2 areas In-Reply-To: <17250805.post@talk.nabble.com> References: <17250805.post@talk.nabble.com> Message-ID: <30fe546d0805150740m2637b16dp8a6dd1a3272c86b3@mail.gmail.com> Susanne, (a) This is more a PostGIS query than a Mapserver query, you might have better luck on postgis-users. (b) It's impossible to know if you're getting right or wrong answers without knowing what geometries you are using. If A.Within(B) then A.Difference(B) will yield nothing, there will be nothing left. (c) You can do this op in one pass in SQL. No need for three queries. SELECT a.gid, b.gid, ST_Difference(a.the_geom, b.the_geom) FROM a, b WHERE a.gid = $gida AND b.gid = $gidb P On Thu, May 15, 2008 at 4:09 AM, SUSANNE wrote: > > Hello, > > I am struggling with interserction of 2 areas of the same layer. > > $sql= "SELECT the_geom FROM " . $layername . " where gid= " . $gid1; > $res = pg_query ($sql); > $row = pg_fetch_array ($res); > $geom1= $row[0]; > > $sql= "SELECT the_geom FROM " . $layername . " where gid= " . $gid2; > $res = pg_query ($sql); > $row = pg_fetch_array ($res); > $geom2= $row[0]; > > $sql= "SELECT ST_Difference($geom1,$geom2)" ; > $res = pg_query ($sql); > $row = pg_fetch_array ($res); > $geom= $row[0]; > ^^^ > The current problem is that the last statement does not return anything ! > > The final goal of my efforts is to get rid of the common area in one of > two partially overlapping areas. > > Is my approach (see above) proper at all for that purpose ?!? > > With many thanks in advance for any comments and suggestions. > > Susanne > -- > View this message in context: http://www.nabble.com/PostGIS%3A-Intersection-of-2-areas-tp17250805p17250805.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Thu May 15 07:43:08 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 07:43:08 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C442B.6070608@neogeo-online.net> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> Message-ID: <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> I've been thinking about auto-building qix files... it would fix this problem and also fix the problem of the shape file that gets updated and out-of-synch with its index file. I think programmers will hate the idea, but users, maybe they will like it? What do you think? On Thu, May 15, 2008 at 7:09 AM, Guillaume Sueur wrote: > Thanks for theses informations Jeff. > I'd like to suggest to emphasis the need of a .qix file a little bit more in > the mapserver documentation. It's only explained in 'Utility Programs' > Section and 'Optimizing vector data sources' doc, but the huge benefit of it > (25 x faster in this case, but still 5x on small shapes) is not, IMHO, > mentionned enough to make people use it on every shapefile. > > Regards, > > Guillaume > > > Jeff McKenna a ?crit : >> >> Hello, comments inline below: >> >> >> On 15-May-08, at 9:27 AM, Guillaume Sueur wrote: >> >>> Hi, >>> >>> I've just been doing few tests on mapserver trunk version to get an idea >>> of how much the rendering of large shapefiles has been improved by paul's >>> hacks on shx handler (http://blog.cleverelephant.ca/2008/04/see_30.html) >>> >>> My shapefile is 1 208 668 features, 160 Mo for the .shp file itself with >>> a .shx of 5.2 Mo >>> >>> here are the times for a 5x5 km map to be drawn with shp2img, in PNG (no >>> AGG) >>> >>> NO QIX : >>> mapserv 5.0.2 : 0.680 s >>> mapserv trunk : 0.699 s (!) >>> >>> WITH QIX : >>> mapserv 5.0.2 : 0.124 s >>> mapserv trunk : 0.027 s >>> >>> >>> it looks like if the improvement only appears with use of a .qix file, >>> which is highly recommended but sometimes forgotten. >>> Has anyone had the same kind of experiment ? >> >> yes: http://lists.osgeo.org/pipermail/mapserver-dev/2008-April/007170.html >> >>> >>> >>> >>> By the way, I noticed that it doesn't seem mandatory anymore to write the >>> mapfile's DATA statement without the .shp extension to make use of the .qix >>> file, as the results are strictly identical on mapserver trunk if I write >>> "streets.shp" or "streets". Can someone confirm that ? >>> >> >> Confirmed. This was fixed recently (ticket: >> http://trac.osgeo.org/mapserver/ticket/590), verified, and documentation was >> updated. Therefore the next release of MapServer will no longer require you >> to omit the '.shp' for the DATA parameter for .qix use. >> >> -jeff >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thy at 42.dk Thu May 15 08:00:22 2008 From: thy at 42.dk (Kristian Thy) Date: Thu, 15 May 2008 17:00:22 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> Message-ID: <20080515150021.GA22791@42.dk> On Thu, May 15, Paul Ramsey wrote: > I've been thinking about auto-building qix files... it would fix this > problem and also fix the problem of the shape file that gets updated > and out-of-synch with its index file. Seeing that this would probably lead to (slightly) decreased performance since mapserver-cgi would need to verify the qix for each shapefile for each request, I would at least encourage adding it as a map file option (default off). Then again, you wouldn't get the benefit of it if you don't read the docs, which is the problem you're trying to fix ;) \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From dmorissette at mapgears.com Thu May 15 08:10:54 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 15 May 2008 11:10:54 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> Message-ID: <482C527E.9060003@mapgears.com> Paul Ramsey wrote: > I've been thinking about auto-building qix files... it would fix this > problem and also fix the problem of the shape file that gets updated > and out-of-synch with its index file. > > I think programmers will hate the idea, but users, maybe they will > like it? What do you think? > You guessed right... I, as a programmer, am not keen on that kind of magic behavior. I like to think of dataset access by MapServer as a read-only operation, for security and various reasons I would not want to allow write access to the data dirs. But I'd be happy to see a "Mapfile optimizer" tool that does this kind of stuff. BTW, a step we could easily take in the short term is add a msDebug() message at level >= MS_DEBUGLEVEL_TUNING warning users that a given shapefile hass no .qix and adding one could increase performance. There could also be a test added at the same debug level and if the .shp file date is newer than the .qix then produce a warning saying that the .qix may be out of date. Daniel -- Daniel Morissette http://www.mapgears.com/ From woodbri at swoodbridge.com Thu May 15 09:21:44 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 15 May 2008 11:21:44 -0500 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C527E.9060003@mapgears.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> Message-ID: <482C6318.8070601@swoodbridge.com> Daniel Morissette wrote: > Paul Ramsey wrote: >> I've been thinking about auto-building qix files... it would fix this >> problem and also fix the problem of the shape file that gets updated >> and out-of-synch with its index file. >> >> I think programmers will hate the idea, but users, maybe they will >> like it? What do you think? >> > > You guessed right... I, as a programmer, am not keen on that kind of > magic behavior. I like to think of dataset access by MapServer as a > read-only operation, for security and various reasons I would not want > to allow write access to the data dirs. But I'd be happy to see a > "Mapfile optimizer" tool that does this kind of stuff. > > BTW, a step we could easily take in the short term is add a msDebug() > message at level >= MS_DEBUGLEVEL_TUNING warning users that a given > shapefile hass no .qix and adding one could increase performance. > > There could also be a test added at the same debug level and if the .shp > file date is newer than the .qix then produce a warning saying that the > .qix may be out of date. > > Daniel -1 on magic happens. 1) performance issues if the files already exist 2) what if the filesystem is readonly 3) what if the filesystem overflows 4) etc +1 on optimizer tool(s) 1) find

-name \*.shp -exec shptree {} \; But please keep up with your wonderful stream of ideas and improvements. -Steve W From pramsey at cleverelephant.ca Thu May 15 08:24:12 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 08:24:12 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <20080515150021.GA22791@42.dk> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <20080515150021.GA22791@42.dk> Message-ID: <30fe546d0805150824s517d06afnbd8c946c73d447b9@mail.gmail.com> On Thu, May 15, 2008 at 8:00 AM, Kristian Thy wrote: > On Thu, May 15, Paul Ramsey wrote: >> I've been thinking about auto-building qix files... it would fix this >> problem and also fix the problem of the shape file that gets updated >> and out-of-synch with its index file. > > Seeing that this would probably lead to (slightly) decreased performance > since mapserver-cgi would need to verify the qix for each shapefile for > each request, I would at least encourage adding it as a map file option > (default off) Not really, we're talking about zero overhead. Only do it for shape files you are going to draw, and then all you're doing is checking for file existence and comparing the nrecords headers, all of which you have to do anyways for the draw. > Then again, you wouldn't get the benefit of it if you don't read the > docs, which is the problem you're trying to fix ;) Well yeah, it has to be on by default, or it misses the point of helping people get the most out of mapserver with the least start-up knowledge. > \\kristian > -- > ... et nemo ex vobis interrogat me: ?Quo vadis?? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From guillaume.sueur at neogeo-online.net Thu May 15 08:24:29 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 17:24:29 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C527E.9060003@mapgears.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> Message-ID: <482C55AD.4010803@neogeo-online.net> I'm not sure that "standard" user uses often msDebug(). My point was just to say that if somebody tries and tests MapServer, he/she will only read the basic documentation to have a working mapfile on a dataset. Once it works, no more reading will be done. And if a large shape is tested, the user can then be disappointed. The thing is that it's more than a specific tuning stuff, maybe more than a GIST index on a postGIS database. I think it should be mentionned at least in the Vector Data Access / shapefiles doc of the website. In addition to "Shapefiles are made up of a minimum of three similarly named files, with different suffixes..", one could write : "having a .qix file made with shptree improves considerabily the performances, mostly on large shapefiles" Beside this, I like the idea of building a MapFile Optimizer too... Daniel, what do you have in mind exactly ? -- Guillaume From rwburgholzer at deq.virginia.gov Thu May 15 08:34:02 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 15 May 2008 11:34:02 -0400 Subject: [mapserver-users] testing mapserver largefiles rendering improvements Message-ID: <6C097DA58429B743A67070F98BE73A37025DD778@deqex01.deq.local> If there is zero overhead to check for the existence of a ".qix" file and determine if it is up to date, I think this is a good default (no magic required). As for making it work out of the box for the typical user who is not interested in the nitty-gritty: Perhaps the "quick install" documents could say "Step X: Run the shptree on all your shape files". Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Thursday, May 15, 2008 11:24 AM To: Daniel Morissette Cc: Mapserver-users Subject: Re: [mapserver-users] testing mapserver largefiles rendering improvements I'm not sure that "standard" user uses often msDebug(). My point was just to say that if somebody tries and tests MapServer, he/she will only read the basic documentation to have a working mapfile on a dataset. Once it works, no more reading will be done. And if a large shape is tested, the user can then be disappointed. The thing is that it's more than a specific tuning stuff, maybe more than a GIST index on a postGIS database. I think it should be mentionned at least in the Vector Data Access / shapefiles doc of the website. In addition to "Shapefiles are made up of a minimum of three similarly named files, with different suffixes..", one could write : "having a .qix file made with shptree improves considerabily the performances, mostly on large shapefiles" Beside this, I like the idea of building a MapFile Optimizer too... Daniel, what do you have in mind exactly ? -- Guillaume _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu May 15 08:38:13 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 15 May 2008 11:38:13 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C55AD.4010803@neogeo-online.net> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C55AD.4010803@neogeo-online.net> Message-ID: <482C58E5.9020809@mapgears.com> Guillaume Sueur wrote: > I'm not sure that "standard" user uses often msDebug(). True. They need to be educated on how to optimize their mapfiles and data and looking at debug output at level 2 (tuning level) is one of the ways. I believe there is already a doc about optimizing maps and this should be added to it. > > Beside this, I like the idea of building a MapFile Optimizer too... > Daniel, what do you have in mind exactly ? > I don't have anything specific in mind, I was just thinking out loud... that could simply be a program that you would run on a mapfile and would make some performance tests and reports. It would look for common problems and report them or attempt to fix them. Daniel -- Daniel Morissette http://www.mapgears.com/ From pramsey at cleverelephant.ca Thu May 15 08:43:39 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 08:43:39 -0700 Subject: [mapserver-users] testing mapserver largefiles rendering improvements In-Reply-To: <6C097DA58429B743A67070F98BE73A37025DD778@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A37025DD778@deqex01.deq.local> Message-ID: <30fe546d0805150843q6875cf49q984bb0556d2d0eed@mail.gmail.com> mapperf -m foo.map -x -m is map file -x executes fixes default mode just reports issues Things it would do/report: - All shape files have up-to-date qix - Replace "init:epsg" entries in PROJECTION blocks with their proj4 literals and fill in the appropriate ows_ metadata to make up for the change - Convert .jpg, .png to .tif - Build overviews on .tif - Internally tile .tif - ... On Thu, May 15, 2008 at 8:34 AM, Burgholzer,Robert wrote: > If there is zero overhead to check for the existence of a ".qix" file > and determine if it is up to date, I think this is a good default (no > magic required). > > As for making it work out of the box for the typical user who is not > interested in the nitty-gritty: Perhaps the "quick install" documents > could say "Step X: Run the shptree on all your shape files". > > > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume > Sueur > Sent: Thursday, May 15, 2008 11:24 AM > To: Daniel Morissette > Cc: Mapserver-users > Subject: Re: [mapserver-users] testing mapserver largefiles rendering > improvements > > I'm not sure that "standard" user uses often msDebug(). > My point was just to say that if somebody tries and tests MapServer, > he/she will only read the basic documentation to have a working mapfile > on a dataset. Once it works, no more reading will be done. And if a > large shape is tested, the user can then be disappointed. > The thing is that it's more than a specific tuning stuff, maybe more > than a GIST index on a postGIS database. > I think it should be mentionned at least in the Vector Data Access / > shapefiles doc of the website. In addition to "Shapefiles are made up of > > a minimum of three similarly named files, with different suffixes..", > one could write : "having a .qix file made with shptree improves > considerabily the performances, mostly on large shapefiles" > > Beside this, I like the idea of building a MapFile Optimizer too... > Daniel, what do you have in mind exactly ? > > > -- > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Thu May 15 08:46:29 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 08:46:29 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C6318.8070601@swoodbridge.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> Message-ID: <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> On Thu, May 15, 2008 at 9:21 AM, Stephen Woodbridge wrote: > > -1 on magic happens. > 1) performance issues if the files already exist None. > 2) what if the filesystem is readonly Do nothing. > 3) what if the filesystem overflows Back out. > 4) etc It's not like this is un-precedented, ArcView3 merrily plops useful index files down next to .shp when it is asked to run ops that need indexes. It doesn't run slow and force you to figure out you need to run the "Create Index" option. In my mind, we should do the right thing by default, and give the power users the option to opt out, rather than forcing everyone to become a power user to achieve something as basic as indexed file access. P. From pramsey at cleverelephant.ca Thu May 15 08:49:12 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 08:49:12 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> Message-ID: <30fe546d0805150849l777c388avf2e2b1da2a211660@mail.gmail.com> It gets better... since most of our power users are on Linux, this feature will never kick in for them: apache won't have write access to their data directories. And since most of our new users on our Windows, this feature will kick in for most of them. But I'd like to hear from more users, otherwise it's just us monkeys nattering to each other. P On Thu, May 15, 2008 at 8:46 AM, Paul Ramsey wrote: > On Thu, May 15, 2008 at 9:21 AM, Stephen Woodbridge > wrote: >> >> -1 on magic happens. >> 1) performance issues if the files already exist > > None. > >> 2) what if the filesystem is readonly > > Do nothing. > >> 3) what if the filesystem overflows > > Back out. > >> 4) etc > > It's not like this is un-precedented, ArcView3 merrily plops useful > index files down next to .shp when it is asked to run ops that need > indexes. It doesn't run slow and force you to figure out you need to > run the "Create Index" option. > > In my mind, we should do the right thing by default, and give the > power users the option to opt out, rather than forcing everyone to > become a power user to achieve something as basic as indexed file > access. > > P. > From guillaume.sueur at neogeo-online.net Thu May 15 08:51:17 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 17:51:17 +0200 Subject: [mapserver-users] testing mapserver largefiles rendering improvements In-Reply-To: <30fe546d0805150843q6875cf49q984bb0556d2d0eed@mail.gmail.com> References: <6C097DA58429B743A67070F98BE73A37025DD778@deqex01.deq.local> <30fe546d0805150843q6875cf49q984bb0556d2d0eed@mail.gmail.com> Message-ID: <482C5BF5.80300@neogeo-online.net> - Check for every POSTGIS layer that the table has a GIST index - Check that TEMPLATE is set whenever TOLERANCE is set (or however one can find that a specific layer is intended to be queryable...) - Check that DUMP TRUE if wfs metadata is found I'm not convinced on the jpg,png -> tif conversion. Some data must be used in the user's desired format. Maybe just sending advices and command-lines would be enough. Paul Ramsey a ?crit : > mapperf -m foo.map -x > > -m is map file > -x executes fixes > default mode just reports issues > > Things it would do/report: > > - All shape files have up-to-date qix > - Replace "init:epsg" entries in PROJECTION blocks with their proj4 > literals and fill in the appropriate ows_ metadata to make up for the > change > - Convert .jpg, .png to .tif > - Build overviews on .tif > - Internally tile .tif > - ... > > > > On Thu, May 15, 2008 at 8:34 AM, Burgholzer,Robert > wrote: >> If there is zero overhead to check for the existence of a ".qix" file >> and determine if it is up to date, I think this is a good default (no >> magic required). >> >> As for making it work out of the box for the typical user who is not >> interested in the nitty-gritty: Perhaps the "quick install" documents >> could say "Step X: Run the shptree on all your shape files". >> >> >> >> Robert W. Burgholzer >> Surface Water Modeler >> Office of Water Supply and Planning >> Virginia Department of Environmental Quality >> rwburgholzer at deq.virginia.gov >> 804-698-4405 >> Open Source Modeling Tools: >> http://sourceforge.net/projects/npsource/ >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume >> Sueur >> Sent: Thursday, May 15, 2008 11:24 AM >> To: Daniel Morissette >> Cc: Mapserver-users >> Subject: Re: [mapserver-users] testing mapserver largefiles rendering >> improvements >> >> I'm not sure that "standard" user uses often msDebug(). >> My point was just to say that if somebody tries and tests MapServer, >> he/she will only read the basic documentation to have a working mapfile >> on a dataset. Once it works, no more reading will be done. And if a >> large shape is tested, the user can then be disappointed. >> The thing is that it's more than a specific tuning stuff, maybe more >> than a GIST index on a postGIS database. >> I think it should be mentionned at least in the Vector Data Access / >> shapefiles doc of the website. In addition to "Shapefiles are made up of >> >> a minimum of three similarly named files, with different suffixes..", >> one could write : "having a .qix file made with shptree improves >> considerabily the performances, mostly on large shapefiles" >> >> Beside this, I like the idea of building a MapFile Optimizer too... >> Daniel, what do you have in mind exactly ? >> >> >> -- >> Guillaume >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From guillaume.sueur at neogeo-online.net Thu May 15 08:53:01 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 17:53:01 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> Message-ID: <482C5C5D.5060408@neogeo-online.net> > > In my mind, we should do the right thing by default, and give the > power users the option to opt out, rather than forcing everyone to > become a power user to achieve something as basic as indexed file > access. +1 for this approach Guillaume From dmorissette at mapgears.com Thu May 15 08:59:28 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 15 May 2008 11:59:28 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C5C5D.5060408@neogeo-online.net> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> Message-ID: <482C5DE0.50508@mapgears.com> Guillaume Sueur wrote: > >> >> In my mind, we should do the right thing by default, and give the >> power users the option to opt out, rather than forcing everyone to >> become a power user to achieve something as basic as indexed file >> access. > > +1 for this approach > The right thing to do is not the same in everyone's eyes. In my eyes, creating .qix files by magic and risk filling up a hard drive partition and causing other tools relying on some amount of free space on the same partition to fail is not the right thing to do by default... but that's just me. Yes, I know, .qix files are relatively small, but you're opening the door to other operations of the same type that could end up really filling a disk without the admin even expecting it... because he thought of MapServer data access as a read-only operation like I used to. /me wonders why PostGIS doesn't create indexes on geometries by default if indexing is the right thing to do by default (or does it do that already?). Daniel -- Daniel Morissette http://www.mapgears.com/ From punk.kish at gmail.com Thu May 15 09:00:05 2008 From: punk.kish at gmail.com (P Kishor) Date: Thu, 15 May 2008 12:00:05 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150849l777c388avf2e2b1da2a211660@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <30fe546d0805150849l777c388avf2e2b1da2a211660@mail.gmail.com> Message-ID: On 5/15/08, Paul Ramsey wrote: > It gets better... since most of our power users are on Linux, this > feature will never kick in for them: apache won't have write access to > their data directories. And since most of our new users on our > Windows, this feature will kick in for most of them. > > But I'd like to hear from more users, otherwise it's just us monkeys > nattering to each other. Since you asked. I favor your approach -- just do it for me, the non-power user. Remember those "turbo" buttons on old desktop PCs? For some reason, you could "choose" to run them fast, but they would default to slow (I am not talking about overclocking or any such nerdy thing... I am just talking about a button that said "turbo.") I can't imagine why anyone would want to run their desktop PCs slow on purpose... Just make the indexes that will help me do my work faster and spare me the details. For those who may want more control, give them an opt out. I know this increases your work to make this idiot-proof, but you asked for opinions. DWIM -- do what I mean, and I always mean faster. > > P > > On Thu, May 15, 2008 at 8:46 AM, Paul Ramsey wrote: > > On Thu, May 15, 2008 at 9:21 AM, Stephen Woodbridge > > wrote: > >> > >> -1 on magic happens. > >> 1) performance issues if the files already exist > > > > None. > > > >> 2) what if the filesystem is readonly > > > > Do nothing. > > > >> 3) what if the filesystem overflows > > > > Back out. > > > >> 4) etc > > > > It's not like this is un-precedented, ArcView3 merrily plops useful > > index files down next to .shp when it is asked to run ops that need > > indexes. It doesn't run slow and force you to figure out you need to > > run the "Create Index" option. > > > > In my mind, we should do the right thing by default, and give the > > power users the option to opt out, rather than forcing everyone to > > become a power user to achieve something as basic as indexed file > > access. > > > > P. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ From warmerdam at pobox.com Thu May 15 09:07:50 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 15 May 2008 12:07:50 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C5DE0.50508@mapgears.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> Message-ID: <482C5FD6.6010302@pobox.com> Daniel Morissette wrote: > Guillaume Sueur wrote: >> >>> >>> In my mind, we should do the right thing by default, and give the >>> power users the option to opt out, rather than forcing everyone to >>> become a power user to achieve something as basic as indexed file >>> access. >> >> +1 for this approach >> > > The right thing to do is not the same in everyone's eyes. Folks, I'm also against mapserver automatically creating .qix files, for the reasons Daniel and others have given. I'd add that current shapefile update tools (including he mapscript shapefile writing code, Shapelib and OGR) do *not* update .qix files. If secretly create a .qix file for a shapefile that is being periodically updated all hell is likely to break out. BTW, .qix files can be *relatively* large. For a shapefile of points, the .qix can easily be bigger than the .shx file. 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 | President OSGeo, http://osgeo.org From dominik.schmid at ilu.ch Thu May 15 09:17:06 2008 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Thu, 15 May 2008 18:17:06 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 Message-ID: <482C6202.80802@ilu.ch> We've finally decided to move forward and replace our ageing Mapserver 4.0.1 installation with the latest and greatest version. I came as far as thinking that the AGG make was successfull, but when I try to configure Mapserver ("/.configure -with-agg --with-freetype") I get the following error: configure: error: freetype required for agg support - please configure --with-freetype I did include some directories with both options with the same result. I'm not sure where AGG is exactly installed (directly in "agg-2.x" or in a subdirectory in there) nor which freetype directory to use located (the libfreetype.* files are in "/usr/lib" but freetype-config is in "/usr/bin"). When I check in yum I see that freetype 2.1.9 is in fact installed. One problem I see is with AGG, I can't get it through Centos 4 repositories so I guess need to compile it myself. I've tried various instructions: - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's still valid info) - Rich Fromm's instructions posted on this list on Nov 27, 2007 The instruction in ticket 2215 don't result in the promised agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. Rich's instructions for build AGG (". autogen.sh") exits with the following error: ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' I'm kind of lost with this, so I'm turning to this list for help. Documentation for installing Mapserver 5 with AGG support seems scarce. Here's some more system info: - Centos 4.4 - Apache 2.0.52 - PHP 5.1.6 - pgsql 8.1.8 - freetype and freetype-devel 2.1.9 ... I can give more specs if needed. Any help is greatly appreciated Dominik -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From guillaume.sueur at neogeo-online.net Thu May 15 09:21:28 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 May 2008 18:21:28 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 In-Reply-To: <482C6202.80802@ilu.ch> References: <482C6202.80802@ilu.ch> Message-ID: <482C6308.5030605@neogeo-online.net> try --with-freetype=/usr/bin and --with-agg=/path/to/agg/build/dir Guillaume Dominik Schmid a ?crit : > We've finally decided to move forward and replace our ageing Mapserver > 4.0.1 installation with the latest and greatest version. > > I came as far as thinking that the AGG make was successfull, but when I > try to configure Mapserver ("/.configure -with-agg --with-freetype") I > get the following error: > > configure: error: freetype required for agg support - please configure > --with-freetype > > I did include some directories with both options with the same result. > I'm not sure where AGG is exactly installed (directly in "agg-2.x" or in > a subdirectory in there) nor which freetype directory to use located > (the libfreetype.* files are in "/usr/lib" but freetype-config is in > "/usr/bin"). > > When I check in yum I see that freetype 2.1.9 is in fact installed. One > problem I see is with AGG, I can't get it through Centos 4 repositories > so I guess need to compile it myself. I've tried various instructions: > - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's still > valid info) > - Rich Fromm's instructions posted on this list on Nov 27, 2007 > > The instruction in ticket 2215 don't result in the promised > agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. > Rich's instructions for build AGG (". autogen.sh") exits with the > following error: > ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' > ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' > > I'm kind of lost with this, so I'm turning to this list for help. > Documentation for installing Mapserver 5 with AGG support seems scarce. > > Here's some more system info: > > - Centos 4.4 > - Apache 2.0.52 > - PHP 5.1.6 > - pgsql 8.1.8 > - freetype and freetype-devel 2.1.9 > ... I can give more specs if needed. > > Any help is greatly appreciated > Dominik From jeffmckenna at gmail.com Thu May 15 09:25:57 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Thu, 15 May 2008 12:25:57 -0400 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C5FD6.6010302@pobox.com> References: <482C3A3A.7070108@neogeo-online.net> <4E28B2CB-5AA2-4ED1-9D73-A257827F329A@gmail.com> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> Message-ID: <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> My vote is for Paul's default qix creation option, by MapServer. Let's make life easy for those beginner Windows users. -jeff On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: > Daniel Morissette wrote: >> Guillaume Sueur wrote: >>> >>>> >>>> In my mind, we should do the right thing by default, and give the >>>> power users the option to opt out, rather than forcing everyone to >>>> become a power user to achieve something as basic as indexed file >>>> access. >>> >>> +1 for this approach >>> >> The right thing to do is not the same in everyone's eyes. > > Folks, > > I'm also against mapserver automatically creating .qix files, for > the reasons > Daniel and others have given. > > I'd add that current shapefile update tools (including he mapscript > shapefile > writing code, Shapelib and OGR) do *not* update .qix files. If > secretly > create a .qix file for a shapefile that is being periodically > updated all > hell is likely to break out. > > BTW, .qix files can be *relatively* large. For a shapefile of > points, the > .qix can easily be bigger than the .shx file. > > Best regards, > -- > From pramsey at cleverelephant.ca Thu May 15 09:31:39 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 09:31:39 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> Message-ID: <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> I have another "third way" option, which would be a compile-time directive (--with-auto-qix) so that packagers can make dummy-friendly builds if they so desire. ?? P On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna wrote: > My vote is for Paul's default qix creation option, by MapServer. Let's make > life easy for those beginner Windows users. > > -jeff > > > > > > On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: > >> Daniel Morissette wrote: >>> >>> Guillaume Sueur wrote: >>>> >>>>> >>>>> In my mind, we should do the right thing by default, and give the >>>>> power users the option to opt out, rather than forcing everyone to >>>>> become a power user to achieve something as basic as indexed file >>>>> access. >>>> >>>> +1 for this approach >>>> >>> The right thing to do is not the same in everyone's eyes. >> >> Folks, >> >> I'm also against mapserver automatically creating .qix files, for the >> reasons >> Daniel and others have given. >> >> I'd add that current shapefile update tools (including he mapscript >> shapefile >> writing code, Shapelib and OGR) do *not* update .qix files. If secretly >> create a .qix file for a shapefile that is being periodically updated all >> hell is likely to break out. >> >> BTW, .qix files can be *relatively* large. For a shapefile of points, the >> .qix can easily be bigger than the .shx file. >> >> Best regards, >> -- >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu May 15 11:05:03 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 15 May 2008 13:05:03 -0500 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> References: <482C3A3A.7070108@neogeo-online.net> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> Message-ID: <482C7B4F.2090304@swoodbridge.com> Paul, I think this is the best option because it gives control to the package builders and anyone that is a power user. I would also like to see msdebug report missing qix files. This is a valuable tuning tools for power users. Thanks, -Steve Paul Ramsey wrote: > I have another "third way" option, which would be a compile-time > directive (--with-auto-qix) so that packagers can make dummy-friendly > builds if they so desire. > > ?? > > P > > On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna wrote: >> My vote is for Paul's default qix creation option, by MapServer. Let's make >> life easy for those beginner Windows users. >> >> -jeff >> >> >> >> >> >> On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: >> >>> Daniel Morissette wrote: >>>> Guillaume Sueur wrote: >>>>>> In my mind, we should do the right thing by default, and give the >>>>>> power users the option to opt out, rather than forcing everyone to >>>>>> become a power user to achieve something as basic as indexed file >>>>>> access. >>>>> +1 for this approach >>>>> >>>> The right thing to do is not the same in everyone's eyes. >>> Folks, >>> >>> I'm also against mapserver automatically creating .qix files, for the >>> reasons >>> Daniel and others have given. >>> >>> I'd add that current shapefile update tools (including he mapscript >>> shapefile >>> writing code, Shapelib and OGR) do *not* update .qix files. If secretly >>> create a .qix file for a shapefile that is being periodically updated all >>> hell is likely to break out. >>> >>> BTW, .qix files can be *relatively* large. For a shapefile of points, the >>> .qix can easily be bigger than the .shx file. >>> >>> Best regards, >>> -- >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Thu May 15 10:12:06 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 10:12:06 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C7B4F.2090304@swoodbridge.com> References: <482C3A3A.7070108@neogeo-online.net> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> <482C7B4F.2090304@swoodbridge.com> Message-ID: <30fe546d0805151012j4e6d5236n792fbe82ae7ff26c@mail.gmail.com> I've ticketed the idea in this form. http://trac.osgeo.org/mapserver/ticket/2618 On Thu, May 15, 2008 at 11:05 AM, Stephen Woodbridge wrote: > Paul, > > I think this is the best option because it gives control to the package > builders and anyone that is a power user. > > I would also like to see msdebug report missing qix files. This is a > valuable tuning tools for power users. > > Thanks, > -Steve > > Paul Ramsey wrote: >> >> I have another "third way" option, which would be a compile-time >> directive (--with-auto-qix) so that packagers can make dummy-friendly >> builds if they so desire. >> >> ?? >> >> P >> >> On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna >> wrote: >>> >>> My vote is for Paul's default qix creation option, by MapServer. Let's >>> make >>> life easy for those beginner Windows users. >>> >>> -jeff >>> >>> >>> >>> >>> >>> On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: >>> >>>> Daniel Morissette wrote: >>>>> >>>>> Guillaume Sueur wrote: >>>>>>> >>>>>>> In my mind, we should do the right thing by default, and give the >>>>>>> power users the option to opt out, rather than forcing everyone to >>>>>>> become a power user to achieve something as basic as indexed file >>>>>>> access. >>>>>> >>>>>> +1 for this approach >>>>>> >>>>> The right thing to do is not the same in everyone's eyes. >>>> >>>> Folks, >>>> >>>> I'm also against mapserver automatically creating .qix files, for the >>>> reasons >>>> Daniel and others have given. >>>> >>>> I'd add that current shapefile update tools (including he mapscript >>>> shapefile >>>> writing code, Shapelib and OGR) do *not* update .qix files. If secretly >>>> create a .qix file for a shapefile that is being periodically updated >>>> all >>>> hell is likely to break out. >>>> >>>> BTW, .qix files can be *relatively* large. For a shapefile of points, >>>> the >>>> .qix can easily be bigger than the .shx file. >>>> >>>> Best regards, >>>> -- >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From bartvde at osgis.nl Thu May 15 10:15:33 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 15 May 2008 19:15:33 +0200 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C7B4F.2090304@swoodbridge.com> References: <482C3A3A.7070108@neogeo-online.net> <482C442B.6070608@neogeo-online.net> <30fe546d0805150743x3dcfff56o8265f41834c26829@mail.gmail.com> <482C527E.9060003@mapgears.com> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> <482C7B4F.2090304@swoodbridge.com> Message-ID: <482C6FB5.8010507@osgis.nl> Want to toss in my 2 cents as well. I really find it a PITA what can happen if your qix file is out of sync with your shapefile. Very unpredictable things can happen, so I even find this a bigger problem than no qix file at all to be honest. A msDebug for this would be very much welcome. TatukGIS does the same when it opens up a shapefile, it checks if the spatial index is up to date and existing, if not it will update/create it. I think this makes sense, and a compile option would be a reasonable way to control this. A few questions though: 1) how will Mapserver know by default which depth to use for the index? On large point shapefiles the default depth can result in negative performance. 2) currently shp2img does not report any error when it does not have write permission on Linux, but I guess the new approach will first check write permission before doing any analytics? So it might make sense to have a layer setting to overrule the default depth? Or to overrule automatic creation at all for a specific layer? Best regards, Bart Stephen Woodbridge wrote: > Paul, > > I think this is the best option because it gives control to the > package builders and anyone that is a power user. > > I would also like to see msdebug report missing qix files. This is a > valuable tuning tools for power users. > > Thanks, > -Steve > > Paul Ramsey wrote: >> I have another "third way" option, which would be a compile-time >> directive (--with-auto-qix) so that packagers can make dummy-friendly >> builds if they so desire. >> >> ?? >> >> P >> >> On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna >> wrote: >>> My vote is for Paul's default qix creation option, by MapServer. >>> Let's make >>> life easy for those beginner Windows users. >>> >>> -jeff >>> >>> >>> >>> >>> >>> On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: >>> >>>> Daniel Morissette wrote: >>>>> Guillaume Sueur wrote: >>>>>>> In my mind, we should do the right thing by default, and give the >>>>>>> power users the option to opt out, rather than forcing everyone to >>>>>>> become a power user to achieve something as basic as indexed file >>>>>>> access. >>>>>> +1 for this approach >>>>>> >>>>> The right thing to do is not the same in everyone's eyes. >>>> Folks, >>>> >>>> I'm also against mapserver automatically creating .qix files, for the >>>> reasons >>>> Daniel and others have given. >>>> >>>> I'd add that current shapefile update tools (including he mapscript >>>> shapefile >>>> writing code, Shapelib and OGR) do *not* update .qix files. If >>>> secretly >>>> create a .qix file for a shapefile that is being periodically >>>> updated all >>>> hell is likely to break out. >>>> >>>> BTW, .qix files can be *relatively* large. For a shapefile of >>>> points, the >>>> .qix can easily be bigger than the .shx file. >>>> >>>> Best regards, >>>> -- >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From pramsey at cleverelephant.ca Thu May 15 10:19:41 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 15 May 2008 10:19:41 -0700 Subject: [mapserver-users] testing mapserver large files rendering improvements In-Reply-To: <482C6FB5.8010507@osgis.nl> References: <482C3A3A.7070108@neogeo-online.net> <482C6318.8070601@swoodbridge.com> <30fe546d0805150846v31e63a7cx1f00c258e45de65f@mail.gmail.com> <482C5C5D.5060408@neogeo-online.net> <482C5DE0.50508@mapgears.com> <482C5FD6.6010302@pobox.com> <50C7D09E-F4D8-450A-98EC-33B7FDA176FE@gmail.com> <30fe546d0805150931n392d8022o91ff1a356748da5@mail.gmail.com> <482C7B4F.2090304@swoodbridge.com> <482C6FB5.8010507@osgis.nl> Message-ID: <30fe546d0805151019x1863c945y6b4073fd4dd1b5b8@mail.gmail.com> On Thu, May 15, 2008 at 10:15 AM, Bart van den Eijnden (OSGIS) wrote: > 1) how will Mapserver know by default which depth to use for the index? On > large point shapefiles the default depth can result in negative performance. This says to me the heuristic needs to be smarter. I was just wondering that, when Frank said that the QIX can be larger than the SHP for points... that is not a given, perhaps the tree building code needs to be a little smarter > 2) currently shp2img does not report any error when it does not have write > permission on Linux, but I guess the new approach will first check write > permission before doing any analytics? shptree you mean? right, this will have to check first. > So it might make sense to have a layer setting to overrule the default > depth? Or to overrule automatic creation at all for a specific layer? if this option is enabled at compile time, the ability to shut it off in the map file will also be enabled. > Best regards, > Bart > > Stephen Woodbridge wrote: >> >> Paul, >> >> I think this is the best option because it gives control to the package >> builders and anyone that is a power user. >> >> I would also like to see msdebug report missing qix files. This is a >> valuable tuning tools for power users. >> >> Thanks, >> -Steve >> >> Paul Ramsey wrote: >>> >>> I have another "third way" option, which would be a compile-time >>> directive (--with-auto-qix) so that packagers can make dummy-friendly >>> builds if they so desire. >>> >>> ?? >>> >>> P >>> >>> On Thu, May 15, 2008 at 9:25 AM, Jeff McKenna >>> wrote: >>>> >>>> My vote is for Paul's default qix creation option, by MapServer. Let's >>>> make >>>> life easy for those beginner Windows users. >>>> >>>> -jeff >>>> >>>> >>>> >>>> >>>> >>>> On 15-May-08, at 12:07 PM, Frank Warmerdam wrote: >>>> >>>>> Daniel Morissette wrote: >>>>>> >>>>>> Guillaume Sueur wrote: >>>>>>>> >>>>>>>> In my mind, we should do the right thing by default, and give the >>>>>>>> power users the option to opt out, rather than forcing everyone to >>>>>>>> become a power user to achieve something as basic as indexed file >>>>>>>> access. >>>>>>> >>>>>>> +1 for this approach >>>>>>> >>>>>> The right thing to do is not the same in everyone's eyes. >>>>> >>>>> Folks, >>>>> >>>>> I'm also against mapserver automatically creating .qix files, for the >>>>> reasons >>>>> Daniel and others have given. >>>>> >>>>> I'd add that current shapefile update tools (including he mapscript >>>>> shapefile >>>>> writing code, Shapelib and OGR) do *not* update .qix files. If >>>>> secretly >>>>> create a .qix file for a shapefile that is being periodically updated >>>>> all >>>>> hell is likely to break out. >>>>> >>>>> BTW, .qix files can be *relatively* large. For a shapefile of points, >>>>> the >>>>> .qix can easily be bigger than the .shx file. >>>>> >>>>> Best regards, >>>>> -- >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > From pianosnake at gmail.com Thu May 15 10:57:04 2008 From: pianosnake at gmail.com (Florin A.) Date: Thu, 15 May 2008 11:57:04 -0600 Subject: [mapserver-users] color coding In-Reply-To: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> References: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> Message-ID: <1d674ec80805151057w55147fa6rdb37826645f23da2@mail.gmail.com> If your layer was raster, then you could use the COLORRANGE attribute to automatically assign a ramp of colors between a low value and a high value. See http://mapserver.gis.umn.edu/development/rfc/ms-rfc-6 On Wed, May 14, 2008 at 1:49 PM, Kevin Edmundson wrote: > I have a layer that I want to color code the features for a specific field. > > Is there a way in mapserver to have it automatically color all unique > values, or do I specifically have to identify the unique value/color > combinations myself in class items? From group.ritesh at gmail.com Thu May 15 12:16:50 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Thu, 15 May 2008 12:16:50 -0700 (PDT) Subject: [MAPSERVER-USERS] color coding In-Reply-To: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> References: <9B9853206D050B49A154B0580DBF5AF906C85E@teutons2.indnpls.in.wthengineering.com> Message-ID: <17260414.post@talk.nabble.com> Dear Kevin, Shortcuts are never good. You should write everything by yourself in the mapfile. Still, if you want to give a try, follow this shortcut. Install http://www.qgis.org/ QGIS (Freely available). Also, install http://www.python.org python (Freely available) Now, you can use QGIS as a desktop software where you can add multiple shapefiles, and play with them by giving required color combo's. Once you are satisfied with the color codes etc, you can EXPORT the rendered map into .map file format. Use this map file for rendering maps. That's all ! [I don't advice to use this way to generate map files] Regards, Ritesh Kevin Edmundson wrote: > > I have a layer that I want to color code the features for a specific > field. > > > > Is there a way in mapserver to have it automatically color all unique > values, or do I specifically have to identify the unique value/color > combinations myself in class items? > > > > Kevin Edmundson > > CIO > > WTH Technology, Inc > > 567 W Westfield Blvd > > Indianapolis, IN 46208 > > 317.259.0105 office > > 317.259.1423 fax > > 317.501.8560 mobile > > kevin.edmundson at wthtechnology.com > > > > NOTICE: This message is from the technology firm WTH Technology, Inc. > This message is intended only for the individual or entity to which it > is directed. If you are not the addressee, or if this message has been > addressed to you in error, you are not authorized to use, read, copy or > distribute this message and any attachments, and we ask that you please > immediately delete this message and attachments (including all copies), > and notify the sender by return e-mail so that our records can be > corrected. All personal messages express views only of the sender, which > are not to be attributed to WTH Technology, Inc, and may not be > distributed or copied without this statement. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/color-coding-tp17239428p17260414.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nipapada at gmail.com Thu May 15 13:47:31 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Thu, 15 May 2008 23:47:31 +0300 Subject: [mapserver-users] msLoadMap() Unable to access file Message-ID: <482CA163.3050704@gmail.com> Hello. I try to run an example i found in B. Kropla's book (Beginning MapServer - Open Source GIS Development) in windows XP. I create a hello.html template which is placed in htdocs folder of the Apache server. Also, hello.map is placed in htdocs folder as well. The contents of hello.html are: MapServer Hello World
The conents of hello.map are: #This is our "Hello World" mapfile NAME "Hello_world" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "c:\ms4w\Apache\htdocs\hello.html" IMAGEPATH "c:\ms4w\Apache\htdocs\tmp\" IMAGEURL "\tmp\" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END When i click on "Click me" button i get the message msLoadMap() Unable to access file hello.map. Furthemore,when i move hello.map in cgi-bin folder of the Apache server and change the corresponding line in hello.html to i get the message loadWeb(): Unknown identifier. Parsing error near (C):(line 1) Furthemore,when i open hello.html instead of getting just the click-me button i get the following: \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \par \par } I have read other mail on the same problem but i could not figure it out. Thank you. Nikos Papadakis Department of Computer & Communications Engineering Univercity of Thessaly. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From notice at davidbianco.net Thu May 15 14:22:45 2008 From: notice at davidbianco.net (TallDave) Date: Thu, 15 May 2008 14:22:45 -0700 (PDT) Subject: [MAPSERVER-USERS] GD 2.0.35 installed but not found Message-ID: <17262832.post@talk.nabble.com> First time mapserver install. Below is my config script and output. Any insight into why libgd is not working out here? I am running this on Solaris 9. As you can see libgd.so definitely exists in the required directory and it has no problem accessing jpeg, freetype, png, iconv. Thanks! Dave unix:mapserver-5.0.2> cat conf_mapserv.sh # MapServer configure command # May 2 2008 ./configure --with-debug \ --with-freetype \ --with-zlib \ --with-png \ --with-jpeg \ --with-libiconv \ --with-gd=/usr/local/lib \ --with-proj \ --with-threads \ --with-ogr \ --with-gdal \ --with-tiff \ --with-oraclespatial \ --with-wfs \ --with-wcs \ --with-wfsclient \ --with-wmsclient \ --with-curl-config \ --with-warnings \ --enable-debug unix:mapserver-5.0.2> cat install_mapserver.log checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... yes checking for vsnprintf... yes MapServer Version from mapserver.h: '5.0.2' configure: checking where FreeType 2.x is installed... checking for freetype-config... /usr/local/bin/freetype-config using libfreetype from -L/usr/local/lib -R/usr/local/lib -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... using libXpm from -L/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... yes using libiconv from -L -liconv libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). unix:mapserver-5.0.2> ls -l /usr/local/lib/libgd.* -rw-r--r-- 1 root other 806416 May 2 14:33 /usr/local/lib/libgd.a -rwxr-xr-x 1 root other 1055 May 2 14:33 /usr/local/lib/libgd.la* lrwxrwxrwx 1 root other 14 May 2 14:33 /usr/local/lib/libgd.so -> libgd.so.2.0.0* lrwxrwxrwx 1 root other 14 May 2 14:33 /usr/local/lib/libgd.so.2 -> libgd.so.2.0.0* -rwxr-xr-x 1 root other 815700 May 2 14:33 /usr/local/lib/libgd.so.2.0.0* unix:mapserver-5.0.2> grep VERSION /usr/local/include/gd.h #define GD_MAJOR_VERSION 2 #define GD_MINOR_VERSION 0 #define GD_RELEASE_VERSION 35 #define GD_EXTRA_VERSION "" #define GD_VERSION_STRING "2.0.35" -- View this message in context: http://www.nabble.com/GD-2.0.35-installed-but-not-found-tp17262832p17262832.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jeffmckenna at gmail.com Thu May 15 14:55:18 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Thu, 15 May 2008 17:55:18 -0400 Subject: [mapserver-users] msLoadMap() Unable to access file In-Reply-To: <482CA163.3050704@gmail.com> References: <482CA163.3050704@gmail.com> Message-ID: Hello, There were changes in MapServer 5.0 in the way CGI variables are passed...so you might try to replace that "map_web_imagepath" line in your hello.html with something like: -jeff On 15-May-08, at 4:47 PM, ????? ????????? wrote: > Hello. > > I try to run an example i found in B. Kropla's book (Beginning > MapServer - Open Source GIS Development) in windows XP. > I create a hello.html template which is placed in htdocs folder of > the Apache server. > Also, hello.map is placed in htdocs folder as well. > The contents of hello.html are: > > > MapServer Hello World > >
> > value="hello.map"> > name="map_web_imagepath" value="c:\ms4w\Apache\htdocs\tmp\"> >
> > > > > The conents of hello.map are: > > #This is our "Hello World" mapfile > NAME "Hello_world" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > WEB > TEMPLATE "c:\ms4w\Apache\htdocs\hello.html" > IMAGEPATH "c:\ms4w\Apache\htdocs\tmp\" > IMAGEURL "\tmp\" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END > > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > > > When i click on "Click me" button i get the message msLoadMap() > Unable to access file hello.map. > Furthemore,when i move hello.map in cgi-bin folder of the Apache > server and change the corresponding line in hello.html > to > i get the message > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > > > Furthemore,when i open hello.html instead of getting just the click- > me button i get the following: > > > > \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par > \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 > \par \lang1033\f1 \lang1032\f0 <[img].html>\par \par \par } > > > I have read other mail on the same problem but i could not figure it > out. > Thank you. > > Nikos Papadakis > Department of Computer & Communications Engineering > Univercity of Thessaly. > > > > From fsalas at geocuba.co.cu Thu May 15 16:17:11 2008 From: fsalas at geocuba.co.cu (Francisco) Date: Thu, 15 May 2008 18:17:11 -0500 Subject: [mapserver-users] about PHP and HTML Message-ID: <002d01c8b6e1$e3a16080$ce01030a@deltha> Hello, It is possible to execute one function PHP using a button object in one form for example function showmy() { echo "Hello" } .. Salas ___________________________________ Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 691841 Definition date: 2008/05/15 MDAV version: 2.2.9 Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Thu May 15 16:03:13 2008 From: punk.kish at gmail.com (P Kishor) Date: Thu, 15 May 2008 19:03:13 -0400 Subject: [mapserver-users] about PHP and HTML In-Reply-To: <002d01c8b6e1$e3a16080$ce01030a@deltha> References: <002d01c8b6e1$e3a16080$ce01030a@deltha> Message-ID: On 5/15/08, Francisco wrote: > > > > > Hello, > > It is possible to execute one function PHP using a button object in one form > > for example > > function showmy() > > { > > echo "Hello" > > } > > .. > > > > onClick="showmy()"; > > > > Salas > you are confusing server-side PHP with client-side JavaScript. You can certainly execute a JavaScript function called showmy() on clicking an HTML form button, but to execute a sever-side PHP script, you have to send the web page back to the server. Look up a basic tutorial on server-side vs. client-side scripting for further help. From group.ritesh at gmail.com Thu May 15 16:38:47 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Thu, 15 May 2008 16:38:47 -0700 (PDT) Subject: [MAPSERVER-USERS] Routing Algorithm Confusion ! Message-ID: <17264809.post@talk.nabble.com> Dear Readers, I use Dijkstra's shortest path algorithm for route computation. I am satisfied with the accurate result it gives. Still, I feel for road segments ~ 200Million, the route computation will take a lot of time. So, is there another algorithms exist as best practices for route computation(like A*,TSP,etc)? Or, geeks write their own algorithm for route computation? Thanks and Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17264809.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Michelle.Douville at gov.bc.ca Thu May 15 16:41:44 2008 From: Michelle.Douville at gov.bc.ca (Myopic) Date: Thu, 15 May 2008 16:41:44 -0700 (PDT) Subject: [MAPSERVER-USERS] instantclient-basic-win32-11.1.0.6.0 and MS4W 2.2.7 Message-ID: <17264849.post@talk.nabble.com> Has anyone had problems or tried to get Oracle Spatial to work with MS4W 2.2.7 with instantclient-basic-win32-11.1.0.6.0? When I replace the dlls as per the readme.. http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html I get the the following error when I do the "ogrinfo --formats" command: "The procedure entry point OCICollTRIM could not be located in the dynamic link library oci.dll" Which oracle client should I be using? Many thanks! (I apologize for the double post..) -- View this message in context: http://www.nabble.com/instantclient-basic-win32-11.1.0.6.0-and-MS4W-2.2.7-tp17264849p17264849.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ivan.lucena at pmldnet.com Thu May 15 16:58:07 2008 From: ivan.lucena at pmldnet.com (Lucena, Ivan) Date: Thu, 15 May 2008 19:58:07 -0400 Subject: [MAPSERVER-USERS] instantclient-basic-win32-11.1.0.6.0 and MS4W 2.2.7 In-Reply-To: <17264849.post@talk.nabble.com> References: <17264849.post@talk.nabble.com> Message-ID: <482CCE0F.8040309@pmldnet.com> What is Oracle version you have? Is it 11.1.0.6.0? I guess that function was deprecated. Take a look at: http://www.gdal.org/ogr/drv_oci.html and http://download.osgeo.org/gdal/win32/1.5/ that is what you find on the OCI zip README.TXT: OGR 1.5 Oracle Plugin ===================== Install ------- Unzip on top of the gdalwin32exe15x package. It will put the plugin in gdalwin32-1.5\bin\gdalplugins. If you don't already have Oracle 10.2 OCI libraries available, you will need to download the Oracle 10.2 Instant Client (you will need an OTN login): http://download-uk.oracle.com/otn/nt/instantclient/instantclient-basiclite-win32-10.2.0.3-20061115.zip The Oracle DLLs can be placed in gdalwin32-1.5\bin or anywhere else in the path. If all this is successful "ogrinfo --formats" should list the OCI driver. Good Luck. Myopic wrote: > Has anyone had problems or tried to get Oracle Spatial to work with MS4W > 2.2.7 with > instantclient-basic-win32-11.1.0.6.0? > When I replace the dlls as per the readme.. > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html > I get the the following error when I do the "ogrinfo --formats" command: > "The procedure entry point OCICollTRIM could not be located in the dynamic > link library oci.dll" > > Which oracle client should I be using? > Many thanks! > (I apologize for the double post..) From sandeepkumar.jakkaraju at gmail.com Thu May 15 21:33:09 2008 From: sandeepkumar.jakkaraju at gmail.com (Sandeep Kumar Jakkaraju) Date: Fri, 16 May 2008 10:03:09 +0530 Subject: [MAPSERVER-USERS] Routing Algorithm Confusion ! In-Reply-To: <17264809.post@talk.nabble.com> References: <17264809.post@talk.nabble.com> Message-ID: I guess there are several research papers on fast/quick routing on road networks ... most of them modify dijkstra's ... there are citations on *parallel* dijkstra's if you want to scale ..to large number of nodes ................... Thanks Sandeep On Fri, May 16, 2008 at 5:08 AM, Ritesh Ambastha wrote: > > Dear Readers, > > I use Dijkstra's shortest path algorithm for route computation. I am > satisfied with the accurate result it gives. Still, I feel for road > segments > ~ 200Million, the route computation will take a lot of time. So, is there > another algorithms exist as best practices for route computation(like > A*,TSP,etc)? Or, geeks write their own algorithm for route computation? > > Thanks and Regards, > Ritesh Ambastha > -- > View this message in context: > http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17264809.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Thanks Regards Sandeep Kumar Jakkaraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at grid.unep.ch Thu May 15 22:30:43 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 16 May 2008 07:30:43 +0200 Subject: [mapserver-users] queryByPoint still valid? In-Reply-To: <82CD7DC9-61A6-4DC7-BE48-FD9B9E736A62@GRID.UNEP.CH> References: <82CD7DC9-61A6-4DC7-BE48-FD9B9E736A62@GRID.UNEP.CH> Message-ID: <579C0CA1-FE9D-4387-9778-912592E81EF7@grid.unep.ch> > hmm... I changed a couple of things in my application: new template > engine; moved from PHP4 to PHP5; and from mapserver 4.x to mapserver > 5.x > > Now, the "identify" feature (click on a country and give me some > info about it), has problems.... > > Is anything wrong with these lines? > > > //Query the Map at the point clicked > if (!$imgbox) > $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); > else > $a = $map -> queryByRect($click_rt); Could anyone give me a hint what would be wrong with these lines? It seems that mapserver doesn't like it. But it doesn't spit out any error message. It just stops working... And after the doc, these commands should be quite alright. Thanks a lot, Stef From gma.sigis at gmail.com Fri May 16 00:20:31 2008 From: gma.sigis at gmail.com (=?ISO-8859-1?Q?Gregorio_Mu=F1oz_Avila?=) Date: Fri, 16 May 2008 09:20:31 +0200 Subject: [mapserver-users] ECW with Debian 4 Message-ID: <464d72390805160020s2a6b2df5h835f4c4d26701b8f@mail.gmail.com> Hello, I am trying to install MapServer with Debian 4, but I can not read files ECW. I have read on the Internet that GDAL does not support this format for my system. What would I do that to support MapServer with ECW Debian? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From diegoguidi at gmail.com Fri May 16 00:43:29 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Fri, 16 May 2008 09:43:29 +0200 Subject: [mapserver-users] Say goodbye to 900913 In-Reply-To: References: Message-ID: http://www.iter.dk/post/2008/05/SphericalWeb-Mercator-EPSG-code-3785.aspx -- Diego Guidi From guillaume.sueur at neogeo-online.net Fri May 16 01:10:07 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 16 May 2008 10:10:07 +0200 Subject: [mapserver-users] ECW with Debian 4 In-Reply-To: <464d72390805160020s2a6b2df5h835f4c4d26701b8f@mail.gmail.com> References: <464d72390805160020s2a6b2df5h835f4c4d26701b8f@mail.gmail.com> Message-ID: <482D415F.2040308@neogeo-online.net> Hol? Gregorio, you have to download the ECW driver from erMapper web site : http://www.ermapper.com/download_files/ImageCompressionSDKSourceCode3.3Setup_20070509.zip Note that this plugin is not free so read carefully the licence terms. then : unzip ImageCompressionSDKSourceCode3.3Setup_20070509.zip cd libecwj2-3.3 ./configure make make install and then ./configure gdal with -?with-ecw=yes It works fine with Debian Etch. Good luck Guillaume Gregorio Mu?oz Avila a ?crit : > Hello, > > I am trying to install MapServer with Debian 4, but I can not read files > ECW. I have read on the Internet that GDAL does not support this format > for my system. What would I do that to support MapServer with ECW Debian? > > Thank you. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From group.ritesh at gmail.com Fri May 16 01:34:23 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Fri, 16 May 2008 01:34:23 -0700 (PDT) Subject: [MAPSERVER-USERS] Routing Algorithm Confusion ! In-Reply-To: References: <17264809.post@talk.nabble.com> Message-ID: <17270028.post@talk.nabble.com> Thanks Sandeep, Yeah I know that there are few algorithms exist to solve this case. Please let me know few names(links) of good algorithms which are followed to solve this problem Regards, Ritesh jssandeep wrote: > > I guess there are several research papers on fast/quick routing on road > networks ... most of them modify dijkstra's ... > there are citations on *parallel* dijkstra's if you want to scale ..to > large > number of nodes ................... > > Thanks > Sandeep > > > On Fri, May 16, 2008 at 5:08 AM, Ritesh Ambastha > wrote: > >> >> Dear Readers, >> >> I use Dijkstra's shortest path algorithm for route computation. I am >> satisfied with the accurate result it gives. Still, I feel for road >> segments >> ~ 200Million, the route computation will take a lot of time. So, is there >> another algorithms exist as best practices for route computation(like >> A*,TSP,etc)? Or, geeks write their own algorithm for route computation? >> >> Thanks and Regards, >> Ritesh Ambastha >> -- >> View this message in context: >> http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17264809.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > Thanks > Regards > > Sandeep Kumar Jakkaraju > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17270028.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dominik.schmid at ilu.ch Fri May 16 03:31:29 2008 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Fri, 16 May 2008 12:31:29 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 In-Reply-To: <482C6308.5030605@neogeo-online.net> References: <482C6202.80802@ilu.ch> <482C6308.5030605@neogeo-online.net> Message-ID: <482D6281.2010502@ilu.ch> Hi Guillaume thanks for the advice, somehow I hadn't tried that combination. I'm still not sure if AGG is going to work at all but at least Mapserver compiled. In the next attempt I added some more options (--with-proj, --with-geos etc., as per instructions on http://www.darandandunguen.org/2008/02/01/como-instalacion-de-mapserver-5-con-postgis-en-rhel5howto-mapserver-5-and-postgis-in-rhel5/ about 3/4 down the page) and now configure chokes on OGR. I get the following error: configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... configure: error: OGC WFS Server support cannot be enabled: missing OGR which is required). Checking the gdal config: # /usr/bin/gdal-config --ogr-enabled yes Looking for the GDAL files: # ls /usr/lib | grep -i gdal libgdal.a libgdal.la libgdal.so libgdal.so.1 libgdal.so.1.11.0 # ls /usr/bin/ | grep -i gdal gdal2xyz.py gdaladdo gdalchksum.py gdal-config gdal_contour gdalimport.py gdalinfo gdal_merge.py gdal_rasterize gdaltindex gdal_translate gdalwarp # ls /usr/include/gdal | grep -i gdal gdal_alg.h gdal_frmts.h gdal.h gdaljp2metadata.h gdal_pam.h gdal_priv.h gdal_rat.h gdal_version.h gdalwarper.h So GDAL seems to be installed properly. Where else could the problem be located? Thanks for any insight Dominik Guillaume Sueur schrieb: > try > --with-freetype=/usr/bin > and > --with-agg=/path/to/agg/build/dir > > Guillaume > > Dominik Schmid a ?crit : >> We've finally decided to move forward and replace our ageing Mapserver >> 4.0.1 installation with the latest and greatest version. >> >> I came as far as thinking that the AGG make was successfull, but when >> I try to configure Mapserver ("/.configure -with-agg >> --with-freetype") I get the following error: >> >> configure: error: freetype required for agg support - please configure >> --with-freetype >> >> I did include some directories with both options with the same result. >> I'm not sure where AGG is exactly installed (directly in "agg-2.x" or >> in a subdirectory in there) nor which freetype directory to use >> located (the libfreetype.* files are in "/usr/lib" but freetype-config >> is in "/usr/bin"). >> >> When I check in yum I see that freetype 2.1.9 is in fact installed. >> One problem I see is with AGG, I can't get it through Centos 4 >> repositories so I guess need to compile it myself. I've tried various >> instructions: >> - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's >> still valid info) >> - Rich Fromm's instructions posted on this list on Nov 27, 2007 >> >> The instruction in ticket 2215 don't result in the promised >> agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. >> Rich's instructions for build AGG (". autogen.sh") exits with the >> following error: >> ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' >> ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' >> >> I'm kind of lost with this, so I'm turning to this list for help. >> Documentation for installing Mapserver 5 with AGG support seems scarce. >> >> Here's some more system info: >> >> - Centos 4.4 >> - Apache 2.0.52 >> - PHP 5.1.6 >> - pgsql 8.1.8 >> - freetype and freetype-devel 2.1.9 >> ... I can give more specs if needed. >> >> Any help is greatly appreciated >> Dominik > > > -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From yjacolin at free.fr Fri May 16 04:00:19 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Fri, 16 May 2008 13:00:19 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 In-Reply-To: <482D6281.2010502@ilu.ch> References: <482C6202.80802@ilu.ch> <482C6308.5030605@neogeo-online.net> <482D6281.2010502@ilu.ch> Message-ID: <200805161300.20148.yjacolin@free.fr> Hi Dominik, You can try to run ldconfig to update your lib system database, and/or to add --with-ogr parameter to ./configure (but it seems already done) Y. Le Friday 16 May 2008 12:31:29 Dominik Schmid, vous avez ?crit?: > Hi Guillaume > > thanks for the advice, somehow I hadn't tried that combination. I'm > still not sure if AGG is going to work at all but at least Mapserver > compiled. > > In the next attempt I added some more options (--with-proj, --with-geos > etc., as per instructions on > http://www.darandandunguen.org/2008/02/01/como-instalacion-de-mapserver-5-c >on-postgis-en-rhel5howto-mapserver-5-and-postgis-in-rhel5/ about 3/4 down > the page) and now configure chokes on OGR. I get the following error: > > configure: checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > configure: checking whether we should include WFS Server support... > configure: error: OGC WFS Server support cannot be enabled: missing OGR > which is required). > > Checking the gdal config: > # /usr/bin/gdal-config --ogr-enabled > yes > > Looking for the GDAL files: > # ls /usr/lib | grep -i gdal > libgdal.a > libgdal.la > libgdal.so > libgdal.so.1 > libgdal.so.1.11.0 > # ls /usr/bin/ | grep -i gdal > gdal2xyz.py > gdaladdo > gdalchksum.py > gdal-config > gdal_contour > gdalimport.py > gdalinfo > gdal_merge.py > gdal_rasterize > gdaltindex > gdal_translate > gdalwarp > # ls /usr/include/gdal | grep -i gdal > gdal_alg.h > gdal_frmts.h > gdal.h > gdaljp2metadata.h > gdal_pam.h > gdal_priv.h > gdal_rat.h > gdal_version.h > gdalwarper.h > > So GDAL seems to be installed properly. Where else could the problem be > located? > > Thanks for any insight > Dominik > > Guillaume Sueur schrieb: > > try > > --with-freetype=/usr/bin > > and > > --with-agg=/path/to/agg/build/dir > > > > Guillaume > > > > Dominik Schmid a ?crit : > >> We've finally decided to move forward and replace our ageing Mapserver > >> 4.0.1 installation with the latest and greatest version. > >> > >> I came as far as thinking that the AGG make was successfull, but when > >> I try to configure Mapserver ("/.configure -with-agg > >> --with-freetype") I get the following error: > >> > >> configure: error: freetype required for agg support - please configure > >> --with-freetype > >> > >> I did include some directories with both options with the same result. > >> I'm not sure where AGG is exactly installed (directly in "agg-2.x" or > >> in a subdirectory in there) nor which freetype directory to use > >> located (the libfreetype.* files are in "/usr/lib" but freetype-config > >> is in "/usr/bin"). > >> > >> When I check in yum I see that freetype 2.1.9 is in fact installed. > >> One problem I see is with AGG, I can't get it through Centos 4 > >> repositories so I guess need to compile it myself. I've tried various > >> instructions: > >> - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's > >> still valid info) > >> - Rich Fromm's instructions posted on this list on Nov 27, 2007 > >> > >> The instruction in ticket 2215 don't result in the promised > >> agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. > >> Rich's instructions for build AGG (". autogen.sh") exits with the > >> following error: > >> ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' > >> ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' > >> > >> I'm kind of lost with this, so I'm turning to this list for help. > >> Documentation for installing Mapserver 5 with AGG support seems scarce. > >> > >> Here's some more system info: > >> > >> - Centos 4.4 > >> - Apache 2.0.52 > >> - PHP 5.1.6 > >> - pgsql 8.1.8 > >> - freetype and freetype-devel 2.1.9 > >> ... I can give more specs if needed. > >> > >> Any help is greatly appreciated > >> Dominik -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Fri May 16 04:36:52 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 16 May 2008 13:36:52 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 In-Reply-To: <482D6281.2010502@ilu.ch> References: <482C6202.80802@ilu.ch> <482C6308.5030605@neogeo-online.net> <482D6281.2010502@ilu.ch> Message-ID: <482D71D4.1000208@neogeo-online.net> Yes, as Yves said, please check that you're using the --with-ogr=/usr/bin/gdal-config in your mapserver configure options, check that all needed libraries paths are references in /etc/ld.so.conf run ldconfig and make the build dance again. Good luck ! Dominik Schmid a ?crit : > Hi Guillaume > > thanks for the advice, somehow I hadn't tried that combination. I'm > still not sure if AGG is going to work at all but at least Mapserver > compiled. > > In the next attempt I added some more options (--with-proj, --with-geos > etc., as per instructions on > http://www.darandandunguen.org/2008/02/01/como-instalacion-de-mapserver-5-con-postgis-en-rhel5howto-mapserver-5-and-postgis-in-rhel5/ > about 3/4 down the page) and now configure chokes on OGR. I get the > following error: > > configure: checking whether we should include WMS Server support... > OGC WMS compatibility enabled (-DUSE_WMS_SVR). > configure: checking whether we should include WFS Server support... > configure: error: OGC WFS Server support cannot be enabled: missing OGR > which is required). > > Checking the gdal config: > # /usr/bin/gdal-config --ogr-enabled > yes > > Looking for the GDAL files: > # ls /usr/lib | grep -i gdal > libgdal.a > libgdal.la > libgdal.so > libgdal.so.1 > libgdal.so.1.11.0 > # ls /usr/bin/ | grep -i gdal > gdal2xyz.py > gdaladdo > gdalchksum.py > gdal-config > gdal_contour > gdalimport.py > gdalinfo > gdal_merge.py > gdal_rasterize > gdaltindex > gdal_translate > gdalwarp > # ls /usr/include/gdal | grep -i gdal > gdal_alg.h > gdal_frmts.h > gdal.h > gdaljp2metadata.h > gdal_pam.h > gdal_priv.h > gdal_rat.h > gdal_version.h > gdalwarper.h > > So GDAL seems to be installed properly. Where else could the problem be > located? > > Thanks for any insight > Dominik > > Guillaume Sueur schrieb: >> try >> --with-freetype=/usr/bin >> and >> --with-agg=/path/to/agg/build/dir >> >> Guillaume >> >> Dominik Schmid a ?crit : >>> We've finally decided to move forward and replace our ageing >>> Mapserver 4.0.1 installation with the latest and greatest version. >>> >>> I came as far as thinking that the AGG make was successfull, but when >>> I try to configure Mapserver ("/.configure -with-agg >>> --with-freetype") I get the following error: >>> >>> configure: error: freetype required for agg support - please >>> configure --with-freetype >>> >>> I did include some directories with both options with the same >>> result. I'm not sure where AGG is exactly installed (directly in >>> "agg-2.x" or in a subdirectory in there) nor which freetype directory >>> to use located (the libfreetype.* files are in "/usr/lib" but >>> freetype-config is in "/usr/bin"). >>> >>> When I check in yum I see that freetype 2.1.9 is in fact installed. >>> One problem I see is with AGG, I can't get it through Centos 4 >>> repositories so I guess need to compile it myself. I've tried various >>> instructions: >>> - http://trac.osgeo.org/mapserver/ticket/2215 (not sure if that's >>> still valid info) >>> - Rich Fromm's instructions posted on this list on Nov 27, 2007 >>> >>> The instruction in ticket 2215 don't result in the promised >>> agg_font_freetype.o file, neither in agg-2.4 nor agg-2.5. >>> Rich's instructions for build AGG (". autogen.sh") exits with the >>> following error: >>> ./configure: line 4513: syntax error near unexpected token 'FREETYPE,' >>> ./configure: line 4513: 'PKG_CHECK_MODULES(FREETYPE,' >>> >>> I'm kind of lost with this, so I'm turning to this list for help. >>> Documentation for installing Mapserver 5 with AGG support seems scarce. >>> >>> Here's some more system info: >>> >>> - Centos 4.4 >>> - Apache 2.0.52 >>> - PHP 5.1.6 >>> - pgsql 8.1.8 >>> - freetype and freetype-devel 2.1.9 >>> ... I can give more specs if needed. >>> >>> Any help is greatly appreciated >>> Dominik >> >> >> > > From rwburgholzer at deq.virginia.gov Fri May 16 05:28:52 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Fri, 16 May 2008 08:28:52 -0400 Subject: [mapserver-users] msLoadMap() Unable to access file Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D6C@deqex01.deq.local> The only thing I can see initially, Is tht you may want to change the IMAGEURL slashes in your mapfile to "/tmp/" instead of "\tmp\". Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of nipapada at gmail.com Sent: Thursday, May 15, 2008 4:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] msLoadMap() Unable to access file Hello. I try to run an example i found in B. Kropla's book (Beginning MapServer - Open Source GIS Development) in windows XP. I create a hello.html template which is placed in htdocs folder of the Apache server. Also, hello.map is placed in htdocs folder as well. The contents of hello.html are: MapServer Hello World
The conents of hello.map are: #This is our "Hello World" mapfile NAME "Hello_world" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "c:\ms4w\Apache\htdocs\hello.html" IMAGEPATH "c:\ms4w\Apache\htdocs\tmp\" IMAGEURL "\tmp\" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END When i click on "Click me" button i get the message msLoadMap() Unable to access file hello.map. Furthemore,when i move hello.map in cgi-bin folder of the Apache server and change the corresponding line in hello.html to i get the message loadWeb(): Unknown identifier. Parsing error near (C):(line 1) Furthemore,when i open hello.html instead of getting just the click-me button i get the following: \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \lang1033\f1 \lang1032\f0 \par \par \par } I have read other mail on the same problem but i could not figure it out. Thank you. Nikos Papadakis Department of Computer & Communications Engineering Univercity of Thessaly. -------------- next part -------------- An HTML attachment was scrubbed... URL: From martafuster at gmail.com Fri May 16 05:29:30 2008 From: martafuster at gmail.com (marta fuster) Date: Fri, 16 May 2008 14:29:30 +0200 Subject: [mapserver-users] PHP WMS Client error Message-ID: Dear list, We have a problem with the PHP WMS Client downloaded from http://mapserver.refractions.net/. We have upload that client in our web server and when we try to test it with our wms we get that error: * Fatal error*: Call to undefined function xmldoc() in * /srv/htusers/gis/geoportal/wms_layerframe.php* on line *66 *do you know where is the error? Any Ideas? Thanks! * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri May 16 05:39:58 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 16 May 2008 08:39:58 -0400 Subject: [mapserver-users] queryByPoint still valid? In-Reply-To: <579C0CA1-FE9D-4387-9778-912592E81EF7@grid.unep.ch> References: <82CD7DC9-61A6-4DC7-BE48-FD9B9E736A62@GRID.UNEP.CH> <579C0CA1-FE9D-4387-9778-912592E81EF7@grid.unep.ch> Message-ID: <482D809E.7010509@mapgears.com> Stefan Schwarzer wrote: > > Could anyone give me a hint what would be wrong with these lines? It > seems that mapserver doesn't like it. But it doesn't spit out any error > message. It just stops working... And after the doc, these commands > should be quite alright. > By "stops working", do you mean that it seg faults or that it simply doesn't find any query result? Did you check the Apache error_log file for any hint of the problem (or a confirmation that it seg faults). Also, make sure the files being queried are not corrupt, that the .qix is up to date if there is one, etc. If it seg faults, then you may need to file a ticket with a small testcase to reproduce (mapfile, data, script, url to test, etc.). Daniel -- Daniel Morissette http://www.mapgears.com/ From lxs5945 at gmail.com Fri May 16 06:18:58 2008 From: lxs5945 at gmail.com (lxs5945) Date: Fri, 16 May 2008 21:18:58 +0800 Subject: [mapserver-users] if i develop with mapscript of mapserver , is there anyway to use wms? Message-ID: <200805162118526259633@gmail.com> now i'm developing a program with mapscript of mapserver in c#.net ,is there anyway to use wms so that it can combine with openlayer? 2008-05-16 lxs5945 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Fri May 16 06:20:36 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Fri, 16 May 2008 09:20:36 -0400 Subject: [mapserver-users] using GDAL to display a PNG Raster. Message-ID: <69935d110805160620h16c18b40oe1496ddf7907947d@mail.gmail.com> Hello, I have a PNG that I would like to use as an overlay for a 2x6 set of aerial tiles. I just want to use MINSCALE and MAXSCALE to turn one and the other off and on. That isn't the problem I'm having. I can't get the PNG to display. The file itself is fine, but I can not make a mapfile display the PNG. I have made a new mapfile that I want to just display the PNG first before possibly integrating it into the same mapfile as my tileindex. I know that the PNG is supposed to be georeferenced but I don't know how to create those files so I would like to use GDAL to output the PNG as I hear It will simply apply the extents. Here is what I have: MAP NAME 'overlay' SIZE 800 650 STATUS ON EXTENT 201000.000000 874000.000000 213000.000000 882000.000000 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT OFF IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GDAL/PNG" MIMETYPE "image/png" FORMATOPTION "TARGET=95" IMAGEMODE PC256 END QUERYMAP STATUS ON STYLE SELECTED END WEB INCLUDE "/ms4w/apps/GeoMOOSE/maps_test/web_config.map" END LEGEND STATUS OFF END LAYER NAME "overlay" STATUS DEFAULT TYPE RASTER DATA "overlay.png" #MINSCALE 14000 END END ## end Map Also, the PNG is color. I would like my overlay to certainly be in color. The mapfile and png are in the same dir. From bartvde at osgis.nl Fri May 16 06:31:44 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 16 May 2008 15:31:44 +0200 Subject: [mapserver-users] if i develop with mapscript of mapserver , is there anyway to use wms? In-Reply-To: <200805162118526259633@gmail.com> References: <200805162118526259633@gmail.com> Message-ID: <1cb8029e25b25f8c3a80c62c9026a62e@pop02.backbone.tiscomhosting.nl> Yes, see: http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript Best regards, Bart On Fri, 16 May 2008 21:18:58 +0800, "lxs5945" wrote: > now i'm developing a program with mapscript of mapserver in c#.net ,is > there anyway to use wms so that it can combine with openlayer? > > 2008-05-16 > > > > lxs5945 From David.Fawcett at state.mn.us Fri May 16 06:39:19 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 16 May 2008 08:39:19 -0500 Subject: [mapserver-users] using GDAL to display a PNG Raster. In-Reply-To: <69935d110805160620h16c18b40oe1496ddf7907947d@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD4B@s-sp22.pca.state.mn.us> Nelson, If you know the geographic extent of the image, you could create a world file for it by hand. MapServer should recognize it then. http://en.wikipedia.org/wiki/World_file David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Friday, May 16, 2008 8:21 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] using GDAL to display a PNG Raster. Hello, I have a PNG that I would like to use as an overlay for a 2x6 set of aerial tiles. I just want to use MINSCALE and MAXSCALE to turn one and the other off and on. That isn't the problem I'm having. I can't get the PNG to display. The file itself is fine, but I can not make a mapfile display the PNG. I have made a new mapfile that I want to just display the PNG first before possibly integrating it into the same mapfile as my tileindex. I know that the PNG is supposed to be georeferenced but I don't know how to create those files so I would like to use GDAL to output the PNG as I hear It will simply apply the extents. Here is what I have: MAP NAME 'overlay' SIZE 800 650 STATUS ON EXTENT 201000.000000 874000.000000 213000.000000 882000.000000 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT OFF IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GDAL/PNG" MIMETYPE "image/png" FORMATOPTION "TARGET=95" IMAGEMODE PC256 END QUERYMAP STATUS ON STYLE SELECTED END WEB INCLUDE "/ms4w/apps/GeoMOOSE/maps_test/web_config.map" END LEGEND STATUS OFF END LAYER NAME "overlay" STATUS DEFAULT TYPE RASTER DATA "overlay.png" #MINSCALE 14000 END END ## end Map Also, the PNG is color. I would like my overlay to certainly be in color. The mapfile and png are in the same dir. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dominik.schmid at ilu.ch Fri May 16 07:35:17 2008 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Fri, 16 May 2008 16:35:17 +0200 Subject: [mapserver-users] Trouble compiling 5.0.2 with AGG on Centos 4 In-Reply-To: <482D71D4.1000208@neogeo-online.net> References: <482C6202.80802@ilu.ch> <482C6308.5030605@neogeo-online.net> <482D6281.2010502@ilu.ch> <482D71D4.1000208@neogeo-online.net> Message-ID: <482D9BA5.30903@ilu.ch> Thanks Guillaume and Yves. I figured out now what caused the configure to trip in this case because it tripped over a few more options: I hadn't installed a bunch of *-devel packages on the test server (they were all installed on our live server and that's why I didn't have issues there the last time I tried). This is solved now and I started the make. This, again, threw an error which I strongly suspect could be because our version of GD is not up-to-date. These are the last few output lines of make: include -I/usr/include -I/usr/include/libxml2 -c -o mapagg.o mapagg.cpp mapagg.cpp: In function `agg::rendering_buffer gdImg2AGGRB_BGRA(gdImage*)': mapagg.cpp:201: error: `gdImageGetTrueColorPixel' was not declared in this scope mapagg.cpp:201: warning: unused variable 'gdImageGetTrueColorPixel' make: *** [mapagg.o] Error 1 I'll see if I can get GD properly updated to >=2.0.32 and report back here when that's accomplished. Thanks for your help Dominik Guillaume Sueur schrieb: > Yes, as Yves said, please check that you're using the > --with-ogr=/usr/bin/gdal-config in your mapserver configure options, > check that all needed libraries paths are references in /etc/ld.so.conf > run ldconfig > and make the build dance again. > > Good luck ! > -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From alim.karim at gmail.com Fri May 16 08:14:47 2008 From: alim.karim at gmail.com (alim karim) Date: Fri, 16 May 2008 08:14:47 -0700 Subject: [MAPSERVER-USERS] GD 2.0.35 installed but not found In-Reply-To: <17262832.post@talk.nabble.com> References: <17262832.post@talk.nabble.com> Message-ID: dave, i got this error just yesterday. the configure worked for me after re-installing gd with fontconfig support (this was on a gentoo machine) if you notice, the output just before configure bails is - checking for gdFontCacheSetup in -lgd... no configure.log might be able to give you more ideas as well. i'd try the fontconfig support first. ak On 5/15/08, TallDave wrote: > > > First time mapserver install. Below is my config script and output. Any > insight into why libgd is not working out here? I am running this on > Solaris 9. As you can see libgd.so definitely exists in the required > directory and it has no problem accessing jpeg, freetype, png, iconv. > > Thanks! > Dave > > unix:mapserver-5.0.2> cat conf_mapserv.sh > # MapServer configure command > # May 2 2008 > > ./configure --with-debug \ > --with-freetype \ > --with-zlib \ > --with-png \ > --with-jpeg \ > --with-libiconv \ > --with-gd=/usr/local/lib \ > --with-proj \ > --with-threads \ > --with-ogr \ > --with-gdal \ > --with-tiff \ > --with-oraclespatial \ > --with-wfs \ > --with-wcs \ > --with-wfsclient \ > --with-wmsclient \ > --with-curl-config \ > --with-warnings \ > --enable-debug > > > > unix:mapserver-5.0.2> cat install_mapserver.log > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking for ranlib... ranlib > checking for flex... flex > checking for yywrap in -lfl... yes > checking lex output file root... lex.yy > checking whether yytext is a pointer... yes > checking for bison... bison -y > checking if compiler supports -R... yes > checking for exp in -lm... yes > checking for __gxx_personality_v0 in -lstdc++... yes > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for strcasecmp... yes > checking for strncasecmp... yes > checking for strdup... yes > checking for strlcat... yes > checking for vsnprintf... yes > MapServer Version from mapserver.h: '5.0.2' > configure: checking where FreeType 2.x is installed... > checking for freetype-config... /usr/local/bin/freetype-config > using libfreetype from -L/usr/local/lib -R/usr/local/lib -lfreetype > -lz > checking for FT_Init_FreeType in -lfreetype... yes > using libfreetype -lfreetype from system libs. > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... yes > using libz from system libs (-DUSE_ZLIB). > configure: checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > configure: checking whether we should include JPEG support... > checking for jpeg_read_header in -ljpeg... yes > using libjpeg from system libs. > configure: checking where libXpm is installed... > using libXpm from -L/lib -lXpm -lX11 > configure: checking where libiconv is installed... > checking for iconv_open in -lc... yes > checking for libiconv_open in -liconv... yes > using libiconv from -L -liconv > libiconv found. Enabling internationalization (-DUSE_ICONV) > configure: checking for GD 2.0.16 or higher... > checking for gdFontCacheSetup in -lgd... no > configure: checking whether GD needs libiconv... > checking for gdFontCacheSetup in -lgd... no > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local/lib. > Make sure GD 2.0.16 or higher is compiled before calling configure. You may > also get this error if you didn't specify the appropriate location for one > of GD's dependencies (freetype, libpng, libjpeg or libiconv). > > unix:mapserver-5.0.2> ls -l /usr/local/lib/libgd.* > -rw-r--r-- 1 root other 806416 May 2 14:33 > /usr/local/lib/libgd.a > -rwxr-xr-x 1 root other 1055 May 2 14:33 > /usr/local/lib/libgd.la* > lrwxrwxrwx 1 root other 14 May 2 14:33 > /usr/local/lib/libgd.so -> libgd.so.2.0.0* > lrwxrwxrwx 1 root other 14 May 2 14:33 > /usr/local/lib/libgd.so.2 -> libgd.so.2.0.0* > -rwxr-xr-x 1 root other 815700 May 2 14:33 > /usr/local/lib/libgd.so.2.0.0* > > unix:mapserver-5.0.2> grep VERSION /usr/local/include/gd.h > #define GD_MAJOR_VERSION 2 > #define GD_MINOR_VERSION 0 > #define GD_RELEASE_VERSION 35 > #define GD_EXTRA_VERSION "" > #define GD_VERSION_STRING "2.0.35" > > > -- > View this message in context: > http://www.nabble.com/GD-2.0.35-installed-but-not-found-tp17262832p17262832.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From notice at davidbianco.net Fri May 16 10:24:11 2008 From: notice at davidbianco.net (TallDave) Date: Fri, 16 May 2008 10:24:11 -0700 (PDT) Subject: [MAPSERVER-USERS] GD 2.0.35 installed but not found In-Reply-To: References: <17262832.post@talk.nabble.com> Message-ID: <17280064.post@talk.nabble.com> alim, Unfortunately, I dont have root access to the machine, so someone else has to do the lib installs. GD 2.0.35 was already on the machine, so we left it at that. When I list the gd libs it shows fontconfig as already available. unix:/home> gdlib-config --libs -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm -liconv Here is an error grep of my mapserver config.log: ======================================== unix:mapserver-5.0.2> grep -i erro config.log conftest.c:2: error: parse error before "me" conftest.cc:13: error: `exit' undeclared (first use this function) conftest.cc:13: error: (Each undeclared identifier is reported only once for xmlCtxtGetLastError /opt/local/lib/libfontconfig.so.1 ld: fatal: Symbol referencing errors. No output written to conftest | /* Override any gcc2 internal prototype to avoid an error. */ xmlCtxtGetLastError /opt/local/lib/libfontconfig.so.1 ld: fatal: Symbol referencing errors. No output written to conftest | /* Override any gcc2 internal prototype to avoid an error. */ configure:5807: error: Could not find gd.h or libgd.a/libgd.so in /opt/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). ======================================== and more specifically: ----------------------------------- configure:5706: checking whether GD needs libiconv... configure:5708: checking for gdFontCacheSetup in -lgd configure:5738: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -ljpeg -lfreetype -lpng -lz -L/lib -lXpm -lX11 -L/opt/local/lib -L -liconv -lm -lstdc++ >&5 Undefined first referenced symbol in file xmlSAX2GetLineNumber /opt/local/lib/libfontconfig.so.1 xmlCtxtGetLastError /opt/local/lib/libfontconfig.so.1 ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:5744: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | #define YYTEXT_POINTER 1 | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char gdFontCacheSetup (); | int | main () | { | gdFontCacheSetup (); | ; | return 0; | } configure:5769: result: no configure:5807: error: Could not find gd.h or libgd.a/libgd.so in /opt/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). --------------------------------- I'm guessing I need to recompile libfontconfig? Cheers, Dave alim karim wrote: > > dave, > > i got this error just yesterday. > > the configure worked for me after re-installing gd with fontconfig support > (this was on a gentoo machine) > > if you notice, the output just before configure bails is - checking for > gdFontCacheSetup in -lgd... no > > configure.log might be able to give you more ideas as well. i'd try the > fontconfig support first. > > ak > > On 5/15/08, TallDave wrote: >> >> >> First time mapserver install. Below is my config script and output. >> Any >> insight into why libgd is not working out here? I am running this on >> Solaris 9. As you can see libgd.so definitely exists in the required >> directory and it has no problem accessing jpeg, freetype, png, iconv. >> >> Thanks! >> Dave >> >> unix:mapserver-5.0.2> cat conf_mapserv.sh >> # MapServer configure command >> # May 2 2008 >> >> ./configure --with-debug \ >> --with-freetype \ >> --with-zlib \ >> --with-png \ >> --with-jpeg \ >> --with-libiconv \ >> --with-gd=/usr/local/lib \ >> --with-proj \ >> --with-threads \ >> --with-ogr \ >> --with-gdal \ >> --with-tiff \ >> --with-oraclespatial \ >> --with-wfs \ >> --with-wcs \ >> --with-wfsclient \ >> --with-wmsclient \ >> --with-curl-config \ >> --with-warnings \ >> --enable-debug >> >> >> >> unix:mapserver-5.0.2> cat install_mapserver.log >> checking for gcc... gcc >> checking for C compiler default output file name... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C compiler... yes >> checking whether gcc accepts -g... yes >> checking for gcc option to accept ANSI C... none needed >> checking for g++... g++ >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking for ranlib... ranlib >> checking for flex... flex >> checking for yywrap in -lfl... yes >> checking lex output file root... lex.yy >> checking whether yytext is a pointer... yes >> checking for bison... bison -y >> checking if compiler supports -R... yes >> checking for exp in -lm... yes >> checking for __gxx_personality_v0 in -lstdc++... yes >> checking how to run the C preprocessor... gcc -E >> checking for egrep... grep -E >> checking for ANSI C header files... yes >> checking for strcasecmp... yes >> checking for strncasecmp... yes >> checking for strdup... yes >> checking for strlcat... yes >> checking for vsnprintf... yes >> MapServer Version from mapserver.h: '5.0.2' >> configure: checking where FreeType 2.x is installed... >> checking for freetype-config... /usr/local/bin/freetype-config >> using libfreetype from -L/usr/local/lib -R/usr/local/lib >> -lfreetype >> -lz >> checking for FT_Init_FreeType in -lfreetype... yes >> using libfreetype -lfreetype from system libs. >> configure: checking where Zlib is installed... >> checking for zlibVersion in -lz... yes >> using libz from system libs (-DUSE_ZLIB). >> configure: checking where PNG is installed... >> checking for png_init_io in -lpng... yes >> using libpng from system libs. >> configure: checking whether we should include JPEG support... >> checking for jpeg_read_header in -ljpeg... yes >> using libjpeg from system libs. >> configure: checking where libXpm is installed... >> using libXpm from -L/lib -lXpm -lX11 >> configure: checking where libiconv is installed... >> checking for iconv_open in -lc... yes >> checking for libiconv_open in -liconv... yes >> using libiconv from -L -liconv >> libiconv found. Enabling internationalization (-DUSE_ICONV) >> configure: checking for GD 2.0.16 or higher... >> checking for gdFontCacheSetup in -lgd... no >> configure: checking whether GD needs libiconv... >> checking for gdFontCacheSetup in -lgd... no >> configure: error: Could not find gd.h or libgd.a/libgd.so in >> /usr/local/lib. >> Make sure GD 2.0.16 or higher is compiled before calling configure. You >> may >> also get this error if you didn't specify the appropriate location for >> one >> of GD's dependencies (freetype, libpng, libjpeg or libiconv). >> >> unix:mapserver-5.0.2> ls -l /usr/local/lib/libgd.* >> -rw-r--r-- 1 root other 806416 May 2 14:33 >> /usr/local/lib/libgd.a >> -rwxr-xr-x 1 root other 1055 May 2 14:33 >> /usr/local/lib/libgd.la* >> lrwxrwxrwx 1 root other 14 May 2 14:33 >> /usr/local/lib/libgd.so -> libgd.so.2.0.0* >> lrwxrwxrwx 1 root other 14 May 2 14:33 >> /usr/local/lib/libgd.so.2 -> libgd.so.2.0.0* >> -rwxr-xr-x 1 root other 815700 May 2 14:33 >> /usr/local/lib/libgd.so.2.0.0* >> >> unix:mapserver-5.0.2> grep VERSION /usr/local/include/gd.h >> #define GD_MAJOR_VERSION 2 >> #define GD_MINOR_VERSION 0 >> #define GD_RELEASE_VERSION 35 >> #define GD_EXTRA_VERSION "" >> #define GD_VERSION_STRING "2.0.35" >> >> >> -- >> View this message in context: >> http://www.nabble.com/GD-2.0.35-installed-but-not-found-tp17262832p17262832.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/GD-2.0.35-installed-but-not-found-tp17262832p17280064.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tjh at extensys.com Fri May 16 06:15:39 2008 From: tjh at extensys.com (Tom Huras) Date: Fri, 16 May 2008 09:15:39 -0400 Subject: [mapserver-users] COLOR can take an expression? Message-ID: <482D88FB.4080503@extensys.com> I'm learning MapServer so my expectations for what it does may be incorrect. I want to assign a color to some features from a database based on a field. The full range of values is large, so I don't want to code a CLASS for each value. Instead I'd like to use an expression for the color. For example, if the attribute of a feature ranges from 0 to 1000, I'd like to use it to drive a range of the color green: LAYER DATA "the_geom from myFeature" CLASSITEM "col1" TYPE LINE ... CLASS NAME "myFeature" STYLE COLOR 0 ([col1] / 1000 * 255) 0 WIDTH 1 END END END Thanks /tom -- *Tom Huras, P.Eng.* Partner *ExtenSys Inc.* 31 Plymbridge Cresc (416) 481-1546, Mobile (416) 859-1313 North York, Ontario M2P 1P4 Fax (416) 481-6714, Home Fax (416) 516-7438 www.extensys.com tjh at extensys.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Fri May 16 10:47:49 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 16 May 2008 10:47:49 -0700 Subject: [mapserver-users] COLOR can take an expression? In-Reply-To: <482D88FB.4080503@extensys.com> References: <482D88FB.4080503@extensys.com> Message-ID: <30fe546d0805161047h4f702c12kc408fcaeb438cd97@mail.gmail.com> Short answer "no". Your approach is intriguing though :) You'll find that people can only distinguish between about 5 colors reliably anyways, so for practical purposes, a five-class color ramp will do, and is not *that* onerous to build. P. On Fri, May 16, 2008 at 6:15 AM, Tom Huras wrote: > I'm learning MapServer so my expectations for what it does may be incorrect. > > I want to assign a color to some features from a database based on a > field. The full range of values is large, so I don't want to code a CLASS > for each value. Instead I'd like to use an expression for the color. > > For example, if the attribute of a feature ranges from 0 to 1000, I'd like > to use it to drive a range of the color green: > > LAYER > DATA "the_geom from myFeature" > CLASSITEM "col1" > TYPE LINE > ... > CLASS > NAME "myFeature" > STYLE > COLOR 0 ([col1] / 1000 * 255) 0 > WIDTH 1 > END > END > END > > Thanks > > /tom > > -- > Tom Huras, P.Eng. > Partner > > ExtenSys Inc. > 31 Plymbridge Cresc (416) 481-1546, Mobile (416) 859-1313 > North York, Ontario M2P 1P4 Fax (416) 481-6714, Home Fax (416) 516-7438 > www.extensys.com tjh at extensys.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From nipapada at gmail.com Fri May 16 12:46:49 2008 From: nipapada at gmail.com (=?UTF-8?B?zp3Or866zr/PgiDOoM6xz4DOsc60zqzOus63z4I=?=) Date: Fri, 16 May 2008 22:46:49 +0300 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: References: <482CA163.3050704@gmail.com> Message-ID: <482DE4A9.50709@gmail.com> I got over the msLoadMap() problem. but now i get this message : loadWeb(): Unknown identifier. Parsing error near (:):(line 1) I have checked the map file over and over agian but i can't find any error. I quote the contents of map file and html template again. Map file (name : hello.map Location C:/ms4w/Apache/htdocs/hello.map) NAME "Hello_world" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "c:/ms4w/Apache/htdocs/test.html" IMAGEPATH "c:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END HTML Template (name : test.html Location:C:/ms4w/Apache/htdocs/test.html ) O/H Jeff McKenna ??????: > Hello, > > There were changes in MapServer 5.0 in the way CGI variables are > passed...so you might try to replace that "map_web_imagepath" line in > your hello.html with something like: > > > > -jeff > > > > From guillaume.sueur at neogeo-online.net Fri May 16 14:14:56 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 16 May 2008 23:14:56 +0200 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <482DE4A9.50709@gmail.com> References: <482CA163.3050704@gmail.com> <482DE4A9.50709@gmail.com> Message-ID: <482DF950.2010203@neogeo-online.net> Hi, the map file must begin by a MAP statement, which you will END at the end of the file : MAP NAME "Hello_world" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "c:/ms4w/Apache/htdocs/test.html" IMAGEPATH "c:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END Regards, Guillaume ????? ????????? a ?crit : > I got over the msLoadMap() problem. > but now i get this message : loadWeb(): Unknown identifier. Parsing > error near (:):(line 1) > > I have checked the map file over and over agian but i can't find any error. > I quote the contents of map file and html template again. > > > Map file (name : hello.map Location C:/ms4w/Apache/htdocs/hello.map) > > NAME "Hello_world" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > WEB > TEMPLATE "c:/ms4w/Apache/htdocs/test.html" > IMAGEPATH "c:/ms4w/Apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > > > HTML Template (name : test.html Location:C:/ms4w/Apache/htdocs/test.html ) > > > > > > > O/H Jeff McKenna ??????: >> Hello, >> >> There were changes in MapServer 5.0 in the way CGI variables are >> passed...so you might try to replace that "map_web_imagepath" line in >> your hello.html with something like: >> >> >> >> -jeff >> >> >> >> > > > > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- From wendell at enflight.com Fri May 16 14:29:02 2008 From: wendell at enflight.com (Wendell Turner) Date: Fri, 16 May 2008 14:29:02 -0700 Subject: [mapserver-users] can mapserver stitch together maps? Message-ID: <20080516212902.GA20226@q.rho.net> I'm new to mapserver and am wondering if/how it does this: I'm using gdal utilities to split up a GeoTIFF to make tiles of a map, and OpenLayers to display it. That works fine for one map. I have many maps, and the left edge of one is the right edge of the next; also the bottom edge of one is the top edge of another, etc. Q: does mapserver handle this? Is that what the .xml file defines? Is there an example/recipe showing this? Thanks, Wendell From crschmidt at metacarta.com Fri May 16 14:45:02 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 16 May 2008 17:45:02 -0400 Subject: [mapserver-users] can mapserver stitch together maps? In-Reply-To: <20080516212902.GA20226@q.rho.net> References: <20080516212902.GA20226@q.rho.net> Message-ID: <20080516214502.GA12912@metacarta.com> On Fri, May 16, 2008 at 02:29:02PM -0700, Wendell Turner wrote: > I'm using gdal utilities to split up a GeoTIFF to make tiles > of a map, and OpenLayers to display it. That works fine for > one map. I have many maps, and the left edge of one is the > right edge of the next; also the bottom edge of one is the > top edge of another, etc. > > Q: does mapserver handle this? Yes, via tileindexes. > Is that what the .xml file defines? I'm not aware of any .xml files used in MapServer. > Is there an example/recipe showing this? http://mapserver.gis.umn.edu/docs/howto/raster_data/#rasters-and-tile-indexing Regards, -- Christopher Schmidt MetaCarta From gcocks at stoller.com Fri May 16 14:57:31 2008 From: gcocks at stoller.com (Greg Cocks) Date: Fri, 16 May 2008 15:57:31 -0600 Subject: [mapserver-users] Setting up a MAP file to use data on a network share [newbie I guess! :-) ] Message-ID: <66F6CF82BF58CE4DB4285BE816B297E857FC14@tribble.SMStoller.com> Hello List, I am trying to set up a MAP file to use a network share for the files that for various reasons I can?t get into PostgreSQL, etc? i.e., so that we only have one copy of the data being used internally and on the web, etc I proceeded as follows - Using IIS on a Windoze box (yeah, yeah, grin) set up a virtual directory to a network share using a UNC path \\server\directory that I use all the time with ArcGIS, etc ? called it wms_data - Added my credentials in the ?Connect As? in IIS - Used the explore in the IIS MMC and confirmed I could browse the data there - Confirmed that the directories had the relevant web access permissions - Charged the relevant line in my MAP file to ? SHAPEPATH "/wms_data/" - Changed the layer?s data pointer to ? DATA "subdirectory/sameshapefilename" * When I now load the page it says it can?t find the layer?s data! Ugh! * Note that if I use a local (i.e., C:\...\...\) path for the data and in the MAP file it works just fine? Also, want to look at MrSIDs the same way, which again works just fine using a C:\ path? Note that I know enough about IIS to be dangerous! ? Thanks in advance for your help ---------- Regards, GREG COCKS GIS Analyst V gcocks at stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell From mlinden at zeelandnet.nl Fri May 16 15:16:45 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Sat, 17 May 2008 00:16:45 +0200 Subject: [mapserver-users] Setting up a MAP file to use data on a network share [newbie I guess! :-) ] In-Reply-To: <66F6CF82BF58CE4DB4285BE816B297E857FC14@tribble.SMStoller.com> References: <66F6CF82BF58CE4DB4285BE816B297E857FC14@tribble.SMStoller.com> Message-ID: <482E07CD.5080301@zeelandnet.nl> Hello Greg, I think that it is the account that the IIS service runs in that needs to be allowed access to the network share. So either you have to reconfigure the IIS server to run as your user (which brings up a whole new set of trouble :-() or open the share to the local IIS service account. Your trouble is windows only and mainly an authorization issue unrelated to mapserver. See if you can get in touch with a good system Windows administrator to testdrive various settings. If none of this works out, I know of ways to open up postGIS accross the windows network which might be a last resort. Good luck! Milo van der Linden Greg Cocks wrote: > Hello List, > > > I am trying to set up a MAP file to use a network share for the files that for various reasons I can?t get into PostgreSQL, etc? i.e., so that we only have one copy of the data being used internally and on the web, etc > > > I proceeded as follows > > - Using IIS on a Windoze box (yeah, yeah, grin) set up a virtual directory to a network share using a UNC path \\server\directory that I use all the time with ArcGIS, etc ? called it wms_data > > - Added my credentials in the ?Connect As? in IIS > > - Used the explore in the IIS MMC and confirmed I could browse the data there > > - Confirmed that the directories had the relevant web access permissions > > - Charged the relevant line in my MAP file to ? SHAPEPATH "/wms_data/" > > - Changed the layer?s data pointer to ? DATA "subdirectory/sameshapefilename" > > > * When I now load the page it says it can?t find the layer?s data! Ugh! * > > > Note that if I use a local (i.e., C:\...\...\) path for the data and in the MAP file it works just fine? Also, want to look at MrSIDs the same way, which again works just fine using a C:\ path? > > > Note that I know enough about IIS to be dangerous! ? > > > Thanks in advance for your help > > ---------- > Regards, > GREG COCKS > GIS Analyst V > gcocks at stoller.com > S. M. Stoller Corp > 105 Technology Drive, Suite 190 > Broomfield, CO 80021 > www.stoller.com > 303-546-4300 > 303-443-1408 fax > 303-546-4422 direct > 303-828-7576 cell > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mlinden at zeelandnet.nl Fri May 16 15:25:35 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Sat, 17 May 2008 00:25:35 +0200 Subject: [mapserver-users] PHP WMS Client error In-Reply-To: References: Message-ID: <482E09DF.3060903@zeelandnet.nl> Hello Marta, Can you check by running a phpinfo(); if DOM XML support is installed in your php version? Because that is what seems to be lacking. Your php install will need to have a file like domxml.so or domxml.dll. Kind regards, Milo van der Linden marta fuster wrote: > Dear list, > > We have a problem with the PHP WMS Client downloaded from > http://mapserver.refractions.net/. We have upload that client in our > web server and when we try to test it with our wms we get that error: > * > > Fatal error*: Call to undefined function xmldoc() in > */srv/htusers/gis/geoportal/wms_layerframe.php* on line *66 > > *do you know where is the error? Any Ideas? > > Thanks! > * > > > * > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Fri May 16 16:27:30 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 17 May 2008 02:27:30 +0300 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) References: <482CA163.3050704@gmail.com> <482DE4A9.50709@gmail.com> Message-ID: Hi, I guess that Mapserver thinks that the first line in the mapfile should be MAP -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ????? ????????? L?hetetty: pe 16.5.2008 22:46 Vastaanottaja: Mapserver-users Aihe: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) I got over the msLoadMap() problem. but now i get this message : loadWeb(): Unknown identifier. Parsing error near (:):(line 1) I have checked the map file over and over agian but i can't find any error. I quote the contents of map file and html template again. Map file (name : hello.map Location C:/ms4w/Apache/htdocs/hello.map) NAME "Hello_world" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "c:/ms4w/Apache/htdocs/test.html" IMAGEPATH "c:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END HTML Template (name : test.html Location:C:/ms4w/Apache/htdocs/test.html ) O/H Jeff McKenna ??????: > Hello, > > There were changes in MapServer 5.0 in the way CGI variables are > passed...so you might try to replace that "map_web_imagepath" line in > your hello.html with something like: > > > > -jeff > > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thy at 42.dk Sat May 17 02:13:39 2008 From: thy at 42.dk (Kristian Thy) Date: Sat, 17 May 2008 11:13:39 +0200 Subject: [mapserver-users] COLOR can take an expression? In-Reply-To: <482D88FB.4080503@extensys.com> References: <482D88FB.4080503@extensys.com> Message-ID: <20080517091339.GA29847@42.dk> On Fri, May 16, Tom Huras wrote: > I want to assign a color to some features from a database based on a > field. The full range of values is large, so I don't want to code a > CLASS for each value. Instead I'd like to use an expression for the color. For doing stuff like this, I use mako templates in python: http://quovadis.dk/dl/corine_template.map http://quovadis.dk/dl/corine.py.txt Then I can just C:\>corine.py > corine.map for the final mapfile. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From dev at geoaspects.com Sat May 17 10:53:30 2008 From: dev at geoaspects.com (Geo Aspects Development) Date: Sat, 17 May 2008 19:53:30 +0200 Subject: [MAPSERVER-USERS] Routing Algorithm Confusion ! In-Reply-To: <17264809.post@talk.nabble.com> References: <17264809.post@talk.nabble.com> Message-ID: <27CFE842-5F4D-4528-A56F-EAAE584A956D@geoaspects.com> Ritesh, FWIW a long time ago I wrote a route finding algorithm for a commercial desktop mapping product (Personal Navigator I think it was called) At the time I decided on the A* algorithm - which seemed to work quite well on the UK road data 1:50000 I believe this is one of the algorithms available in the PgRouting package, although I haven't tested this implementation myself regards Tim On May 16, 2008, at 1:38 AM, Ritesh Ambastha wrote: > > Dear Readers, > > I use Dijkstra's shortest path algorithm for route computation. I am > satisfied with the accurate result it gives. Still, I feel for road > segments > ~ 200Million, the route computation will take a lot of time. So, is > there > another algorithms exist as best practices for route computation(like > A*,TSP,etc)? Or, geeks write their own algorithm for route > computation? > > Thanks and Regards, > Ritesh Ambastha > -- > View this message in context: http://www.nabble.com/Routing-Algorithm-Confusion-%21-tp17264809p17264809.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From arnd.wippermann at web.de Sat May 17 13:26:32 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sat, 17 May 2008 22:26:32 +0200 Subject: AW: [mapserver-users] Setting up a MAP file to use data on a networkshare [newbie I guess! :-) ] In-Reply-To: <66F6CF82BF58CE4DB4285BE816B297E857FC14@tribble.SMStoller.com> Message-ID: Hello Greg, Try to use the UNC path in the data tag DATA "\\server\path\myshapefile.shp" This should work. Otherwise I think, their are problems with permissions. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Greg Cocks Gesendet: Freitag, 16. Mai 2008 23:58 An: mapserver-users at lists.osgeo.org Cc: Pete Humphrey Betreff: [mapserver-users] Setting up a MAP file to use data on a networkshare [newbie I guess! :-) ] Hello List, I am trying to set up a MAP file to use a network share for the files that for various reasons I can?t get into PostgreSQL, etc? i.e., so that we only have one copy of the data being used internally and on the web, etc I proceeded as follows - Using IIS on a Windoze box (yeah, yeah, grin) set up a virtual directory to a network share using a UNC path \\server\directory that I use all the time with ArcGIS, etc ? called it wms_data - Added my credentials in the ?Connect As? in IIS - Used the explore in the IIS MMC and confirmed I could browse the data there - Confirmed that the directories had the relevant web access permissions - Charged the relevant line in my MAP file to ? SHAPEPATH "/wms_data/" - Changed the layer?s data pointer to ? DATA "subdirectory/sameshapefilename" * When I now load the page it says it can?t find the layer?s data! Ugh! * Note that if I use a local (i.e., C:\...\...\) path for the data and in the MAP file it works just fine? Also, want to look at MrSIDs the same way, which again works just fine using a C:\ path? Note that I know enough about IIS to be dangerous! ? Thanks in advance for your help ---------- Regards, GREG COCKS GIS Analyst V gcocks at stoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell From kevingomes17 at gmail.com Mon May 19 00:17:00 2008 From: kevingomes17 at gmail.com (kevin gomes) Date: Mon, 19 May 2008 12:47:00 +0530 Subject: [mapserver-users] GetFeatureInfo Problem in Mapserver5 Message-ID: Hello, I'm facing problems making the GetFeatureInfo request in Mapserver5. The following GetFeatureInfo request, returns expected results in Mapserver4. * http://demo.binyasit.com/gvis/htdocs/protogis_wms.cgi?REQUEST=GetFeatureInfo&EXCEPTIONS=application/vnd.ogc.se_xml& BBOX=64.998443,15.821582,85.960357,21.578418&X=492&Y=119&INFO_FORMAT=text/html&QUERY_LAYERS=districts& FEATURE_COUNT=2&WIDTH=954&HEIGHT=262&VERSION=1.1.1&LAYERS=districts * But when i make the same request in Mapserver5, it asks for additional parameters. Then i checked the Migration Docs and modified the request as follows * http://pcmcgisda.org.in/cgi-bin/mapserv.5b?format=image/png&SRS=EPSG:26915&map=/srv/release.pcmc.org/map/.config.map&REQUEST=GetFeatureInfo& EXCEPTIONS=application/vnd.ogc.se_xml&BBOX=356415.589844,2056761.035156,395041.410156,2067368.964844&X=440&Y=98&INFO_FORMAT=text/html& QUERY_LAYERS=watersupplyline,esr,valve&FEATURE_COUNT=2&WIDTH=954&HEIGHT=262&VERSION=1.1.1&LAYERS=watersupplyline,esr,valve&STYLES= *But it returns the following error.* * msDrawScalebar(): General error message. Unsupported scalebar style. I am not able to make out what is wrong with the Request. Can you please guide me. Regards, -- Kevin Gomes ...enjoy being GIS maniacs -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Mon May 19 00:54:40 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 19 May 2008 09:54:40 +0200 Subject: [mapserver-users] GetFeatureInfo Problem in Mapserver5 In-Reply-To: References: Message-ID: <48313240.3090002@neogeo-online.net> Hi, I would say something is wrong in your mapfile - SCALEBAR section. Maybe some option has changed in version 5. Try to delete that section and test again. Regards, Guillaume kevin gomes a ?crit : > Hello, > I'm facing problems making the GetFeatureInfo request in Mapserver5. > > The following GetFeatureInfo request, returns expected results in > Mapserver4. > > *http://demo.binyasit.com/gvis/htdocs/protogis_wms.cgi?REQUEST=GetFeatureInfo&EXCEPTIONS=application/vnd.ogc.se_xml& > > BBOX=64.998443,15.821582,85.960357,21.578418&X=492&Y=119&INFO_FORMAT=text/html&QUERY_LAYERS=districts& > FEATURE_COUNT=2&WIDTH=954&HEIGHT=262&VERSION=1.1.1&LAYERS=districts > * > But when i make the same request in Mapserver5, it asks for additional > parameters. Then i checked the Migration Docs and modified the request > as follows > > *http://pcmcgisda.org.in/cgi-bin/mapserv.5b?format=image/png&SRS=EPSG:26915&map=/srv/release.pcmc.org/map/.config.map&REQUEST=GetFeatureInfo& > > EXCEPTIONS=application/vnd.ogc.se_xml&BBOX=356415.589844,2056761.035156,395041.410156,2067368.964844&X=440&Y=98&INFO_FORMAT=text/html& > QUERY_LAYERS=watersupplyline,esr,valve&FEATURE_COUNT=2&WIDTH=954&HEIGHT=262&VERSION=1.1.1&LAYERS=watersupplyline,esr,valve&STYLES= > > *But it returns the following error.* > * > > > > > > > > msDrawScalebar(): General error message. Unsupported scalebar style. > > > > I am not able to make out what is wrong with the Request. Can you please > guide me. > Regards, > -- > Kevin Gomes ...enjoy being GIS maniacs > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- From map.user at yahoo.com Mon May 19 01:55:53 2008 From: map.user at yahoo.com (User Map) Date: Mon, 19 May 2008 01:55:53 -0700 (PDT) Subject: [mapserver-users] extent of properties within a given distance Message-ID: <883287.20799.qm@web45706.mail.sp1.yahoo.com> hi, thanks for reply. i think i have to clarify my problem a bit more. i want to get the records from my table within a specified distance for e.g 50 meters. For this i have to calculate the extent first to get the image in mapserver. what i have is just a polygon geom, which area as you know can vary from property to property. i dont want to take into account the area/distance the property holds, but a center point for that polygon, so to calculate the distance equally on each side of that point, and then calculate the extent of those records, for the image to be generated. what i have done uptil now is: SELECT extent(geom),max(Distance('
',geom))as distance from tarea where within(geom,'') and Distance('
',geom)<=50 but this query is taking about 25-26 mins which is quite a large time span. and also when i get the results and on showing through the map server, the scale bar is not matching, i mean it has to show a 100 meter bar scale, but, it is showing more then 100 meters on the scalebar, about 192 or so. i hope this elaboration of problem will be helpful. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From plieger at knmi.nl Mon May 19 06:07:05 2008 From: plieger at knmi.nl (Maarten Plieger) Date: Mon, 19 May 2008 13:07:05 +0000 Subject: [mapserver-users] GDAL netcdf/hdf driver and WMS/WCS, file not found (path error) Message-ID: <48317B79.5020504@knmi.nl> Hello, I am using the netcdf and hdf5 drivers from GDAL to output images and data to the WMS and WCS services from UMN MapServer. When using an absolute path for these kind of files, the files are not found by mapserver. For example a piece of my mapfile: NAME "netcdf" DATA 'NETCDF:"/nobackup/users/plieger/mapdata/no2_200803.nc":Band1' MapServer cannot find: /nobackup/users/plieger/mapdata/NETCDF:"/nobackup/users/plieger/mapdata/no2_200803.nc":Band1 The filename should be NETCDF:"/nobackup/users/plieger/mapdata/no2_200803.nc":Band1 What is wrong: mapserver puts the path "/nobackup/users/plieger/mapdata/" before "NETCDF". Therefore I changed in mapstring.c at line 415: [code] /* Check if path is absolute */ if((abs_path == NULL) || (abslen == 0) || (path[0] == '\\') || (path[0] == '/') || (pathlen > 1 && (path[1] == ':')) ) [/code] to: [code] /* Check if path is absolute */ if((abs_path == NULL) || (abslen == 0) || (path[0] == '\\') || (path[0] == '/') || (pathlen > 1 && (path[1] == ':'))|| (strstr(path,":\"")>0) ) [/code] So " || (strstr(path,":\"")>0)" is added. The code looks at the :" tokens occuring in the filename, when these tokens occur the path should not be added to the filename. (This is because NETCDF: should be at the start of the filename, so that GDAL knows which driver to choose) It is a solution for me for now, but i think that there is a better way to solve it, without using "ststr". Best Regards, Maarten Plieger -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From arjendk at gmx.net Mon May 19 06:47:21 2008 From: arjendk at gmx.net (Arjen de Korte) Date: Mon, 19 May 2008 15:47:21 +0200 Subject: [mapserver-users] Mapserver and OpenDAP Message-ID: <1211204841.31496.1253926541@webmail.messagingengine.com> Hi Mapserver users, I would like to display OpenDAP data (from a remote OpenDAP server) on a map using UMN Mapserver. If I understand correctly, the GDAL driver supports OpenDAP. I have checked the formats that my GDAL supports by running the gdalinfo tool. ("gdalinfo --formats".) It lists NetCDF but not OpenDAP/DODS. Just to make sure, does this indeed mean I do not have support for OpenDAP in my Mapserver installation? I'm using MS4W 2.2.6. What would be the best way of getting this to work? Would this mean I have to recompile Mapserver? Or is it possible to just recompile the GDAL driver? Any tips on recompiling on Windows (if necessary) or on using OpenDAP with Mapserver would be very welcome, since I have no experience with it. Best regards, Arjen de Korte. From warmerdam at pobox.com Mon May 19 07:42:25 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 19 May 2008 10:42:25 -0400 Subject: [mapserver-users] Mapserver and OpenDAP In-Reply-To: <1211204841.31496.1253926541@webmail.messagingengine.com> References: <1211204841.31496.1253926541@webmail.messagingengine.com> Message-ID: <483191D1.9030701@pobox.com> Arjen de Korte wrote: > Hi Mapserver users, > > I would like to display OpenDAP data (from a remote OpenDAP server) on a > map using UMN Mapserver. If I understand correctly, the GDAL driver > supports OpenDAP. > > I have checked the formats that my GDAL supports by running the gdalinfo > tool. ("gdalinfo --formats".) It lists NetCDF but not OpenDAP/DODS. Just > to make sure, does this indeed mean I do not have support for OpenDAP in > my Mapserver installation? I'm using MS4W 2.2.6. Arjen, That is correct. If you don't see the driver name in the gdalinfo output that means you don't have the driver built in. > What would be the best way of getting this to work? Would this mean I > have to recompile Mapserver? Or is it possible to just recompile the > GDAL driver? It is, in theory, possible to just build this one driver and use it as a plugin. But this is not a trivial process. > Any tips on recompiling on Windows (if necessary) or on using OpenDAP > with Mapserver would be very welcome, since I have no experience with > it. I have also never build the GDAL/OGR OPeNDAP support into GDAL on windows before, so one problem is that there is likely no makefile.vc for the driver. Is it possible for you to do what you want on linux? 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 | President OSGeo, http://osgeo.org From kevingomes17 at gmail.com Mon May 19 08:58:38 2008 From: kevingomes17 at gmail.com (kevin gomes) Date: Mon, 19 May 2008 21:28:38 +0530 Subject: [mapserver-users] GetFeatureInfo Problem in Mapserver5 In-Reply-To: <48313240.3090002@neogeo-online.net> References: <48313240.3090002@neogeo-online.net> Message-ID: Hello, Thanks a Lot. I commented the Scalebar portion and it worked. Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at gmail.com Mon May 19 10:30:06 2008 From: mikesaunt at gmail.com (Mike Saunt) Date: Mon, 19 May 2008 18:30:06 +0100 Subject: [mapserver-users] mapext=shapes Message-ID: <5a9686e80805191030k50c0dcf8i42902334e2f0110a@mail.gmail.com> Hi All Is there anyway specifying a buffer or factor to the mapext=shapes? Bascially I'm zooming to the extents of a poygon from an itemnquery but would like the map zoomed out slightly more... http://mswebdev:81/cgi-bin5.0/mapserv.exe?&map=D:/Maps/SurreyHeath/_MapServerConfig/myareaquery.map&mode=itemnquery&mapsize=200+150&mapext=shapes&qlayer=LandParcels&qitem=uprn&qstring=100061560388&map.layer[LandParcels]=TEMPLATE+globexml.xml Using standard CGI MapServer 5.0 Much appreciated Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Mon May 19 10:46:48 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 19 May 2008 19:46:48 +0200 Subject: [mapserver-users] postgis - idle in transaction Message-ID: <200805191946.48503.ivan.mincik@gmail.com> Hi, I have started using p.mapper WebGIS client with PROCESSING "CLOSE_CONNECTION=DEFER" parameter for all postgis layers. (using the latest version of mapserver 5.0.x and patch for the issue with CLOSE_CONNECTION=DEFER). In htop I see lot of connections "postgres: user database 127.0.0.1(47132) idle in transaction" which will remain until the next restart of database server. Has anybody the same problem ? Thanks Ivan From condit at sdsc.edu Mon May 19 12:46:57 2008 From: condit at sdsc.edu (Christopher Condit) Date: Mon, 19 May 2008 12:46:57 -0700 Subject: [mapserver-users] Mapserver and OpenDAP In-Reply-To: <1211204841.31496.1253926541@webmail.messagingengine.com> References: <1211204841.31496.1253926541@webmail.messagingengine.com> Message-ID: <845AADAC1106E44996327D62097E4C6B010567D2@et.ad.sdsc.edu> Hi Arjen, > What would be the best way of getting this to work? Would this mean I > have to recompile Mapserver? Or is it possible to just recompile the > GDAL driver? > > Any tips on recompiling on Windows (if necessary) or on using OpenDAP > with Mapserver would be very welcome, since I have no experience with > it. A year or so ago I did exactly this - building OPeNDAP support into gdal on Win32. So it's very possible if you feel comfortable building from source on Windows. That was on an older server machine and I don't think it ever got integrated into the trunk. I'll look around for it and let you know. The real problem, though, is that many OPeNDAP datasets I've encountered are either inverted or span 0-360 instead of -180 to 180, so I ended up having to write scripts to preprocess them anyway... -Chris From pauljame at gmail.com Mon May 19 13:58:27 2008 From: pauljame at gmail.com (Paul james) Date: Mon, 19 May 2008 17:58:27 -0300 Subject: [mapserver-users] C# functon resultCacheMemberObj shapeindex ... Posible bug? Message-ID: <33fad6880805191358h6cef4a4ap769e111275a9ea72@mail.gmail.com> Hello guys... I have a table with a character(11) PK... When I trie to get the shapes with queryByRect, all results are with shapeindex equal 0 (zero) ... If I tried that with a table with a integer PK, everthing works perfect.. My code: layerObj _layer = mapObj.getLayerByName(__layer); if (_layer.queryByRect(mapObj, _oGeo) == 0) { for (int i = 0; i < _layer.getNumResults(); i++) { resultCacheMemberObj _result = _layer.getResult(i); //_result.shapeindex == 0 shapeObj _obj = new shapeObj(-1); //dummy _layer.open(); _layer.getShape(_obj, -1, _result.shapeindex); } } Any solutions? []?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon May 19 14:21:54 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 19 May 2008 23:21:54 +0200 Subject: [mapserver-users] C# functon resultCacheMemberObj shapeindex ... Posible bug? In-Reply-To: <33fad6880805191358h6cef4a4ap769e111275a9ea72@mail.gmail.com> References: <33fad6880805191358h6cef4a4ap769e111275a9ea72@mail.gmail.com> Message-ID: Hi, Which driver are you using, how the mapfile looks like? Tamas 2008/5/19 Paul james : > Hello guys... > I have a table with a character(11) PK... > When I trie to get the shapes with queryByRect, all results are with > shapeindex equal 0 (zero) ... > If I tried that with a table with a integer PK, everthing works perfect.. > My code: > > layerObj _layer = mapObj.getLayerByName(__layer); > if (_layer.queryByRect(mapObj, _oGeo) == 0) > { > for (int i = 0; i < _layer.getNumResults(); i++) > { > resultCacheMemberObj _result = _layer.getResult(i); > //_result.shapeindex == 0 > shapeObj _obj = new shapeObj(-1); //dummy > _layer.open(); > _layer.getShape(_obj, -1, _result.shapeindex); > } > } > > > > Any solutions? > > []?s > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From arjendk at gmx.net Mon May 19 14:33:45 2008 From: arjendk at gmx.net (Arjen de Korte) Date: Mon, 19 May 2008 23:33:45 +0200 Subject: [mapserver-users] Mapserver and OpenDAP In-Reply-To: <845AADAC1106E44996327D62097E4C6B010567D2@et.ad.sdsc.edu> References: <1211204841.31496.1253926541@webmail.messagingengine.com> <845AADAC1106E44996327D62097E4C6B010567D2@et.ad.sdsc.edu> Message-ID: <200805192333.45463.arjendk@gmx.net> Chris, Frank, Thank you for your answers. Chris, I'd be very interested to hear about your experiences on building Mapserver on Windows, especially concerning the OpenDAP driver and the makefile Frank mentioned. I guess the "build kit" is the best way to start? Your issue about messed up coordinates worries me a bit. :-) I'm not that far yet. Frank, I'm not (yet) considering moving to Linux at the moment. Another option might be to use WCS instead of OpenDAP since the OpenDAP server we're using (THREDDS) supports it. Does that sound like a better option? (However, I'm not sure if this is possible, since it would essentially mean moving to a different protocol that other partners in the project would also have to support.) Arjen. Op Monday 19 May 2008, schreef Christopher Condit: > Hi Arjen, > > > What would be the best way of getting this to work? Would this mean I > > have to recompile Mapserver? Or is it possible to just recompile the > > GDAL driver? > > > > Any tips on recompiling on Windows (if necessary) or on using OpenDAP > > with Mapserver would be very welcome, since I have no experience with > > it. > > A year or so ago I did exactly this - building OPeNDAP support into gdal > on Win32. So it's very possible if you feel comfortable building from > source on Windows. That was on an older server machine and I don't think > it ever got integrated into the trunk. I'll look around for it and let > you know. The real problem, though, is that many OPeNDAP datasets I've > encountered are either inverted or span 0-360 instead of -180 to 180, so > I ended up having to write scripts to preprocess them anyway... > > -Chris From wendell at enflight.com Mon May 19 15:32:16 2008 From: wendell at enflight.com (Wendell Turner) Date: Mon, 19 May 2008 15:32:16 -0700 Subject: [mapserver-users] 'errno: 2' on projection Message-ID: <20080519223216.GA20461@q.rho.net> I'm trying to use the 'projection' tag in a map file, but it is not working, and would like help. I'm using Fedora 7, and there is a mapserver 4.10 in a yum repository, which pulls in proj as a dependency. However, when using the 'projection' tag, it gets msProcessProjection(): Projection library error. no system list, errno: 2 (which seems to mean 'file not found') I installed proj-4.6.0.tar.gz from sources, and there are files in /usr/local/share/proj which are readable by all. The proj program seems to run by itself, e.g.: > proj -V +init=epsg:2163 #Lambert Azimuthal Equal Area ... The apache error logs don't show anything interesting, but it still returns this: msProcessProjection(): Projection library error. no system list, errno: 2 What is the problem? What file is mapserver looking for, and where should it be? Does Apache want PROJ_LIB defined? Thanks, Wendell From Steve.Lime at dnr.state.mn.us Mon May 19 15:49:20 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 19 May 2008 17:49:20 -0500 Subject: [mapserver-users] mapext=shapes In-Reply-To: <5a9686e80805191030k50c0dcf8i42902334e2f0110a@mail.gmail.com> References: <5a9686e80805191030k50c0dcf8i42902334e2f0110a@mail.gmail.com> Message-ID: <4831BDA0.5157.008F.0@dnr.state.mn.us> I'm afraid not. There may be workarounds though. What type of a query map are you using? This would be a relatively easy hack if you can compile from source although since you're using Windows that may not be an option. Steve >>> On 5/19/2008 at 12:30 PM, in message <5a9686e80805191030k50c0dcf8i42902334e2f0110a at mail.gmail.com>, "Mike Saunt" wrote: > Hi All > > Is there anyway specifying a buffer or factor to the mapext=shapes? > Bascially I'm zooming to the extents of a poygon from an itemnquery but > would like the map zoomed out slightly more... > > > http://mswebdev:81/cgi-bin5.0/mapserv.exe?&map=D:/Maps/SurreyHeath/_MapServerC > onfig/myareaquery.map&mode=itemnquery&mapsize=200+150&mapext=shapes&qlayer=LandPa > rcels&qitem=uprn&qstring=100061560388&map.layer[LandParcels]=TEMPLATE+globexml.x > ml > > Using standard CGI MapServer 5.0 > > Much appreciated > Mike From SansonR at asurequality.com Mon May 19 16:15:58 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 20 May 2008 11:15:58 +1200 Subject: [mapserver-users] GetFeatureInfo request against an OGR virtual data source Message-ID: <4832B2EE02000037000039A4@gate1.agriquality.com> Dear List I have set up Mapserver map file configured as a WMS service. One of my layers is a OGR point data source drawing its coodinates from x,y fields in a SQL-Server database via ODBC. The x,y coordinates are in NZ Map Grid projection (EPSG:27200) but all my other layers are NZ Transverse Mercator (EPSG:2193). My top level SRS is defined as EPSG:2193 (NZTM). The particular OGR data source is therefore being projected to EPSG:2193, which it seems to be doing properly. The layers in the map are displaying correctly, using a number of different clients - OpenLayers, uDig, ArcMap. Now, my problem is that sending the following GetFeatureInfo request from OpenLayers: (also tested manually via a Browser URL): http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=apiaries_dev&QUERY_layers=apiaries_dev&FORMAT=image/png&INFO_FORMAT=gml&SRS=EPSG:2193&BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&WIDTH=512&HEIGHT=512&X=341&Y=19&STYLES= returns the first record in the database table, regardless of the BBOX and location parameters, which are all in terms of EPSG:2193 (NZTM). Can MapServer back project the GetFeatureInfo request from EPSG:2193 into valid NZMG (EPSG:27200) coordinates in order to request the correct feature details via OGR? Any help appreciated, Robert Sanson Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Mon May 19 16:02:27 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 20 May 2008 11:02:27 +1200 Subject: [mapserver-users] GetFeatureInfo request against an OGR virtual data source Message-ID: <4832AFC3020000370000399F@gate1.agriquality.com> Dear List I have set up Mapserver map file configured as a WMS service. One of my layers is a OGR point data source drawing its coodinates from x,y fields in a SQL-Server database via ODBC. The x,y coordinates are in NZ Map Grid projection (EPSG:27200) but all my other layers are NZ Transverse Mercator (EPSG:2193). My top level SRS is defined as EPSG:2193 (NZTM). The particular OGR data source is therefore being projected to EPSG:2193, which it seems to be doing properly. The layers in the map are displaying correctly, using a number of different clients - OpenLayers, uDig, ArcMap. Now, my problem is that sending the following GetFeatureInfo request from OpenLayers: (also tested manually via a Browser URL): http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=apiaries_dev&QUERY_layers=apiaries_dev&FORMAT=image/png&INFO_FORMAT=gml&SRS=EPSG:2193&BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&WIDTH=512&HEIGHT=512&X=341&Y=19&STYLES= returns the first record in the database table, regardless of the BBOX and location parameters, which are all in terms of EPSG:2193 (NZTM). Can MapServer back project the GetFeatureInfo request from EPSG:2193 into valid NZMG (EPSG:27200) coordinates in order to request the correct feature details via OGR? Any help appreciated, Robert Sanson Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wendell at enflight.com Mon May 19 16:37:31 2008 From: wendell at enflight.com (Wendell Turner) Date: Mon, 19 May 2008 16:37:31 -0700 Subject: [mapserver-users] 'errno: 2' on projection In-Reply-To: <20080519223216.GA20461@q.rho.net> References: <20080519223216.GA20461@q.rho.net> Message-ID: <20080519233731.GA21782@q.rho.net> On Mon, May 19, 2008 at 03:32:16PM -0700, Wendell Turner wrote: > I'm trying to use the 'projection' tag in a map file, but it > is not working, and would like help. > > I'm using Fedora 7, and there is a mapserver 4.10 in a yum > repository, which pulls in proj as a dependency. However, > when using the 'projection' tag, it gets > msProcessProjection(): Projection library error. no system list, errno: 2 > (which seems to mean 'file not found') As it turns out, other projections work. I'm just trying to get the v4 tutorial working, which is where the problem occurs. Any example that contains PROJECTION "init=epsg:4326" END gets the error msg. However, the file /usr/local/share/proj/epsg contains an entry for 4326. Q: why doe the example in the tutorial not work? Q: how can it be fixed? Thanks, Wendell From warmerdam at pobox.com Mon May 19 16:53:22 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 19 May 2008 19:53:22 -0400 Subject: [mapserver-users] GetFeatureInfo request against an OGR virtual data source In-Reply-To: <4832AFC3020000370000399F@gate1.agriquality.com> References: <4832AFC3020000370000399F@gate1.agriquality.com> Message-ID: <483212F2.6060603@pobox.com> Robert Sanson wrote: > Dear List > > I have set up Mapserver map file configured as a WMS service. One of my > layers is a OGR point data source drawing its coodinates from x,y fields > in a SQL-Server database via ODBC. The x,y coordinates are in NZ Map > Grid projection (EPSG:27200) but all my other layers are NZ Transverse > Mercator (EPSG:2193). > > My top level SRS is defined as EPSG:2193 (NZTM). > > The particular OGR data source is therefore being projected to > EPSG:2193, which it seems to be doing properly. > > The layers in the map are displaying correctly, using a number of > different clients - OpenLayers, uDig, ArcMap. > > Now, my problem is that sending the following GetFeatureInfo request > from OpenLayers: (also tested manually via a Browser URL): > > http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=apiaries_dev&QUERY_layers=apiaries_dev&FORMAT=image/png&INFO_FORMAT=gml&SRS=EPSG:2193&BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&WIDTH=512&HEIGHT=512&X=341&Y=19&STYLES > = > > returns the first record in the database table, regardless of the BBOX > and location parameters, which are all in terms of EPSG:2193 (NZTM). > > Can MapServer back project the GetFeatureInfo request from EPSG:2193 > into valid NZMG (EPSG:27200) coordinates in order to request the correct > feature details via OGR? Robert, The problem is (likely) due to the lack of a persistent feature id when reading from ODBC. This doesn't negatively impact drawing but completely fouls up MapServer's two pass query mechanism. If you have an integer field on the source table that is a unique id, you will likely be able to mark it as the feature id using the FID element in the VRT file. But I'm not sure if that is enough, since when the VRT asks the ODBC layer for a particular feature by fid, the ODBC driver will still do the wrong thing. I see there is also a secret configure option in the ODBC driver for selecting a field as an FID. So, if your unique integer id field was called "id", adding the following within your map should force the OGR ODBC driver to use it: CONFIG "ODBC_OGR_FID" "id" Generally speaking doing MapServer queries against OGR feature datasources without persistent feature ids is problematic and should be avoided if practical. 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 | President OSGeo, http://osgeo.org From SansonR at asurequality.com Mon May 19 17:14:30 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 20 May 2008 12:14:30 +1200 Subject: [mapserver-users] GetFeatureInfo request against an OGR virtual data source In-Reply-To: <483212F2.6060603@pobox.com> References: <4832AFC3020000370000399F@gate1.agriquality.com> <483212F2.6060603@pobox.com> Message-ID: <4832C0A602000037000039AF@gate1.agriquality.com> Hi Frank Fantastic! I do have a unique integer id on the database table "apiary_id". Including the line apiary_id in my .ovf file solved the problem. Many thanks, Robert Sanson >>> Frank Warmerdam 20/05/2008 11:53 a.m. >>> Robert Sanson wrote: > Dear List > > I have set up Mapserver map file configured as a WMS service. One of my > layers is a OGR point data source drawing its coodinates from x,y fields > in a SQL-Server database via ODBC. The x,y coordinates are in NZ Map > Grid projection (EPSG:27200) but all my other layers are NZ Transverse > Mercator (EPSG:2193). > > My top level SRS is defined as EPSG:2193 (NZTM). > > The particular OGR data source is therefore being projected to > EPSG:2193, which it seems to be doing properly. > > The layers in the map are displaying correctly, using a number of > different clients - OpenLayers, uDig, ArcMap. > > Now, my problem is that sending the following GetFeatureInfo request > from OpenLayers: (also tested manually via a Browser URL): > > http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=apiaries_dev&QUERY_layers=apiaries_dev&FORMAT=image/png&INFO_FORMAT=gml&SRS=EPSG:2193&BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&WIDTH=512&HEIGHT=512&X=341&Y=19&STYLES > = > > returns the first record in the database table, regardless of the BBOX > and location parameters, which are all in terms of EPSG:2193 (NZTM). > > Can MapServer back project the GetFeatureInfo request from EPSG:2193 > into valid NZMG (EPSG:27200) coordinates in order to request the correct > feature details via OGR? Robert, The problem is (likely) due to the lack of a persistent feature id when reading from ODBC. This doesn't negatively impact drawing but completely fouls up MapServer's two pass query mechanism. If you have an integer field on the source table that is a unique id, you will likely be able to mark it as the feature id using the FID element in the VRT file. But I'm not sure if that is enough, since when the VRT asks the ODBC layer for a particular feature by fid, the ODBC driver will still do the wrong thing. I see there is also a secret configure option in the ODBC driver for selecting a field as an FID. So, if your unique integer id field was called "id", adding the following within your map should force the OGR ODBC driver to use it: CONFIG "ODBC_OGR_FID" "id" Generally speaking doing MapServer queries against OGR feature datasources without persistent feature ids is problematic and should be avoided if practical. 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 | President OSGeo, http://osgeo.org _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at eryr.com Tue May 20 01:06:02 2008 From: tom at eryr.com (Tom Chase) Date: Tue, 20 May 2008 09:06:02 +0100 Subject: [mapserver-users] Creating symbolset from scratch Message-ID: <4832866A.1030508@eryr.com> Morning! In mapscript, if I was to create a symbolset from scratch, how would I then link it to a map? The method map.setSymbolSet() takes a filename but not a symbolset object, and the property map.symbolset is immutable. FWIW, I'm using python. Am I just being stupid? Cheers! Tom -- ------------------------------------------------------------------------ *STOP!* Do not print unless necessary! Leave some trees for the monkeys! From pauljame at gmail.com Tue May 20 05:12:59 2008 From: pauljame at gmail.com (Paul james) Date: Tue, 20 May 2008 09:12:59 -0300 Subject: [mapserver-users] C# functon resultCacheMemberObj shapeindex ... Posible bug? In-Reply-To: References: <33fad6880805191358h6cef4a4ap769e111275a9ea72@mail.gmail.com> Message-ID: <33fad6880805200512h22f816e7uc27284a2b01387f9@mail.gmail.com> I?m using Postgis... My mapfile: MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET "fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE png SYMBOLSET "symbols.sym" SIZE 400 200 STATUS ON UNITS dd NAME "World" OUTPUTFORMAT NAME gif MIMETYPE image/png DRIVER gd/png EXTENSION png IMAGEMODE rgb TRANSPARENT FALSE END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END LAYER #With string PK NAME city GROUP "GROUP1" TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=X password=x dbname=tblX host=localhost" DATA "geom from tblX USING UNIQUE idX USING SRID=4291" CLASS TEMPLATE "dummy" NAME "x" COLOR 255 255 185 OUTLINECOLOR 110 110 110 END END END On 5/19/08, Tamas Szekeres wrote: > > Hi, > > Which driver are you using, how the mapfile looks like? > > > Tamas > > > 2008/5/19 Paul james : > > Hello guys... > > I have a table with a character(11) PK... > > When I trie to get the shapes with queryByRect, all results are with > > shapeindex equal 0 (zero) ... > > If I tried that with a table with a integer PK, everthing works perfect.. > > My code: > > > > layerObj _layer = mapObj.getLayerByName(__layer); > > if (_layer.queryByRect(mapObj, _oGeo) == 0) > > { > > for (int i = 0; i < _layer.getNumResults(); i++) > > { > > resultCacheMemberObj _result = _layer.getResult(i); > > //_result.shapeindex == 0 > > shapeObj _obj = new shapeObj(-1); //dummy > > _layer.open(); > > _layer.getShape(_obj, -1, _result.shapeindex); > > } > > } > > > > > > > > Any solutions? > > > > []?s > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yatendra.jaiswal at gmail.com Tue May 20 06:06:23 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Tue, 20 May 2008 06:06:23 -0700 (PDT) Subject: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or VB..... Message-ID: <17339858.post@talk.nabble.com> Hi Friends, i need some help to create rubberband zoom in funtionality..... Can any one know hoe to use jBox functionality asp.net. or How to create zoom in funtionality using rubberband? Please explain.. Thanks Regards -- View this message in context: http://www.nabble.com/How-to-implement-jBox-in-asp.netusing-C--or-VB.....-tp17339858p17339858.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nbest at LANWORTH.COM Tue May 20 06:36:31 2008 From: nbest at LANWORTH.COM (Neil Best) Date: Tue, 20 May 2008 06:36:31 -0700 (PDT) Subject: [MAPSERVER-USERS] wms server, serve layers in multiple projections In-Reply-To: <15909153.post@talk.nabble.com> References: <15909153.post@talk.nabble.com> Message-ID: <17340367.post@talk.nabble.com> Maria Panagou wrote: > > I am wondering if it is possible to setup a WMS server with Mapserver, > that will serve layers in more than one map projection. For example it it > possible to declare at MAP level such a PROJECTION declaration? > > PROJECTION > "init=epsg:900913" > "init=epsg:4326" > END > Maria, my understanding is that the projection(s) that you want to advertise for your service should be listed in the WEB stanza METADATA block with the "wms_srs" tag. If you use a MAP-level projection and no wms_srs metadata then your service will advertise that single projection. If wms_srs is defined then the MAP-level PROJECTION simply becomes a default for Mapserver to apply to your data sources. See the WMS Server HOWTO for more details: http://mapserver.gis.umn.edu/docs/howto/wms_server Neil -- View this message in context: http://www.nabble.com/wms-server%2C-serve-layers-in-multiple-projections-tp15909153p17340367.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Piero.Cavalieri at heidi.it Tue May 20 06:39:01 2008 From: Piero.Cavalieri at heidi.it (Cavalieri Piero) Date: Tue, 20 May 2008 15:39:01 +0200 Subject: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or VB..... In-Reply-To: <17339858.post@talk.nabble.com> References: <17339858.post@talk.nabble.com> Message-ID: <4841F745477DF94A97C515658C91BB2F1556FB@lan-exc-01.heidi.local> You use it exatly the same as with other languages (jbox is an applet): In aspx: Values inside <%=...%> are setted here in the code behind of the page, for the first request (if(!IsPostBack)), then I use ajax to build appropriate requests and to swap the old image with the new returned ones (document.jbox.setimage(newImage.src)); Be sure to read jbox tutorials (you need setbox_handler ecc. as indicated in the tutorial). Cheers Piero > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of yatendra > Sent: marted? 20 maggio 2008 15:06 > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or > VB..... > > > Hi Friends, > i need some help to create rubberband zoom in funtionality..... > Can any one know hoe to use jBox functionality asp.net. > or How to create zoom in funtionality using rubberband? > Please explain.. > Thanks Regards > -- > View this message in context: http://www.nabble.com/How-to-implement-jBox- > in-asp.netusing-C--or-VB.....-tp17339858p17339858.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Tue May 20 07:15:09 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 20 May 2008 17:15:09 +0300 Subject: [MAPSERVER-USERS] wms server, serve layers in multiple projections References: <15909153.post@talk.nabble.com> <17340367.post@talk.nabble.com> Message-ID: Neil Best wrote: >Maria Panagou wrote: > >> I am wondering if it is possible to setup a WMS server with Mapserver, >> that will serve layers in more than one map projection. For example it it >> possible to declare at MAP level such a PROJECTION declaration? >> >> PROJECTION >> "init=epsg:900913" >> "init=epsg:4326" >> END >> > Maria, my understanding is that the projection(s) that you want to advertise for your service should be listed in the WEB stanza METADATA block with the "wms_srs" tag. If you use a MAP-level projection and no wms_srs metadata then your service will advertise that single projection. If wms_srs is defined then the MAP-level PROJECTION simply becomes a default for Mapserver to apply to your data sources. See the WMS Server HOWTO for more details: http://mapserver.gis.umn.edu/docs/howto/wms_server For example the following excerpt works for me and gives three alternative projections for WMS. Take care of using white space as separator and upper case EPSG in "wms_srs" WEB IMAGEPATH "m:/ms4w/apps/data/" IMAGEURL "/ms_tmp/" METADATA "wms_srs" "EPSG:3067 EPSG:2393 EPSG:4326" ... ... -Jukka Rahkonen- From nbest at LANWORTH.COM Tue May 20 07:50:16 2008 From: nbest at LANWORTH.COM (Neil Best) Date: Tue, 20 May 2008 07:50:16 -0700 (PDT) Subject: [MAPSERVER-USERS] WMS server with non-EPSG SRS? Message-ID: <17342340.post@talk.nabble.com> I have been trolling the list for any sense of attempts to use or prospects for ever using non-EPSG SRSs with a WMS server. Somewhere I found a post, I think it was this list but don't have the link handy, from 2001 saying that there had been discussion to generalize the mechanism for advertising SRSs in order to go beyond those defined in the epsg support file that ships with proj, which suggests the possibility of advertising arbitrary projections, not just those in the assorted support files. I find myself in the uncomfortable situation of trying to deliver my USGS-modified Albers equal area ("proj -v +init=other.extra:42303") to a client in USA Contiguous Lambert Conformal Conic ("proj -v init=esri:102004", also in esri.extra, http://spatialreference.org/ref/epsg/102004/). I have seen proj and ogr2ogr respect the use of these other proj support files, but as far as I know Mapserver does not, never mind that the WMS spec appears to only accommodate EPSG-listed SRSs. Is there any indication that this situation will change, either through an extension to the WMS spec or other means? Neil -- View this message in context: http://www.nabble.com/WMS-server-with-non-EPSG-SRS--tp17342340p17342340.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nellyfromma at gmail.com Tue May 20 07:55:48 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 20 May 2008 10:55:48 -0400 Subject: [mapserver-users] Scaling Labels Message-ID: <69935d110805200755j6f623288y8f219bd68a43f901@mail.gmail.com> This is a pretty dumb question but: Is there an easy way to make label sizes scale with respect to the view? Or must I create a bunch of MAXSCALE MINSCALE LABELSIZE entries? From warmerdam at pobox.com Tue May 20 08:00:04 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 May 2008 11:00:04 -0400 Subject: [MAPSERVER-USERS] WMS server with non-EPSG SRS? In-Reply-To: <17342340.post@talk.nabble.com> References: <17342340.post@talk.nabble.com> Message-ID: <4832E774.5090801@pobox.com> Neil Best wrote: > I have been trolling the list for any sense of attempts to use or prospects > for ever using non-EPSG SRSs with a WMS server. Somewhere I found a post, I > think it was this list but don't have the link handy, from 2001 saying that > there had been discussion to generalize the mechanism for advertising SRSs > in order to go beyond those defined in the epsg support file that ships with > proj, which suggests the possibility of advertising arbitrary projections, > not just those in the assorted support files. I find myself in the > uncomfortable situation of trying to deliver my USGS-modified Albers equal > area ("proj -v +init=other.extra:42303") to a client in USA Contiguous > Lambert Conformal Conic ("proj -v init=esri:102004", also in esri.extra, > http://spatialreference.org/ref/epsg/102004/). I have seen proj and ogr2ogr > respect the use of these other proj support files, but as far as I know > Mapserver does not, never mind that the WMS spec appears to only accommodate > EPSG-listed SRSs. Is there any indication that this situation will change, > either through an extension to the WMS spec or other means? Neil, The normal practice if you want a non-EPSG coordinate system to be usable for WMS serving with MapServer is to just extend the epsg init file with the definition. Is this unacceptable for some reason? 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 | President OSGeo, http://osgeo.org From nbest at LANWORTH.COM Tue May 20 08:39:47 2008 From: nbest at LANWORTH.COM (Neil Best) Date: Tue, 20 May 2008 08:39:47 -0700 (PDT) Subject: [MAPSERVER-USERS] WMS server with non-EPSG SRS? In-Reply-To: <4832E774.5090801@pobox.com> References: <17342340.post@talk.nabble.com> <4832E774.5090801@pobox.com> Message-ID: <17343514.post@talk.nabble.com> Frank Warmerdam-2 wrote: > > The normal practice if you want a non-EPSG coordinate system to be usable > for WMS serving with MapServer is to just extend the epsg init file with > the definition. Is this unacceptable for some reason? > I have been reluctant to do this because: 1) I was concerned about tinkering with core software files in a production system, without any hard evidence that there was any chance for an end-to-end solution (see #3). At the moment I don't have a segregated test bed where I can test the effect of such a change on my Mapserver application and guarantee no interruption. Is it still true then that Mapserver won't even respect "init=esri:xxxxx"? 2) I would be extending a popular, mature standard in an ad hoc, maverick fashion (which is central to some business models, but not ours!), mainly because of the risk of future complications as the standard evolves and the maintenance overhead of propagating my amendments and remembering to reapply them any time that software is upgraded or new systems are provisioned. 3) I have no reason to expect that the client (ArcGIS Server in this case) will understand what it is that is being advertised, assuming that an analogous look-up table is contained somewhere within its WMS client implementation. Is there any reason to think that Arc's WMS client relies on the proj support files that are included with the GDAL code that ships from ESRI? Do I really want to get into the scenario of violating my customer's end user license or voiding their warantee by editing files installed by ESRI software? On the other hand, it is useful to know that such an edit is considered a "normal practice" by someone I can trust to make such a judgment. That said, is there anyone else who considers the standard unnecessarily constraining in this respect or am I shouting into the abyss? Given the situation the best path forward that I can see is to serve the data in some geeric EPSG SRS and have the client re-reproject it and accept the performance hit in favor of taking the path of least resistance, but I don't actually know if the client can do that -- I wouldn't expect QGIS to be able to, for example, unless it is now reprojecting rasters on the fly where it has not in the recent past. We need to test this possibility on the Arc side -- maybe someone has experience with this . . . -- View this message in context: http://www.nabble.com/WMS-server-with-non-EPSG-SRS--tp17342340p17343514.html Sent from the Mapserver - User mailing list archive at Nabble.com. From condit at sdsc.edu Tue May 20 09:16:48 2008 From: condit at sdsc.edu (Christopher Condit) Date: Tue, 20 May 2008 09:16:48 -0700 Subject: [mapserver-users] Mapserver and OpenDAP In-Reply-To: <200805192333.45463.arjendk@gmx.net> References: <1211204841.31496.1253926541@webmail.messagingengine.com> <845AADAC1106E44996327D62097E4C6B010567D2@et.ad.sdsc.edu> <200805192333.45463.arjendk@gmx.net> Message-ID: <845AADAC1106E44996327D62097E4C6B010568AC@et.ad.sdsc.edu> Hi Arjen, > Chris, I'd be very interested to hear about your experiences on > building > Mapserver on Windows, especially concerning the OpenDAP driver and the > makefile Frank mentioned. I guess the "build kit" is the best way to > start? Since I'm also interested in this I've created a new ticket in the GDAL trac and will have a look as soon as possible. I checked briefly last night but it looks like things have changed in the OPeNDAP windows library a bit since I last built it (3.4, I think). So I'll probably have to update the gdal driver as well... Let's continue this discussion on the ticket: http://trac.osgeo.org/gdal/ticket/2383 -Chris From HWIRTH at co.benton.mn.us Tue May 20 09:30:20 2008 From: HWIRTH at co.benton.mn.us (Heather Wirth) Date: Tue, 20 May 2008 11:30:20 -0500 Subject: [mapserver-users] Using personal geodatabases (.mdb) Message-ID: We currently have a functional Geomoose (a front end to MapServer) site using shapefiles, but thought we may want to migrate to a personal geodatabase (.mdb) to ease the process of updating map information. We followed all the instructions on the MapServer site for using .mdb files, and can get the layer to display. The problem we have is that the layer from the .mdb does not "draw" all features. For testing, we added just one layer, parcels. At the same time, for comparison purposes, we left the parcels shapefile in the project. While testing some of the other services, like identify, we noticed that there were "holes" in the parcel layer from the .mdb, that aren't in the shapefile generated parcels layer. When I search the geodatabase for a feature that is not drawing, I find it in the .mdb. Has anyone else had this problem? Does anybody know why it would do this &/or how to fix it? Any help would be much appreciated. Heather Wirth From warmerdam at pobox.com Tue May 20 09:35:05 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 May 2008 12:35:05 -0400 Subject: [mapserver-users] Using personal geodatabases (.mdb) In-Reply-To: References: Message-ID: <4832FDB9.5000302@pobox.com> Heather Wirth wrote: > We currently have a functional Geomoose (a front end to MapServer) site > using shapefiles, but thought we may want to migrate to a personal > geodatabase (.mdb) to ease the process of updating map information. We > followed all the instructions on the MapServer site for using .mdb > files, and can get the layer to display. > > The problem we have is that the layer from the .mdb does not "draw" all > features. For testing, we added just one layer, parcels. At the same > time, for comparison purposes, we left the parcels shapefile in the > project. While testing some of the other services, like identify, we > noticed that there were "holes" in the parcel layer from the .mdb, that > aren't in the shapefile generated parcels layer. When I search the > geodatabase for a feature that is not drawing, I find it in the .mdb. > > Has anyone else had this problem? Does anybody know why it would do > this &/or how to fix it? Any help would be much appreciated. Heather, I would suggest isolating the problem as best you can and filing a ticket against GDAL/OGR. I would encourage you to identify a particular feature that isn't getting picked up by MapServer and try it to see if it is visible via ogrinfo. Make sure your bug report identifies a missing feature specifically (ie. provide the record id or something specific). 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 | President OSGeo, http://osgeo.org From warmerdam at pobox.com Tue May 20 09:40:13 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 May 2008 12:40:13 -0400 Subject: [MAPSERVER-USERS] WMS server with non-EPSG SRS? In-Reply-To: <17343514.post@talk.nabble.com> References: <17342340.post@talk.nabble.com> <4832E774.5090801@pobox.com> <17343514.post@talk.nabble.com> Message-ID: <4832FEED.2080804@pobox.com> Neil Best wrote: > > Frank Warmerdam-2 wrote: >> The normal practice if you want a non-EPSG coordinate system to be usable >> for WMS serving with MapServer is to just extend the epsg init file with >> the definition. Is this unacceptable for some reason? >> > > I have been reluctant to do this because: > > 1) I was concerned about tinkering with core software files in a production > system, without any hard evidence that there was any chance for an > end-to-end solution (see #3). At the moment I don't have a segregated test > bed where I can test the effect of such a change on my Mapserver application > and guarantee no interruption. Is it still true then that Mapserver won't > even respect "init=esri:xxxxx"? Neil, I believe you can use other init files in MapServer, but WMS EPSG SRS codes will only be looked up in the epsg init file. So for WMS purposes the coordinate system has to be in the epsg init file. > 2) I would be extending a popular, mature standard in an ad hoc, maverick > fashion (which is central to some business models, but not ours!), mainly > because of the risk of future complications as the standard evolves and the > maintenance overhead of propagating my amendments and remembering to reapply > them any time that software is upgraded or new systems are provisioned. Well, I would claim this is an implicit problem in the WMS standard which (at least at 1.1) is tied to the assumption that EPSG is all the coordinate systems anyone will ever need. > 3) I have no reason to expect that the client (ArcGIS Server in this case) > will understand what it is that is being advertised, assuming that an > analogous look-up table is contained somewhere within its WMS client > implementation. Is there any reason to think that Arc's WMS client relies > on the proj support files that are included with the GDAL code that ships > from ESRI? Do I really want to get into the scenario of violating my > customer's end user license or voiding their warantee by editing files > installed by ESRI software? Yes, well, that is certainly the other side of the problem. Arbitrary extensions to the epsg code set are often not recognised by client software. > On the other hand, it is useful to know that such an edit is considered a > "normal practice" by someone I can trust to make such a judgment. That > said, is there anyone else who considers the standard unnecessarily > constraining in this respect or am I shouting into the abyss? Well, I'd claim you are shouting at the wrong people! 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 | President OSGeo, http://osgeo.org From nipapada at gmail.com Tue May 20 09:40:32 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Tue, 20 May 2008 19:40:32 +0300 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) Message-ID: <4832FF00.7030609@gmail.com> Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME "TEST!!!" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "C:\ms4w\Apache\htdocs\test.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html * MapServer Hello World
* * -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Tue May 20 09:46:31 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 20 May 2008 18:46:31 +0200 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <4832FF00.7030609@gmail.com> References: <4832FF00.7030609@gmail.com> Message-ID: <48330067.3060404@neogeo-online.net> if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume ????? ????????? a ?crit : > Unfortunately the error insists. > I have tried every advice you gave me but stiil nothing. > All the modifications i did are: > 1)Check the orientation of slashes and i actually tried every possible > orientation. > 2)Placed the MAP keyword in the first line of .map file. > 3)Tried an older version of MapServer (although there is nothing > different according to the site...). > > Perhaps i should try it on linux? > Does it make any difference at all? > > *test.map* > > MAP > NAME "TEST!!!" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > > WEB > TEMPLATE "C:\ms4w\Apache\htdocs\test.html" > IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" > IMAGEURL "/tmp/" > END > > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > > > > > > > > *test.html > > * > MapServer Hello World > > > > >
> > > >
> > > > > > * > * > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org From David.Fawcett at state.mn.us Tue May 20 09:58:40 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 20 May 2008 11:58:40 -0500 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) In-Reply-To: <4832FF00.7030609@gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD5F@s-sp22.pca.state.mn.us> For testing map files, I like to go the simplest route and use mode=map. I took the map file text below (not including "test.map" because that would break the file) and I pasted it into a new map file. I called it using the URL: http://localhost/cgi-bin/mapserv.exe?mode=map&map=d:\test.map and it returned a yellow rectangle with "Hello World" and a one pixel red dot in the middle of it. There appears to be nothing wrong with your map file. I am running MS4W 2.2.6 David. PS. This line from your html page looks a little funky: -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of nipapada at gmail.com Sent: Tuesday, May 20, 2008 11:41 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? test.map MAP NAME "TEST!!!" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "C:\ms4w\Apache\htdocs\test.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END test.html MapServer Hello World
-------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 20 10:17:08 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 20 May 2008 20:17:08 +0300 Subject: Hi: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) References: <4832FF00.7030609@gmail.com> Message-ID: Hi, I copy-pasted your mapfile from this message (between MAP and END), stored it on my hard disk and had a try with MS4W with the following URL: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/maps/test.map&mode=map I received a yellowish box on browser with Hello World text on it. Thus your mapfile and operating system is OK for this task. There must be something very little teasing you at the moment, but I trust that you will do it. Are you totally sure that you do not have anything extra, like ':' in the first line of your mapfile, as the error message suggests? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: ????? ????????? L?hetetty: ti 20.5.2008 19:40 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near(:):(line 1) Unfortunately the error insists. I have tried every advice you gave me but stiil nothing. All the modifications i did are: 1)Check the orientation of slashes and i actually tried every possible orientation. 2)Placed the MAP keyword in the first line of .map file. 3)Tried an older version of MapServer (although there is nothing different according to the site...). Perhaps i should try it on linux? Does it make any difference at all? *test.map* MAP NAME "TEST!!!" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "C:\ms4w\Apache\htdocs\test.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END *test.html * MapServer Hello World
* * From nellyfromma at gmail.com Tue May 20 10:17:59 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 20 May 2008 13:17:59 -0400 Subject: [mapserver-users] FastCGI & ms4w Message-ID: <69935d110805201017nb8be127wb475d4bde78cc274@mail.gmail.com> Has anyone had any success getting fastcgi to run on MS4W? Can I be pointed to any references I need to get this started? From jeffmckenna at gmail.com Tue May 20 11:02:19 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Tue, 20 May 2008 14:02:19 -0400 Subject: [mapserver-users] FastCGI & ms4w In-Reply-To: <69935d110805201017nb8be127wb475d4bde78cc274@mail.gmail.com> References: <69935d110805201017nb8be127wb475d4bde78cc274@mail.gmail.com> Message-ID: <5DA6F761-DC27-4FBB-9A6F-D74863D77B1F@gmail.com> There are brief notes on this in the MS4W readme (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#d-fastcgi ). However I see that the mod_fastcgi module for apache 2.2 is available since march at: http://www.apachelounge.com/download/ -jeff From danmuc at gmail.com Tue May 20 11:58:38 2008 From: danmuc at gmail.com (=?ISO-8859-1?Q?Daniel_Mu=F1oz_Castro?=) Date: Tue, 20 May 2008 13:58:38 -0500 Subject: [mapserver-users] PHP extensions Message-ID: <960cb7fb0805201158r4356faccq4989acda15b0e78e@mail.gmail.com> Hi. I need the PostgreSQL, Oracle and OCI8 extensions for a PHP version 4.4.2 and Apache 1.3.34, over Linux RedHat 4. Any help about a site where it can be downloaded!. Thanks. -- Salu2!. Daniel Mu?oz Castro Ingeniero Catastral y Geodesta Cel. 313 4336931 Casa. 4085485 Oficina. 7470001 Ext. 1141 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Tue May 20 12:10:37 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Tue, 20 May 2008 15:10:37 -0400 Subject: [mapserver-users] FastCGI & ms4w In-Reply-To: <5DA6F761-DC27-4FBB-9A6F-D74863D77B1F@gmail.com> References: <69935d110805201017nb8be127wb475d4bde78cc274@mail.gmail.com> <5DA6F761-DC27-4FBB-9A6F-D74863D77B1F@gmail.com> Message-ID: <69935d110805201210u29fc5f4epe2dcf9ca6a9b1aca@mail.gmail.com> I read these and was able to add the dll to Apache and restart with success. I don't know if I am supposed to leave CGI on or disable it while FastCGI is on but I noticed if i shut both off my maps still draw so I'm a bit lost on it... On Tue, May 20, 2008 at 2:02 PM, Jeff McKenna wrote: > There are brief notes on this in the MS4W readme > (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#d-fastcgi). > However I see that the mod_fastcgi module for apache 2.2 is available since > march at: http://www.apachelounge.com/download/ > > -jeff > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jeff.hoffmann at gmail.com Tue May 20 13:12:13 2008 From: jeff.hoffmann at gmail.com (Jeff Hoffmann) Date: Tue, 20 May 2008 15:12:13 -0500 Subject: [mapserver-users] Using personal geodatabases (.mdb) In-Reply-To: References: Message-ID: <4833309D.5030305@gmail.com> Heather Wirth wrote: > We currently have a functional Geomoose (a front end to MapServer) site > using shapefiles, but thought we may want to migrate to a personal > geodatabase (.mdb) to ease the process of updating map information. We > followed all the instructions on the MapServer site for using .mdb > files, and can get the layer to display. > > The problem we have is that the layer from the .mdb does not "draw" all > features. For testing, we added just one layer, parcels. At the same > time, for comparison purposes, we left the parcels shapefile in the > project. While testing some of the other services, like identify, we > noticed that there were "holes" in the parcel layer from the .mdb, that > aren't in the shapefile generated parcels layer. When I search the > geodatabase for a feature that is not drawing, I find it in the .mdb. > > Has anyone else had this problem? Does anybody know why it would do > this &/or how to fix it? Any help would be much appreciated. > I believe you're falling prey to a bug in OGR (http://trac.osgeo.org/gdal/ticket/1484). It may be possible to work around it, but I'm sure it'd be a whole lot easier to just find a reliable way to dump the data to a shape file and use it that way. Jeff From szekerest at gmail.com Tue May 20 13:22:05 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 20 May 2008 22:22:05 +0200 Subject: [mapserver-users] C# functon resultCacheMemberObj shapeindex ... Posible bug? In-Reply-To: <33fad6880805200512h22f816e7uc27284a2b01387f9@mail.gmail.com> References: <33fad6880805191358h6cef4a4ap769e111275a9ea72@mail.gmail.com> <33fad6880805200512h22f816e7uc27284a2b01387f9@mail.gmail.com> Message-ID: Paul, As looking into the code, the postgis driver accepts only 10 digit integers in the OID fields. Can you confirm your values in the idX field satisfy with this requirement? If yes, then I consider this as a bug and please file a ticket including the values in the OID you've been testing with. Best regards, Tamas 2008/5/20 Paul james : > I?m using Postgis... > My mapfile: > > MAP > EXTENT -79.7892 -34.2426 -24.9958 6.11775 > FONTSET "fonts.txt" > IMAGECOLOR 255 255 255 > IMAGETYPE png > SYMBOLSET "symbols.sym" > SIZE 400 200 > STATUS ON > UNITS dd > NAME "World" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/png > DRIVER gd/png > EXTENSION png > IMAGEMODE rgb > TRANSPARENT FALSE > END > > QUERYMAP > COLOR 255 0 0 > SIZE -1 -1 > STATUS ON > STYLE hilite > END > > LAYER #With string PK > NAME city > GROUP "GROUP1" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=X password=x dbname=tblX host=localhost" > DATA "geom from tblX USING UNIQUE idX USING SRID=4291" > CLASS > TEMPLATE "dummy" > NAME "x" > COLOR 255 255 185 > OUTLINECOLOR 110 110 110 > END > END > END > > On 5/19/08, Tamas Szekeres wrote: >> >> Hi, >> >> Which driver are you using, how the mapfile looks like? >> >> >> Tamas >> >> >> 2008/5/19 Paul james : >> > Hello guys... >> > I have a table with a character(11) PK... >> > When I trie to get the shapes with queryByRect, all results are with >> > shapeindex equal 0 (zero) ... >> > If I tried that with a table with a integer PK, everthing works >> > perfect.. >> > My code: >> > >> > layerObj _layer = mapObj.getLayerByName(__layer); >> > if (_layer.queryByRect(mapObj, _oGeo) == 0) >> > { >> > for (int i = 0; i < _layer.getNumResults(); i++) >> > { >> > resultCacheMemberObj _result = _layer.getResult(i); >> > //_result.shapeindex == 0 >> > shapeObj _obj = new shapeObj(-1); //dummy >> > _layer.open(); >> > _layer.getShape(_obj, -1, _result.shapeindex); >> > } >> > } >> > >> > >> > >> > Any solutions? >> > >> > []?s >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From David.Fawcett at state.mn.us Tue May 20 13:26:37 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 20 May 2008 15:26:37 -0500 Subject: [mapserver-users] Using personal geodatabases (.mdb) In-Reply-To: <4833309D.5030305@gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD61@s-sp22.pca.state.mn.us> Sarah, I am not aware of any quantitative numbers, but I would guess that shapefiles will perform better than a personal geodatabase. Since I am guessing that you will not be putting your 'official' copy of your database on your Web server, you will be moving periodic snapshots of your data from behind your firewall onto your Web server. I would suggest writing a simple python script that grabs the feature classes from your personal geodatabase and dumps them to shapefiles. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff Hoffmann Sent: Tuesday, May 20, 2008 3:12 PM To: Heather Wirth Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Using personal geodatabases (.mdb) Heather Wirth wrote: > We currently have a functional Geomoose (a front end to MapServer) > site using shapefiles, but thought we may want to migrate to a > personal geodatabase (.mdb) to ease the process of updating map > information. We followed all the instructions on the MapServer site > for using .mdb files, and can get the layer to display. > > The problem we have is that the layer from the .mdb does not "draw" > all features. For testing, we added just one layer, parcels. At the > same time, for comparison purposes, we left the parcels shapefile in > the project. While testing some of the other services, like identify, > we noticed that there were "holes" in the parcel layer from the .mdb, > that aren't in the shapefile generated parcels layer. When I search > the geodatabase for a feature that is not drawing, I find it in the > .mdb. > > Has anyone else had this problem? Does anybody know why it would do > this &/or how to fix it? Any help would be much appreciated. > I believe you're falling prey to a bug in OGR (http://trac.osgeo.org/gdal/ticket/1484). It may be possible to work around it, but I'm sure it'd be a whole lot easier to just find a reliable way to dump the data to a shape file and use it that way. Jeff _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Tue May 20 13:37:04 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 20 May 2008 22:37:04 +0200 Subject: [mapserver-users] Creating symbolset from scratch In-Reply-To: <4832866A.1030508@eryr.com> References: <4832866A.1030508@eryr.com> Message-ID: Tom, According to https://trac.osgeo.org/mapserver/ticket/1676 this is quite an unsupported use-case. Instead, you should use appendSymbol to populate a predefinied symbolset with the desired symbols. Best regards, Tamas 2008/5/20 Tom Chase : > Morning! > > In mapscript, if I was to create a symbolset from scratch, how would I then > link it to a map? The method map.setSymbolSet() takes a filename but not a > symbolset object, and the property map.symbolset is immutable. FWIW, I'm > using python. Am I just being stupid? > Cheers! > Tom > > -- > ------------------------------------------------------------------------ > *STOP!* Do not print unless necessary! Leave some trees for the monkeys! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From SansonR at asurequality.com Tue May 20 13:47:02 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 21 May 2008 08:47:02 +1200 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <48330067.3060404@neogeo-online.net> References: <4832FF00.7030609@gmail.com> <48330067.3060404@neogeo-online.net> Message-ID: <4833E18602000037000039C2@gate1.agriquality.com> hi Here is how I reference paths in Mapserver under Windows: # this is the real filepath to the temp dir for intermediate file creation IMAGEPATH "/ms4w/tmp/ms_tmp/" THis works for me. Kind regards, Robert Sanson >>> Guillaume Sueur 21/05/2008 4:46 a.m. >>> if you can, yes, have a try to linux. But this should work on Windows too. it's been a long time since I haven't used MapServer on Windows, but I remember having had problems with backslashes. Can you try doubling them (ie C:\\ms4w\\Apache\\htdocs\\test.html) Can you confirm it is still the exact same error (parsing error on line 1) ? then, can you check your CR-LF as well ? Hope that helps ! Guillaume ????? ?apad???? a ?crit : > Unfortunately the error insists. > I have tried every advice you gave me but stiil nothing. > All the modifications i did are: > 1)Check the orientation of slashes and i actually tried every possible > orientation. > 2)Placed the MAP keyword in the first line of .map file. > 3)Tried an older version of MapServer (although there is nothing > different according to the site...). > > Perhaps i should try it on linux? > Does it make any difference at all? > > *test.map* > > MAP > NAME "TEST!!!" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > > WEB > TEMPLATE "C:\ms4w\Apache\htdocs\test.html" > IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" > IMAGEURL "/tmp/" > END > > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > > > > > > > > *test.html > > * > MapServer Hello World > > > > >
> > > >
> > > > > > * > * > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nipapada at gmail.com Tue May 20 14:39:21 2008 From: nipapada at gmail.com (=?UTF-8?B?zp3Or866zr/PgiDOoM6xz4DOsc60zqzOus63z4I=?=) Date: Wed, 21 May 2008 00:39:21 +0300 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <4833E18602000037000039C2@gate1.agriquality.com> References: <4832FF00.7030609@gmail.com> <48330067.3060404@neogeo-online.net> <4833E18602000037000039C2@gate1.agriquality.com> Message-ID: <48334509.2070205@gmail.com> It works!!! Paths don't need C:/ in front! Thank you. O/H Robert Sanson ??????: > hi > > Here is how I reference paths in Mapserver under Windows: > > # this is the real filepath to the temp dir for intermediate file > creation > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > THis works for me. > > Kind regards, > > Robert Sanson > > >>> Guillaume Sueur 21/05/2008 > 4:46 a.m. >>> > if you can, yes, have a try to linux. But this should work on Windows too. > it's been a long time since I haven't used MapServer on Windows, but I > remember having had problems with backslashes. Can you try doubling them > (ie C:\\ms4w\\Apache\\htdocs\\test.html) > > Can you confirm it is still the exact same error (parsing error on line > 1) ? > > then, can you check your CR-LF as well ? > > Hope that helps ! > > Guillaume > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfuhry at gmail.com Tue May 20 14:54:50 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Tue, 20 May 2008 17:54:50 -0400 Subject: [mapserver-users] postgis - idle in transaction In-Reply-To: <30fe546d0805191209u773a03f3hdcee3e8e3344a257@mail.gmail.com> References: <200805191946.48503.ivan.mincik@gmail.com> <30fe546d0805191209u773a03f3hdcee3e8e3344a257@mail.gmail.com> Message-ID: <90699a8d0805201454w16d78aecpb2a032d8ecbf87ce@mail.gmail.com> Ivan, If you shutdown Apache or whatever is running FastCGI, then I assume mapserver will close those connections. Pooled mapserver connections certainly are idle in a transaction. mapserver issues a BEGIN (transaction) when the connection is made, because the binary cursor queries mapserver issues must be in a transaction. If it's a problem to be leaving idle connections in transactions, we can change things to issue BEGIN right before the DECLARE BINARY CURSOR query, and ROLLBACK right after the CLOSE CURSOR. That's two more database calls though; are they necessary? The queries never modify data, so the transactions won't be holding any sort of write locks. It's very normal for an app to hold a pool of idle connections to a database. Is there a reason it's worse when each of those connections is inside a transaction? Thanks, Dave On Mon, May 19, 2008 at 3:09 PM, Paul Ramsey wrote: > More pain? > > ---------- Forwarded message ---------- > From: Ivan Mincik > Date: Mon, May 19, 2008 at 10:46 AM > Subject: [mapserver-users] postgis - idle in transaction > To: mapserver-users at lists.osgeo.org > > > Hi, > I have started using p.mapper WebGIS client with > PROCESSING "CLOSE_CONNECTION=DEFER" > parameter for all postgis layers. (using the latest version of mapserver > 5.0.x and patch for the issue with CLOSE_CONNECTION=DEFER). > > In htop I see lot of connections "postgres: user database 127.0.0.1(47132) > idle in transaction" which will remain until the next restart of database > server. > > Has anybody the same problem ? > > Thanks Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard at winwaed.com Tue May 20 20:13:25 2008 From: richard at winwaed.com (Richard Marsden) Date: Tue, 20 May 2008 22:13:25 -0500 Subject: [mapserver-users] MapServer / OpenLayers application launched Message-ID: <48339355.8060808@winwaed.com> (sorry for the cross-posting to the openlayers and mapserver listserver - I believe this is relevant to both) Thank you for helping with my beginners questions. I now have both MapServer and OpenLayers working for the maps on the http://www.ecomapcostarica.com website. This website documents an ecological study of a rain forest reforestation site in Costa Rica. University of Dallas students will be performing the field work as a part of their Field Ecology class. Their class started today and they have already posted their first blog comments. We fly on Sunday, and will be 'in the field' for about a week. We shall have the students blogging, as well as live map updates, and the posting of new panoramic photos as we build them (yes we have internet access in the rain forest!). So feel free to bookmark the site and take a look over the next two weeks. For the map side of things, we quickly realised that Google Maps and Virtual Earth simply did not have the required level of detail for Costa Rica, so I had to create my own mapping application. I chose MapServer to serve the maps, but quickly discovered OpenLayers which greatly improved the user experience. The end result is quite a mix! There are two main versions: http://www.ecomapcostarica.com/map/index.shtml http://www.ecomapcostarica.com/map/index_ve.shtml For a base map, the first map uses a SHP file of the outline of Costa Rica and 1st level admin boundaries delivered by MapServer via WMS. The second uses Virtual Earth for a base map. MapServer WMS also delivers the 'Synthetic Stream' data (also a SHP file) and the 'ASTER' satellite image (a GeoTIFF). OpenLayers brings in two KML layers that have the map data, annotation, and icons that we shall be adding to next week. The icons layer also has popups (I'm having group all 'clickable' shapes on the icons layers due to that bug I asked about last week). Then, just to liven things up, the survey grid is drawn at run-time by Javascript. This grid will have to be relocated on the first day - ie. recomputed/etc. So we might as well have the computation on the webpage, instead of using Excel/Python/whatever and a load of KML text editing. Best regards, Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com From flavio at tydac.ch Tue May 20 22:53:46 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 21 May 2008 07:53:46 +0200 Subject: [mapserver-users] Scaling Labels In-Reply-To: <69935d110805200755j6f623288y8f219bd68a43f901@mail.gmail.com> References: <69935d110805200755j6f623288y8f219bd68a43f901@mail.gmail.com> Message-ID: Hi Nelson You could use SIZEUNITS (i.e. meters, feet and so on; be aware that it accepts only integer values): LAYER NAME "xyz" TYPE ANNOTATION STATUS ON SIZEUNITS feet .... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- -----Original Message----- From: "Nelson Soto" To: mapserver-users at lists.osgeo.org Date: Tue, 20 May 2008 10:55:48 -0400 Subject: [mapserver-users] Scaling Labels > This is a pretty dumb question but: > > Is there an easy way to make label sizes scale with respect to the > view? Or must I create a bunch of MAXSCALE MINSCALE LABELSIZE > entries? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pal.kristensen at statkart.no Wed May 21 05:05:02 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 21 May 2008 05:05:02 -0700 (PDT) Subject: [MAPSERVER-USERS] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <4832FF00.7030609@gmail.com> References: <4832FF00.7030609@gmail.com> Message-ID: <17364161.post@talk.nabble.com> Hi! Did you resolve this issue? I have seen something similar when the mapfile is encoded with wrong character set. Have you tried saving the file as ANSI or UTF-8? Regards, P?l Kristensen ????? ????????? wrote: > > Unfortunately the error insists. > I have tried every advice you gave me but stiil nothing. > All the modifications i did are: > 1)Check the orientation of slashes and i actually tried every possible > orientation. > 2)Placed the MAP keyword in the first line of .map file. > 3)Tried an older version of MapServer (although there is nothing > different according to the site...). > > Perhaps i should try it on linux? > Does it make any difference at all? > > *test.map* > > MAP > NAME "TEST!!!" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > > WEB > TEMPLATE "C:\ms4w\Apache\htdocs\test.html" > IMAGEPATH "C:\ms4w\Apache\htdocs\tmp" > IMAGEURL "/tmp/" > END > > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > > > > > > > > *test.html > > * > MapServer Hello World > > > > >
> > > >
> [img] > > > > > * > * > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/loadWeb%28%29%3A-Unknown-identifier.-Parsing-error-near-%28%3A%29%3A%28line-1%29-tp17344928p17364161.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at neogeo-online.net Wed May 21 05:29:26 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Wed, 21 May 2008 14:29:26 +0200 Subject: [mapserver-users] Performances using EPSG codes or Proj parameters Message-ID: <483415A6.4040504@neogeo-online.net> Folks, In a previous thread (testing mapserver largefiles rendering improvements), Paul mentionned that using proj4 literals was a part of a performances improvement process. Has anyone done some tests about this and would have few results to share ? We drop that thread after discussing about auto-qix or not. Could we open some wiki page on the topic 'How to improve MapServer performance' and 'What should a MapFile optimizer do ?'. It could be a good start to a maybe more formal approach we could hold in CapeTown. Regards, Guillaume SUEUR From ven.tammineni at gmail.com Wed May 21 05:37:25 2008 From: ven.tammineni at gmail.com (venkat) Date: Wed, 21 May 2008 18:07:25 +0530 Subject: [mapserver-users] Reg:- Not able to show KeyMap on main page Message-ID: <79ad14900805210537q3baafd47v41070a6fa58a4c75@mail.gmail.com> Dear All, I am Venkat,I am developing an web application.In that One of the task is Keymap(Overviewmap).I am using C# asp.net .I can able to compile my code and when i debug image path everything is correct it seems.But I am not able to see keymap on my page.Even i am not getting error. I am sending attachment.Anyone can help me. 1) C# code :- referenceMapObj referenceMap = map.reference; imageObj ReferenceImg = map.drawReferenceMap(); imgOver.ImageUrl = ReferenceImg.ToString(); //image button iam trying to show map on imagebutton(is there any otherway?) 2) Mapfile Code WEB imagepath "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" imageurl "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" END REFERENCE IMAGE "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp\KeyMap.png" EXTENT -180 -90 180 90 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END I am waiting for great response. Advanced Thanks. Thanks and Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: app.JPG Type: image/jpeg Size: 90022 bytes Desc: not available URL: From jlacroix at mapgears.com Wed May 21 06:00:52 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed, 21 May 2008 09:00:52 -0400 Subject: [mapserver-users] PHP extensions In-Reply-To: <960cb7fb0805201158r4356faccq4989acda15b0e78e@mail.gmail.com> References: <960cb7fb0805201158r4356faccq4989acda15b0e78e@mail.gmail.com> Message-ID: <48341D04.5070603@mapgears.com> Hi, You can try FGS: http://www.maptools.org/fgs/ I'm not sure it contains Oracle, but it has all the other packages. Julien Daniel Mu?oz Castro wrote: > Hi. > > I need the PostgreSQL, Oracle and OCI8 extensions for a PHP version > 4.4.2 and Apache 1.3.34, over Linux RedHat 4. Any help about a site > where it can be downloaded!. > > Thanks. > > -- > Salu2!. > > Daniel Mu?oz Castro > Ingeniero Catastral y Geodesta > Cel. 313 4336931 > Casa. 4085485 > Oficina. 7470001 Ext. 1141 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From jeffmckenna at gmail.com Wed May 21 06:36:11 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Wed, 21 May 2008 09:36:11 -0400 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) In-Reply-To: <48334509.2070205@gmail.com> References: <4832FF00.7030609@gmail.com> <48330067.3060404@neogeo-online.net> <4833E18602000037000039C2@gate1.agriquality.com> <48334509.2070205@gmail.com> Message-ID: <502E16C9-3F84-4B1F-BF6C-CC1F3642B0BF@gmail.com> in fact please see my first response to your issue for the correct settings for imagepath and imageurl when using MS4W. -jeff On 20-May-08, at 5:39 PM, ????? ????????? wrote: > It works!!! > > Paths don't need C:/ in front! > Thank you. > From lehrs at erau.edu Wed May 21 06:37:28 2008 From: lehrs at erau.edu (Steven Lehr) Date: Wed, 21 May 2008 09:37:28 -0400 Subject: [mapserver-users] Using personal geodatabases (.mdb) References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD61@s-sp22.pca.state.mn.us> Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3137B45@DBEXVS02.erau.edu> Does anyone have some generic python scripts to do such a thing. I'd love to have some examples. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Fawcett, David Sent: Tue 5/20/2008 4:26 PM To: Jeff Hoffmann; Heather Wirth Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Using personal geodatabases (.mdb) Sarah, I am not aware of any quantitative numbers, but I would guess that shapefiles will perform better than a personal geodatabase. Since I am guessing that you will not be putting your 'official' copy of your database on your Web server, you will be moving periodic snapshots of your data from behind your firewall onto your Web server. I would suggest writing a simple python script that grabs the feature classes from your personal geodatabase and dumps them to shapefiles. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff Hoffmann Sent: Tuesday, May 20, 2008 3:12 PM To: Heather Wirth Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Using personal geodatabases (.mdb) Heather Wirth wrote: > We currently have a functional Geomoose (a front end to MapServer) > site using shapefiles, but thought we may want to migrate to a > personal geodatabase (.mdb) to ease the process of updating map > information. We followed all the instructions on the MapServer site > for using .mdb files, and can get the layer to display. > > The problem we have is that the layer from the .mdb does not "draw" > all features. For testing, we added just one layer, parcels. At the > same time, for comparison purposes, we left the parcels shapefile in > the project. While testing some of the other services, like identify, > we noticed that there were "holes" in the parcel layer from the .mdb, > that aren't in the shapefile generated parcels layer. When I search > the geodatabase for a feature that is not drawing, I find it in the > .mdb. > > Has anyone else had this problem? Does anybody know why it would do > this &/or how to fix it? Any help would be much appreciated. > I believe you're falling prey to a bug in OGR (http://trac.osgeo.org/gdal/ticket/1484). It may be possible to work around it, but I'm sure it'd be a whole lot easier to just find a reliable way to dump the data to a shape file and use it that way. Jeff _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at winwaed.com Wed May 21 07:19:40 2008 From: richard at winwaed.com (Richard Marsden) Date: Wed, 21 May 2008 09:19:40 -0500 Subject: [mapserver-users] Re: [OpenLayers-Users] MapServer / OpenLayers application launched In-Reply-To: <6ae3fb590805210634j594c9f67pc07ca3adab47a654@mail.gmail.com> References: <48339355.8060808@winwaed.com> <6ae3fb590805210634j594c9f67pc07ca3adab47a654@mail.gmail.com> Message-ID: <48342F7C.90406@winwaed.com> Erik, Thanks for the compliments! Sure, that would be great! Thanks, Richard Erik Uzureau wrote: > Hello Richard, > > The site looks great! > > Would you be OK with us adding this site to our gallery page: > http://trac.openlayers.org/wiki/Gallery > > ...? > > thanks! > Erik > From Piero.Cavalieri at heidi.it Wed May 21 08:01:00 2008 From: Piero.Cavalieri at heidi.it (Cavalieri Piero) Date: Wed, 21 May 2008 17:01:00 +0200 Subject: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or VB..... In-Reply-To: References: <17339858.post@talk.nabble.com> <4841F745477DF94A97C515658C91BB2F1556FB@lan-exc-01.heidi.local> Message-ID: <4841F745477DF94A97C515658C91BB2F1556FD@lan-exc-01.heidi.local> If you use jbox, you don't have to use an Image Button. Jbox has a function, which you have to implement, which is triggered on mouse relased. For my case it's so implemented: function setbox_handler(name, minx, miny, maxx, maxy) { //alert("Set handler: name: " + name + " minx: " + minx + " miny: " + miny); document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.mapserv.imgxy.value = minx + " " + miny; doAction(mode); } Also, as explained in jbox (and dbox) tutorial you have to implement also: seterror_handler reset_handler .. .. You can leave the functions body empty, if you don't use them, but at least setbox_handler must be implemented. Also there are some hidden variables to write in the aspx page (again read jbox docs). What I do in doAction(mode) is to make a query to Mapserver cgi (as I don't use C# bindings to mapserver) with javascript The javascript call is done to a C# function via Ajax, the C# function make the query to the cgi with HttpWebRequest method, and the results is parsed. In the result I have the URL of the new created image. This url is send back to the aspx page where, with javascript, I change the url of the displayed image: This is quite complicated round trip, if you want to implement it in few hours (or days...), but then it works fine. What you can do, to simplify things, is to implement doAction to make a post to the aspx page which contains the jbox applet, and then in code behind of the page, make the query to Mapserver (cgi or using C# bindings). Then in code-behind you have to change the url of the image in the applet (maybe you can't do it dynamically server side, as jbox is not a server control, however you can set the new image url in a hidden server control, then via javascriot take that value and change the image url of the applet). Cheers Piero ________________________________ From: yatendra jaiswal [mailto:yatendra.jaiswal at gmail.com] Sent: mercoled? 21 maggio 2008 07:29 To: Cavalieri Piero Subject: Re: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or VB..... Dear Cavalieri, Thanks for immediate response. I have tried as you explained. But i am not getting any possitive result. I am using image button. How to implement jbox on image button? Please if possible explain in brief. Thanks regards... On 5/20/08, Cavalieri Piero wrote: You use it exatly the same as with other languages (jbox is an applet): In aspx: Values inside <%=...%> are setted here in the code behind of the page, for the first request (if(!IsPostBack)), then I use ajax to build appropriate requests and to swap the old image with the new returned ones (document.jbox.setimage(newImage.src)); Be sure to read jbox tutorials (you need setbox_handler ecc. as indicated in the tutorial). Cheers Piero > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of yatendra > Sent: marted? 20 maggio 2008 15:06 > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] How to implement jBox in asp.netusing C# or > VB..... > > > Hi Friends, > i need some help to create rubberband zoom in funtionality..... > Can any one know hoe to use jBox functionality asp.net . > or How to create zoom in funtionality using rubberband? > Please explain.. > Thanks Regards > -- > View this message in context: http://www.nabble.com/How-to-implement-jBox- > in-asp.netusing-C--or-VB.....-tp17339858p17339858.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yatendra Jaiswal yatendra.jaiswal at gmail.com +91-9423344396 -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed May 21 08:26:54 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 21 May 2008 17:26:54 +0200 Subject: [mapserver-users] Reg:- Not able to show KeyMap on main page In-Reply-To: <79ad14900805210537q3baafd47v41070a6fa58a4c75@mail.gmail.com> References: <79ad14900805210537q3baafd47v41070a6fa58a4c75@mail.gmail.com> Message-ID: Venkat, I'm pretty sure that ReferenceImg.ToString(); won't return the content of the image. Instead you might want to create a separate aspx/ashx and use Response.BinaryWrite to return the contents of the image and assign the URL of this page to imgOver.ImageUrl. Alternatively you could save the image as a file at the server and use the URL to this file in imgOver.ImageUrl. Best regards, Tamas 2008/5/21 venkat : > Dear All, > > I am Venkat,I am developing an web application.In that One of the task is > Keymap(Overviewmap).I am using C# asp.net .I can able to compile my code and > when i debug image path everything is correct it seems.But I am not able to > see keymap on my page.Even i am not getting error. I am sending > attachment.Anyone can help me. > > 1) C# code :- > referenceMapObj referenceMap = map.reference; > imageObj ReferenceImg = map.drawReferenceMap(); > imgOver.ImageUrl = ReferenceImg.ToString(); //image button iam > trying to show map on imagebutton(is there any otherway?) > > 2) Mapfile Code > > WEB > imagepath "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" > imageurl "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" > END > > REFERENCE > IMAGE "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp\KeyMap.png" > EXTENT -180 -90 180 90 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > > I am waiting for great response. > Advanced Thanks. > > > > Thanks and Regards > Venkat. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From naci0002 at umn.edu Wed May 21 08:43:07 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Wed, 21 May 2008 10:43:07 -0500 Subject: [mapserver-users] Reg:- Not able to show KeyMap on main page In-Reply-To: <79ad14900805210537q3baafd47v41070a6fa58a4c75@mail.gmail.com> References: <79ad14900805210537q3baafd47v41070a6fa58a4c75@mail.gmail.com> Message-ID: <4834430B.1090003@umn.edu> Venkat, Check your IMAGEPATH and IMAGEURL... IMAGEPATH should point to the local path (which is correct in your example, except it needs the ending slash "/"). IMAGEURL is the path relative to the web root--this is assuming you've defined an Alias (virtual directory) for your temp directory. Since you seem to be using IIS, I'll assume your IMAGEURL is actually the path after "C:\Inetpub\wwwroot"... so, your IMAGEURL is probably "/RoulacGIS/MapFile/tmp/" So, IMAGEPATH is the local path (local to your server) and IMAGEURL is the "web path" (relative to the web server's root URL). You can check whether the reference works or not outside of your C# app--just run a MapServer CGI request like this: http://localhost/cgi-bin/mapserv.exe?map=/Inetpub/wwwroot/RoulacGIS/MapFile/tmp/yourmapfile.map&mode=reference This request should return your reference image. It will not fix any C# related problems you may have. I recommend that you familiarize yourself with the MapServer map file reference: http://mapserver.gis.umn.edu/docs/reference/mapfile You might also want to check Jeff McKenna's MapServer User's Manual (which is in draft form right now): http://download.osgeo.org/mapserver/docs/mapserver-users-manual.pdf -Perry venkat wrote: > Dear All, > > I am Venkat,I am developing an web application.In that One of the > task is Keymap(Overviewmap).I am using C# asp.net .I > can able to compile my code and when i debug image path everything is > correct it seems.But I am not able to see keymap on my page.Even i am > not getting error. I am sending attachment.Anyone can help me. > > 1) C# code :- > referenceMapObj referenceMap = map.reference; > imageObj ReferenceImg = map.drawReferenceMap(); > imgOver.ImageUrl = ReferenceImg.ToString(); //image button > iam trying to show map on imagebutton(is there any otherway?) > > 2) Mapfile Code > > WEB > imagepath "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" > imageurl "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp" > END > > REFERENCE > IMAGE "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp\KeyMap.png" > EXTENT -180 -90 180 90 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > > I am waiting for great response. > Advanced Thanks. > > > > Thanks and Regards > Venkat. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From MMaganti at oriongis.com Wed May 21 09:14:50 2008 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 21 May 2008 12:14:50 -0400 Subject: [mapserver-users] setConfigOption is not working Message-ID: I am trying to set a CONFIG option (using C# mapscript ) but it doesn't seems to work. In the map file (under layer block), I have set 'PLUGIN' parameter to the name of the DLL (without fully qualified path). I want to set the path prefix (MS_PLUGIN_DIR) at run time. Here is the C# code I am using, mapObj map = new mapObj("C:\\mymap.map"); map.setConfigOption("MS_PLUGIN_DIR", "C:\\my_plugins"); map.applyConfigOptions(); imageObj image=map.draw(); It is not loading the plug-in DLL. If I set this CONFIG parameter directly in the map file, it works fine. Also, when I debug and check the value of 'plugin_library' on layerObj, it does not contain the prefix of plug-in directory. Did anyone had the same issue? Am I missing any steps here. Appreciate any help. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From dfuhry at gmail.com Wed May 21 12:46:19 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Wed, 21 May 2008 15:46:19 -0400 Subject: [mapserver-users] postgis - idle in transaction In-Reply-To: <200805211114.59056.ivan.mincik@gmail.com> References: <200805191946.48503.ivan.mincik@gmail.com> <30fe546d0805191209u773a03f3hdcee3e8e3344a257@mail.gmail.com> <90699a8d0805201454w16d78aecpb2a032d8ecbf87ce@mail.gmail.com> <200805211114.59056.ivan.mincik@gmail.com> Message-ID: <90699a8d0805211246i79c6a416o2fb0745afee0572@mail.gmail.com> Ivan, Well, I guess problems like that are enough to convince me that we need to move the BEGIN right before the cursor query, and to explicitly ROLLBACK right after. There is no real reason that our readonly transactions need to hold locks on those tables after their queries are complete, but since they feel compelled to, we'd best hold them for a minimum of time. Paul's inclination to drop BINARY CURSORs for a single SELECT statement is looking ever-more attractive, as the steps to retrieve postgis data will now be: BEGIN DECLARE mycursor BINARY CURSOR FOR ... FETCH ALL IN mycursor CLOSE mycursor ROLLBACK I think we could fold the first two lines into "BEGIN; DECLARE mycursor BINARY CURSOR FOR ..." and the last two into "CLOSE mycursor; ROLLBACK" to keep latency & database calls a bit lower. Seems pretty safe but I'm not entirely convinced, so maybe as a followup patch. I'll work on a patch to change query behavior to the above. Maybe by late this evening. Thanks, Dave On Wed, May 21, 2008 at 5:14 AM, Ivan Mincik wrote: > Thank for the reply Dave, > the reason I wrote this post is that I am not sure if this behavior is NORMAL > or NOT. > > ONE MORE QUESTION to ask: When I try to add column to database ( ALTER TABLE > rieky ADD COLUMN test varchar(30);) the query will not finish when "idle in > transaction" processes are existing. I have to stop query by Ctrl-C. > > So, when I want to add column, I have to stop apache to kill these processes > and than run query. > Is is it normal because some kind of lock? > > > This is "ps -aux" when NO user is connected. > > www-data 13072 0.0 7.5 156444 19892 ? S May20 > 0:01 /usr/sbin/apache2 -k start > > postgres 13074 0.0 2.1 41256 5516 ? S May20 0:00 postgres: map > map 127.0.0.1(48763) idle in transaction > > postgres 13075 0.0 3.7 51640 9756 ? S May20 0:00 postgres: map > map 127.0.0.1(48764) idle in transaction > > postgres 13076 0.0 3.7 51640 9776 ? S May20 0:00 postgres: map > map 127.0.0.1(48765) idle in transaction > > postgres 13077 0.0 3.8 51636 10132 ? S May20 0:01 postgres: map > map 127.0.0.1(48766) idle in transaction > > postgres 13078 0.0 3.8 51636 10088 ? S May20 0:00 postgres: map > map 127.0.0.1(48767) idle in transaction > > postgres 15940 0.0 3.5 51516 9288 ? S 09:33 0:00 postgres: map > map 127.0.0.1(39643) idle in transaction > > postgres 15963 0.0 3.4 51444 8972 ? S 09:40 0:00 postgres: map > map 127.0.0.1(57171) idle in transaction > > >> Ivan, >> >> If you shutdown Apache or whatever is running FastCGI, then I assume >> mapserver will close those connections. > Yes, after restarting apache they will disappear. >> >> Pooled mapserver connections certainly are idle in a transaction. >> mapserver issues a BEGIN (transaction) when the connection is made, >> because the binary cursor queries mapserver issues must be in a >> transaction. >> >> if it's a problem to be leaving idle connections in transactions, we >> can change things to issue BEGIN right before the DECLARE BINARY >> CURSOR query, and ROLLBACK right after the CLOSE CURSOR. That's two >> more database calls though; are they necessary? >> >> The queries never modify data, so the transactions won't be holding >> any sort of write locks. It's very normal for an app to hold a pool >> of idle connections to a database. Is there a reason it's worse when >> each of those connections is inside a transaction? >> >> Thanks, >> >> Dave >> >> On Mon, May 19, 2008 at 3:09 PM, Paul Ramsey > wrote: >> > More pain? >> > >> > ---------- Forwarded message ---------- >> > From: Ivan Mincik >> > Date: Mon, May 19, 2008 at 10:46 AM >> > Subject: [mapserver-users] postgis - idle in transaction >> > To: mapserver-users at lists.osgeo.org >> > >> > >> > Hi, >> > I have started using p.mapper WebGIS client with >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > parameter for all postgis layers. (using the latest version of mapserver >> > 5.0.x and patch for the issue with CLOSE_CONNECTION=DEFER). >> > >> > In htop I see lot of connections "postgres: user database >> > 127.0.0.1(47132) idle in transaction" which will remain until the next >> > restart of database server. >> > >> > Has anybody the same problem ? >> > >> > Thanks Ivan >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From abe.gillespie.lists at gmail.com Wed May 21 13:09:59 2008 From: abe.gillespie.lists at gmail.com (Abram Gillespie) Date: Wed, 21 May 2008 16:09:59 -0400 Subject: [mapserver-users] ANN: zigGIS 2.0 Released Message-ID: <283a65ca0805211309p1c2667aboaf40d2746e76f93b@mail.gmail.com> Obtuse Software has officially opened for business! zigGIS 2.0 is now available for purchase. zigGIS 2.0 connects ArcGIS Desktop directly to PostGIS allowing you to view, analyze, and, best of all, edit PostGIS data. For more information, please see the official press release: http://www.obtusesoft.com/pr.html If you're already convinced, you can go directly to the online store: https://www.obtusesoft.com/store/order.aspx. The free Personal and Educational licenses won't be available for a couple of weeks. The source code will become available sometime thereafter. It's been a storm of activity here and we need some time to get our feet under us. Thank you for your time and patience over the last three years (has it been that long!?). zigGIS Team Obtuse Software From gwatmuff at geographicweb.com.au Wed May 21 21:36:09 2008 From: gwatmuff at geographicweb.com.au (Graeme Watmuff) Date: Thu, 22 May 2008 14:06:09 +0930 Subject: [mapserver-users] OGR error. Open failed for OGR connection Message-ID: <1211430969.4163.87.camel@bongolx.ringo.net> Dear all, I am encountering a problem with mapserver connecting to MySQL Software installed: gdal 1.5.1, mapserver 4.10.3 , mysql 5.1.24 on centos5 The error is: msDrawMap(): Image handling error. Failed to draw layer named 'recentsurveysites'. msOGRFileOpen(): OGR error. Open failed for OGR connection `MySQL:dbname,user=usr,password=pwd,host=localhost,port=3306'. File not found or unsupported format. gdal was compiled with mysql support: ogrinfo --formats Supported Formats: -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "MySQL" (read/write) -> "AVCBin" (readonly) I can connect from a command line shell: ogrinfo MySQL:dbname,user=usr,password=pwd site -so INFO: Open of `MySQL:dbname,user=usr,password=pwd ' using driver `MySQL' successful. Layer name: site Geometry: Unknown (any) Feature Count: 216056 Extent: (61.965278, -62.805556) - (167.987220, 34.751389) Layer SRS WKT: (unknown) FID Column = SiteID Geometry Column = geom ObserverID: Integer (0.0) ExistingSiteID: Integer (0.0) ExistingObserverID: Integer (0.0) Location: String (255.0) LocationName: String (255.0) State: Integer (0.0) Distance: Real (10.4) Direction: String (50.0) Town: String (255.0) Lat: Real (10.5) Lon: Real (10.5) Lat_in_secs: Integer (0.0) Lon_in_secs: Integer (0.0) PositionAccuracyID: Integer (0.0) CoordMethodID: Integer (0.0) DatumID: Integer (0.0) TimeCreated: DateTime (0.0) LastModified: DateTime (0.0) But alas this mapserv under /var/www/cgi-bin, won't make the connection to mysql? mapserver was compiled with ogr and gdal: mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE Has anyone worked this out? Graeme -- Graeme Watmuff Geographic Web Solutions Pty Ltd 17 Tay Road Woodforde South Australia 5072 ph: + 61 8 83364463 From dfuhry at gmail.com Thu May 22 10:01:47 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Thu, 22 May 2008 13:01:47 -0400 Subject: [mapserver-users] postgis - idle in transaction In-Reply-To: <200805212251.41354.ivan.mincik@gmail.com> References: <200805191946.48503.ivan.mincik@gmail.com> <200805211114.59056.ivan.mincik@gmail.com> <90699a8d0805211246i79c6a416o2fb0745afee0572@mail.gmail.com> <200805212251.41354.ivan.mincik@gmail.com> Message-ID: <90699a8d0805221001l5bdd3519xa73bc925068068f2@mail.gmail.com> Ivan, Try applying the patch at this new ticket: http://trac.osgeo.org/mapserver/ticket/2626 That should allow you to ALTER TABLE when connections are idle. Thanks, Dave On Wed, May 21, 2008 at 4:51 PM, Ivan Mincik wrote: > Thanks Dave. > I will try the patch instantly as You prepare it. > Ivan > > On Wednesday 21 May 2008 21:46, you wrote: >> Ivan, >> >> Well, I guess problems like that are enough to convince me that we >> need to move the BEGIN right before the cursor query, and to >> explicitly ROLLBACK right after. >> >> There is no real reason that our readonly transactions need to hold >> locks on those tables after their queries are complete, but since they >> feel compelled to, we'd best hold them for a minimum of time. >> >> Paul's inclination to drop BINARY CURSORs for a single SELECT >> statement is looking ever-more attractive, as the steps to retrieve >> postgis data will now be: >> >> BEGIN >> DECLARE mycursor BINARY CURSOR FOR ... >> FETCH ALL IN mycursor >> CLOSE mycursor >> ROLLBACK >> >> I think we could fold the first two lines into "BEGIN; DECLARE >> mycursor BINARY CURSOR FOR ..." and the last two into "CLOSE mycursor; >> ROLLBACK" to keep latency & database calls a bit lower. Seems pretty >> safe but I'm not entirely convinced, so maybe as a followup patch. >> >> I'll work on a patch to change query behavior to the above. Maybe >> by late this evening. >> >> Thanks, >> >> Dave >> >> On Wed, May 21, 2008 at 5:14 AM, Ivan Mincik wrote: >> > Thank for the reply Dave, >> > the reason I wrote this post is that I am not sure if this behavior is NORMAL >> > or NOT. >> > >> > ONE MORE QUESTION to ask: When I try to add column to database ( ALTER TABLE >> > rieky ADD COLUMN test varchar(30);) the query will not finish when "idle in >> > transaction" processes are existing. I have to stop query by Ctrl-C. >> > >> > So, when I want to add column, I have to stop apache to kill these processes >> > and than run query. >> > Is is it normal because some kind of lock? >> > >> > >> > This is "ps -aux" when NO user is connected. >> > >> > www-data 13072 0.0 7.5 156444 19892 ? S May20 >> > 0:01 /usr/sbin/apache2 -k start >> > >> > postgres 13074 0.0 2.1 41256 5516 ? S May20 0:00 postgres: map >> > map 127.0.0.1(48763) idle in transaction >> > >> > postgres 13075 0.0 3.7 51640 9756 ? S May20 0:00 postgres: map >> > map 127.0.0.1(48764) idle in transaction >> > >> > postgres 13076 0.0 3.7 51640 9776 ? S May20 0:00 postgres: map >> > map 127.0.0.1(48765) idle in transaction >> > >> > postgres 13077 0.0 3.8 51636 10132 ? S May20 0:01 postgres: map >> > map 127.0.0.1(48766) idle in transaction >> > >> > postgres 13078 0.0 3.8 51636 10088 ? S May20 0:00 postgres: map >> > map 127.0.0.1(48767) idle in transaction >> > >> > postgres 15940 0.0 3.5 51516 9288 ? S 09:33 0:00 postgres: map >> > map 127.0.0.1(39643) idle in transaction >> > >> > postgres 15963 0.0 3.4 51444 8972 ? S 09:40 0:00 postgres: map >> > map 127.0.0.1(57171) idle in transaction >> > >> > >> >> Ivan, >> >> >> >> If you shutdown Apache or whatever is running FastCGI, then I assume >> >> mapserver will close those connections. >> > Yes, after restarting apache they will disappear. >> >> >> >> Pooled mapserver connections certainly are idle in a transaction. >> >> mapserver issues a BEGIN (transaction) when the connection is made, >> >> because the binary cursor queries mapserver issues must be in a >> >> transaction. >> >> >> >> if it's a problem to be leaving idle connections in transactions, we >> >> can change things to issue BEGIN right before the DECLARE BINARY >> >> CURSOR query, and ROLLBACK right after the CLOSE CURSOR. That's two >> >> more database calls though; are they necessary? >> >> >> >> The queries never modify data, so the transactions won't be holding >> >> any sort of write locks. It's very normal for an app to hold a pool >> >> of idle connections to a database. Is there a reason it's worse when >> >> each of those connections is inside a transaction? >> >> >> >> Thanks, >> >> >> >> Dave >> >> >> >> On Mon, May 19, 2008 at 3:09 PM, Paul Ramsey >> > wrote: >> >> > More pain? >> >> > >> >> > ---------- Forwarded message ---------- >> >> > From: Ivan Mincik >> >> > Date: Mon, May 19, 2008 at 10:46 AM >> >> > Subject: [mapserver-users] postgis - idle in transaction >> >> > To: mapserver-users at lists.osgeo.org >> >> > >> >> > >> >> > Hi, >> >> > I have started using p.mapper WebGIS client with >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > parameter for all postgis layers. (using the latest version of mapserver >> >> > 5.0.x and patch for the issue with CLOSE_CONNECTION=DEFER). >> >> > >> >> > In htop I see lot of connections "postgres: user database >> >> > 127.0.0.1(47132) idle in transaction" which will remain until the next >> >> > restart of database server. >> >> > >> >> > Has anybody the same problem ? >> >> > >> >> > Thanks Ivan >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > From damarmo at gmail.com Fri May 23 05:57:45 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 23 May 2008 14:57:45 +0200 Subject: [mapserver-users] How to test Mapserver! Message-ID: <9771eb540805230557j245436ebw645126940e42a7fe@mail.gmail.com> Hellow List! Next monday I go to test a wms service taht I create, with 10 users at the same time. And I don't know if there is a method to log all information like time to aces to data, to process de request, and all the activiti information of mapsercer. Can you help me? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From damarmo at gmail.com Fri May 23 07:37:11 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 23 May 2008 16:37:11 +0200 Subject: [mapserver-users] How to test Mapserver! Message-ID: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> :S! Thanks but... I don't know php and the test its for a wms via "hard clients" (ArcGIS, AutocadMAP,gvSIG...) I have a MS4W distribution and I activate the log file for mapserver but only takes the errors via Web. Thanks for your help, but I don't know if its useful for my case. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Fri May 23 08:03:25 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 23 May 2008 17:03:25 +0200 Subject: [mapserver-users] How to test Mapserver! In-Reply-To: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> References: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> Message-ID: <4836DCBD.60002@zeelandnet.nl> The thing would be that instead of addressing mapserver directly like: http://yourserver/cgi-bin/mapserv? You would use: http://yourserver/myproxy.php? Since the hard clients add all the parameters themselves, your php script could strip all the parameters and under water call: http://localhost/cgi-bin/mapserv? And in this loop, you would also use a small piece of php code to log to a file. I am sorry I don't have a working example, but I think this would solve your trouble. David Martinez Morata wrote: > :S! > Thanks but... > I don't know php and the test its for a wms via "hard clients" > (ArcGIS, AutocadMAP,gvSIG...) > I have a MS4W distribution and I activate the log file for mapserver > but only takes the errors via Web. > > Thanks for your help, but I don't know if its useful for my case. > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Fri May 23 08:46:10 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 23 May 2008 09:46:10 -0600 Subject: [mapserver-users] How to test Mapserver! In-Reply-To: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> References: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> Message-ID: <4836E6C2.9090500@geoanalytic.com> David, Have a look at RFC 28 (http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28). The logging function will log more information (I think) if you set DEBUG 3 (or higher) in the map file. Brent Fraser David Martinez Morata wrote: > :S! > Thanks but... > I don't know php and the test its for a wms via "hard clients" (ArcGIS, > AutocadMAP,gvSIG...) > I have a MS4W distribution and I activate the log file for mapserver but > only takes the errors via Web. > > Thanks for your help, but I don't know if its useful for my case. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Fri May 23 10:20:37 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 23 May 2008 11:20:37 -0600 Subject: [mapserver-users] RFC guidelines? Message-ID: <4836FCE5.6030303@geoanalytic.com> I answered a question on the users list regarding the Mapserver log file and the enhancement of specifying debug levels (RFC 28). Unfortunately the Mapserver Reference documentation is not up to date with the RFC info (specifically the DEBUG settings). I see some of the RFCs have a Documentation section stating that the Reference doc will be updated (RFC-36 is a good example, it even has details!). I'd like to see this section adopted as a standard. Is there an RFC template or guidelines doc somewhere? I'd hate to see the Reference doc get too far out of date... Brent Fraser From jeffmckenna at gmail.com Fri May 23 11:36:47 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Fri, 23 May 2008 14:36:47 -0400 Subject: [mapserver-users] RFC guidelines? In-Reply-To: <4836FCE5.6030303@geoanalytic.com> References: <4836FCE5.6030303@geoanalytic.com> Message-ID: <408B7115-2EBF-4083-AFF1-8A23F9B20BC3@gmail.com> If you notice any documents that are not uptodate please enter a ticket for those issues in the MapServer Trac instance (http://trac.osgeo.org/mapserver/ ), assign it to the "MapServer Documentation" component. Thank you. Regarding debug levels, I did include a section on this in a draft of the MapServer Users Manual (http://download.osgeo.org/mapserver/docs/mapserver-users-manual.pdf ), so hopefully that will also help new users in terms of debugging (when the manual is ready for release). -jeff On 23-May-08, at 1:20 PM, Brent Fraser wrote: > > I answered a question on the users list regarding the Mapserver log > file and the enhancement of specifying debug levels (RFC 28). > Unfortunately the Mapserver Reference documentation is not up to > date with the RFC info (specifically the DEBUG settings). > I see some of the RFCs have a Documentation section stating that the > Reference doc will be updated (RFC-36 is a good example, it even has > details!). I'd like to see this section adopted as a standard. Is > there an RFC template or guidelines doc somewhere? I'd hate to see > the Reference doc get too far out of date... > > Brent Fraser From dmorissette at mapgears.com Fri May 23 12:14:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 23 May 2008 15:14:38 -0400 Subject: [mapserver-users] RFC guidelines? In-Reply-To: <4836FCE5.6030303@geoanalytic.com> References: <4836FCE5.6030303@geoanalytic.com> Message-ID: <4837179E.9090505@mapgears.com> Brent Fraser wrote: > > I see some of the RFCs have a Documentation section stating that the > Reference doc will be updated (RFC-36 is a good example, it even has > details!). I'd like to see this section adopted as a standard. Is > there an RFC template or guidelines doc somewhere? I'd hate to see the > Reference doc get too far out of date... > Brent, At the moment there is no formal RFC template. It may be nice to have one, but since every RFC is different, it is likely that some sections may make sense in some cases and not in others, so any template we come up with would likely need to be flexible with many of the sections being optional. In the end anyway it's the completeness of the RFC contents itself that make a good RFC and not necessarily the presence or not of a specific section. However I agree with the need for enough details in a RFC for users to be able to use the new feature, and during the RFC review process we will often ask for more usage details and examples to be added. I'd invite you to keep an eye on new RFCs being discussed on the -dev list and feel free to require more details when you feel (as a user) that a given RFC does not contain enough info for a user to be able to use the new feature. Daniel -- Daniel Morissette http://www.mapgears.com/ From damarmo at gmail.com Sat May 24 05:20:11 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Sat, 24 May 2008 14:20:11 +0200 Subject: [mapserver-users] How to test Mapserver! In-Reply-To: <4836E6C2.9090500@geoanalytic.com> References: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> <4836E6C2.9090500@geoanalytic.com> Message-ID: <9771eb540805240520n4a571e1ft9a8bed4a827c5ddb@mail.gmail.com> Thanks Milo and Brent :) My objective its to take information from the activity for various concurrent request and after process the data and make some statistical analysis. I accept all suggestions. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Sat May 24 05:31:07 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sat, 24 May 2008 14:31:07 +0200 Subject: [mapserver-users] How to test Mapserver! In-Reply-To: <9771eb540805240520n4a571e1ft9a8bed4a827c5ddb@mail.gmail.com> References: <9771eb540805230737va995883md7e3c2042d3ec559@mail.gmail.com> <4836E6C2.9090500@geoanalytic.com> <9771eb540805240520n4a571e1ft9a8bed4a827c5ddb@mail.gmail.com> Message-ID: <48380A8B.8050100@neogeo-online.net> you could try some web server benchmark app, like ab, siege, httperf, http_load... siege for example lets you design a list of urls it can pick randomly in to simulate web activity. Guillaume David Martinez Morata a ?crit : > Thanks Milo and Brent :) > > My objective its to take information from the activity for various > concurrent request and after process the data and make some > statistical analysis. > > I accept all suggestions. > > Thanks. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dobes at lnx.cz Sat May 24 12:41:29 2008 From: dobes at lnx.cz (=?ISO-8859-2?Q?Pavel_Dobe=B9?=) Date: Sat, 24 May 2008 21:41:29 +0200 Subject: [mapserver-users] PHP: Segmentation fault when draw() or saveWebImage() Message-ID: <80830107-E9FF-41B9-A26F-5AF20452B79B@lnx.cz> Hi to all, I run mapserver on my gentoo server now with php-5.2.6_rc4. After upgrade the apache is falling down with message: [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal Segmentation fault (11) With mapserver 5.0.0-r1 the last line is $url = $image->saveWebImage(); When I upgrade to 5.0.2 the last lins was $image=$map->draw(); $image is from $image=$map->prepareImage(); in both cases... Any hint, whitch mix of versions (PHP & mapserver) is OK or how to pretend this segfault? Tahnks Pavel PS: this simple script works drawScaleBar(); $img->saveImage(''); ?> From phloidster at yahoo.com Sun May 25 23:24:42 2008 From: phloidster at yahoo.com (the phloidster) Date: Sun, 25 May 2008 23:24:42 -0700 (PDT) Subject: [mapserver-users] ms4w v5 broken on install -- php-cgi cannot find xerces entry point Message-ID: <370688.48933.qm@web43131.mail.sp1.yahoo.com> After installing the current download of ms4w and then testing with browser url of localhost, the following error message appears: "entry point ??0XMLEntityDecl at xerces_2_7@@QAE at QB_W_WQAVMemorymanager@1@@Z could not be located in dynamic link library xerces-c_2_7.dll" this appears to come from php-cgi.exe the error appears as a dialog box, after dismissing, the default start page loads ok this happens after unzipping the ms4w.zip and running manually, and also happens after running the install and running apache as service i have another instance of apache 2.28, php 5.25 and xerces 2.7 in a working configuration in another location, and do not get this problem (the other instance was not active, not loaded, not running) i wonder how all these binaries were built, was the xerces dll built or just bundled? was php-cgi exe built with same compiler as xerces? this smells of compiler/linker version configuration or dependency From David at ITBEYOND.COM.AU Mon May 26 00:38:19 2008 From: David at ITBEYOND.COM.AU (David Martin) Date: Mon, 26 May 2008 00:38:19 -0700 (PDT) Subject: [MAPSERVER-USERS] msencrypt ogr shows password on error Message-ID: <17467224.post@talk.nabble.com> I have been doing some work on installing an OGR connection to one of my databases. So decided to use msencrypt to hide the userid and password strings. This works OK however when the OGR breaks for what every reason the system returns a message similar to this: msDrawMap(): Image handling error. Failed to draw layer named 'Places'. msOGRFileOpen(): OGR error. Open failed for OGR connection ` ODBC:vsXXXXXXXX_odbc/XXXXXXXXXX at vs285832_1 SELECT WaypointID, Description, Latitude, Longitude FROM PointPlace_Waypoints WHERE poi='%poi%' Where the XXX's shown are actually the real user information and passwords for the connection. How can I suppress this error from appearing at all. It seems a little strange to provide an encrypted password and then have the system render the password when the OGR layer fails. Any help would be great. David Martin -- View this message in context: http://www.nabble.com/msencrypt-ogr-shows-password-on-error-tp17467224p17467224.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Mon May 26 05:27:29 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 26 May 2008 08:27:29 -0400 Subject: [mapserver-users] PHP: Segmentation fault when draw() or saveWebImage() In-Reply-To: <80830107-E9FF-41B9-A26F-5AF20452B79B@lnx.cz> References: <80830107-E9FF-41B9-A26F-5AF20452B79B@lnx.cz> Message-ID: <483AACB1.5040701@mapgears.com> You may get this kind of problem if you have multiple copies/versions of the GD library involved in your build. The most common source of problem is a PHP compiled with its own bundled GD, which conflicts with the php_mapscript module's use of the system copy of GD. Building PHP using the system GD instead of its bundled copy of GD should solve the issue. Daniel Pavel Dobe? wrote: > Hi to all, > > I run mapserver on my gentoo server now with php-5.2.6_rc4. > > After upgrade the apache is falling down with message: > > [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal > Segmentation fault (11) > > With mapserver 5.0.0-r1 the last line is > > $url = $image->saveWebImage(); > > When I upgrade to 5.0.2 the last lins was > $image=$map->draw(); > > $image is from $image=$map->prepareImage(); in both cases... > > Any hint, whitch mix of versions (PHP & mapserver) is OK or how to > pretend this segfault? > > Tahnks > Pavel > PS: this simple script works > header("Content-type: image/jpeg"); > > $map = ms_newMapObj("file.map"); > $img = $map->drawScaleBar(); > $img->saveImage(''); > > ?> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Mon May 26 05:57:39 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 26 May 2008 08:57:39 -0400 Subject: [MAPSERVER-USERS] msencrypt ogr shows password on error In-Reply-To: <17467224.post@talk.nabble.com> References: <17467224.post@talk.nabble.com> Message-ID: <483AB3C3.6060908@mapgears.com> That's a bug of course! I have filed a ticket and will fix this now: http://trac.osgeo.org/mapserver/ticket/2629 Daniel David Martin wrote: > I have been doing some work on installing an OGR connection to one of my > databases. So decided to use msencrypt to hide the userid and password > strings. This works OK however when the OGR breaks for what every reason the > system returns a message similar to this: > > msDrawMap(): Image handling error. Failed to draw layer named 'Places'. > msOGRFileOpen(): OGR error. Open failed for OGR connection > ` > ODBC:vsXXXXXXXX_odbc/XXXXXXXXXX at vs285832_1 > SELECT WaypointID, Description, Latitude, Longitude FROM > PointPlace_Waypoints WHERE poi='%poi%' > > Where the XXX's shown are actually the real user information and passwords > for the connection. How can I suppress this error from appearing at all. It > seems a little strange to provide an encrypted password and then have the > system render the password when the OGR layer fails. > > Any help would be great. > > David Martin -- Daniel Morissette http://www.mapgears.com/ From jhevenor at rogers.com Mon May 26 08:38:33 2008 From: jhevenor at rogers.com (Josh Hevenor) Date: Mon, 26 May 2008 11:38:33 -0400 Subject: [mapserver-users] WMS Cache in MapServer Message-ID: <483AD979.1040801@rogers.com> Hey List, I've been poking around and found that GDAL supports caching in their WMS implementation...can this be configured through mapserver? http://www.gdal.org/frmt_wms.html Thanks, Josh From jhevenor at rogers.com Mon May 26 08:41:13 2008 From: jhevenor at rogers.com (Josh Hevenor) Date: Mon, 26 May 2008 11:41:13 -0400 Subject: [mapserver-users] SDE 9.2 Connection Type Message-ID: <483ADA19.2030903@rogers.com> Just a quick note while I'm thinking of it...with the relatively recent support of SDE 9.2 the style has changed to use a plug-in. So if you're looking for a layers connection type in MapScript is will show up as 13 instead of MS_SDE (6 I think?). I don't see a documented constant for the plugiin connection type. Cheers, Josh Hevenor From simon.mercier at msp.gouv.qc.ca Mon May 26 09:08:35 2008 From: simon.mercier at msp.gouv.qc.ca (SIMON MERCIER) Date: Mon, 26 May 2008 12:08:35 -0400 Subject: [mapserver-users] Hide black border for raster layer Message-ID: <483AA843020000E90005A880@mail.msp.gouv.qc.ca> Hi list I search to hide the black border(COLOR 0 0 0) off a ecw grayscale image(and tif to)! I try to add IMAGECOLOR 0 0 0 in de MAP tag but dont work...! any idea? MAP ... IMAGECOLOR 0 0 0 TRANSPARENT TRUE ... LAYER NAME "Orthos_40k_lcc_t" STATUS DEFAULT TYPE RASTER #DATA "F:\Data\orthos\lcc\01809115lcc.ecw" DATA "F:\Data\orthos\lcc\97300004lcc.tif" METADATA "wms_name" "Orthos_40k_lcc_t" "wms_title" "ecw test" "wms_srs" "EPSG:42105 EPSG:4326 EPSG:4269 EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 EPSG:32188 EPSG:32189 EPSG:32190 EPSG:32198 EPSG:2036 EPSG:2037 EPSG:2148 EPSG:2149 EPSG:2150 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" "gml_include_items" "all" END PROJECTION "init=epsg:32198" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Mon May 26 09:31:52 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 26 May 2008 18:31:52 +0200 Subject: [mapserver-users] Hide black border for raster layer In-Reply-To: <483AA843020000E90005A880@mail.msp.gouv.qc.ca> References: <483AA843020000E90005A880@mail.msp.gouv.qc.ca> Message-ID: <483AE5F8.9000309@osgis.nl> Use OFFSITE 0 0 0 on your LAYER. Best regards, Bart SIMON MERCIER wrote: > Hi list > > I search to hide the black border(COLOR 0 0 0) off a ecw grayscale > image(and tif to)! I try to add IMAGECOLOR 0 0 0 in de MAP tag but > dont work...! any idea? > MAP > ... > IMAGECOLOR 0 0 0 > TRANSPARENT TRUE > ... > > LAYER > NAME "Orthos_40k_lcc_t" > STATUS DEFAULT > TYPE RASTER > #DATA "F:\Data\orthos\lcc\01809115lcc.ecw" > DATA "F:\Data\orthos\lcc\97300004lcc.tif" > METADATA > "wms_name" "Orthos_40k_lcc_t" > "wms_title" "ecw test" > "wms_srs" "EPSG:42105 EPSG:4326 EPSG:4269 > EPSG:32183 EPSG:32184 EPSG:32185 EPSG:32186 EPSG:32187 EPSG:32188 > EPSG:32189 EPSG:32190 EPSG:32198 EPSG:2036 EPSG:2037 EPSG:2148 > EPSG:2149 EPSG:2150 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:32198" > END > END > END > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From alexandre.saunier at camptocamp.com Mon May 26 10:52:41 2008 From: alexandre.saunier at camptocamp.com (Alexandre Saunier) Date: Mon, 26 May 2008 19:52:41 +0200 Subject: [mapserver-users] Using dimensions with MapServer as WMS client Message-ID: <483AF8E9.5040202@camptocamp.com> Hello, I use Mapserver 5.0.2 as a client sending GetMap requests to some WMS server. Requests should contain additional parameters such as "time" and "elevation". For instance: wms?LAYERS=...&REQUEST=GetMap&SERVICE=WMS&BBOX=...&TIME=...&ELEVATION=... Using a "wms_time" metadata in the layer definition in the mapfile, I have succeeded in adding the "TIME" parameter to the request. On the other hand, in order to add the "ELEVATION" parameter I have tried to use the "wms_dimension*" metadata parameters as described in http://mapserver.gis.umn.edu/docs/howto/mapcontext#layer-object-metadata but couldn't have them taken into account. For instance: LAYER NAME "foobar" TYPE RASTER CONNECTION "http://foobar/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "foobar" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "wms_title" "Foobar" "wms_onlineresource" "http://foobar/wms?" "wms_time" "2007-06-13T12:00:00Z" "wms_dimension_elevation_uservalue" "100.0" END END I have also tried to add other wms_dimension* parameters (such as wms_dimensionlist or wms_dimension_elevation_default) as listed in the manual example but with no success. In addition it seems that using "wms_dimension_time_uservalue" instead of "wms_time" does not work either. Thus I was wondering what were the required wms_dimension* parameters to add a dimension in a WMS GetMap performed by Mapserver and if there were some extra settings needed to enable dimensions support? Thanks for your help, Alexandre From warmerdam at pobox.com Mon May 26 11:24:47 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 26 May 2008 14:24:47 -0400 Subject: [mapserver-users] WMS Cache in MapServer In-Reply-To: <483AD979.1040801@rogers.com> References: <483AD979.1040801@rogers.com> Message-ID: <483B006F.9000500@pobox.com> Josh Hevenor wrote: > Hey List, > I've been poking around and found that GDAL supports caching in their > WMS implementation...can this be configured through mapserver? > > http://www.gdal.org/frmt_wms.html Josh, I'm not sure what you are getting at here. Are you wanting to use GDAL as a client for a MapServer based WMS server, and somehow have MapServer providing caching hints to the remote GDAL client? Or are you wanting to use the GDAL WMS driver as an input to MapServer instead of the native WMS client support in MapServer so as to take advantage of it's caching? The second option is certainly possible. Just go ahead and do it! But you need to create the usual WMS driver "control file" per the frmt_wms.html docs to reference as a the filename in your raster layer. 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 | President OSGeo, http://osgeo.org From yassefa at dmsolutions.ca Mon May 26 11:26:11 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 26 May 2008 14:26:11 -0400 Subject: [mapserver-users] Using dimensions with MapServer as WMS client In-Reply-To: <483AF8E9.5040202@camptocamp.com> References: <483AF8E9.5040202@camptocamp.com> Message-ID: <483B00C3.2070808@dmsolutions.ca> Alexandre, Only wms_time is supported by mapserver acting as a wms server. It is also the only dimension that is advertised through the capabilities document. From what I can I see the map context only loads/save the dimension into Mapserver metadata, but it is not used for anything. Best Regards, Alexandre Saunier wrote: > Hello, > > I use Mapserver 5.0.2 as a client sending GetMap requests to some WMS > server. Requests should contain additional parameters such as "time" and > "elevation". For instance: > wms?LAYERS=...&REQUEST=GetMap&SERVICE=WMS&BBOX=...&TIME=...&ELEVATION=... > > Using a "wms_time" metadata in the layer definition in the mapfile, I > have succeeded in adding the "TIME" parameter to the request. > > On the other hand, in order to add the "ELEVATION" parameter I have > tried to use the "wms_dimension*" metadata parameters as described in > http://mapserver.gis.umn.edu/docs/howto/mapcontext#layer-object-metadata > but couldn't have them taken into account. For instance: > > LAYER > NAME "foobar" > TYPE RASTER > CONNECTION "http://foobar/wms?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "foobar" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > "wms_title" "Foobar" > "wms_onlineresource" "http://foobar/wms?" > "wms_time" "2007-06-13T12:00:00Z" > "wms_dimension_elevation_uservalue" "100.0" > END > END > > I have also tried to add other wms_dimension* parameters (such as > wms_dimensionlist or wms_dimension_elevation_default) as listed in the > manual example but with no success. In addition it seems that using > "wms_dimension_time_uservalue" instead of "wms_time" does not work either. > > Thus I was wondering what were the required wms_dimension* parameters to > add a dimension in a WMS GetMap performed by Mapserver and if there > were some extra settings needed to enable dimensions support? > > Thanks for your help, > Alexandre > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jmckenna at gatewaygeomatics.com Mon May 26 11:13:57 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 26 May 2008 15:13:57 -0300 Subject: [mapserver-users] ms4w v5 broken on install -- php-cgi cannot find xerces entry point In-Reply-To: <370688.48933.qm@web43131.mail.sp1.yahoo.com> References: <370688.48933.qm@web43131.mail.sp1.yahoo.com> Message-ID: <978F75F9-688F-4C6C-995A-A7725895097F@gatewaygeomatics.com> Interesting. Odd that no one else has been hitting this issue. So this is a fresh machine? Is it possible that another 'xerces- c_2_7.dll' is being found in your environment? Yes it does smell like some version of "dll-hell". Myself I often have a million different foss4g tools installed and I sometimes hit that dll conflict wall. What is your exact environment? Maybe it's a Vista-specific issue with MS4W? -jeff On 26-May-08, at 3:24 AM, the phloidster wrote: > After installing the current download of ms4w and then > testing with browser url of localhost, > > the following error message appears: > > "entry point > ??0XMLEntityDecl at xerces_2_7@@QAE at QB_W_WQAVMemorymanager@1@@Z > could not be located in dynamic link library > xerces-c_2_7.dll" > > > this appears to come from php-cgi.exe > > the error appears as a dialog box, after dismissing, > the default start page loads ok > > this happens after unzipping the ms4w.zip and running > manually, and also happens after running the install > and running apache as service > > i have another instance of apache 2.28, php 5.25 and > xerces 2.7 in a working configuration in another > location, and do not get this problem (the other > instance was not active, not loaded, not running) > > i wonder how all these binaries were built, > was the xerces dll built or just bundled? was php-cgi > exe built with same compiler as xerces? this smells of > compiler/linker version configuration or dependency > > --- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Mon May 26 12:04:22 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 26 May 2008 15:04:22 -0400 Subject: [mapserver-users] SDE 9.2 Connection Type In-Reply-To: <483ADA19.2030903@rogers.com> References: <483ADA19.2030903@rogers.com> Message-ID: <483B09B6.2010603@mapgears.com> Josh Hevenor wrote: > Just a quick note while I'm thinking of it...with the relatively recent > support of SDE 9.2 the style has changed to use a plug-in. So if you're > looking for a layers connection type in MapScript is will show up as 13 > instead of MS_SDE (6 I think?). I don't see a documented constant for > the plugiin connection type. > I presume you are using PHP MapScript? Thanks for reporting the issue. I have filed a ticket and added the missing constants (there were actually two): http://trac.osgeo.org/mapserver/ticket/2630 Daniel -- Daniel Morissette http://www.mapgears.com/ From phloidster at yahoo.com Mon May 26 17:22:14 2008 From: phloidster at yahoo.com (the phloidster) Date: Mon, 26 May 2008 17:22:14 -0700 (PDT) Subject: [mapserver-users] re: ms4w v5 broken on install -- php-cgi cannot find xerces entry point Message-ID: <360487.56573.qm@web43140.mail.sp1.yahoo.com> One reason for posting was to see if this is a 'unique' problem. This is not an issue in earlier version of ms4w, but the php configuration seems to have changed. Btw, this is on w2k server, and I'll try it on a relatively 'fresh' XP machine next. Reviewing all instances of xerces-c_2_7.dll and path settings, there are 2 other instances of the xerces-c_2_7.dll, with same version and build numbers, but different dates (the version with MapServer is earlier (Feb 2006)). The other version is from MapGuide OS distribution, which predated my MapServer install on my system, but has a later timestamp (however, because MGOS is an installer, not a zip, I cannot really trust the timestamp on the dll). Doing a DUMPBIN /EXPORTS on both versions shows that, oddly, the preexsiting (MapGuide) copy does have the entry point in it's exports list, but the version bundled with ms4w does not (it does show other c++ overloads with different mangling, of that same function). The exports from the xerces-c_2_7.dll distributed with ms4w shows these: 520 207 00022616 ??0XMLEntityDecl at xercesc_2_7@@QAE at QAVMemoryManager@1@@Z 521 208 0002269B ??0XMLEntityDecl at xercesc_2_7@@QAE at QBG0QAVMemoryManager@1@@Z 522 209 00022760 ??0XMLEntityDecl at xercesc_2_7@@QAE at QBGGQAVMemoryManager@1@@Z 523 20A 00022642 ??0XMLEntityDecl at xercesc_2_7@@QAE at QBGQAVMemoryManager@1@@Z The exports from the xerces-c_2_7.dll distributed with MGOS shows: 520 207 00023230 ??0XMLEntityDecl at xercesc_2_7@@QAE at QAVMemoryManager@1@@Z 521 208 000232AE ??0XMLEntityDecl at xercesc_2_7@@QAE at QB_W0QAVMemoryManager@1@@Z 522 209 0002325C ??0XMLEntityDecl at xercesc_2_7@@QAE at QB_WQAVMemoryManager@1@@Z 523 20A 00023342 ??0XMLEntityDecl at xercesc_2_7@@QAE at QB_W_WQAVMemoryManager@1@@Z The last one in the MGOS version is the entry point being complained about, as not found by cgi-php. Odd that there are differences in the dll's, although the build numbers (2.7.0.0) are the same. I'll experiment with paths and versions and see what happens. >>>>>>>>>>>>>>>> Interesting. Odd that no one else has been hitting this issue. So this is a fresh machine? Is it possible that another 'xerces- c_2_7.dll' is being found in your environment? Yes it does smell like some version of "dll-hell". Myself I often have a million different foss4g tools installed and I sometimes hit that dll conflict wall. What is your exact environment? Maybe it's a Vista-specific issue with MS4W? -jeff On 26-May-08, at 3:24 AM, the phloidster wrote: > After installing the current download of ms4w and then > testing with browser url of localhost, > > the following error message appears: > > "entry point > ??0XMLEntityDecl at xerces_2_7@@QAE at QB_W_WQAVMemorymanager at 1@@Z > could not be located in dynamic link library > xerces-c_2_7.dll" > > > this appears to come from php-cgi.exe > > the error appears as a dialog box, after dismissing, > the default start page loads ok > > this happens after unzipping the ms4w.zip and running > manually, and also happens after running the install > and running apache as service > > i have another instance of apache 2.28, php 5.25 and > xerces 2.7 in a working configuration in another > location, and do not get this problem (the other > instance was not active, not loaded, not running) > > i wonder how all these binaries were built, > was the xerces dll built or just bundled? was php-cgi > exe built with same compiler as xerces? this smells of > compiler/linker version configuration or dependency > From phloidster at yahoo.com Mon May 26 20:00:32 2008 From: phloidster at yahoo.com (the phloidster) Date: Mon, 26 May 2008 20:00:32 -0700 (PDT) Subject: [mapserver-users] [MapServer] #2628: broken entry point in xerces 2.7 dll with default ms4w.zip file version 2.27 -- resolved as php.ini conflict with MGOS Message-ID: <108195.1684.qm@web43140.mail.sp1.yahoo.com> This behavior was apparently caused by loading the php.ini file for MapGuide Open Source, which sets a registry entry for PHP under HKeyLocalMachine/Software. My guess is that with the wrong php.ini loaded, the cgi-php was also the wrong version; since the ms4w cgi path preceded the MGOS, the ms4w xerces dll was being loaded, but lacked the entry point MGOS cgi-php was looking for. Still find it odd that these 2 versions of xerces-c_2_7.dll have identical build/version info, but are clearly not identical. After starting MapServer, and dismissing the error dialog, Phpinfo showed the php.ini path. Swapping the MGOS xerces dll also 'fixed' the dll entry point issue, but only if the MGOS path settings were also enabled. However, that's a bit of a hack, and who knows what else would be out of alignment. I was able to repress the MGOS php.ini by renaming the registry key, which means both can't be running at once on my system. Anyone who tries to host both MGOS and MapServer 5.x may encounter this issue. Perhaps there is a way to explictly tell MapServer which php.ini file to load; my Apache conf skills are a bit light. From yatendra.jaiswal at gmail.com Tue May 27 00:50:22 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Tue, 27 May 2008 00:50:22 -0700 (PDT) Subject: [MAPSERVER-USERS] What is Data Handling Capacity of Mapserver? Message-ID: <17484929.post@talk.nabble.com> Hi Friends, What is data handling capacity of mapserver? How much data we can access through mapserver? I am using personal geodatabase of 300 mb. For me data is displayed first time. when i tried to zoom in then my PC gets hanged. Can eny one guide me how to access this kind of large data? Is there any need of configure Mapserver or its any componant to access this kind of large data? Please Guide me for this. Please give me details of Mapserver's Capcity also. Thanks Regards -- View this message in context: http://www.nabble.com/What-is-Data-Handling-Capacity-of-Mapserver--tp17484929p17484929.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kusum at infobase.in Tue May 27 01:52:56 2008 From: kusum at infobase.in (Kusum) Date: Tue, 27 May 2008 14:22:56 +0530 Subject: [mapserver-users] Smooth Roads Problem Message-ID: <42595A788A7044478F207E5883E667A4@kusum> Hii All I was getting broken kind of roads as in 1st picture below To give it a smoother look I added antialias true to the style of roads using imagetype png24 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" EXTENSION "png" MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT OFF FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END The roads looked smoother but the colors of roads changed to white outline as in picture below Antialias false antialias true Please suggest something to resolve this. Thanks in Advance Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2E7.jpg Type: image/jpeg Size: 5444 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2E8.jpg Type: image/jpeg Size: 7268 bytes Desc: not available URL: From map.user at yahoo.com Tue May 27 02:07:12 2008 From: map.user at yahoo.com (User Map) Date: Tue, 27 May 2008 02:07:12 -0700 (PDT) Subject: [mapserver-users] Distance w.r.t scalebar and postgre distance query Message-ID: <712224.10474.qm@web45704.mail.sp1.yahoo.com> hi, i have a table with geom type geometry, with srid= 27700 set in the geometry_columns table. i have to calculate total extent of all the records that fall within 50 meters distance from the center of the specified polygon geometry. i have the following query SELECT Extent(geom) as ext, count (*),Max(Distance(geom,GeomFromText('POINT(530525.056494402 191742.597993273)',27700))) as max_dist FROM tarea WHERE geom && GeomFromText('POLYGON((530471.6875 191689.796875,530471.6875 191795.25,530578.125 191795.25,530578.125 191689.796875,530471.6875 191689.796875))',27700) AND Distance(geom, GeomFromText('POINT(530525.056494402 191742.597993273)',27700)) < 50; The WHERE clause defines the bounding box i.e 'POLYGON((530471.6875 191689.796875,530471.6875 191795.25,530578.125 191795.25,530578.125 191689.796875,530471.6875 191689.796875))' is get from the query select AsText(extent(expand(geom,50))) from tarea where id='*************'; the query results are extent---------------------------------------------------------------------- count----max_dist "BOX(530391.5625 191411.546875,530669.0625 192058.203125)"; 129; 49.4921047760564 the time problem is solved, now this query is quick enough. But a new problem is of the scalebar. the extent returned by the above query when set in the mapfile to generate map and scalebar, the area shownin the map is much bigger then what is suspected i.e 100 meters, 50 meters on each side as specified in the above query. The scalebar shows the scale of 800 meters. Do anyone knows whats happening here. Is the calculation of the scalebar and the postgre statement differ in some respect. i have the following scalebar properties set in the mapfile.SCALEBAR IMAGECOLOR 255 255 255 LABEL ANGLE auto SIZE 8 OFFSET 0 0 COLOR 0 0 0 TYPE TRUETYPE MINDISTANCE 100 FONT arial BUFFER 4 END STYLE 0 SIZE 1540 10 OUTLINECOLOR 0 0 0 UNITS METERS INTERVALS 16 TRANSPARENT FALSE STATUS ON END # Scalebar object ends My map size is set to: SIZE 1540 1200 any help will be appreciated. thanks waiting for response soon. -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at yahoo.com Tue May 27 02:07:12 2008 From: map.user at yahoo.com (User Map) Date: Tue, 27 May 2008 02:07:12 -0700 (PDT) Subject: [mapserver-users] Distance w.r.t scalebar and postgre distance query Message-ID: <712224.10474.qm@web45704.mail.sp1.yahoo.com> hi, i have a table with geom type geometry, with srid= 27700 set in the geometry_columns table. i have to calculate total extent of all the records that fall within 50 meters distance from the center of the specified polygon geometry. i have the following query SELECT Extent(geom) as ext, count (*),Max(Distance(geom,GeomFromText('POINT(530525.056494402 191742.597993273)',27700))) as max_dist FROM tarea WHERE geom && GeomFromText('POLYGON((530471.6875 191689.796875,530471.6875 191795.25,530578.125 191795.25,530578.125 191689.796875,530471.6875 191689.796875))',27700) AND Distance(geom, GeomFromText('POINT(530525.056494402 191742.597993273)',27700)) < 50; The WHERE clause defines the bounding box i.e 'POLYGON((530471.6875 191689.796875,530471.6875 191795.25,530578.125 191795.25,530578.125 191689.796875,530471.6875 191689.796875))' is get from the query select AsText(extent(expand(geom,50))) from tarea where id='*************'; the query results are extent---------------------------------------------------------------------- count----max_dist "BOX(530391.5625 191411.546875,530669.0625 192058.203125)"; 129; 49.4921047760564 the time problem is solved, now this query is quick enough. But a new problem is of the scalebar. the extent returned by the above query when set in the mapfile to generate map and scalebar, the area shownin the map is much bigger then what is suspected i.e 100 meters, 50 meters on each side as specified in the above query. The scalebar shows the scale of 800 meters. Do anyone knows whats happening here. Is the calculation of the scalebar and the postgre statement differ in some respect. i have the following scalebar properties set in the mapfile.SCALEBAR IMAGECOLOR 255 255 255 LABEL ANGLE auto SIZE 8 OFFSET 0 0 COLOR 0 0 0 TYPE TRUETYPE MINDISTANCE 100 FONT arial BUFFER 4 END STYLE 0 SIZE 1540 10 OUTLINECOLOR 0 0 0 UNITS METERS INTERVALS 16 TRANSPARENT FALSE STATUS ON END # Scalebar object ends My map size is set to: SIZE 1540 1200 any help will be appreciated. thanks waiting for response soon. -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at geon.nl Tue May 27 03:48:54 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Tue, 27 May 2008 12:48:54 +0200 Subject: [mapserver-users] Replacing EMPTY parameter by CGI In-Reply-To: <108195.1684.qm@web43140.mail.sp1.yahoo.com> Message-ID: Hello List!, I'm having a problem with mapserver 5. In my former application using 4.x I was able to change the EMPTY Path in my application using the: &map_web_empty=path variable through CGI. I have changed this to the new method: &map_web=EMPTY+path Mapserver gives me an error: loadWeb(): Unknown identifier. Parsing error near (EMPTY):(line 1) I can change the HEADER template etc. using the same method (map_web=HEADER+path) but the empty parameter cannot be changed. Is it no longer possible to change the empty template through CGI with mapserver 5? Regards, Wim Blanken The Netherlands From alexandre.saunier at camptocamp.com Tue May 27 03:50:38 2008 From: alexandre.saunier at camptocamp.com (Alexandre Saunier) Date: Tue, 27 May 2008 12:50:38 +0200 Subject: [mapserver-users] Using dimensions with MapServer as WMS client In-Reply-To: <483B00C3.2070808@dmsolutions.ca> References: <483AF8E9.5040202@camptocamp.com> <483B00C3.2070808@dmsolutions.ca> Message-ID: <483BE77E.6040008@camptocamp.com> Thanks for the reply. > Only wms_time is supported by mapserver acting as a wms server. I guess you meant "acting as a wms client"? That would explain why metadata such as "wms_dimension_elevation_uservalue" seem to be ignored. A workaround would be to directly add the additional parameters in the CONNECTION attribute, by hand in the mapfile or on the fly using mapscript method layerObj::set('connection', ...). Yewondwossen Assefa wrote: > Alexandre, > > > Only wms_time is supported by mapserver acting as a wms server. It is > also the only dimension that is advertised through the capabilities > document. From what I can I see the map context only loads/save the > dimension into Mapserver metadata, but it is not used for anything. > > Best Regards, > > > Alexandre Saunier wrote: >> Hello, >> >> I use Mapserver 5.0.2 as a client sending GetMap requests to some WMS >> server. Requests should contain additional parameters such as "time" and >> "elevation". For instance: >> wms?LAYERS=...&REQUEST=GetMap&SERVICE=WMS&BBOX=...&TIME=...&ELEVATION=... >> >> Using a "wms_time" metadata in the layer definition in the mapfile, I >> have succeeded in adding the "TIME" parameter to the request. >> >> On the other hand, in order to add the "ELEVATION" parameter I have >> tried to use the "wms_dimension*" metadata parameters as described in >> http://mapserver.gis.umn.edu/docs/howto/mapcontext#layer-object-metadata >> but couldn't have them taken into account. For instance: >> > > >> LAYER >> NAME "foobar" >> TYPE RASTER >> CONNECTION "http://foobar/wms?" >> CONNECTIONTYPE WMS >> METADATA >> "wms_srs" "EPSG:4326" >> "wms_name" "foobar" >> "wms_server_version" "1.1.1" >> "wms_format" "image/jpeg" >> "wms_title" "Foobar" >> "wms_onlineresource" "http://foobar/wms?" >> "wms_time" "2007-06-13T12:00:00Z" >> "wms_dimension_elevation_uservalue" "100.0" >> END >> END >> >> I have also tried to add other wms_dimension* parameters (such as >> wms_dimensionlist or wms_dimension_elevation_default) as listed in the >> manual example but with no success. In addition it seems that using >> "wms_dimension_time_uservalue" instead of "wms_time" does not work >> either. >> >> Thus I was wondering what were the required wms_dimension* parameters to >> add a dimension in a WMS GetMap performed by Mapserver and if there >> were some extra settings needed to enable dimensions support? >> >> Thanks for your help, >> Alexandre >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From aaron.d.hunt at gmail.com Tue May 27 04:25:23 2008 From: aaron.d.hunt at gmail.com (Aaron Hunt) Date: Tue, 27 May 2008 07:25:23 -0400 Subject: [mapserver-users] Postgis Error Message-ID: <8c58032b0805270425i386d5585pb0df786802b43146@mail.gmail.com> I have been tring to get a script working on my new server and I get the following error. "Postgresql reports the error as 'ERROR: relation "row_crop_boundary" does not exist '" row_crop_boundary is a view contaning the geom column. There are no uppercaes names and if I log into the command line it works fine. Does anyone have any ideas? The layer def is below (I seet the data and filter in code). Thanks LAYER # Red Field TYPE polygon CONNECTIONTYPE postgis NAME RedFields CONNECTION "user=xxxpassword=xxx dbname=xxx host=localhost port=5432" DATA "" FILTER "" STATUS ON DEBUG ON TRANSPARENCY 30 LABELITEM field_name CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 LABEL ANTIALIAS TRUE FORCE TRUE POSITION CC BACKGROUNDCOLOR 75 75 75 COLOR 255 255 255 BUFFER 1 END END PROJECTION "init=epsg:4326" #NAD83 UTM zone 10N END END -- Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue May 27 04:28:25 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 May 2008 14:28:25 +0300 Subject: [mapserver-users] Postgis Error In-Reply-To: <8c58032b0805270425i386d5585pb0df786802b43146@mail.gmail.com> Message-ID: Hi, Have you also registered the view in geometry_columns? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Aaron Hunt L?hetetty: 27. toukokuuta 2008 14:25 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Postgis Error I have been tring to get a script working on my new server and I get the following error. "Postgresql reports the error as 'ERROR: relation "row_crop_boundary" does not exist '" row_crop_boundary is a view contaning the geom column. There are no uppercaes names and if I log into the command line it works fine. Does anyone have any ideas? The layer def is below (I seet the data and filter in code). Thanks LAYER # Red Field TYPE polygon CONNECTIONTYPE postgis NAME RedFields CONNECTION "user=xxxpassword=xxx dbname=xxx host=localhost port=5432" DATA "" FILTER "" STATUS ON DEBUG ON TRANSPARENCY 30 LABELITEM field_name CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 LABEL ANTIALIAS TRUE FORCE TRUE POSITION CC BACKGROUNDCOLOR 75 75 75 COLOR 255 255 255 BUFFER 1 END END PROJECTION "init=epsg:4326" #NAD83 UTM zone 10N END END -- Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From robe.dnd at cityofboston.gov Tue May 27 05:16:27 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Tue, 27 May 2008 08:16:27 -0400 Subject: [mapserver-users] Postgis Error In-Reply-To: References: <8c58032b0805270425i386d5585pb0df786802b43146@mail.gmail.com> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D2042086DE@ZDND.DND.boston.cob> Aaron, Actually I don't think you need it in the geometry_columns if you spell out the whole USING UNIQUE bit. What exactly does your data layer look like - all I see is Data "" Which can't be right. Are you using the same account in Mapserver as you are using in your command line. Although permission problems usually give an access denied not a relation does not exist Dumb questions - you are absolutely sure you are connecting to the same database. Your table is in the default schema or you have the schema spelled out in your Mapserver data layer. Hope that helps, Regina ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, May 27, 2008 7:28 AM To: Aaron Hunt; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Postgis Error Hi, Have you also registered the view in geometry_columns? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Aaron Hunt L?hetetty: 27. toukokuuta 2008 14:25 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Postgis Error I have been tring to get a script working on my new server and I get the following error. "Postgresql reports the error as 'ERROR: relation "row_crop_boundary" does not exist '" row_crop_boundary is a view contaning the geom column. There are no uppercaes names and if I log into the command line it works fine. Does anyone have any ideas? The layer def is below (I seet the data and filter in code). Thanks LAYER # Red Field TYPE polygon CONNECTIONTYPE postgis NAME RedFields CONNECTION "user=xxxpassword=xxx dbname=xxx host=localhost port=5432" DATA "" FILTER "" STATUS ON DEBUG ON TRANSPARENCY 30 LABELITEM field_name CLASS COLOR 255 0 0 OUTLINECOLOR 0 0 0 LABEL ANTIALIAS TRUE FORCE TRUE POSITION CC BACKGROUNDCOLOR 75 75 75 COLOR 255 255 255 BUFFER 1 END END PROJECTION "init=epsg:4326" #NAD83 UTM zone 10N END END -- Aaron D. Hunt ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lorenzetti at faunalia.it Tue May 27 07:03:23 2008 From: lorenzetti at faunalia.it (Walter Lorenzetti) Date: Tue, 27 May 2008 16:03:23 +0200 Subject: [mapserver-users] agg symbol problem Message-ID: <483C14AB.2090106@faunalia.it> Hi all, I've a problem with AGG rendering and symbol with transparent background my outputformat is : OUTPUTFORMAT NAME 'agg_png' DRIVER AGG/PNG IMAGEMODE RGB END and my symbl declaration is: SYMBOL NAME 'logo' TYPE PIXMAP IMAGE 'logo.png' TRANSPARENT 18 END on my map the color 18 (white) of my logo is not transparent instead with a normal GD png outputformat the logo background is tranparent I don't know if is a bug with AGG rendering or is normal! Somebody else can help me? Thanks in advance W -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti at faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy From group.ritesh at gmail.com Tue May 27 07:15:09 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 27 May 2008 07:15:09 -0700 (PDT) Subject: [MAPSERVER-USERS] agg symbol problem In-Reply-To: <483C14AB.2090106@faunalia.it> References: <483C14AB.2090106@faunalia.it> Message-ID: <17491446.post@talk.nabble.com> Hey Walter, Its not a problem of AGG. If it was so, then the map will not get rendered. Rather, you will get ERROR messages. I would suggest to keep TRASPARENT ON instead of giving any values. Hope this will help. Regards, Ambastha Walter Lorenzetti-3 wrote: > > Hi all, > > I've a problem with AGG rendering and symbol with transparent background > > my outputformat is : > > OUTPUTFORMAT > NAME 'agg_png' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > > and my symbl declaration is: > > SYMBOL > NAME 'logo' > TYPE PIXMAP > IMAGE 'logo.png' > TRANSPARENT 18 > END > > on my map the color 18 (white) of my logo is not transparent > > instead with a normal GD png outputformat the logo background is > tranparent > > I don't know if is a bug with AGG rendering or is normal! > > Somebody else can help me? > > Thanks in advance > > W > > -- > Please no .doc, .xls, .ppt, .dwg: > https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats > > Walter Lorenzetti > email+jabber: lorenzetti at faunalia.it > www.faunalia.it > Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/agg-symbol-problem-tp17491195p17491446.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Tue May 27 07:20:03 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 27 May 2008 07:20:03 -0700 (PDT) Subject: [MAPSERVER-USERS] Postgis Error In-Reply-To: <8c58032b0805270425i386d5585pb0df786802b43146@mail.gmail.com> References: <8c58032b0805270425i386d5585pb0df786802b43146@mail.gmail.com> Message-ID: <17491542.post@talk.nabble.com> Dear Aaron, Please check your DATA path. It should be something like : DATA "geom from your_table_name" Hope this will help. Regards, Ambastha Aaron Hunt-2 wrote: > > I have been tring to get a script working on my new server and I get the > following error. > > "Postgresql reports the error as 'ERROR: relation "row_crop_boundary" does > not exist '" > > row_crop_boundary is a view contaning the geom column. There are no > uppercaes names and if I log into the command line it works fine. Does > anyone have any ideas? The layer def is below (I seet the data and filter > in > code). > > Thanks > LAYER # Red Field > TYPE polygon > CONNECTIONTYPE postgis > NAME RedFields > CONNECTION "user=xxxpassword=xxx dbname=xxx host=localhost > port=5432" > DATA "" > FILTER "" > STATUS ON > DEBUG ON > TRANSPARENCY 30 > LABELITEM field_name > CLASS > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > LABEL > ANTIALIAS TRUE > FORCE TRUE > POSITION CC > BACKGROUNDCOLOR 75 75 75 > COLOR 255 255 255 > BUFFER 1 > END > END > PROJECTION > "init=epsg:4326" #NAD83 UTM zone 10N > END > END > > -- > Aaron D. Hunt > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Postgis-Error-tp17488191p17491542.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Tue May 27 07:21:36 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 27 May 2008 07:21:36 -0700 (PDT) Subject: [MAPSERVER-USERS] Smooth Roads Problem In-Reply-To: <42595A788A7044478F207E5883E667A4@kusum> References: <42595A788A7044478F207E5883E667A4@kusum> Message-ID: <17491583.post@talk.nabble.com> Hey Kusum, I would suggest to follow any of the two ways: 1. Define outputformat like this: OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END 2. Check mapserver support with AGG. If your version supports AGG format, then go for that outputformat, In the above outputformat definition, you may need to replace GD with AGG. I hope this will help. Regards, Ambastha kusum wrote: > > > Hii All > > I was getting broken kind of roads as in 1st picture below > To give it a smoother look I added antialias true to the style of roads > using imagetype png24 > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > EXTENSION "png" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT OFF > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > The roads looked smoother but the colors of roads changed to white > outline as in picture below > Antialias false > > antialias true > Please suggest something to resolve this. > Thanks in Advance > > Regards > Kusum > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Smooth-Roads-Problem-tp17486102p17491583.html Sent from the Mapserver - User mailing list archive at Nabble.com. From besse.pb at gmail.com Tue May 27 07:34:12 2008 From: besse.pb at gmail.com (Faldor) Date: Tue, 27 May 2008 07:34:12 -0700 (PDT) Subject: [MAPSERVER-USERS] isplaying Message-ID: <17491851.post@talk.nabble.com> -- View this message in context: http://www.nabble.com/isplaying-tp17491851p17491851.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rwburgholzer at deq.virginia.gov Tue May 27 05:50:47 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Tue, 27 May 2008 08:50:47 -0400 Subject: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage() Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D80@deqex01.deq.local> Pavel, Sounds like you might have some other problem in your mapfile. Perhaps some syntax was allowable in the previous version of mapserver that is no longer OK. Might want to check the changelog of your new version, and go from there. Also, since the legend works, you might want to sequentially comment out your layers to determine if you have a specific layer with a problem. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pavel Dobe? Sent: Saturday, May 24, 2008 3:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PHP: Segmentation fault when draw() orsaveWebImage() Hi to all, I run mapserver on my gentoo server now with php-5.2.6_rc4. After upgrade the apache is falling down with message: [Sat May 24 21:13:02 2008] [notice] child pid 2476 exit signal Segmentation fault (11) With mapserver 5.0.0-r1 the last line is $url = $image->saveWebImage(); When I upgrade to 5.0.2 the last lins was $image=$map->draw(); $image is from $image=$map->prepareImage(); in both cases... Any hint, whitch mix of versions (PHP & mapserver) is OK or how to pretend this segfault? Tahnks Pavel PS: this simple script works drawScaleBar(); $img->saveImage(''); ?> _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From besse.pb at gmail.com Tue May 27 07:49:27 2008 From: besse.pb at gmail.com (Faldor) Date: Tue, 27 May 2008 07:49:27 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying population density with Mapserver Message-ID: <17492210.post@talk.nabble.com> Hi, Sorry for my first empty message. My problem is, I need to display population density with Mapserver. The data comes from GPWv3 and has a resolution of 15'. I converted it to a POINT Shapefile using ogr2ogr. At first when I display it on a world map it shows nicely. But when I zoom in it begins to show separated points for each value in the shapefile. What I need is to have the points grow to cover all space available when I zoom in. Is there any mean to do it with Mapserver ? I did not find it in the mapfile reference. I don't know if I explained it well (I'm not english speaking). If you do not understand something, please ask. Cordialy, Faldor -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp17492210p17492210.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Tue May 27 07:57:25 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 27 May 2008 07:57:25 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <17492210.post@talk.nabble.com> References: <17492210.post@talk.nabble.com> Message-ID: <17492387.post@talk.nabble.com> Dear Faldor, What I need is to have the points grow to cover all space available when I zoom in. Do you mean that the size of points should grow? It can be done easily by setting proper SIZE in the STYLE tag. Regards, Ambastha Faldor wrote: > > Hi, > > Sorry for my first empty message. > > My problem is, I need to display population density with Mapserver. The > data comes from GPWv3 and has a resolution of 15'. I converted it to a > POINT Shapefile using ogr2ogr. > > At first when I display it on a world map it shows nicely. But when I zoom > in it begins to show separated points for each value in the shapefile. > What I need is to have the points grow to cover all space available when I > zoom in. > > Is there any mean to do it with Mapserver ? I did not find it in the > mapfile reference. > > I don't know if I explained it well (I'm not english speaking). If you do > not understand something, please ask. > > Cordialy, > > Faldor > > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp17492210p17492387.html Sent from the Mapserver - User mailing list archive at Nabble.com. From besse.pb at gmail.com Tue May 27 08:06:58 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Tue, 27 May 2008 17:06:58 +0200 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <17492387.post@talk.nabble.com> References: <17492210.post@talk.nabble.com> <17492387.post@talk.nabble.com> Message-ID: Yes, but I need them to adapt for different extents. For example, When I zoom out enough to see the world, I need them 1 pixel wide (it's ugly otherwise), but when I zoom in I will need then 2 or 5 or even 30 pixels wide to cover all space. 2008/5/27 Ritesh Ambastha : > > Dear Faldor, > > What I need is to have the points grow to cover all space available > when I zoom in. > > Do you mean that the size of points should grow? It can be done easily by > setting proper SIZE in the STYLE tag. > > > Regards, > Ambastha > > > > Faldor wrote: > > > > Hi, > > > > Sorry for my first empty message. > > > > My problem is, I need to display population density with Mapserver. The > > data comes from GPWv3 and has a resolution of 15'. I converted it to a > > POINT Shapefile using ogr2ogr. > > > > At first when I display it on a world map it shows nicely. But when I > zoom > > in it begins to show separated points for each value in the shapefile. > > What I need is to have the points grow to cover all space available when > I > > zoom in. > > > > Is there any mean to do it with Mapserver ? I did not find it in the > > mapfile reference. > > > > I don't know if I explained it well (I'm not english speaking). If you do > > not understand something, please ask. > > > > Cordialy, > > > > Faldor > > > > > > > > -- > View this message in context: > http://www.nabble.com/Displaying-population-density-with-Mapserver-tp17492210p17492387.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Tue May 27 08:10:05 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Tue, 27 May 2008 11:10:05 -0400 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver Message-ID: <6C097DA58429B743A67070F98BE73A3702B13D85@deqex01.deq.local> I don't know if there is any way to select the STYLE based on the SCALE (which sounds like what you want to do), but you may consider constructing a few separate copies of your layer, each with a different point size, and restricted to display over a certain range of map scales, using MINSCALE and MAXSCALE settings on each of the layers. This would achieve the desired affect, I think, Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pierre-Benoit Besse Sent: Tuesday, May 27, 2008 11:07 AM To: Ritesh Ambastha Cc: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Yes, but I need them to adapt for different extents. For example, When I zoom out enough to see the world, I need them 1 pixel wide (it's ugly otherwise), but when I zoom in I will need then 2 or 5 or even 30 pixels wide to cover all space. 2008/5/27 Ritesh Ambastha : Dear Faldor, What I need is to have the points grow to cover all space available when I zoom in. Do you mean that the size of points should grow? It can be done easily by setting proper SIZE in the STYLE tag. Regards, Ambastha Faldor wrote: > > Hi, > > Sorry for my first empty message. > > My problem is, I need to display population density with Mapserver. The > data comes from GPWv3 and has a resolution of 15'. I converted it to a > POINT Shapefile using ogr2ogr. > > At first when I display it on a world map it shows nicely. But when I zoom > in it begins to show separated points for each value in the shapefile. > What I need is to have the points grow to cover all space available when I > zoom in. > > Is there any mean to do it with Mapserver ? I did not find it in the > mapfile reference. > > I don't know if I explained it well (I'm not english speaking). If you do > not understand something, please ask. > > Cordialy, > > Faldor > > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 92210p17492387.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Tue May 27 08:16:02 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 27 May 2008 08:16:02 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: References: <17492210.post@talk.nabble.com> <17492387.post@talk.nabble.com> Message-ID: <17492783.post@talk.nabble.com> Dear Faldor, Robert is absolutely right. You will have to make different LAYERS for the same POINT layer. But, define MAX/MINSCALE for each Layer. Change STYLE -> SIZE values in each of the layer. You are done !! Cheers ! Ambastha Faldor wrote: > > Yes, but I need them to adapt for different extents. > > For example, When I zoom out enough to see the world, I need them 1 pixel > wide (it's ugly otherwise), but when I zoom in I will need then 2 or 5 or > even 30 pixels wide to cover all space. > > 2008/5/27 Ritesh Ambastha : > >> >> Dear Faldor, >> >> What I need is to have the points grow to cover all space available >> when I zoom in. >> >> Do you mean that the size of points should grow? It can be done easily by >> setting proper SIZE in the STYLE tag. >> >> >> Regards, >> Ambastha >> >> >> >> Faldor wrote: >> > >> > Hi, >> > >> > Sorry for my first empty message. >> > >> > My problem is, I need to display population density with Mapserver. The >> > data comes from GPWv3 and has a resolution of 15'. I converted it to a >> > POINT Shapefile using ogr2ogr. >> > >> > At first when I display it on a world map it shows nicely. But when I >> zoom >> > in it begins to show separated points for each value in the shapefile. >> > What I need is to have the points grow to cover all space available >> when >> I >> > zoom in. >> > >> > Is there any mean to do it with Mapserver ? I did not find it in the >> > mapfile reference. >> > >> > I don't know if I explained it well (I'm not english speaking). If you >> do >> > not understand something, please ask. >> > >> > Cordialy, >> > >> > Faldor >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp17492210p17492387.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp17492210p17492783.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paul_pag00 at hotmail.com Tue May 27 08:28:47 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Tue, 27 May 2008 15:28:47 +0000 Subject: [mapserver-users] pmapper frontend Message-ID: Hello i'm using pampper as my giu to develop an aplication with mapserver, but i have a problem making a logical query using operators did someone know how i could use this operators in my query ? Thanks _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From David.Fawcett at state.mn.us Tue May 27 08:29:57 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 27 May 2008 10:29:57 -0500 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <17492783.post@talk.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD7D@s-sp22.pca.state.mn.us> Before you create lots of different layers to simulate symbol scaling, you may want to try something else. It has been a long time since I have played with scaled symbols, but give it a try. You should be able to scale the symbols by setting a SYMBOLSCALE in the LAYER object. This is the scale at which you want the symbol to appear at the SIZE stated in the map file. You may want to modify STYLE MAXSIZE if you think that you will want your symbols to be larger than 50 pixels. Another completely different approach that just came to my mind would be to use ground units (e.g. meters) to set the size of your symbol. To do this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in meters on the ground that will touch adjacent symbols, or give you the desired amount of space between the symbols. That way, the symbols should scale consistently. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, May 27, 2008 10:16 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Dear Faldor, Robert is absolutely right. You will have to make different LAYERS for the same POINT layer. But, define MAX/MINSCALE for each Layer. Change STYLE -> SIZE values in each of the layer. You are done !! Cheers ! Ambastha Faldor wrote: > > Yes, but I need them to adapt for different extents. > > For example, When I zoom out enough to see the world, I need them 1 > pixel wide (it's ugly otherwise), but when I zoom in I will need then > 2 or 5 or even 30 pixels wide to cover all space. > > 2008/5/27 Ritesh Ambastha : > >> >> Dear Faldor, >> >> What I need is to have the points grow to cover all space >> available when I zoom in. >> >> Do you mean that the size of points should grow? It can be done >> easily by setting proper SIZE in the STYLE tag. >> >> >> Regards, >> Ambastha >> >> >> >> Faldor wrote: >> > >> > Hi, >> > >> > Sorry for my first empty message. >> > >> > My problem is, I need to display population density with Mapserver. >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> > it to a POINT Shapefile using ogr2ogr. >> > >> > At first when I display it on a world map it shows nicely. But when >> > I >> zoom >> > in it begins to show separated points for each value in the >> > shapefile. What I need is to have the points grow to cover all >> > space available >> when >> I >> > zoom in. >> > >> > Is there any mean to do it with Mapserver ? I did not find it in >> > the mapfile reference. >> > >> > I don't know if I explained it well (I'm not english speaking). If >> > you >> do >> > not understand something, please ask. >> > >> > Cordialy, >> > >> > Faldor >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> 17492210p17492387.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 92210p17492783.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue May 27 09:41:17 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 27 May 2008 11:41:17 -0500 Subject: [mapserver-users] Re: [OpenLayers-Users] Smooth Roads Problem In-Reply-To: <5FA34D1B5B8B487EB736A850BB4022C8@kusum> References: <5FA34D1B5B8B487EB736A850BB4022C8@kusum> Message-ID: <483C39AD.4070707@swoodbridge.com> Kusum, I think this is probably a question you should be asking on the mapserver-users list and not on Openlayers. You ahould probably also read http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics if you want good antialiased lines. -Steve W Kusum wrote: > > > Hii All > > This problem may not be intended for this list > but I am new to mapserver , so pls help. > I was getting broken kind of roads as in 1st picture below > To give it a smoother look I added antialias true to the style of roads > using imagetype png24 > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > EXTENSION "png" > MIMETYPE "image/png" > IMAGEMODE RGBA > TRANSPARENT OFF > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > The roads looked smoother but the colors of roads changed as in > picture below > Antialias false > > antialias true > > Please suggest something to resolve this. > Thanks in Advance > > Regards > Kusum > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users at openlayers.org > http://openlayers.org/mailman/listinfo/users From besse.pb at gmail.com Tue May 27 09:25:50 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Tue, 27 May 2008 18:25:50 +0200 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBD7D@s-sp22.pca.state.mn.us> References: <17492783.post@talk.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5021FBD7D@s-sp22.pca.state.mn.us> Message-ID: Ha, well, I prefer that :) I would need a lot of layer definitions to obtain something ok... But I just tried the "ground units" stuff, I tried with a 50 kilometers wide square and it drew squares the size of ASIA !! oO I had to define a 1 feet wide square to obtain something more or less ok... Does anybody know why ? Aside from that It seems to work, thank you ! I will try the scalesymbol stuff tomorrow. Regards 2008/5/27 Fawcett, David : > Before you create lots of different layers to simulate symbol scaling, > you may want to try something else. It has been a long time since I > have played with scaled symbols, but give it a try. > > You should be able to scale the symbols by setting a SYMBOLSCALE in the > LAYER object. This is the scale at which you want the symbol to appear > at the SIZE stated in the map file. > > You may want to modify STYLE MAXSIZE if you think that you will want > your symbols to be larger than 50 pixels. > > Another completely different approach that just came to my mind would be > to use ground units (e.g. meters) to set the size of your symbol. To do > this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in > meters on the ground that will touch adjacent symbols, or give you the > desired amount of space between the symbols. That way, the symbols > should scale consistently. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Tuesday, May 27, 2008 10:16 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > > > Dear Faldor, > > Robert is absolutely right. You will have to make different LAYERS for > the same POINT layer. But, define MAX/MINSCALE for each Layer. Change > STYLE -> SIZE values in each of the layer. You are done !! > > Cheers ! > Ambastha > > > Faldor wrote: > > > > Yes, but I need them to adapt for different extents. > > > > For example, When I zoom out enough to see the world, I need them 1 > > pixel wide (it's ugly otherwise), but when I zoom in I will need then > > 2 or 5 or even 30 pixels wide to cover all space. > > > > 2008/5/27 Ritesh Ambastha : > > > >> > >> Dear Faldor, > >> > >> What I need is to have the points grow to cover all space > >> available when I zoom in. > >> > >> Do you mean that the size of points should grow? It can be done > >> easily by setting proper SIZE in the STYLE tag. > >> > >> > >> Regards, > >> Ambastha > >> > >> > >> > >> Faldor wrote: > >> > > >> > Hi, > >> > > >> > Sorry for my first empty message. > >> > > >> > My problem is, I need to display population density with Mapserver. > > >> > The data comes from GPWv3 and has a resolution of 15'. I converted > >> > it to a POINT Shapefile using ogr2ogr. > >> > > >> > At first when I display it on a world map it shows nicely. But when > > >> > I > >> zoom > >> > in it begins to show separated points for each value in the > >> > shapefile. What I need is to have the points grow to cover all > >> > space available > >> when > >> I > >> > zoom in. > >> > > >> > Is there any mean to do it with Mapserver ? I did not find it in > >> > the mapfile reference. > >> > > >> > I don't know if I explained it well (I'm not english speaking). If > >> > you > >> do > >> > not understand something, please ask. > >> > > >> > Cordialy, > >> > > >> > Faldor > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp > >> 17492210p17492387.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 > 92210p17492783.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue May 27 09:29:10 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 27 May 2008 11:29:10 -0500 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD82@s-sp22.pca.state.mn.us> Have you defined an output projection for your map and input projections for each of your layers? It is likely that MapServer needs to know what the input projection/SRS is before it can translate to different units. David. -----Original Message----- From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] Sent: Tuesday, May 27, 2008 11:26 AM To: Fawcett, David Cc: Ritesh Ambastha; mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Ha, well, I prefer that :) I would need a lot of layer definitions to obtain something ok... But I just tried the "ground units" stuff, I tried with a 50 kilometers wide square and it drew squares the size of ASIA !! oO I had to define a 1 feet wide square to obtain something more or less ok... Does anybody know why ? Aside from that It seems to work, thank you ! I will try the scalesymbol stuff tomorrow. Regards 2008/5/27 Fawcett, David : Before you create lots of different layers to simulate symbol scaling, you may want to try something else. It has been a long time since I have played with scaled symbols, but give it a try. You should be able to scale the symbols by setting a SYMBOLSCALE in the LAYER object. This is the scale at which you want the symbol to appear at the SIZE stated in the map file. You may want to modify STYLE MAXSIZE if you think that you will want your symbols to be larger than 50 pixels. Another completely different approach that just came to my mind would be to use ground units (e.g. meters) to set the size of your symbol. To do this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in meters on the ground that will touch adjacent symbols, or give you the desired amount of space between the symbols. That way, the symbols should scale consistently. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, May 27, 2008 10:16 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Dear Faldor, Robert is absolutely right. You will have to make different LAYERS for the same POINT layer. But, define MAX/MINSCALE for each Layer. Change STYLE -> SIZE values in each of the layer. You are done !! Cheers ! Ambastha Faldor wrote: > > Yes, but I need them to adapt for different extents. > > For example, When I zoom out enough to see the world, I need them 1 > pixel wide (it's ugly otherwise), but when I zoom in I will need then > 2 or 5 or even 30 pixels wide to cover all space. > > 2008/5/27 Ritesh Ambastha : > >> >> Dear Faldor, >> >> What I need is to have the points grow to cover all space >> available when I zoom in. >> >> Do you mean that the size of points should grow? It can be done >> easily by setting proper SIZE in the STYLE tag. >> >> >> Regards, >> Ambastha >> >> >> >> Faldor wrote: >> > >> > Hi, >> > >> > Sorry for my first empty message. >> > >> > My problem is, I need to display population density with Mapserver. >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> > it to a POINT Shapefile using ogr2ogr. >> > >> > At first when I display it on a world map it shows nicely. But when >> > I >> zoom >> > in it begins to show separated points for each value in the >> > shapefile. What I need is to have the points grow to cover all >> > space available >> when >> I >> > zoom in. >> > >> > Is there any mean to do it with Mapserver ? I did not find it in >> > the mapfile reference. >> > >> > I don't know if I explained it well (I'm not english speaking). If >> > you >> do >> > not understand something, please ask. >> > >> > Cordialy, >> > >> > Faldor >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> 17492210p17492387.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 92210p17492783.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Tue May 27 09:36:09 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Tue, 27 May 2008 12:36:09 -0400 Subject: [mapserver-users] trying to determine the EPSG code from gdalinfo Message-ID: Hi, I am trying to determine the EPSG code from a gdalinfo listing against a mrSid file of raster data within Florida and I get the following error when running gdalinfo: "Warning 4: Unable to find state plane zone in stateplane.csv, likely because the GDAL data files cannot be found. Using incomplete definistion of state plane zone" Based on the (incomplete) listing below I looked into the epsg file contained within MapServer and I found a few possiblities for the epsg code: 1.) # NAD83 / Florida East <26958> +proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941 +x_0=200000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs no_defs <> or 2.) # NAD 1983 HARN StatePlane Florida East FIPS 0901 <102258> +proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941 +x_0=200000 +y_0=0 +ellps=GRS80 +units=m no_defs <> or 3.) # NAD83(HARN) / Florida East <2777> +proj=tmerc +lat_0=24.33333333333333 +lon_0=-81 +k=0.999941 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs no_defs <> Which one of above 3 should I use for both processing imagery within gdalwarp and reprojecting on the fly within mapserver? Thanks, John Below is the listing that gdalinfo generated. ------------------------------------------------------------------------------------------------------------------------------------- Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Files: F:\2004_DOQQ_State_Plane\StatePlane_E\MrSid\g05\q0512nw.sid Size is 6356, 6947 Coordinate System is: LOCAL_CS["State Plane Zone 0 / NAD83", UNIT["Meter",1]] Origin = (489987.640833500020000,106293.663854000000000) Pixel Size = (3.280833000000000,-3.280833000000000) Metadata: IMAGE__INPUT_NAME=J:\sf_901_2\q0512nw.img IMAGE__INPUT_FILE_SIZE=134412999.000000 IMAGE__DYNAMIC_RANGE_WINDOW=256.000000 IMAGE__DYNAMIC_RANGE_LEVEL=127.500000 IMG__TIME_STAMP=Fri Jul 15 00:17:08 2005 IMG__HORIZONTAL_UNITS=feet IMG__PROJECTION_NAME=State Plane IMG__PROJECTION_TYPE=Internal IMG__PROJECTION_NUMBER=2 IMG__PROJECTION_ZONE=64635 IMG__SPHEROID_NAME=GRS 1980 IMG__SPHEROID_SEMI_MAJOR_AXIS=6378137.000000 IMG__SPHEROID_SEMI_MINOR_AXIS=6356752.314140 IMG__SPHEROID_ECCENTRICITY_SQUARED=0.006694 IMG__SPHEROID_RADIUS=6371007.180883 IMG__PROJECTION_PARAMETERS=2.000000 IMAGE__COMPRESSION_VERSION=1,6,1 IMAGE__TARGET_COMPRESSION_RATIO=20.000000 IMAGE__COMPRESSION_NLEV=8 IMAGE__COMPRESSION_WEIGHT=4.000000 IMAGE__COMPRESSION_GAMMA=2.000000 IMAGE__COMPRESSION_BLOCK_SIZE=512 IMAGE__CREATION_DATE=Tue Jul 19 14:40:18 2005 IMAGE__WIDTH=6356 IMAGE__HEIGHT=6947 IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__BITS_PER_SAMPLE=8 IMAGE__XY_ORIGIN=489989.281250,106292.023438 IMAGE__X_RESOLUTION=3.280833 IMAGE__Y_RESOLUTION=3.280833 IMAGE__WKT=LOCAL_CS["State Plane Zone 0 / NAD83",UNIT["Meter",1]] Corner Coordinates: Upper Left ( 489987.641, 106293.664) Lower Left ( 489987.641, 83501.717) Upper Right ( 510840.615, 106293.664) Lower Right ( 510840.615, 83501.717) Center ( 500414.128, 94897.690) Band 1 Block=1024x128 Type=Byte, ColorInterp=Red Minimum=41.000, Maximum=176.000, Mean=61.796, StdDev=20.073 Overviews: 3178x3474, 1589x1737, 795x869, 398x435, 199x218, 100x109, 50x55, 25x28 Metadata: LAYER_TYPE=athematic Band 2 Block=1024x128 Type=Byte, ColorInterp=Green Minimum=67.000, Maximum=192.000, Mean=94.222, StdDev=19.096 Overviews: 3178x3474, 1589x1737, 795x869, 398x435, 199x218, 100x109, 50x55, 25x28 Metadata: LAYER_TYPE=athematic Band 3 Block=1024x128 Type=Byte, ColorInterp=Blue Minimum=94.000, Maximum=169.000, Mean=110.354, StdDev=10.509 Overviews: 3178x3474, 1589x1737, 795x869, 398x435, 199x218, 100x109, 50x55, 25x28 Metadata: LAYER_TYPE=athematic ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Tue May 27 13:54:07 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 28 May 2008 08:54:07 +1200 Subject: [MAPSERVER-USERS] What is Data Handling Capacity of Mapserver? In-Reply-To: <17484929.post@talk.nabble.com> References: <17484929.post@talk.nabble.com> Message-ID: <483D1DAF0200003700003B2E@gate1.agriquality.com> Hi Yatendra I have not tried serving data from a personal geodatabase, but my Mapserver dataset is > 15 GB, much of it rasters, but I also have single Shapefile that is approx 1 GB in size, and Mapserver has no problem. Regards, Robert >>> yatendra 27/05/2008 7:50:22 p.m. >>> Hi Friends, What is data handling capacity of mapserver? How much data we can access through mapserver? I am using personal geodatabase of 300 mb. For me data is displayed first time. when i tried to zoom in then my PC gets hanged. Can eny one guide me how to access this kind of large data? Is there any need of configure Mapserver or its any componant to access this kind of large data? Please Guide me for this. Please give me details of Mapserver's Capcity also. Thanks Regards -- View this message in context: http://www.nabble.com/What-is-Data-Handling-Capacity-of-Mapserver--tp17484929p17484929.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue May 27 15:05:01 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 27 May 2008 17:05:01 -0500 Subject: [mapserver-users] Replacing EMPTY parameter by CGI In-Reply-To: References: <108195.1684.qm@web43140.mail.sp1.yahoo.com> Message-ID: <483C3F3C.5157.008F.0@dnr.state.mn.us> That's what's going on. If you file a quick bug I'll make sure that gets fixed in 5.2 which should be out relatively soon. BTW The fix is to change line 164 in maplexer.l from: empty... to: empty... Steve >>> On 5/27/2008 at 5:48 AM, in message , "Wim Blanken" wrote: > Hello List!, > > I'm having a problem with mapserver 5. In my former application using 4.x I > was able to change the EMPTY Path in my application using the: > > &map_web_empty=path > > variable through CGI. > > I have changed this to the new method: &map_web=EMPTY+path > > Mapserver gives me an error: loadWeb(): Unknown identifier. Parsing error > near (EMPTY):(line 1) > > I can change the HEADER template etc. using the same method > (map_web=HEADER+path) but the empty parameter cannot be changed. > > Is it no longer possible to change the empty template through CGI with > mapserver 5? > > Regards, > > Wim Blanken > The Netherlands > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Tue May 27 15:08:00 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 27 May 2008 15:08:00 -0700 Subject: [mapserver-users] Replacing EMPTY parameter by CGI In-Reply-To: <483C3F3C.5157.008F.0@dnr.state.mn.us> References: <108195.1684.qm@web43140.mail.sp1.yahoo.com> <483C3F3C.5157.008F.0@dnr.state.mn.us> Message-ID: <30fe546d0805271508r68502f42l1a95335f4847f0e7@mail.gmail.com> Any reason not to patch 5.0? P On Tue, May 27, 2008 at 3:05 PM, Steve Lime wrote: > That's what's going on. If you file a quick bug I'll make sure that gets fixed in 5.2 which should be out relatively soon. BTW The > fix is to change line 164 in maplexer.l from: > > empty... > > to: > > empty... > > Steve > >>>> On 5/27/2008 at 5:48 AM, in message > , "Wim Blanken" > wrote: >> Hello List!, >> >> I'm having a problem with mapserver 5. In my former application using 4.x I >> was able to change the EMPTY Path in my application using the: >> >> &map_web_empty=path >> >> variable through CGI. >> >> I have changed this to the new method: &map_web=EMPTY+path >> >> Mapserver gives me an error: loadWeb(): Unknown identifier. Parsing error >> near (EMPTY):(line 1) >> >> I can change the HEADER template etc. using the same method >> (map_web=HEADER+path) but the empty parameter cannot be changed. >> >> Is it no longer possible to change the empty template through CGI with >> mapserver 5? >> >> Regards, >> >> Wim Blanken >> The Netherlands >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alim.karim at gmail.com Tue May 27 16:23:56 2008 From: alim.karim at gmail.com (alim karim) Date: Tue, 27 May 2008 16:23:56 -0700 Subject: [mapserver-users] php/mapscript HATCH symbol Message-ID: hello all. i am trying to read a mapfile which has a hatch symbol defined as: SYMBOL NAME "hatch test" TYPE hatch END once i make some changes to the mapfile and write it out to file, the "TYPE hatch" disappears from the symbol definition for some reason. as a workaround, i thought i could add the hatch symbol to the mapfile via mapscript, but the only symbol type constants that appear in the API are : MS_SYMBOL_SIMPLE, MS_SYMBOL_VECTOR, MS_SYMBOL_ELLIPSE, MS_SYMBOL_PIXMAP, MS_SYMBOL_TRUETYPE, MS_SYMBOL_CARTOLINE i am running mapserver v5.0 has anyone had similar problems? thanks in advance for any help. ak -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.kuek at abridge.com.au Tue May 27 20:44:09 2008 From: ben.kuek at abridge.com.au (Ben Kuek) Date: Wed, 28 May 2008 11:44:09 +0800 Subject: [mapserver-users] Map seems like it is shifted to the north by a few meters Message-ID: <483CD509.5030101@abridge.com.au> Hi, My understanding of map projections is a bit rusty so I hope anyone can point out where I am wrong. I have a vector map source in shapefiles where it's .prj file has only the following definition GEOGCS["Geographic Coordinate System",DATUM["WGS84",SPHEROID["GRS 1980",6378137,298.2572220960423]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]] When the map loaded, I can confirm that the map is wrong by it's shifting to the north by a few hundred meters. I can use : OFFSET 0 70 in the STYLE object but it doesn't seem like the right thing to do. I am not very sure if the issue lies with projection or the map source and if there's a specific projection setting I must use. Regards, Ben From SansonR at asurequality.com Tue May 27 21:02:46 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 28 May 2008 16:02:46 +1200 Subject: [mapserver-users] Map seems like it is shifted to the north by a few meters In-Reply-To: <483CD509.5030101@abridge.com.au> References: <483CD509.5030101@abridge.com.au> Message-ID: <483D82260200003700003B6F@gate1.agriquality.com> Hi Ben This looks like WGS84. You should haev the following in your Map file, top level and/or layer level: PROJECTION "init=epsg:4326" END regards, Robert Sanson >>> Ben Kuek 28/05/2008 3:44:09 p.m. >>> Hi, My understanding of map projections is a bit rusty so I hope anyone can point out where I am wrong. I have a vector map source in shapefiles where it's .prj file has only the following definition GEOGCS["Geographic Coordinate System",DATUM["WGS84",SPHEROID["GRS 1980",6378137,298.2572220960423]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]] When the map loaded, I can confirm that the map is wrong by it's shifting to the north by a few hundred meters. I can use : OFFSET 0 70 in the STYLE object but it doesn't seem like the right thing to do. I am not very sure if the issue lies with projection or the map source and if there's a specific projection setting I must use. Regards, Ben _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From besse.pb at gmail.com Wed May 28 02:11:05 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Wed, 28 May 2008 11:11:05 +0200 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBD82@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD82@s-sp22.pca.state.mn.us> Message-ID: Well, I confess, I'm new to GIS applications and I do not know a lot about projections. I understand I have to tell MapServer what is the projection of each layer I use in the mapfile, but using ogrinfo on my shapefiles tells me that : Layer name: pop_density Geometry: Point Feature Count: 249937 Extent: (-180.000000, -56.000000) - (179.750000, 83.500000) *Layer SRS WKT: (unknown)* latitude: Real (24.15) longitude: Real (24.15) densite: Real (24.15) I generated this shapefile from a CSV file with 3 columns : latitude, longitude, density_value. Did I have to define a projection then ? How do I do that ? Best regards, Faldor 2008/5/27 Fawcett, David : > Have you defined an output projection for your map and input projections > for each of your layers? It is likely that MapServer needs to know what the > input projection/SRS is before it can translate to different units. > > David. > > -----Original Message----- > *From:* Pierre-Benoit Besse [mailto:besse.pb at gmail.com] > *Sent:* Tuesday, May 27, 2008 11:26 AM > *To:* Fawcett, David > *Cc:* Ritesh Ambastha; mapserver-users at lists.osgeo.org > *Subject:* Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > Ha, well, I prefer that :) I would need a lot of layer definitions to > obtain something ok... > > But I just tried the "ground units" stuff, I tried with a 50 kilometers > wide square and it drew squares the size of ASIA !! oO > I had to define a 1 feet wide square to obtain something more or less ok... > Does anybody know why ? > > Aside from that It seems to work, thank you ! > > I will try the scalesymbol stuff tomorrow. > > Regards > > > 2008/5/27 Fawcett, David : > >> Before you create lots of different layers to simulate symbol scaling, >> you may want to try something else. It has been a long time since I >> have played with scaled symbols, but give it a try. >> >> You should be able to scale the symbols by setting a SYMBOLSCALE in the >> LAYER object. This is the scale at which you want the symbol to appear >> at the SIZE stated in the map file. >> >> You may want to modify STYLE MAXSIZE if you think that you will want >> your symbols to be larger than 50 pixels. >> >> Another completely different approach that just came to my mind would be >> to use ground units (e.g. meters) to set the size of your symbol. To do >> this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in >> meters on the ground that will touch adjacent symbols, or give you the >> desired amount of space between the symbols. That way, the symbols >> should scale consistently. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh >> Ambastha >> Sent: Tuesday, May 27, 2008 10:16 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] Displaying population density with >> Mapserver >> >> >> >> Dear Faldor, >> >> Robert is absolutely right. You will have to make different LAYERS for >> the same POINT layer. But, define MAX/MINSCALE for each Layer. Change >> STYLE -> SIZE values in each of the layer. You are done !! >> >> Cheers ! >> Ambastha >> >> >> Faldor wrote: >> > >> > Yes, but I need them to adapt for different extents. >> > >> > For example, When I zoom out enough to see the world, I need them 1 >> > pixel wide (it's ugly otherwise), but when I zoom in I will need then >> > 2 or 5 or even 30 pixels wide to cover all space. >> > >> > 2008/5/27 Ritesh Ambastha : >> > >> >> >> >> Dear Faldor, >> >> >> >> What I need is to have the points grow to cover all space >> >> available when I zoom in. >> >> >> >> Do you mean that the size of points should grow? It can be done >> >> easily by setting proper SIZE in the STYLE tag. >> >> >> >> >> >> Regards, >> >> Ambastha >> >> >> >> >> >> >> >> Faldor wrote: >> >> > >> >> > Hi, >> >> > >> >> > Sorry for my first empty message. >> >> > >> >> > My problem is, I need to display population density with Mapserver. >> >> >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> >> > it to a POINT Shapefile using ogr2ogr. >> >> > >> >> > At first when I display it on a world map it shows nicely. But when >> >> >> > I >> >> zoom >> >> > in it begins to show separated points for each value in the >> >> > shapefile. What I need is to have the points grow to cover all >> >> > space available >> >> when >> >> I >> >> > zoom in. >> >> > >> >> > Is there any mean to do it with Mapserver ? I did not find it in >> >> > the mapfile reference. >> >> > >> >> > I don't know if I explained it well (I'm not english speaking). If >> >> > you >> >> do >> >> > not understand something, please ask. >> >> > >> >> > Cordialy, >> >> > >> >> > Faldor >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> >> 17492210p17492387.html >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 >> 92210p17492783.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Wed May 28 03:48:26 2008 From: schroeter at netgis.de (schroeter at netgis.de) Date: Wed, 28 May 2008 12:48:26 +0200 Subject: [mapserver-users] queryByAttributes on PostGIS-Layer Message-ID: <000d01c8c0b0$5e4ed1a0$08b2a8c0@SVEN> Hallo list, My test-system: Mapserver 5.02 on WinXP and postgreSQL 8.2 I try to make some querys via php-mapscript for a postgis-layer: queryByPoint,queryByShape and queryByRect is no problem. queryByAttributes always return "no result" (field 'nr_' is an integer) If I use a shapefile for the same data (biogasanlagen.shp) queryByAttributes works fine. mapfile: ... LAYER NAME "biogasanlagen" TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=xyz dbname=mydb host=localhost port=5432" DATA "the_geom from biogasanlagen using unique gid" #DATA biogasanlagen.shp TEMPLATE void CLASS Name "biogasanlagen" OUTLINECOLOR 128 70 0 COLOR 230 70 0 SYMBOL 'circle' SIZE 12 END # CLASS TRANSPARENCY 88 TOLERANCE 8 END ... php-Code: ... $layer = $map->getLayerByName("biogasanlagen"); @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); ... any idea? Thanks Sven From jabi at irontec.com Wed May 28 06:27:49 2008 From: jabi at irontec.com (Javier Infante) Date: Wed, 28 May 2008 15:27:49 +0200 Subject: [mapserver-users] geotiff raster optimization Message-ID: <1211981269.17818.23.camel@guantanamo> Hi List! First of all, i would like to tell I'm a newbie with these issues, and hardy understand everysingle concept involving geo-references and projections and stuff like that. I have been using mapserver for about a month, but right now i'm stuck with some optimization issues i am about to explain. I'm building a map based in images i generate from scratch. Let's say i have one picture per country. Those pictures are based in a huge png file 10000x14660 pixels. So lets say i have my own projection system. I have isolated every single country in the world in its own image file, and i have managed to get the xmin, xmax ymin ymax coords for every country. The size of each country depends on a few concepts which would be long to explain... but every country will have a different size. Alltought mapserver manages that correctly. Here's an example of a file * in my png images directory: TR.png: PNG image data, 1200 x 400, 8-bit colormap, non-interlaced TT.png: PNG image data, 1400 x 1400, 8-bit colormap, non-interlaced TW.png: PNG image data, 1200 x 1000, 8-bit colormap, non-interlaced TZ.png: PNG image data, 800 x 800, 8-bit colormap, non-interlaced UA.png: PNG image data, 1000 x 600, 8-bit colormap, non-interlaced UG.png: PNG image data, 400 x 400, 8-bit colormap, non-interlaced US.png: PNG image data, 5800 x 3800, 8-bit colormap, non-interlaced UY.png: PNG image data, 400 x 400, 8-bit colormap, non-interlaced UZ.png: PNG image data, 2400 x 1400, 8-bit colormap, non-interlaced (so you got the idea right?) The total size of the pngs is 50 MB (but expected to be much bigger). So for every image of each country i do this procedure: ?[*] pngquant, so i downsample my PHP-GD generated 24 RGB PNGs to 8 colormaps with a real acceptable quality. (i have had some trouble with the color i used as a background (and later defined as OFFSITE), because pngquant changed it. pure white (#FFF) seems to work fine later). I think this step is useless, because later, i make mapserver generate the image as a jpeg... or it isn't?? [*] gdal_translate -of GTIFF -co TILED=YES -a_ullr xmin ymax ymin xmax my.png new.tiff which from what i have understood, uncompress all the image data (nice to mapserver) and also puts those extend variables inside the image file. ?[*] gdaladdo -r nearest file.tiff 2 4 8 16 32 64 128 1000 which i think puts "thumbnails" of the huge picture, inside it. So mapserver access to less amount of data when the zoom is not far enough. Then, with all my tiff files, i run the following command: gdaltindex world.shp *tiff which generates world.shx world.shp and world.dbf. ?The size of all the generated tiffs is around 500MB (which is not much for mapserver right?) my .map file looks like this: MAP NAME "World" SIZE 750 550 IMAGECOLOR 83 83 83 IMAGETYPE png24 EXTENT -10000 -7330 10000 7330 OUTPUTFORMAT NAME png24 DRIVER "GD/PNG24" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END LAYER STATUS DEFAULT TYPE RASTER NAME "MUNDO" TILEINDEX "world.shp" OFFSITE 255 255 255 END END As a frontend I use openlayers, so I actually think the imagetype and output format get overwritten by the openlayers software, which adds to every request to the cgi the imagetype=png variable, so I'm pretty sure the images that are generated by mapserver, are jpegs (smaller size than png and png24, and really acceptable quality). The main problem of the system is performance. It takes about 40 secs to generate the first level of zoom in the openlayers front-end (and about the same time, every time you zoom in). ?If it's usefull, i have compiled a 5.0.2 version of mapserver with this configure options: ./configure --with-gdal --with-fastcgi --with-png12 --with-gd I have develped a cache system (PHP based), which simply acts as a proxy for mapserver. I guess i could use tilecache or geowebcache... but the idea of the system, is to be running permanently: every country will be regenerated with a new picture every few minutes (so i guess a cache system woudln't do the trick...). So thanks for reading this far, and i would really appreciate if someone could give me some light. thank you for reading this far ;) -- Javier Infante Irontec From espen.isaksen at gmail.com Wed May 28 07:32:20 2008 From: espen.isaksen at gmail.com (Espen Isaksen) Date: Wed, 28 May 2008 16:32:20 +0200 Subject: [mapserver-users] International characters in text paramater Message-ID: Hi! Tried to find a answer to this but was unable to. I am trying to use Norwegian characters in the text parameter in the class object. I set "Text (Lysl?ype)" in the map file but this does not work. How can I do this correctly? Example follows: LAYER # Lysloype NAME Lysloype TYPE line STATUS default DATA bygg/lysloype MAXSCALE 20000 TRANSPARENCY 80 LABELMAXSCALE 2000 CLASS STYLE COLOR 255 255 0 # Gul farge. SYMBOL "point_line" SIZE 4 END STYLE COLOR 255 255 0 # Gul farge. SYMBOL "normal_line" SIZE 1 END TEXT (Lysl?pe) LABEL SIZE 7 COLOR 255 255 255 OUTLINECOLOR 100 100 100 ANGLE follow POSITION cc TYPE truetype FONT Verdana_bold MINDISTANCE 1000000 PARTIALS false END END END From Steve.Lime at dnr.state.mn.us Wed May 28 07:40:46 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 28 May 2008 09:40:46 -0500 Subject: [mapserver-users] Replacing EMPTY parameter by CGI Message-ID: <483D289E0200008F000181E7@co5.dnr.state.mn.us> Probably not. >>> "Paul Ramsey" 05/27/08 5:08 PM >>> Any reason not to patch 5.0? P On Tue, May 27, 2008 at 3:05 PM, Steve Lime wrote: > That's what's going on. If you file a quick bug I'll make sure that gets fixed in 5.2 which should be out relatively soon. BTW The > fix is to change line 164 in maplexer.l from: > > empty... > > to: > > empty... > > Steve > >>>> On 5/27/2008 at 5:48 AM, in message > , "Wim Blanken" > wrote: >> Hello List!, >> >> I'm having a problem with mapserver 5. In my former application using 4.x I >> was able to change the EMPTY Path in my application using the: >> >> &map_web_empty=path >> >> variable through CGI. >> >> I have changed this to the new method: &map_web=EMPTY+path >> >> Mapserver gives me an error: loadWeb(): Unknown identifier. Parsing error >> near (EMPTY):(line 1) >> >> I can change the HEADER template etc. using the same method >> (map_web=HEADER+path) but the empty parameter cannot be changed. >> >> Is it no longer possible to change the empty template through CGI with >> mapserver 5? >> >> Regards, >> >> Wim Blanken >> The Netherlands >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From fsalas at geocuba.co.cu Wed May 28 08:11:44 2008 From: fsalas at geocuba.co.cu (Francisco) Date: Wed, 28 May 2008 10:11:44 -0500 Subject: [mapserver-users] How use the LABELANGLEITEM Message-ID: <000201c8c0eb$051726b0$3fb09ea9@deltha> Hi, i need to visualize the road label that follow the line angle It's possible best regards Francisco Salas ___________________________________ Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 712871 Definition date: 2008/05/24 MDAV version: 2.2.9 Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA From deangadoury at subpixelmedia.com Wed May 28 10:08:19 2008 From: deangadoury at subpixelmedia.com (deangadoury at subpixelmedia.com) Date: Wed, 28 May 2008 10:08:19 -0700 Subject: [mapserver-users] How use the LABELANGLEITEM Message-ID: <20080528100819.101c104282a567f8bab9dfdb5864fa84.97ccf11fab.wbe@email.secureserver.net> Hi Francisco, To have road labels follow the angle of the road you do not need to use labelangleitem. In the label object simply use ANGLE FOLLOW and labels will follow the angle of the road features. Dean Gadoury subpixelmedia.com > -------- Original Message -------- > Subject: [mapserver-users] How use the LABELANGLEITEM > From: "Francisco" > Date: Wed, May 28, 2008 8:11 am > To: > > Hi, i need to visualize the road label that follow the line angle > It's possible > best regards Francisco Salas > > ___________________________________ > Este mensaje esta libre de virus. > Revisado por Kaspersky Antivirus > Engine version: 4.0.1.14 > Engine date: 2002/06/25 > Definition count: 712871 > Definition date: 2008/05/24 > MDAV version: 2.2.9 > > Dpto de Sistemas Inform?ticos > Oficina Central Grupo Empresarial GEOCUBA > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From frodewj at gmail.com Wed May 28 10:16:23 2008 From: frodewj at gmail.com (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Wed, 28 May 2008 19:16:23 +0200 Subject: [mapserver-users] International characters in text paramater In-Reply-To: References: Message-ID: Hi Espen Try this: TEXT "Lysløype" FrodeWJ 2008/5/28 Espen Isaksen : > Hi! > > Tried to find a answer to this but was unable to. I am trying to use > Norwegian characters in the text parameter in the class object. I set > "Text (Lysl?ype)" in the map file but this does not work. How can I do > this correctly? Example follows: > > > LAYER # Lysloype > NAME Lysloype > TYPE line > STATUS default > DATA bygg/lysloype > MAXSCALE 20000 > TRANSPARENCY 80 > LABELMAXSCALE 2000 > CLASS > STYLE > COLOR 255 255 0 # Gul farge. > SYMBOL "point_line" > SIZE 4 > END > > STYLE > COLOR 255 255 0 # Gul farge. > SYMBOL "normal_line" > SIZE 1 > END > > TEXT (Lysl?pe) > > LABEL > SIZE 7 > COLOR 255 255 255 > OUTLINECOLOR 100 100 100 > ANGLE follow > POSITION cc > TYPE truetype > FONT Verdana_bold > MINDISTANCE 1000000 > PARTIALS false > END > END > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Frode Wiseth J?rgensen +47 99 03 41 42 -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at geon.nl Wed May 28 10:22:31 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Wed, 28 May 2008 19:22:31 +0200 Subject: [mapserver-users] How use the LABELANGLEITEM In-Reply-To: <000201c8c0eb$051726b0$3fb09ea9@deltha> Message-ID: Hi Francisco, Which version of mapserver are you using? I use Mapserver 5 and beneath is the definition of my road labelling. LAYER #Wegen NAME Wegenlabels DATA 'algemeen/wegen_land' STATUS ON TYPE line MAXSCALE 10000 CLASS LABEL MINFEATURESIZE 200 SIZE 7 TYPE TRUETYPE ANTIALIAS true FONT vera ANGLE FOLLOW POSITION AUTO OFFSET 0 0 OUTLINECOLOR 255 255 255 COLOR 0 0 0 #255 255 255 BUFFER 5 END #label END #CLASS LABELITEM "STRAATNAAM" END # LAYER Best Regards, Wim Blanken The Netherlands -----Oorspronkelijk bericht----- Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Francisco Verzonden: Wednesday, May 28, 2008 5:12 PM Aan: mapserver-users at lists.osgeo.org Onderwerp: [mapserver-users] How use the LABELANGLEITEM Hi, i need to visualize the road label that follow the line angle It's possible best regards Francisco Salas ___________________________________ Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 712871 Definition date: 2008/05/24 MDAV version: 2.2.9 Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.24.1/1470 - Release Date: 28-5-2008 7:20 From fsalas at geocuba.co.cu Wed May 28 11:33:57 2008 From: fsalas at geocuba.co.cu (Francisco) Date: Wed, 28 May 2008 13:33:57 -0500 Subject: [mapserver-users] How use the LABELANGLEITEM References: <20080528100819.101c104282a567f8bab9dfdb5864fa84.97ccf11fab.wbe@email.secureserver.net> Message-ID: <008001c8c0f2$cc100640$3fb09ea9@deltha> Hi Dean, this is my Layer definition I put the ANGLE FOLLOW, but without change in label map, then put ANGLE AUTO but Neither I had aftermath desired This is my layer definition for a road layer What?s wrong? ************** * * LAYER NAME "Calles" GROUP "Mapa" STATUS on CONNECTIONTYPE POSTGIS CONNECTION "dbname=salud user=salud password=salud host=localhost" DATA "the_geom from calles" TYPE LINE TOLERANCE 3 CLASSITEM "name" LABELITEM "name" LABELMAXSCALE 1250 CLASS EXPRESSION /./ LABEL ANGLE AUTO SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE GIANT POSITION CC PARTIALS FALSE BUFFER 2 END CLASS NAME "Calles" TEMPLATE "query.phtml" STYLE OUTLINECOLOR 0 0 0 MINSIZE 1 MAXSIZE 100 END END END Francisco Salas ----- Original Message ----- From: To: "Francisco" Cc: Sent: Wednesday, May 28, 2008 12:08 PM Subject: RE: [mapserver-users] How use the LABELANGLEITEM > Hi Francisco, > > To have road labels follow the angle of the road you do not need to use > labelangleitem. In the label object simply use ANGLE FOLLOW and labels > will follow the angle of the road features. > > Dean Gadoury > subpixelmedia.com > >> -------- Original Message -------- >> Subject: [mapserver-users] How use the LABELANGLEITEM >> From: "Francisco" >> Date: Wed, May 28, 2008 8:11 am >> To: >> >> Hi, i need to visualize the road label that follow the line angle >> It's possible >> best regards Francisco Salas >> >> ___________________________________ >> Este mensaje esta libre de virus. >> Revisado por Kaspersky Antivirus >> Engine version: 4.0.1.14 >> Engine date: 2002/06/25 >> Definition count: 712871 >> Definition date: 2008/05/24 >> MDAV version: 2.2.9 >> >> Dpto de Sistemas Inform?ticos >> Oficina Central Grupo Empresarial GEOCUBA >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___________________________________ Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 712871 Definition date: 2008/05/24 MDAV version: 2.2.9 Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA From gregor at hostgis.com Wed May 28 10:59:22 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 28 May 2008 11:59:22 -0600 Subject: [mapserver-users] Why isn't this SLD working? Message-ID: <483D9D7A.7000001@hostgis.com> Hey hey. Any thoughts on this? As far as I can tell, the SLD is proper and the URL is proper for using that SLD. I have verified that from "within" the server I can wget the gm.xml file, so I know it's in fact accessible. So why isn't the SLD being applied? http://www.cambodiaatlas.com/cgi-bin/mapserv?map=/var/www/mango-v1.0.0/Track/track.map&service=WMS&version=1.1.1&request=GetMap&transparent=true&styles=&format=image/png&srs=EPSG:32648&width=500&height=500&bbox=102.06899309916874,10.13684987316996,107.89237806590529,14.907098809695391&SLD=http://www.cambodiaatlas.com/track/gm.xml&layers=dn_pol_clip http://www.cambodiaatlas.com/track/gm.xml -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From yassefa at dmsolutions.ca Wed May 28 12:06:35 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 28 May 2008 15:06:35 -0400 Subject: [mapserver-users] Why isn't this SLD working? In-Reply-To: <483D9D7A.7000001@hostgis.com> References: <483D9D7A.7000001@hostgis.com> Message-ID: <483DAD3B.7050200@dmsolutions.ca> Gregor, Could it be related to the imagepath and/or imageurl not set properly (please see thread at http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055299.html and bug http://trac.osgeo.org/mapserver/ticket/2573) Best Regards, Gregor Mosheh wrote: > Hey hey. Any thoughts on this? > > As far as I can tell, the SLD is proper and the URL is proper for using > that SLD. I have verified that from "within" the server I can wget the > gm.xml file, so I know it's in fact accessible. So why isn't the SLD > being applied? > > http://www.cambodiaatlas.com/cgi-bin/mapserv?map=/var/www/mango-v1.0.0/Track/track.map&service=WMS&version=1.1.1&request=GetMap&transparent=true&styles=&format=image/png&srs=EPSG:32648&width=500&height=500&bbox=102.06899309916874,10.13684987316996,107.89237806590529,14.907098809695391&SLD=http://www.cambodiaatlas.com/track/gm.xml&layers=dn_pol_clip > > > http://www.cambodiaatlas.com/track/gm.xml > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From David.Fawcett at state.mn.us Wed May 28 10:34:44 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 28 May 2008 12:34:44 -0500 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD8B@s-sp22.pca.state.mn.us> Faldor, When you have point coordinates stored in a text file, there really is no way to encode/attach the projection definition. Even if you could, it doesn't sound like you really know what spatial reference system (SRS) or projection that it is in. The key to projecting to another SRS or translating ground units to another measure (from degrees to meters) is knowing what the current SRS of the data is. Since your data is worldwide and it is unprojected (lat/lon), a good first guess would be to assume that it is unprojected with using the WGS84. Try defining your layer projection by including this block in your layer definition. PROJECTION "init=epsg:4326" END David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pierre-Benoit Besse Sent: Wednesday, May 28, 2008 4:11 AM To: Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Well, I confess, I'm new to GIS applications and I do not know a lot about projections. I understand I have to tell MapServer what is the projection of each layer I use in the mapfile, but using ogrinfo on my shapefiles tells me that : Layer name: pop_density Geometry: Point Feature Count: 249937 Extent: (-180.000000, -56.000000) - (179.750000, 83.500000) Layer SRS WKT: (unknown) latitude: Real (24.15) longitude: Real (24.15) densite: Real (24.15) I generated this shapefile from a CSV file with 3 columns : latitude, longitude, density_value. Did I have to define a projection then ? How do I do that ? Best regards, Faldor 2008/5/27 Fawcett, David : Have you defined an output projection for your map and input projections for each of your layers? It is likely that MapServer needs to know what the input projection/SRS is before it can translate to different units. David. -----Original Message----- From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] Sent: Tuesday, May 27, 2008 11:26 AM To: Fawcett, David Cc: Ritesh Ambastha; mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Ha, well, I prefer that :) I would need a lot of layer definitions to obtain something ok... But I just tried the "ground units" stuff, I tried with a 50 kilometers wide square and it drew squares the size of ASIA !! oO I had to define a 1 feet wide square to obtain something more or less ok... Does anybody know why ? Aside from that It seems to work, thank you ! I will try the scalesymbol stuff tomorrow. Regards 2008/5/27 Fawcett, David : Before you create lots of different layers to simulate symbol scaling, you may want to try something else. It has been a long time since I have played with scaled symbols, but give it a try. You should be able to scale the symbols by setting a SYMBOLSCALE in the LAYER object. This is the scale at which you want the symbol to appear at the SIZE stated in the map file. You may want to modify STYLE MAXSIZE if you think that you will want your symbols to be larger than 50 pixels. Another completely different approach that just came to my mind would be to use ground units (e.g. meters) to set the size of your symbol. To do this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in meters on the ground that will touch adjacent symbols, or give you the desired amount of space between the symbols. That way, the symbols should scale consistently. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, May 27, 2008 10:16 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Dear Faldor, Robert is absolutely right. You will have to make different LAYERS for the same POINT layer. But, define MAX/MINSCALE for each Layer. Change STYLE -> SIZE values in each of the layer. You are done !! Cheers ! Ambastha Faldor wrote: > > Yes, but I need them to adapt for different extents. > > For example, When I zoom out enough to see the world, I need them 1 > pixel wide (it's ugly otherwise), but when I zoom in I will need then > 2 or 5 or even 30 pixels wide to cover all space. > > 2008/5/27 Ritesh Ambastha : > >> >> Dear Faldor, >> >> What I need is to have the points grow to cover all space >> available when I zoom in. >> >> Do you mean that the size of points should grow? It can be done >> easily by setting proper SIZE in the STYLE tag. >> >> >> Regards, >> Ambastha >> >> >> >> Faldor wrote: >> > >> > Hi, >> > >> > Sorry for my first empty message. >> > >> > My problem is, I need to display population density with Mapserver. >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> > it to a POINT Shapefile using ogr2ogr. >> > >> > At first when I display it on a world map it shows nicely. But when >> > I >> zoom >> > in it begins to show separated points for each value in the >> > shapefile. What I need is to have the points grow to cover all >> > space available >> when >> I >> > zoom in. >> > >> > Is there any mean to do it with Mapserver ? I did not find it in >> > the mapfile reference. >> > >> > I don't know if I explained it well (I'm not english speaking). If >> > you >> do >> > not understand something, please ask. >> > >> > Cordialy, >> > >> > Faldor >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> 17492210p17492387.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 92210p17492783.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gregor at hostgis.com Wed May 28 12:24:03 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 28 May 2008 13:24:03 -0600 Subject: [mapserver-users] Why isn't this SLD working? In-Reply-To: <483DAD3B.7050200@dmsolutions.ca> References: <483D9D7A.7000001@hostgis.com> <483DAD3B.7050200@dmsolutions.ca> Message-ID: <483DB153.8000703@hostgis.com> Yewondwossen Assefa wrote: > Could it be related to the imagepath and/or imageurl not set properly Agh! Yeah; that was it. They keep deleting their temp directory. Thanks for pointing it out, Yew! -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From David.Fawcett at state.mn.us Wed May 28 10:52:47 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 28 May 2008 12:52:47 -0500 Subject: [mapserver-users] How use the LABELANGLEITEM In-Reply-To: <008001c8c0f2$cc100640$3fb09ea9@deltha> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD8D@s-sp22.pca.state.mn.us> Francisco, Bitmap labels cannot be rotated. To achieve rotation, you will have to use TrueType labels. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Francisco Sent: Wednesday, May 28, 2008 1:34 PM To: deangadoury at subpixelmedia.com Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How use the LABELANGLEITEM Hi Dean, this is my Layer definition I put the ANGLE FOLLOW, but without change in label map, then put ANGLE AUTO but Neither I had aftermath desired This is my layer definition for a road layer What?s wrong? ************** * * LAYER NAME "Calles" GROUP "Mapa" STATUS on CONNECTIONTYPE POSTGIS CONNECTION "dbname=salud user=salud password=salud host=localhost" DATA "the_geom from calles" TYPE LINE TOLERANCE 3 CLASSITEM "name" LABELITEM "name" LABELMAXSCALE 1250 CLASS EXPRESSION /./ LABEL ANGLE AUTO SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE GIANT POSITION CC PARTIALS FALSE BUFFER 2 END CLASS NAME "Calles" TEMPLATE "query.phtml" STYLE OUTLINECOLOR 0 0 0 MINSIZE 1 MAXSIZE 100 END END END Francisco Salas ----- Original Message ----- From: To: "Francisco" Cc: Sent: Wednesday, May 28, 2008 12:08 PM Subject: RE: [mapserver-users] How use the LABELANGLEITEM > Hi Francisco, > > To have road labels follow the angle of the road you do not need to > use > labelangleitem. In the label object simply use ANGLE FOLLOW and labels > will follow the angle of the road features. > > Dean Gadoury > subpixelmedia.com > >> -------- Original Message -------- >> Subject: [mapserver-users] How use the LABELANGLEITEM >> From: "Francisco" >> Date: Wed, May 28, 2008 8:11 am >> To: >> >> Hi, i need to visualize the road label that follow the line angle >> It's possible best regards Francisco Salas >> >> ___________________________________ >> Este mensaje esta libre de virus. >> Revisado por Kaspersky Antivirus >> Engine version: 4.0.1.14 >> Engine date: 2002/06/25 >> Definition count: 712871 >> Definition date: 2008/05/24 >> MDAV version: 2.2.9 >> >> Dpto de Sistemas Inform?ticos >> Oficina Central Grupo Empresarial GEOCUBA >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___________________________________ Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 712871 Definition date: 2008/05/24 MDAV version: 2.2.9 Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From RMcCulley at county24.com Wed May 28 14:28:12 2008 From: RMcCulley at county24.com (Rob McCulley) Date: Wed, 28 May 2008 15:28:12 -0600 Subject: [mapserver-users] bgd_i.lib? Message-ID: <8563B9D6767C904A912272A2D56548E4280996@vermilion.County24.local> Hi All, I'm trying to compile MapServer 5.0.2 on windows XP using MSVC 7.1 and the MapServer buildkit. The buildkit includes the source for GD-2.0.35, which is the latest stable release of GD. I followed the instructions to build GD from the readme, and successfully built GD, but it doesn't build a bgd_i.lib file. There is a bgd_a.lib and a bgd.lib file though. I've tried pointing the MapServer nmake.opt file at both of those files, but it always fails to build due to unresolved external symbols, all related to GD. Where do I get the bgd_i.lib file from? Thanks, Rob McCulley -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at sdc.com.au Wed May 28 18:51:29 2008 From: sdc at sdc.com.au (Stephen Davies) Date: Thu, 29 May 2008 11:21:29 +0930 Subject: [mapserver-users] CGI variable substitution Message-ID: <200805291121.29916.sdc@sdc.com.au> I have been using variable substitution for ages without any problems at all but now need to make a change to add a new variable. I just cannot make it work. Presumably, I am doing something stupid but I cannot see what. Can anybody please help. My URL looks like this: http://www.agua.com.au/benparts/map.html?map=/tmp/11_70.map&client=70&mapext=140.5261724+-36.7067416+140.5485957+-36.6984975 &mre=-1296538.11+-4230140.65+62672.87+-2872042.86&pfilter=pid+in+(select+probe.id+from+probe+where+logger_id+in+(select+id+from+logger+where+client_id=70)) (plus a deal more filter definitions). My map file looks like this: LAYER CONNECTIONTYPE postgis NAME "probe" DATA "geom from atp using unique id using SRID=4283" CONNECTION "user=scldad dbname=benparts" PROCESSING "CLOSE_CONNECTION=DEFER" STATUS ON TYPE POINT FILTER (%pfilter%) PROJECTION "init=epsg:4283" END MAXSCALE 5000000 LABELITEM "temp" CLASS NAME "Air Temp (Right Click to select)" STYLE COLOR 255 255 0 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 15 POSITION CR SIZE SMALL BACKGROUNDCOLOR 0 0 0 COLOR 255 255 0 FORCE TRUE END END END This works as I expect. I now want to add a new filter by adding: &ffilter=blah_blah to the URL and a new layer with the same syntax as above (but with the new filter) to the map file. Despite trying a number of variations on the theme, my PostgreSQL log still shows a generated command that included %ffilter% instead of the substitution value. TIA, Stephen Davies -- ======================================================================== This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From sdc at sdc.com.au Wed May 28 19:28:14 2008 From: sdc at sdc.com.au (Stephen Davies) Date: Thu, 29 May 2008 11:58:14 +0930 Subject: [mapserver-users] CGI variable substitution In-Reply-To: References: <200805291121.29916.sdc@sdc.com.au> Message-ID: <200805291158.14305.sdc@sdc.com.au> Nope. pfilter works fine and the = goes through without issue. Stephen On Thursday 29 May 2008 11:44:04 Paul Spencer wrote: > Not sure if this is related, but I am surprised that your example > works because you have not escaped the = in your pfilter. I would > have expected that pfilter would have been cut off just before > client_id and you would have a new variable called client_id=70)) > > Paul > > On 28-May-08, at 9:51 PM, Stephen Davies wrote: > > I have been using variable substitution for ages without any > > problems at all > > but now need to make a change to add a new variable. > > > > I just cannot make it work. > > Presumably, I am doing something stupid but I cannot see what. > > Can anybody please help. > > > > My URL looks like this: > > http://www.agua.com.au/benparts/map.html?map=/tmp/11_70.map&client=70&map > >ext=140.5261724+-36.7067416+140.5485957+-36.6984975 > > &mre=-1296538.11+-4230140.65+62672.87+-2872042.86&pfilter=pid+in+ > > (select+probe.id+from+probe+where+logger_id+in+(select+id+from+logger > > +where+client_id=70)) > > > > (plus a deal more filter definitions). > > > > My map file looks like this: > > > > LAYER > > CONNECTIONTYPE postgis > > NAME "probe" > > DATA "geom from atp using unique id using SRID=4283" > > CONNECTION "user=scldad dbname=benparts" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > STATUS ON > > TYPE POINT > > FILTER (%pfilter%) > > PROJECTION > > "init=epsg:4283" > > END > > MAXSCALE 5000000 > > LABELITEM "temp" > > CLASS > > NAME "Air Temp (Right Click to select)" > > STYLE > > COLOR 255 255 0 > > SYMBOL 'circle' > > SIZE 7 > > END > > LABEL > > MINDISTANCE 15 > > POSITION CR > > SIZE SMALL > > BACKGROUNDCOLOR 0 0 0 > > COLOR 255 255 0 > > FORCE TRUE > > END > > END > > END > > > > This works as I expect. > > > > I now want to add a new filter by adding: > > > > &ffilter=blah_blah to the URL > > > > and a new layer with the same syntax as above (but with the new > > filter) to the > > map file. > > > > Despite trying a number of variations on the theme, my PostgreSQL > > log still > > shows a generated command that included %ffilter% instead of the > > substitution > > value. > > > > TIA, > > Stephen Davies > > -- > > = > > = > > ====================================================================== > > This email is for the person(s) identified above, and is > > confidential to > > the sender and the person(s). No one else is authorised to use or > > disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 > > Adelaide, South Australia. Fax: 08-8177 > > 0133 > > Computing & Network solutions. Mobile:0403 > > 0405 83 > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ -- ======================================================================== This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From pspencer at dmsolutions.ca Wed May 28 19:14:04 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed, 28 May 2008 22:14:04 -0400 Subject: [mapserver-users] CGI variable substitution In-Reply-To: <200805291121.29916.sdc@sdc.com.au> References: <200805291121.29916.sdc@sdc.com.au> Message-ID: Not sure if this is related, but I am surprised that your example works because you have not escaped the = in your pfilter. I would have expected that pfilter would have been cut off just before client_id and you would have a new variable called client_id=70)) Paul On 28-May-08, at 9:51 PM, Stephen Davies wrote: > I have been using variable substitution for ages without any > problems at all > but now need to make a change to add a new variable. > > I just cannot make it work. > Presumably, I am doing something stupid but I cannot see what. > Can anybody please help. > > My URL looks like this: > http://www.agua.com.au/benparts/map.html?map=/tmp/11_70.map&client=70&mapext=140.5261724+-36.7067416+140.5485957+-36.6984975 > &mre=-1296538.11+-4230140.65+62672.87+-2872042.86&pfilter=pid+in+ > (select+probe.id+from+probe+where+logger_id+in+(select+id+from+logger > +where+client_id=70)) > > (plus a deal more filter definitions). > > My map file looks like this: > > LAYER > CONNECTIONTYPE postgis > NAME "probe" > DATA "geom from atp using unique id using SRID=4283" > CONNECTION "user=scldad dbname=benparts" > PROCESSING "CLOSE_CONNECTION=DEFER" > STATUS ON > TYPE POINT > FILTER (%pfilter%) > PROJECTION > "init=epsg:4283" > END > MAXSCALE 5000000 > LABELITEM "temp" > CLASS > NAME "Air Temp (Right Click to select)" > STYLE > COLOR 255 255 0 > SYMBOL 'circle' > SIZE 7 > END > LABEL > MINDISTANCE 15 > POSITION CR > SIZE SMALL > BACKGROUNDCOLOR 0 0 0 > COLOR 255 255 0 > FORCE TRUE > END > END > END > > This works as I expect. > > I now want to add a new filter by adding: > > &ffilter=blah_blah to the URL > > and a new layer with the same syntax as above (but with the new > filter) to the > map file. > > Despite trying a number of variations on the theme, my PostgreSQL > log still > shows a generated command that included %ffilter% instead of the > substitution > value. > > TIA, > Stephen Davies > -- > = > = > ====================================================================== > This email is for the person(s) identified above, and is > confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 > 1595 > Adelaide, South Australia. Fax: 08-8177 > 0133 > Computing & Network solutions. Mobile:0403 > 0405 83 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From schroeter at netgis.de Wed May 28 23:55:20 2008 From: schroeter at netgis.de (schroeter at netgis.de) Date: Thu, 29 May 2008 08:55:20 +0200 Subject: [mapserver-users] queryByAttributes on PostGIS-Layer References: <000d01c8c0b0$5e4ed1a0$08b2a8c0@SVEN> Message-ID: <001401c8c158$f7a46c90$08b2a8c0@SVEN> Found the problem (thanks to Nicol ;-) Code: @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); must be changed to: @$myQuery = $layer->queryByAttributes('nr_','nr_=7', MS_SINGLE); Is this a bug? Sven ----- Original Message ----- From: To: Sent: Wednesday, May 28, 2008 12:48 PM Subject: [mapserver-users] queryByAttributes on PostGIS-Layer > Hallo list, > > My test-system: Mapserver 5.02 on WinXP and postgreSQL 8.2 > I try to make some querys via php-mapscript for a postgis-layer: > queryByPoint,queryByShape and queryByRect is no problem. > queryByAttributes always return "no result" (field 'nr_' is an integer) > If I use a shapefile for the same data (biogasanlagen.shp) > queryByAttributes works fine. > > mapfile: > ... > LAYER > NAME "biogasanlagen" > TYPE point > STATUS on > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=xyz dbname=mydb host=localhost > port=5432" > DATA "the_geom from biogasanlagen using unique gid" > #DATA biogasanlagen.shp > TEMPLATE void > CLASS > Name "biogasanlagen" > OUTLINECOLOR 128 70 0 > COLOR 230 70 0 > SYMBOL 'circle' > SIZE 12 > END # CLASS > TRANSPARENCY 88 > TOLERANCE 8 > END > ... > > php-Code: > > ... > $layer = $map->getLayerByName("biogasanlagen"); > @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); > ... > > any idea? > > Thanks Sven > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From besse.pb at gmail.com Thu May 29 00:50:55 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Thu, 29 May 2008 09:50:55 +0200 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBD8B@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD8B@s-sp22.pca.state.mn.us> Message-ID: Hi David, I tried WGS84 yesterday after a little research on projection, but it didn't change anything. I tried re-generating the shapefile with WGS84 projection but it's still the same. In fact, my data comes from GPW v3 ( http://sedac.ciesin.columbia.edu/gpw/global.jsp) but I didn't find any clue on the projection used, I suppose there is none as you say. When you speak about translating ground units, do you mean I have to translate my shapefile from degrees to, say, kilometers before I can use SIZEUNITS kilometers ? I thought it could be done dynamically by MapServer. I found a tutorial about this, I will try it anyway (assuming my data is WGS84) and give you the outcome :) I attached my mapfile this time, just in case I made a noob mistake somewhere... thank you very much ! Faldor 2008/5/28 Fawcett, David : > Faldor, > > When you have point coordinates stored in a text file, there really is > no way to encode/attach the projection definition. Even if you could, > it doesn't sound like you really know what spatial reference system > (SRS) or projection that it is in. The key to projecting to another SRS > or translating ground units to another measure (from degrees to meters) > is knowing what the current SRS of the data is. > > Since your data is worldwide and it is unprojected (lat/lon), a good > first guess would be to assume that it is unprojected with using the > WGS84. > > Try defining your layer projection by including this block in your layer > definition. > > PROJECTION > "init=epsg:4326" > END > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Pierre-Benoit Besse > Sent: Wednesday, May 28, 2008 4:11 AM > To: Fawcett, David > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > > Well, I confess, I'm new to GIS applications and I do not know a lot > about projections. > I understand I have to tell MapServer what is the projection of each > layer I use in the mapfile, but using ogrinfo on my shapefiles tells me > that : > > Layer name: pop_density > Geometry: Point > Feature Count: 249937 > Extent: (-180.000000, -56.000000) - (179.750000, 83.500000) > Layer SRS WKT: > (unknown) > latitude: Real (24.15) > longitude: Real (24.15) > densite: Real (24.15) > > I generated this shapefile from a CSV file with 3 columns : latitude, > longitude, density_value. > Did I have to define a projection then ? How do I do that ? > > Best regards, > > Faldor > > > 2008/5/27 Fawcett, David : > > Have you defined an output projection for your map and input projections > for each of your layers? It is likely that MapServer needs to know what > the input projection/SRS is before it can translate to different units. > > David. > -----Original Message----- > From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] > Sent: Tuesday, May 27, 2008 11:26 AM > To: Fawcett, David > Cc: Ritesh Ambastha; mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > > Ha, well, I prefer that :) I would need a lot of layer definitions to > obtain something ok... > > But I just tried the "ground units" stuff, I tried with a 50 kilometers > wide square and it drew squares the size of ASIA !! oO > I had to define a 1 feet wide square to obtain something more or less > ok... > Does anybody know why ? > > Aside from that It seems to work, thank you ! > > I will try the scalesymbol stuff tomorrow. > > Regards > > > > 2008/5/27 Fawcett, David : > > Before you create lots of different layers to simulate symbol scaling, > you may want to try something else. It has been a long time since I > have played with scaled symbols, but give it a try. > > You should be able to scale the symbols by setting a SYMBOLSCALE in the > LAYER object. This is the scale at which you want the symbol to appear > at the SIZE stated in the map file. > > You may want to modify STYLE MAXSIZE if you think that you will want > your symbols to be larger than 50 pixels. > > Another completely different approach that just came to my mind would be > to use ground units (e.g. meters) to set the size of your symbol. To do > this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in > meters on the ground that will touch adjacent symbols, or give you the > desired amount of space between the symbols. That way, the symbols > should scale consistently. > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh > Ambastha > Sent: Tuesday, May 27, 2008 10:16 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > > > Dear Faldor, > > Robert is absolutely right. You will have to make different LAYERS for > the same POINT layer. But, define MAX/MINSCALE for each Layer. Change > STYLE -> SIZE values in each of the layer. You are done !! > > Cheers ! > Ambastha > > > Faldor wrote: > > > > Yes, but I need them to adapt for different extents. > > > > For example, When I zoom out enough to see the world, I need them 1 > > pixel wide (it's ugly otherwise), but when I zoom in I will need then > > 2 or 5 or even 30 pixels wide to cover all space. > > > > 2008/5/27 Ritesh Ambastha : > > > >> > >> Dear Faldor, > >> > >> What I need is to have the points grow to cover all space > >> available when I zoom in. > >> > >> Do you mean that the size of points should grow? It can be done > >> easily by setting proper SIZE in the STYLE tag. > >> > >> > >> Regards, > >> Ambastha > >> > >> > >> > >> Faldor wrote: > >> > > >> > Hi, > >> > > >> > Sorry for my first empty message. > >> > > >> > My problem is, I need to display population density with Mapserver. > > >> > The data comes from GPWv3 and has a resolution of 15'. I converted > >> > it to a POINT Shapefile using ogr2ogr. > >> > > >> > At first when I display it on a world map it shows nicely. But when > > >> > I > >> zoom > >> > in it begins to show separated points for each value in the > >> > shapefile. What I need is to have the points grow to cover all > >> > space available > >> when > >> I > >> > zoom in. > >> > > >> > Is there any mean to do it with Mapserver ? I did not find it in > >> > the mapfile reference. > >> > > >> > I don't know if I explained it well (I'm not english speaking). If > >> > you > >> do > >> > not understand something, please ask. > >> > > >> > Cordialy, > >> > > >> > Faldor > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp > >> 17492210p17492387.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 > > 92210p17492783.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.map Type: application/octet-stream Size: 3172 bytes Desc: not available URL: From andrew at environ-it.co.uk Thu May 29 01:29:35 2008 From: andrew at environ-it.co.uk (Andrew Mason) Date: Thu, 29 May 2008 09:29:35 +0100 Subject: [mapserver-users] Accessing raster cell values Message-ID: Hello List, This question may be a general newbie GIS question and not solely related to Mapserver, so apologies if I'm posting to the wrong place. I am serving a GeoTiff via Mapserver using WMS, and displaying it using OpenLayers, so far so good. I need to be able to click on a point on the map and display the value held within that particular Raster cell. Can anyone suggest what mechanism I should use for this? WCS looks like it might be the thing I need, but I'm having difficulty finding much in the way of examples and instructions. I've followed what examples there are and all I can get Mapserver to return using WCS, is a Geotiff with every pixel set to zero. So I've obviously not got it working correctly, and even if it were I'm not sure how to get the information I need out of the returned Geotiff when my client is OpenLayers. Can anyone suggest a way to access a raster's values when it is served by Mapserver and viewed using OpenLayers? Thank you Andrew Mason From Jukka.Rahkonen at mmmtike.fi Thu May 29 01:47:16 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 29 May 2008 11:47:16 +0300 Subject: VS: [mapserver-users] Accessing raster cell values In-Reply-To: Message-ID: Hi, I can't say anything about OpenLayest client, but you may find some other useful information from here: http://mapserver.gis.umn.edu/docs/howto/raster_data/#raster-query Basically I think that WMS GetFeatureInfo query might be close to what you are searching for. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrew Mason > L?hetetty: 29. toukokuuta 2008 11:30 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Accessing raster cell values > > Hello List, > > This question may be a general newbie GIS question and not > solely related to Mapserver, so apologies if I'm posting to > the wrong place. > > I am serving a GeoTiff via Mapserver using WMS, and > displaying it using OpenLayers, so far so good. > I need to be able to click on a point on the map and display > the value held within that particular Raster cell. > Can anyone suggest what mechanism I should use for this? WCS > looks like it might be the thing I need, but I'm having > difficulty finding much in the way of examples and instructions. > I've followed what examples there are and all I can get > Mapserver to return using WCS, is a Geotiff with every pixel > set to zero. > So I've obviously not got it working correctly, and even if > it were I'm not sure how to get the information I need out of > the returned Geotiff when my client is OpenLayers. > > Can anyone suggest a way to access a raster's values when it > is served by Mapserver and viewed using OpenLayers? > > Thank you > > Andrew Mason > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gabmessner at gmail.com Thu May 29 02:17:32 2008 From: gabmessner at gmail.com (Gabriela Messner) Date: Thu, 29 May 2008 11:17:32 +0200 Subject: [mapserver-users] SQL SELECT statement in a OGR connection (DGN) Message-ID: <1708890c0805290217p255c7ee5m5a9555929f7433dc@mail.gmail.com> Hi all, I?m do not how to use de SQL SELECT statement to select several values in a OGR connection to a DGN file with a layer named 'level'. For this layer, i?d like to select the values '1,3,5'. The object LAYER is posted below. Thanks in advanced. LAYER NAME sheet5000 STATUS ON TYPE line CONNECTIONTYPE OGR CONNECTION "D:\sheet5000.DGN" #how do i use the SQL SELECT statement? DATA "level=1,5,7" STYLEITEM "AUTO" CLASS # Object Class void END PROJECTION "init=epsg:4326" END METADATA "wms_title" "xxxx" "wms_abstract" "xxxxxx" "wms_keywordlist" "xxxxxx" "wms_srs" "EPSG:4326" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Thu May 29 02:44:36 2008 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 29 May 2008 11:44:36 +0200 Subject: [mapserver-users] Accessing raster cell values References: Message-ID: <002201c8c170$9b7f5390$08b2a8c0@SVEN> Hi, if you have access to the mapfile, you can make a queryByPoint with mapscript (i.e with an ajax-function) You have to send your point-coordinats to the script like this: $coord = split(',',$_POST["coord"]); dl('php_mapscript.dll'); //load mapfile $map= ms_newMapObj($mapfilepath.'\yourmap.map'); //create point $qPoint = ms_newPointObj(); $qPoint->setXY($coord[0]*1,$coord[1]*1); //set layer $layer = $map->getLayerByName("your_rasterlayer"); //Pointquery (Single) @$datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1); //if success if ($datQuery == MS_SUCCESS) { for ($j=0; $j<$layer->getNumResults(); $j++) { $result = $layer->getResult($j); $layer->open(); $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); $attr = $shpobj->values; //echo round($attr["value_0"],2); $rasterdata = round($attr["value_0"],1); print 'My Data: '.$rasterdata.'; $shpobj->free(); } } else{ print 'no Data'; } Greetings Sven ----- Original Message ----- From: "Andrew Mason" To: Sent: Thursday, May 29, 2008 10:29 AM Subject: [mapserver-users] Accessing raster cell values > Hello List, > > This question may be a general newbie GIS question and not solely related > to Mapserver, so apologies if I'm posting to the wrong place. > > I am serving a GeoTiff via Mapserver using WMS, and displaying it using > OpenLayers, so far so good. > I need to be able to click on a point on the map and display the value > held within that particular Raster cell. > Can anyone suggest what mechanism I should use for this? WCS looks like > it might be the thing I need, but I'm having difficulty finding much in > the way of examples and instructions. > I've followed what examples there are and all I can get Mapserver to > return using WCS, is a Geotiff with every pixel set to zero. > So I've obviously not got it working correctly, and even if it were I'm > not sure how to get the information I need out of the returned Geotiff > when my client is OpenLayers. > > Can anyone suggest a way to access a raster's values when it is served by > Mapserver and viewed using OpenLayers? > > Thank you > > Andrew Mason > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From espen.isaksen at gmail.com Thu May 29 03:03:55 2008 From: espen.isaksen at gmail.com (Espen Isaksen) Date: Thu, 29 May 2008 12:03:55 +0200 Subject: [mapserver-users] International characters in text paramater In-Reply-To: References: Message-ID: Didn't get it to work as it should. This works: TEXT "test" This does not work(no text at all in the map): TEXT "Lysløype" If we do this TEXT ("Lysløype") mapserver does not understand the ASCII value and prints it out exactly as typed. Espen 2008/5/28 Frode Wiseth J?rgensen : > Hi Espen > > Try this: > > TEXT "Lysløype" > > > > FrodeWJ > > > > > 2008/5/28 Espen Isaksen : >> >> Hi! >> >> Tried to find a answer to this but was unable to. I am trying to use >> Norwegian characters in the text parameter in the class object. I set >> "Text (Lysl?ype)" in the map file but this does not work. How can I do >> this correctly? Example follows: >> >> >> LAYER # Lysloype >> NAME Lysloype >> TYPE line >> STATUS default >> DATA bygg/lysloype >> MAXSCALE 20000 >> TRANSPARENCY 80 >> LABELMAXSCALE 2000 >> CLASS >> STYLE >> COLOR 255 255 0 # Gul farge. >> SYMBOL "point_line" >> SIZE 4 >> END >> >> STYLE >> COLOR 255 255 0 # Gul farge. >> SYMBOL "normal_line" >> SIZE 1 >> END >> >> TEXT (Lysl?pe) >> >> LABEL >> SIZE 7 >> COLOR 255 255 255 >> OUTLINECOLOR 100 100 100 >> ANGLE follow >> POSITION cc >> TYPE truetype >> FONT Verdana_bold >> MINDISTANCE 1000000 >> PARTIALS false >> END >> END >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Frode Wiseth J?rgensen > +47 99 03 41 42 From pal.kristensen at statkart.no Thu May 29 03:33:22 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 29 May 2008 03:33:22 -0700 (PDT) Subject: [MAPSERVER-USERS] Accessing GDAL raster in MapServer Message-ID: <17532414.post@talk.nabble.com> Hi! I'm trying to serve some CADRG (A.toc) data through MapServer, but I'm obviously doing something wrong because all I get is some error messages in the logfile. I'm currently using the latest MS4W release. This is how the mapfile looks like: MAP NAME "Rendertest" STATUS ON SIZE 800 500 DEBUG 4 #IMAGETYPE PNG #IMAGECOLOR 255 255 255 #SYMBOLSET "c:/ms4w/sym/symbols/SKsym.sym" #FONTSET "c:/ms4w/sym/skfonts/font.list" EXTENT -1 53 53 68 SHAPEPATH "E:/RPF_test/" UNITS dd MAXSIZE 2048 RESOLUTION 96 PROJECTION "init=epsg:4326" END WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_accessconstraints" "Copyright Statens kartverk 2007" "wms_srs" "EPSG:4326 EPSG:27391 EPSG:27392 EPSG:27393 EPSG:27394 EPSG:27395 EPSG:27396 EPSG:27397 EPSG:27398 EPSG:3034 EPSG:32635 EPSG:32633 EPSG:32634 EPSG:32631 EPSG:32636 EPSG:32632" "ows_exceptions_format" "application/vnd.ogc.se_xml" END END LAYER NAME "Test" DEBUG 4 STATUS ON DATA "rpf/a.toc" TYPE RASTER #MINSCALE 3000000 #PROCESSING "RESAMPLE=AVERAGE" #PROCESSING "RESAMPLE=BILINEAR" #PROCESSING "RPFTOC_FORCE_RGBA=TRUE" METADATA "wms_title" "Test" END PROJECTION "init=epsg:4326" END END END And this is the error message: [Thu May 29 12:11:41 2008].641000 CGI Request 1 on process 1516 [Thu May 29 12:11:41 2008].688000 msDrawRasterLayerLow(Test): entering. [Thu May 29 12:11:42 2008].125000 msResampleGDALToMap in effect: cellsize = 0.053997 [Thu May 29 12:11:42 2008].125000 msDrawGDAL(Test): using RAW_WINDOW=805 0 95841 47616 [Thu May 29 12:11:42 2008].125000 msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Thu May 29 12:11:42 2008].125000 msDrawMap(): Image handling error. Failed to draw layer named 'Test'. [Thu May 29 12:11:42 2008].125000 msFreeMap(): freeing map at 01535F40 I would really appreciate any help on this issue? Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Accessing-GDAL-raster-in-MapServer-tp17532414p17532414.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Thu May 29 03:55:36 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 29 May 2008 06:55:36 -0400 Subject: [mapserver-users] SQL SELECT statement in a OGR connection (DGN) In-Reply-To: <1708890c0805290217p255c7ee5m5a9555929f7433dc@mail.gmail.com> References: <1708890c0805290217p255c7ee5m5a9555929f7433dc@mail.gmail.com> Message-ID: <483E8BA8.1060608@pobox.com> Gabriela Messner wrote: > Hi all, > > I?m do not how to use de SQL SELECT statement to select several values > in a OGR connection to a DGN file with a layer named 'level'. For this > layer, i?d like to select the values '1,3,5'. The object LAYER is posted > below. > > Thanks in advanced. > > LAYER > NAME sheet5000 > STATUS ON > TYPE line > CONNECTIONTYPE OGR > CONNECTION "D:\sheet5000.DGN" > #how do i use the SQL SELECT statement? > DATA "level=1,5,7" Gabriela, I would suggest trying: CONNECTIONTYPE OGR CONNECTION "D:\sheet5000.DGN" DATA "elements" FILTER "WHERE level in (1,5,7)" With CONNECTIONTYPE OGR you can prefix your FILTER with the keyword WHERE and the rest will be passed through to OGR as an SQL style attribute filter. In DGN files there is only one layer, named elements, so we provide that in the DATA statement. 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 | President OSGeo, http://osgeo.org From espen.isaksen at gmail.com Thu May 29 04:03:59 2008 From: espen.isaksen at gmail.com (Espen Isaksen) Date: Thu, 29 May 2008 13:03:59 +0200 Subject: [mapserver-users] International characters in text paramater In-Reply-To: References: Message-ID: Tried a bit more, and strange things happen. Sometimes Mapserver just runs for a long time without creating a map. Other times it creates a map, but the letters are totally wrong. When using 248 for ? I do not get any text at all. Using 156 for ? I get this: http://bildr.no/view/205560 Appreciate it if anybody knows why this happens. Espen 2008/5/29 Espen Isaksen : > Didn't get it to work as it should. > > This works: > TEXT "test" > > This does not work(no text at all in the map): > TEXT "Lysløype" > > If we do this > TEXT ("Lysløype") > > mapserver does not understand the ASCII value and prints it out > exactly as typed. > > Espen > > > 2008/5/28 Frode Wiseth J?rgensen : >> Hi Espen >> >> Try this: >> >> TEXT "Lysløype" >> >> >> >> FrodeWJ >> >> >> >> >> 2008/5/28 Espen Isaksen : >>> >>> Hi! >>> >>> Tried to find a answer to this but was unable to. I am trying to use >>> Norwegian characters in the text parameter in the class object. I set >>> "Text (Lysl?ype)" in the map file but this does not work. How can I do >>> this correctly? Example follows: >>> >>> >>> LAYER # Lysloype >>> NAME Lysloype >>> TYPE line >>> STATUS default >>> DATA bygg/lysloype >>> MAXSCALE 20000 >>> TRANSPARENCY 80 >>> LABELMAXSCALE 2000 >>> CLASS >>> STYLE >>> COLOR 255 255 0 # Gul farge. >>> SYMBOL "point_line" >>> SIZE 4 >>> END >>> >>> STYLE >>> COLOR 255 255 0 # Gul farge. >>> SYMBOL "normal_line" >>> SIZE 1 >>> END >>> >>> TEXT (Lysl?pe) >>> >>> LABEL >>> SIZE 7 >>> COLOR 255 255 255 >>> OUTLINECOLOR 100 100 100 >>> ANGLE follow >>> POSITION cc >>> TYPE truetype >>> FONT Verdana_bold >>> MINDISTANCE 1000000 >>> PARTIALS false >>> END >>> END >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> Frode Wiseth J?rgensen >> +47 99 03 41 42 > From jeshua at OpenOSX.com Thu May 29 05:43:26 2008 From: jeshua at OpenOSX.com (Jeshua Lacock) Date: Thu, 29 May 2008 06:43:26 -0600 Subject: [mapserver-users] msProcessProjection() Error Message-ID: <8F41CE5A-660B-4065-BB5E-B026227B1EC9@OpenOSX.com> Greetings, I am having difficulty testing our new distribution of MapServer 5.0.2, Apache 2.2.8 and PHP 5.2.6 with the gmap46 demo. The CGI version works fine with the Itasca demo. We have two separate builds based on the identical software versions and configurations for both Intel and PowerPC Macs. The Intel version works flawlessly with the gmap demo. With the PowerPC version I am getting: > Warning: [MapServer Error]: msProcessProjection(): in /Library/ > OpenOSX/apache2/htdocs/gmap/htdocs/gmap75.phtml on line 66 > > Warning: Failed to open map file gmap75.map in /Library/OpenOSX/ > apache2/htdocs/gmap/htdocs/gmap75.phtml on line 66 -------------- next part -------------- A non-text attachment was scrubbed... Name: corner_TL_LB.jpg Type: image/jpeg Size: 375 bytes Desc: not available URL: -------------- next part -------------- > -------------- next part -------------- A non-text attachment was scrubbed... Name: pixel.gif Type: image/gif Size: 49 bytes Desc: not available URL: -------------- next part -------------- > -------------- next part -------------- A non-text attachment was scrubbed... Name: corner_TR_LB.jpg Type: image/jpeg Size: 375 bytes Desc: not available URL: -------------- next part -------------- > > Legend -------------- next part -------------- A non-text attachment was scrubbed... Name: icon_eye.gif Type: image/gif Size: 342 bytes Desc: not available URL: -------------- next part -------------- > > > Layer > > Fatal error: Call to a member function getlayerbyname() on a non- > object in /Library/OpenOSX/apache2/htdocs/gmap/htdocs/gmap75.inc.php > on line 525 The gmap and httpd.conf are indentical on both our Intel and PPC builds. I did some searching and apparently it has something to do with proj. I am using proj 4.6.0 and proj-datumgrid 1.3. "epsg:42304" is defined in /Library/OpenOSX/grass/share/proj/ other.extra. In the .map file, I tried setting: CONFIG "PROJ_LIB" "/Library/OpenOSX/grass/share/proj/other.extra" Which does not help. I am not sure if am using the directive correctly. My phpinfo() shows: > MapScript > MapServer Version > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > PHP MapScript Version > ($Revision: 7251 $ $Date: 2008-01-08 09:04:53 -0800 (Tue, 08 Jan > 2008) $) I am stumped. Is there any way to get any more error logs? I looked in the Apache error logs and I don't see anything helpful. I would be very grateful for any tips/advice. Thanks, Jeshua Lacock, Owner phone: 877.240.1364 From pauljame at gmail.com Thu May 29 06:41:56 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 29 May 2008 10:41:56 -0300 Subject: [mapserver-users] Problem with Label ... Message-ID: <33fad6880805290641m4a0fe2aakee6f0ef18e72172b@mail.gmail.com> Hi Guys... Take a look in the attached image ... Why is mapserver putting white space after text? In the database is everthing ok, with no space at all... ps.: I added BACKGROUNDCOLOR to label to show up the problem... Using latest ms4w compiled version for C# + oracle... My Mapfile: LAYER #6 NAME BASE GROUP "x" TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "x/y" DATA "GEOM from GEO_BASE USING UNIQUE ID VERSION 10G" LABELITEM "NAME" CLASS TEMPLATE "dummy" NAME "BASES" STYLE SYMBOL "circle" MINSIZE 9 MAXSIZE 9 COLOR 255 255 13 OUTLINECOLOR 0 0 0 END LABEL BACKGROUNDCOLOR X X X COLOR X X X FONT arial TYPE TRUETYPE SIZE 10 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE BUFFER 3 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Mapserver Label.GIF Type: image/gif Size: 13792 bytes Desc: not available URL: From David.Fawcett at state.mn.us Thu May 29 06:47:23 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 29 May 2008 08:47:23 -0500 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBD90@s-sp22.pca.state.mn.us> MapServer should do the conversion on the fly, my point was just that MapServer needs to know what SRS (and units) that the data is in, so it can make the translation. Can you post the text of your map file? David. -----Original Message----- From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] Sent: Thursday, May 29, 2008 2:51 AM To: Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Hi David, I tried WGS84 yesterday after a little research on projection, but it didn't change anything. I tried re-generating the shapefile with WGS84 projection but it's still the same. In fact, my data comes from GPW v3 (http://sedac.ciesin.columbia.edu/gpw/global.jsp) but I didn't find any clue on the projection used, I suppose there is none as you say. When you speak about translating ground units, do you mean I have to translate my shapefile from degrees to, say, kilometers before I can use SIZEUNITS kilometers ? I thought it could be done dynamically by MapServer. I found a tutorial about this, I will try it anyway (assuming my data is WGS84) and give you the outcome :) I attached my mapfile this time, just in case I made a noob mistake somewhere... thank you very much ! Faldor 2008/5/28 Fawcett, David : Faldor, When you have point coordinates stored in a text file, there really is no way to encode/attach the projection definition. Even if you could, it doesn't sound like you really know what spatial reference system (SRS) or projection that it is in. The key to projecting to another SRS or translating ground units to another measure (from degrees to meters) is knowing what the current SRS of the data is. Since your data is worldwide and it is unprojected (lat/lon), a good first guess would be to assume that it is unprojected with using the WGS84. Try defining your layer projection by including this block in your layer definition. PROJECTION "init=epsg:4326" END David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pierre-Benoit Besse Sent: Wednesday, May 28, 2008 4:11 AM To: Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Well, I confess, I'm new to GIS applications and I do not know a lot about projections. I understand I have to tell MapServer what is the projection of each layer I use in the mapfile, but using ogrinfo on my shapefiles tells me that : Layer name: pop_density Geometry: Point Feature Count: 249937 Extent: (-180.000000, -56.000000) - (179.750000, 83.500000) Layer SRS WKT: (unknown) latitude: Real (24.15) longitude: Real (24.15) densite: Real (24.15) I generated this shapefile from a CSV file with 3 columns : latitude, longitude, density_value. Did I have to define a projection then ? How do I do that ? Best regards, Faldor 2008/5/27 Fawcett, David : Have you defined an output projection for your map and input projections for each of your layers? It is likely that MapServer needs to know what the input projection/SRS is before it can translate to different units. David. -----Original Message----- From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] Sent: Tuesday, May 27, 2008 11:26 AM To: Fawcett, David Cc: Ritesh Ambastha; mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Ha, well, I prefer that :) I would need a lot of layer definitions to obtain something ok... But I just tried the "ground units" stuff, I tried with a 50 kilometers wide square and it drew squares the size of ASIA !! oO I had to define a 1 feet wide square to obtain something more or less ok... Does anybody know why ? Aside from that It seems to work, thank you ! I will try the scalesymbol stuff tomorrow. Regards 2008/5/27 Fawcett, David : Before you create lots of different layers to simulate symbol scaling, you may want to try something else. It has been a long time since I have played with scaled symbols, but give it a try. You should be able to scale the symbols by setting a SYMBOLSCALE in the LAYER object. This is the scale at which you want the symbol to appear at the SIZE stated in the map file. You may want to modify STYLE MAXSIZE if you think that you will want your symbols to be larger than 50 pixels. Another completely different approach that just came to my mind would be to use ground units (e.g. meters) to set the size of your symbol. To do this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in meters on the ground that will touch adjacent symbols, or give you the desired amount of space between the symbols. That way, the symbols should scale consistently. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, May 27, 2008 10:16 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] Displaying population density with Mapserver Dear Faldor, Robert is absolutely right. You will have to make different LAYERS for the same POINT layer. But, define MAX/MINSCALE for each Layer. Change STYLE -> SIZE values in each of the layer. You are done !! Cheers ! Ambastha Faldor wrote: > > Yes, but I need them to adapt for different extents. > > For example, When I zoom out enough to see the world, I need them 1 > pixel wide (it's ugly otherwise), but when I zoom in I will need then > 2 or 5 or even 30 pixels wide to cover all space. > > 2008/5/27 Ritesh Ambastha : > >> >> Dear Faldor, >> >> What I need is to have the points grow to cover all space >> available when I zoom in. >> >> Do you mean that the size of points should grow? It can be done >> easily by setting proper SIZE in the STYLE tag. >> >> >> Regards, >> Ambastha >> >> >> >> Faldor wrote: >> > >> > Hi, >> > >> > Sorry for my first empty message. >> > >> > My problem is, I need to display population density with Mapserver. >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> > it to a POINT Shapefile using ogr2ogr. >> > >> > At first when I display it on a world map it shows nicely. But when >> > I >> zoom >> > in it begins to show separated points for each value in the >> > shapefile. What I need is to have the points grow to cover all >> > space available >> when >> I >> > zoom in. >> > >> > Is there any mean to do it with Mapserver ? I did not find it in >> > the mapfile reference. >> > >> > I don't know if I explained it well (I'm not english speaking). If >> > you >> do >> > not understand something, please ask. >> > >> > Cordialy, >> > >> > Faldor >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> 17492210p17492387.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 92210p17492783.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nipapada at gmail.com Thu May 29 07:02:21 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Thu, 29 May 2008 17:02:21 +0300 Subject: [mapserver-users] Fatal error: Call to undefined function ms_newMapObj() in......... Message-ID: <483EB76D.2010402@gmail.com> Hello. I try to use pamscript with php by running the following file but i receive the following error message: *Fatal error*: Call to undefined function ms_newMapObj() in *C:\ms4w\Apache\htdocs\phpms_hello.php* on line *5.* File name : phpms_hello.php in C:\ms4w\Apache\htdocs draw(); $image->saveImage("/ms4w/Apache/htdocs/tmp/".$image_name); ?> PHP MapScript Hello World
I run mapserver version 2.2.7 on Windows xp and when i call http://localhost i can verify that mapscript is installed correctly. I suppose i have done something wrong with my configuration.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu May 29 08:08:06 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 May 2008 10:08:06 -0500 Subject: [mapserver-users] Problem with Label ... In-Reply-To: <33fad6880805290641m4a0fe2aakee6f0ef18e72172b@mail.gmail.com> References: <33fad6880805290641m4a0fe2aakee6f0ef18e72172b@mail.gmail.com> Message-ID: <483EC6D6.8070801@swoodbridge.com> Hi Paul, I believe this was a bug that has fixed. What version of mapserver are you using? -Steve W Paul james wrote: > Hi Guys... Take a look in the attached image ... > Why is mapserver putting white space after text? In the database is > everthing ok, with no space at all... > > ps.: I added BACKGROUNDCOLOR to label to show up the problem... Using > latest ms4w compiled version for C# + oracle... > > My Mapfile: > > LAYER #6 > NAME BASE > GROUP "x" > TYPE POINT > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "x/y" > DATA "GEOM from GEO_BASE USING UNIQUE ID VERSION 10G" > LABELITEM "NAME" > CLASS > TEMPLATE "dummy" > NAME "BASES" > STYLE > SYMBOL "circle" > MINSIZE 9 > MAXSIZE 9 > COLOR 255 255 13 > OUTLINECOLOR 0 0 0 > END > LABEL > BACKGROUNDCOLOR X X X > COLOR X X X > FONT arial > TYPE TRUETYPE > SIZE 10 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > BUFFER 3 > END > END > END > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu May 29 07:15:30 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 29 May 2008 10:15:30 -0400 Subject: [mapserver-users] Fatal error: Call to undefined function ms_newMapObj() in......... In-Reply-To: <483EB76D.2010402@gmail.com> References: <483EB76D.2010402@gmail.com> Message-ID: <483EBA82.5050908@mapgears.com> ????? ????????? wrote: > Hello. > I try to use pamscript with php by running the following file but i > receive the following error message: > *Fatal error*: Call to undefined function ms_newMapObj() in > *C:\ms4w\Apache\htdocs\phpms_hello.php* on line *5.* > > > File name : phpms_hello.php in C:\ms4w\Apache\htdocs > You get this because the php_mapscript.dll is not loaded in your PHP environment. One way to solve this is to load it using the dl() command at the beginning of your PHP script, e.g. Daniel -- Daniel Morissette http://www.mapgears.com/ From pauljame at gmail.com Thu May 29 07:38:05 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 29 May 2008 11:38:05 -0300 Subject: [mapserver-users] Problem with Label ... In-Reply-To: <483EC6D6.8070801@swoodbridge.com> References: <33fad6880805290641m4a0fe2aakee6f0ef18e72172b@mail.gmail.com> <483EC6D6.8070801@swoodbridge.com> Message-ID: <33fad6880805290738p5c851506wa8c8649071c7b98f@mail.gmail.com> Hello... Thank you for reply... I?m using version 5.0.2, compiled for C# + Oracle (MS4W Binary) There are some others layers with same mapfile definition, but without that bug.. Its very strange... []?s On 5/29/08, Stephen Woodbridge wrote: > > Hi Paul, > > I believe this was a bug that has fixed. What version of mapserver are you > using? > > -Steve W > > Paul james wrote: > >> Hi Guys... Take a look in the attached image ... >> Why is mapserver putting white space after text? In the database is >> everthing ok, with no space at all... >> ps.: I added BACKGROUNDCOLOR to label to show up the problem... Using >> latest ms4w compiled version for C# + oracle... >> My Mapfile: >> >> LAYER #6 >> NAME BASE >> GROUP "x" >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE oraclespatial >> CONNECTION "x/y" >> DATA "GEOM from GEO_BASE USING UNIQUE ID VERSION 10G" >> LABELITEM "NAME" >> CLASS >> TEMPLATE "dummy" >> NAME "BASES" >> STYLE >> SYMBOL "circle" MINSIZE 9 >> MAXSIZE 9 >> COLOR 255 255 13 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> BACKGROUNDCOLOR X X X >> COLOR X X X >> FONT arial TYPE TRUETYPE >> SIZE 10 >> ANTIALIAS TRUE >> POSITION AUTO >> PARTIALS FALSE >> BUFFER 3 >> END >> END >> END >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Thu May 29 07:51:04 2008 From: pauljame at gmail.com (Paul james) Date: Thu, 29 May 2008 11:51:04 -0300 Subject: [mapserver-users] Retrieve column names from getFeature ... Message-ID: <33fad6880805290751t58078d08r2bca4a1b5f223097@mail.gmail.com> Hello all... I have this code in mapscript (c#): ... resultCacheMemberObj _result = _layer.getResult(i); _layer.open(); shapeObj _obj = _layer.getFeature(_result.shapeindex, _result.tileindex); _layer.close(); ... So, in my _obj.values I have a array with db data... Is it posible to get the column name ? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From besse.pb at gmail.com Thu May 29 07:50:55 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Thu, 29 May 2008 16:50:55 +0200 Subject: [MAPSERVER-USERS] Displaying population density with Mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBD90@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBD90@s-sp22.pca.state.mn.us> Message-ID: ALRIGHT !! It was a noob mistake indeed, I did not specify UNITS in the MAP object. In fact I thought Mapserver could know it from the shapefile. Thank you very much, it works fine now :) Faldor 2008/5/29 Fawcett, David : > MapServer should do the conversion on the fly, my point was just that > MapServer needs to know what SRS (and units) that the data is in, so it can > make the translation. > > Can you post the text of your map file? > > David. > > -----Original Message----- > *From:* Pierre-Benoit Besse [mailto:besse.pb at gmail.com] > *Sent:* Thursday, May 29, 2008 2:51 AM > *To:* Fawcett, David > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [MAPSERVER-USERS] Displaying population density with > Mapserver > > Hi David, > > I tried WGS84 yesterday after a little research on projection, but it > didn't change anything. > I tried re-generating the shapefile with WGS84 projection but it's still > the same. > In fact, my data comes from GPW v3 ( > http://sedac.ciesin.columbia.edu/gpw/global.jsp) but I didn't find any > clue on the projection used, I suppose there is none as you say. > > When you speak about translating ground units, do you mean I have to > translate my shapefile from degrees to, say, kilometers before I can use > SIZEUNITS kilometers ? I thought it could be done dynamically by MapServer. > I found a tutorial about this, I will try it anyway (assuming my data is > WGS84) and give you the outcome :) > > I attached my mapfile this time, just in case I made a noob mistake > somewhere... > > thank you very much ! > > Faldor > > 2008/5/28 Fawcett, David : > >> Faldor, >> >> When you have point coordinates stored in a text file, there really is >> no way to encode/attach the projection definition. Even if you could, >> it doesn't sound like you really know what spatial reference system >> (SRS) or projection that it is in. The key to projecting to another SRS >> or translating ground units to another measure (from degrees to meters) >> is knowing what the current SRS of the data is. >> >> Since your data is worldwide and it is unprojected (lat/lon), a good >> first guess would be to assume that it is unprojected with using the >> WGS84. >> >> Try defining your layer projection by including this block in your layer >> definition. >> >> PROJECTION >> "init=epsg:4326" >> END >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Pierre-Benoit Besse >> Sent: Wednesday, May 28, 2008 4:11 AM >> To: Fawcett, David >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] Displaying population density with >> Mapserver >> >> >> Well, I confess, I'm new to GIS applications and I do not know a lot >> about projections. >> I understand I have to tell MapServer what is the projection of each >> layer I use in the mapfile, but using ogrinfo on my shapefiles tells me >> that : >> >> Layer name: pop_density >> Geometry: Point >> Feature Count: 249937 >> Extent: (-180.000000, -56.000000) - (179.750000, 83.500000) >> Layer SRS WKT: >> (unknown) >> latitude: Real (24.15) >> longitude: Real (24.15) >> densite: Real (24.15) >> >> I generated this shapefile from a CSV file with 3 columns : latitude, >> longitude, density_value. >> Did I have to define a projection then ? How do I do that ? >> >> Best regards, >> >> Faldor >> >> >> 2008/5/27 Fawcett, David : >> >> Have you defined an output projection for your map and input projections >> for each of your layers? It is likely that MapServer needs to know what >> the input projection/SRS is before it can translate to different units. >> >> David. >> -----Original Message----- >> From: Pierre-Benoit Besse [mailto:besse.pb at gmail.com] >> Sent: Tuesday, May 27, 2008 11:26 AM >> To: Fawcett, David >> Cc: Ritesh Ambastha; mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] Displaying population density with >> Mapserver >> >> >> Ha, well, I prefer that :) I would need a lot of layer definitions to >> obtain something ok... >> >> But I just tried the "ground units" stuff, I tried with a 50 kilometers >> wide square and it drew squares the size of ASIA !! oO >> I had to define a 1 feet wide square to obtain something more or less >> ok... >> Does anybody know why ? >> >> Aside from that It seems to work, thank you ! >> >> I will try the scalesymbol stuff tomorrow. >> >> Regards >> >> >> >> 2008/5/27 Fawcett, David : >> >> Before you create lots of different layers to simulate symbol scaling, >> you may want to try something else. It has been a long time since I >> have played with scaled symbols, but give it a try. >> >> You should be able to scale the symbols by setting a SYMBOLSCALE in the >> LAYER object. This is the scale at which you want the symbol to appear >> at the SIZE stated in the map file. >> >> You may want to modify STYLE MAXSIZE if you think that you will want >> your symbols to be larger than 50 pixels. >> >> Another completely different approach that just came to my mind would be >> to use ground units (e.g. meters) to set the size of your symbol. To do >> this, set LAYER SIZEUNITS to meters. Calculate the size of a symbol in >> meters on the ground that will touch adjacent symbols, or give you the >> desired amount of space between the symbols. That way, the symbols >> should scale consistently. >> >> David. >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh >> Ambastha >> Sent: Tuesday, May 27, 2008 10:16 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] Displaying population density with >> Mapserver >> >> >> >> Dear Faldor, >> >> Robert is absolutely right. You will have to make different LAYERS for >> the same POINT layer. But, define MAX/MINSCALE for each Layer. Change >> STYLE -> SIZE values in each of the layer. You are done !! >> >> Cheers ! >> Ambastha >> >> >> Faldor wrote: >> > >> > Yes, but I need them to adapt for different extents. >> > >> > For example, When I zoom out enough to see the world, I need them 1 >> > pixel wide (it's ugly otherwise), but when I zoom in I will need then >> > 2 or 5 or even 30 pixels wide to cover all space. >> > >> > 2008/5/27 Ritesh Ambastha : >> > >> >> >> >> Dear Faldor, >> >> >> >> What I need is to have the points grow to cover all space >> >> available when I zoom in. >> >> >> >> Do you mean that the size of points should grow? It can be done >> >> easily by setting proper SIZE in the STYLE tag. >> >> >> >> >> >> Regards, >> >> Ambastha >> >> >> >> >> >> >> >> Faldor wrote: >> >> > >> >> > Hi, >> >> > >> >> > Sorry for my first empty message. >> >> > >> >> > My problem is, I need to display population density with Mapserver. >> >> >> > The data comes from GPWv3 and has a resolution of 15'. I converted >> >> > it to a POINT Shapefile using ogr2ogr. >> >> > >> >> > At first when I display it on a world map it shows nicely. But when >> >> >> > I >> >> zoom >> >> > in it begins to show separated points for each value in the >> >> > shapefile. What I need is to have the points grow to cover all >> >> > space available >> >> when >> >> I >> >> > zoom in. >> >> > >> >> > Is there any mean to do it with Mapserver ? I did not find it in >> >> > the mapfile reference. >> >> > >> >> > I don't know if I explained it well (I'm not english speaking). If >> >> > you >> >> do >> >> > not understand something, please ask. >> >> > >> >> > Cordialy, >> >> > >> >> > Faldor >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp >> >> 17492210p17492387.html >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Displaying-population-density-with-Mapserver-tp174 >> >> 92210p17492783.html >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Thu May 29 08:06:41 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 29 May 2008 08:06:41 -0700 Subject: [mapserver-users] queryByAttributes on PostGIS-Layer In-Reply-To: <001401c8c158$f7a46c90$08b2a8c0@SVEN> References: <000d01c8c0b0$5e4ed1a0$08b2a8c0@SVEN> <001401c8c158$f7a46c90$08b2a8c0@SVEN> Message-ID: <30fe546d0805290806k5aa56e64hfc10e3b5f99721d0@mail.gmail.com> Well, if it's presenting a markedly different API than a query on shape file, I'd say it is at minimum non-optimal and worthy of a ticket. Of course, at this late date, "fixing" it will break everyone else's code... oh, dear :) P On Wed, May 28, 2008 at 11:55 PM, wrote: > Found the problem (thanks to Nicol ;-) > Code: > @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); > > must be changed to: > @$myQuery = $layer->queryByAttributes('nr_','nr_=7', MS_SINGLE); > > Is this a bug? > > Sven > > > ----- Original Message ----- From: > To: > Sent: Wednesday, May 28, 2008 12:48 PM > Subject: [mapserver-users] queryByAttributes on PostGIS-Layer > > >> Hallo list, >> >> My test-system: Mapserver 5.02 on WinXP and postgreSQL 8.2 >> I try to make some querys via php-mapscript for a postgis-layer: >> queryByPoint,queryByShape and queryByRect is no problem. >> queryByAttributes always return "no result" (field 'nr_' is an integer) >> If I use a shapefile for the same data (biogasanlagen.shp) >> queryByAttributes works fine. >> >> mapfile: >> ... >> LAYER >> NAME "biogasanlagen" >> TYPE point >> STATUS on >> CONNECTIONTYPE postgis >> CONNECTION "user=postgres password=xyz dbname=mydb host=localhost >> port=5432" >> DATA "the_geom from biogasanlagen using unique gid" >> #DATA biogasanlagen.shp >> TEMPLATE void >> CLASS >> Name "biogasanlagen" >> OUTLINECOLOR 128 70 0 >> COLOR 230 70 0 >> SYMBOL 'circle' >> SIZE 12 >> END # CLASS >> TRANSPARENCY 88 >> TOLERANCE 8 >> END >> ... >> >> php-Code: >> >> ... >> $layer = $map->getLayerByName("biogasanlagen"); >> @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); >> ... >> >> any idea? >> >> Thanks Sven >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Thu May 29 08:14:34 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 29 May 2008 11:14:34 -0400 Subject: [mapserver-users] queryByAttributes on PostGIS-Layer In-Reply-To: <30fe546d0805290806k5aa56e64hfc10e3b5f99721d0@mail.gmail.com> References: <000d01c8c0b0$5e4ed1a0$08b2a8c0@SVEN> <001401c8c158$f7a46c90$08b2a8c0@SVEN> <30fe546d0805290806k5aa56e64hfc10e3b5f99721d0@mail.gmail.com> Message-ID: <483EC85A.50802@mapgears.com> I'm not sure if a "fix" is possible since queryByAttributes() works by setting the FILTERITEM/FILTER on the layer, so this behavior is kinda normal since the PostGIS FILTER syntax differs from the FILTER syntax used by shapefile layers. Perhaps it's more a documentation issue and the various MapScript docs should make the above clearer. Daniel Paul Ramsey wrote: > Well, if it's presenting a markedly different API than a query on > shape file, I'd say it is at minimum non-optimal and worthy of a > ticket. Of course, at this late date, "fixing" it will break everyone > else's code... oh, dear :) > > P > > On Wed, May 28, 2008 at 11:55 PM, wrote: >> Found the problem (thanks to Nicol ;-) >> Code: >> @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); >> >> must be changed to: >> @$myQuery = $layer->queryByAttributes('nr_','nr_=7', MS_SINGLE); >> >> Is this a bug? >> >> Sven >> >> >> ----- Original Message ----- From: >> To: >> Sent: Wednesday, May 28, 2008 12:48 PM >> Subject: [mapserver-users] queryByAttributes on PostGIS-Layer >> >> >>> Hallo list, >>> >>> My test-system: Mapserver 5.02 on WinXP and postgreSQL 8.2 >>> I try to make some querys via php-mapscript for a postgis-layer: >>> queryByPoint,queryByShape and queryByRect is no problem. >>> queryByAttributes always return "no result" (field 'nr_' is an integer) >>> If I use a shapefile for the same data (biogasanlagen.shp) >>> queryByAttributes works fine. >>> >>> mapfile: >>> ... >>> LAYER >>> NAME "biogasanlagen" >>> TYPE point >>> STATUS on >>> CONNECTIONTYPE postgis >>> CONNECTION "user=postgres password=xyz dbname=mydb host=localhost >>> port=5432" >>> DATA "the_geom from biogasanlagen using unique gid" >>> #DATA biogasanlagen.shp >>> TEMPLATE void >>> CLASS >>> Name "biogasanlagen" >>> OUTLINECOLOR 128 70 0 >>> COLOR 230 70 0 >>> SYMBOL 'circle' >>> SIZE 12 >>> END # CLASS >>> TRANSPARENCY 88 >>> TOLERANCE 8 >>> END >>> ... >>> >>> php-Code: >>> >>> ... >>> $layer = $map->getLayerByName("biogasanlagen"); >>> @$myQuery = $layer->queryByAttributes('nr_','7', MS_SINGLE); >>> ... >>> >>> any idea? >>> >>> Thanks Sven >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From w.blanken at geon.nl Thu May 29 08:42:31 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Thu, 29 May 2008 17:42:31 +0200 Subject: [mapserver-users] Mapserver 5 Joining In-Reply-To: <33fad6880805290738p5c851506wa8c8649071c7b98f@mail.gmail.com> Message-ID: Hello List, I am busy migrating my application to mapserver 5. It's quite a task and I am running into some problems. I am working on fedora with the latest mapserver release from svn. My JOIN function (one to many) is not working. In the JOINED template the variables are not replaced with the values. Has the JOIN functionality changed with mapserver 5? Here is my layer: LAYER #Puntenthemalaag NAME Fotos GROUP group30 METADATA gix_layername "Foto's" END DATA 'media/lokaties.shp' HEADER "../templates/media.htm" FOOTER "../templates/media2.htm" STATUS ON TOLERANCE 10 TEMPLATE '../q_nfotografie.html' TYPE POINT CLASS NAME fotos STYLE SYMBOL fototoestel SIZE 15 END END #CLASS JOIN NAME fotos TABLE "media/fotos.dbf" FROM LOKATIE TO LOK_ID TYPE one-to-many TEMPLATE '../q_fotografie2.html' END END # LAYER And here is my template