From v at w.cl Tue Jul 2 14:24:38 2002 From: v at w.cl (Vinko Vrsalovic B.) Date: Tue, 2 Jul 2002 17:24:38 -0400 (CLT) Subject: [mapserver-users] Re: Happy New Year! and a problem. :) In-Reply-To: from "Stephen Lime" at ene 08, 2002 12:44:44 Message-ID: <20020702212438.B5A8622998@mail.selperchile.cl> > "STATUS ON" will turn a layer on when used from shp2img or the other = > command line utilties but has no effect with the CGI program. You must = > explicitly request the layer. That's the first place I'd check, then I'd = > make sure the image extents match your other data. The problem is i'm using PHP/Mapscript, not the CGI version, and the extents are right (they have been checked more than 10 times, i'd say) -- V. From v at w.cl Tue Jul 2 20:23:34 2002 From: v at w.cl (Vinko Vrsalovic) Date: Tue, 2 Jul 2002 23:23:34 -0400 Subject: [mapserver-users] Reading MapServer output as a theme in Arcview In-Reply-To: ; from TMitchell@lignum.com on Tue, Jan 08, 2002 at 03:06:03PM -0800 References: Message-ID: <20020702232334.A17627@www.selperchile.cl> On Tue, Jan 08, 2002 at 03:06:03PM -0800, Tyler Mitchell wrote: > I'd like to have MapServer still serve up an image map but I want this to > appear as a standard theme in Arcview. How so? Looks can be configured through LABEL directives, SYMBOLSETS, FONTSETS, etc. Make the image behave like a theme in arcview but in the browser? Mapscript is your friend. For instance, you could edit the arcs in the browser and save the editing as a shapefile with mapscript, you can even generate the shapefile and put a link to it for download. What exactly do you mean? -- V. From v at w.cl Wed Jul 3 08:17:00 2002 From: v at w.cl (Vinko Vrsalovic) Date: Wed, 3 Jul 2002 11:17:00 -0400 Subject: [mapserver-users] Reading MapServer output as a theme in Arcview In-Reply-To: <3C3BB83E.DDA9A995@refractions.net>; from pramsey@refractions.net on Tue, Jan 08, 2002 at 07:25:50PM -0800 References: <20020702232334.A17627@www.selperchile.cl> <3C3BB83E.DDA9A995@refractions.net> Message-ID: <20020703111700.A23792@www.selperchile.cl> On Tue, Jan 08, 2002 at 07:25:50PM -0800, Paul Ramsey wrote: > As in using it as an "Internet Map Server" data source in Arc8? You will > need an ArcIMS emulator for that... > http://postgis.refractions.net/download.php That was my point, your ArcIMS emulator is written in mapscript with some add ons :-). BTW, I'm planning to integrate two applications i've developed in the past, one in VB and MapObjects and other in Mapserver/Mapscript. The VB is able to manipulate shapes and do some calculations on them and interact with a linux box in terms of sending commands for it to execute. The MS application is basically a display and query application. I thought it would be nice to make the image produced in MS available for editing in the VB application. What is the desirable approach for this? following WMS is a must i presume... what other features and/or requirements can you think would be desirable? Thanks, -- V. From v at w.cl Wed Jul 3 13:33:37 2002 From: v at w.cl (Vinko Vrsalovic) Date: Wed, 3 Jul 2002 16:33:37 -0400 Subject: [mapserver-users] Dynamic expressions in PHP (FWD) In-Reply-To: <200201091731.LAA04473@mallit.fr.umn.edu>; from teb@mallit.fr.umn.edu on Wed, Jan 09, 2002 at 11:31:44AM -0600 References: <200201091731.LAA04473@mallit.fr.umn.edu> Message-ID: <20020703163337.A26370@www.selperchile.cl> On Wed, Jan 09, 2002 at 11:31:44AM -0600, teb wrote: > $class->setExpression('([COST] < $maximum)'); > > where $maximum is set by user text input, > > Any ideas? try: $class->setexpression("([COST] < $maximum)"); setexpression receives a string. PHP's strings in betweeen '' are textually evaluated (ie no variable substitution occurs), so you need to put those "" around it or use the . operator. btw, the '' are not needed by mapserver, i have this line : $class->setexpression("($str)"); and works fine. HTH, -- V. From v at w.cl Fri Jul 5 13:28:45 2002 From: v at w.cl (Vinko Vrsalovic) Date: Fri, 5 Jul 2002 16:28:45 -0400 Subject: [mapserver-users] Colors through mapscript Message-ID: <20020705162845.A17255@www.selperchile.cl> Hi: I've been trying to change the color of a class with PHP/MS 3.5. The docs for classObj say that color is an int, how can you make that int from the three rgb values? I've tried this: $class->set("color",$r." ".$g." ".$b); It changes the color, but not to the rgb combination specified. and this: $class->set("color",$r.$g.$b); But that doesn't work either. What is the proper way to do it? Thank you, -- V. From v at w.cl Fri Jul 5 13:42:15 2002 From: v at w.cl (Vinko Vrsalovic) Date: Fri, 5 Jul 2002 16:42:15 -0400 Subject: [mapserver-users] Colors Mapscript II In-Reply-To: <3C3F2CEA.3C428128@swoodbridge.com>; from woodbri@swoodbridge.com on Fri, Jan 11, 2002 at 01:20:26PM -0500 References: <3C3F2CEA.3C428128@swoodbridge.com> Message-ID: <20020705164215.A17417@www.selperchile.cl> Just found out the correct way: $class->set("color",$map->addColor($r,$g,$b)); -- V. From robert-fritz at web.de Mon Jul 1 08:35:20 2002 From: robert-fritz at web.de (Robert Fritz) Date: Mon, 1 Jul 2002 16:35:20 +0100 Subject: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 Message-ID: Hello, I try to use "imgshape" to query my maps, but I get either wrong data or nothing. Does "imgshape" not work ( see: "http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0205/msg 00033.html?line=23#hilite") or do I do a mistake? 1. Is there any Mapserver Version, where "imgshape" works? 2. Does the Mapscript "queryByShape" function works? (is it similar to "imgshape"?) Thank you, Robert From pduarte at ambisig.com Mon Jul 1 02:47:20 2002 From: pduarte at ambisig.com (Pedro Duarte) Date: Mon, 1 Jul 2002 10:47:20 +0100 Subject: [mapserver-users] Mapscript java exceptions Message-ID: <127420604507.20020701104720@ambisig.com> Hi, Can someone help me to catch exceptions in java that occours outside the java VM (in the mapscript library). I think that it's necessary to change swig interface to catch the exceptions. Can someone help me? thanks. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x49eaf699 Function name=Java_edu_umn_gis_mapscript_mapscript_get_1rectObj_1minx Library=/usr/local/lib/libmapscript.so Current Java thread: at edu.umn.gis.mapscript.mapscript.get_rectObj_minx(Native Method) at edu.umn.gis.mapscript.rectObj.getMinx(rectObj.java:42) at testems.contextoMapa.setExtent(contextoMapa.java:45) at testems.mapa.IniciaSessao2(mapa.java:284) at testems.mapa.processaPedido(mapa.java:71) at frameset._0002fframeset_0002fmapa_0002ejspmapa_jsp_0._jspService(_0002fframeset_0002fmapa_0002ejspmapa_jsp_0.java:91) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Dynamic libraries: 08048000-0804c000 r-xp 00000000 03:06 327920 /usr/local/JBuilder6/jdk1.3.1/bin/i386/native_threads/java 0804c000-0804d000 rw-p 00003000 03:06 327920 /usr/local/JBuilder6/jdk1.3.1/bin/i386/native_threads/java 40000000-40014000 r-xp 00000000 03:01 47908 /lib/ld-2.2.4.so 40014000-40015000 rw-p 00013000 03:01 47908 /lib/ld-2.2.4.so 40026000-40027000 r--p 00000000 03:06 97753 /usr/share/locale/en_US/LC_IDENTIFICATION 40027000-40028000 r--p 00000000 03:06 97752 /usr/share/locale/en_US/LC_MEASUREMENT 40028000-40036000 r-xp 00000000 03:01 47953 /lib/libpthread-0.9.so 40036000-4003e000 rw-p 0000d000 03:01 47953 /lib/libpthread-0.9.so 4003e000-40047000 r-xp 00000000 03:06 279061 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so 40047000-40048000 rw-p 00008000 03:06 279061 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/native_threads/libhpi.so 40049000-402b0000 r-xp 00000000 03:06 1012021 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/client/libjvm.so 402b0000-40416000 rw-p 00266000 03:06 1012021 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/client/libjvm.so 4042d000-4042f000 r-xp 00000000 03:01 47921 /lib/libdl-2.2.4.so 4042f000-40430000 rw-p 00001000 03:01 47921 /lib/libdl-2.2.4.so 40430000-40562000 r-xp 00000000 03:01 47917 /lib/libc-2.2.4.so 40562000-40568000 rw-p 00131000 03:01 47917 /lib/libc-2.2.4.so 4056c000-4057e000 r-xp 00000000 03:01 47926 /lib/libnsl-2.2.4.so 4057e000-40580000 rw-p 00011000 03:01 47926 /lib/libnsl-2.2.4.so 40582000-405a3000 r-xp 00000000 03:01 47923 /lib/libm-2.2.4.so 405a3000-405a4000 rw-p 00020000 03:01 47923 /lib/libm-2.2.4.so 405a4000-405dd000 r-xp 00000000 03:06 244413 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so 405dd000-405ee000 rw-p 00038000 03:06 244413 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so 405f2000-40603000 r-xp 00000000 03:06 441958 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libverify.so 40603000-40605000 rw-p 00010000 03:06 441958 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libverify.so 40605000-40626000 r-xp 00000000 03:06 441948 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libjava.so 40626000-40628000 rw-p 00020000 03:06 441948 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libjava.so 40629000-4063d000 r-xp 00000000 03:06 441959 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libzip.so 4063d000-40640000 rw-p 00013000 03:06 441959 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libzip.so 40640000-41359000 r--s 00000000 03:06 816576 /usr/local/JBuilder6/jdk1.3.1/jre/lib/rt.jar 41386000-4162b000 r--s 00000000 03:06 816569 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i18n.jar 4162b000-41641000 r--s 00000000 03:06 816577 /usr/local/JBuilder6/jdk1.3.1/jre/lib/sunrsasign.jar 436e9000-436ea000 r--p 00000000 03:06 97748 /usr/share/locale/en_US/LC_TELEPHONE 436ea000-436eb000 r--p 00000000 03:06 97754 /usr/share/locale/en_US/LC_ADDRESS 436eb000-436ec000 r--p 00000000 03:06 97750 /usr/share/locale/en_US/LC_NAME 436ec000-436ed000 r--p 00000000 03:06 97749 /usr/share/locale/en_US/LC_PAPER 436ed000-436ee000 r--p 00000000 03:06 488652 /usr/share/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES 436ee000-436ef000 r--p 00000000 03:06 97751 /usr/share/locale/en_US/LC_MONETARY 436ef000-436f0000 r--p 00000000 03:06 97747 /usr/share/locale/en_US/LC_TIME 4973f000-4976a000 r--p 00000000 03:06 1123876 /usr/share/locale/ISO-8859-1/LC_CTYPE 4976a000-49770000 r--p 00000000 03:06 1123875 /usr/share/locale/ISO-8859-1/LC_COLLATE 49770000-49771000 r--p 00000000 03:06 765555 /usr/share/locale/en_US/LC_NUMERIC 49771000-49774000 r-xp 00000000 03:06 1270692 /usr/local/JBuilder6/jdk1.3.1/lib/i386/libdt_socket.so 49774000-49775000 rw-p 00002000 03:06 1270692 /usr/local/JBuilder6/jdk1.3.1/lib/i386/libdt_socket.so 49775000-49777000 r--s 00000000 03:06 897951 /usr/local/JBuilder6/jakarta-tomcat-3.2.3/lib/jaxp.jar 49777000-49781000 r--s 00000000 03:06 897953 /usr/local/JBuilder6/jakarta-tomcat-3.2.3/lib/servlet.jar 49783000-4978c000 r-xp 00000000 03:01 47942 /lib/libnss_files-2.2.4.so 4978c000-4978d000 rw-p 00008000 03:01 47942 /lib/libnss_files-2.2.4.so 4978d000-497b6000 r-xp 00000000 03:06 1270693 /usr/local/JBuilder6/jdk1.3.1/lib/i386/libjdwp.so 497b6000-497b7000 ---p 00029000 03:06 1270693 /usr/local/JBuilder6/jdk1.3.1/lib/i386/libjdwp.so 497b7000-497b8000 rw-p 00029000 03:06 1270693 /usr/local/JBuilder6/jdk1.3.1/lib/i386/libjdwp.so 497bb000-49825000 r--s 00000000 03:06 897954 /usr/local/JBuilder6/jakarta-tomcat-3.2.3/lib/webserver.jar 49891000-498c7000 r--s 00000000 03:06 897950 /usr/local/JBuilder6/jakarta-tomcat-3.2.3/lib/jasper.jar 498c7000-498e9000 r--s 00000000 03:06 897952 /usr/local/JBuilder6/jakarta-tomcat-3.2.3/lib/parser.jar 498e9000-4994c000 r--s 00000000 03:06 1270552 /usr/local/JBuilder6/jdk1.3.1/demo/jfc/Java2D/Java2Demo.jar 4994c000-499a6000 r--s 00000000 03:06 816570 /usr/local/JBuilder6/jdk1.3.1/jre/lib/javaplugin.jar 499a6000-499c6000 r--s 00000000 03:06 1270689 /usr/local/JBuilder6/jdk1.3.1/lib/dt.jar 499c6000-499f6000 r--s 00000000 03:06 1270690 /usr/local/JBuilder6/jdk1.3.1/lib/htmlconverter.jar 499f6000-49e75000 r--s 00000000 03:06 1270696 /usr/local/JBuilder6/jdk1.3.1/lib/tools.jar 49e75000-49e7e000 r-xp 00000000 03:06 441956 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libnet.so 49e7e000-49e7f000 rw-p 00008000 03:06 441956 /usr/local/JBuilder6/jdk1.3.1/jre/lib/i386/libnet.so 49e7f000-49f11000 r-xp 00000000 03:06 1060948 /usr/local/lib/libmapscript.so 49f11000-49f16000 rw-p 00091000 03:06 1060948 /usr/local/lib/libmapscript.so 49f28000-49f3b000 r-xp 00000000 03:06 245084 /usr/lib/libgd.so.1.8.4 49f3b000-49f5b000 rw-p 00012000 03:06 245084 /usr/lib/libgd.so.1.8.4 49f5f000-49f7f000 r-xp 00000000 03:06 244417 /usr/lib/libjpeg.so.62.0.0 49f7f000-49f80000 rw-p 0001f000 03:06 244417 /usr/lib/libjpeg.so.62.0.0 49f80000-49fc2000 r-xp 00000000 03:06 1060950 /usr/local/lib/libfreetype.so.6.3.1 49fc2000-49fc7000 rw-p 00041000 03:06 1060950 /usr/local/lib/libfreetype.so.6.3.1 49fc7000-49ff4000 r-xp 00000000 03:06 1060944 /usr/local/lib/libpng.so.3.1.2.1 49ff4000-49ff6000 rw-p 0002c000 03:06 1060944 /usr/local/lib/libpng.so.3.1.2.1 49ff6000-4a003000 r-xp 00000000 03:01 47968 /lib/libz.so.1.1.3 4a003000-4a005000 rw-p 0000c000 03:01 47968 /lib/libz.so.1.1.3 4a005000-4a045000 r-xp 00000000 03:06 1060924 /usr/local/lib/libtiff.so.3.5.7 4a045000-4a047000 rw-p 0003f000 03:06 1060924 /usr/local/lib/libtiff.so.3.5.7 4a047000-4a205000 r-xp 00000000 03:06 1060940 /usr/local/lib/libgdal.1.1.so 4a205000-4a26b000 rw-p 001bd000 03:06 1060940 /usr/local/lib/libgdal.1.1.so 4a281000-4a292000 r-xp 00000000 03:06 245105 /usr/lib/libpq.so.2.2 4a292000-4a294000 rw-p 00010000 03:06 245105 /usr/lib/libpq.so.2.2 4a294000-4a2be000 r-xp 00000000 03:06 244410 /usr/lib/libttf.so.2.2.0 4a2be000-4a2c0000 rw-p 00029000 03:06 244410 /usr/lib/libttf.so.2.2.0 4a2c0000-4a2cf000 r-xp 00000000 03:06 847121 /usr/X11R6/lib/libXpm.so.4.11 4a2cf000-4a2d0000 rw-p 0000e000 03:06 847121 /usr/X11R6/lib/libXpm.so.4.11 4a2d0000-4a394000 r-xp 00000000 03:06 847131 /usr/X11R6/lib/libX11.so.6.2 4a394000-4a397000 rw-p 000c3000 03:06 847131 /usr/X11R6/lib/libX11.so.6.2 4a397000-4a39e000 r-xp 00000000 03:06 244441 /usr/lib/libungif.so.4.1.0 4a39e000-4a39f000 rw-p 00006000 03:06 244441 /usr/lib/libungif.so.4.1.0 4a39f000-4a3a4000 r-xp 00000000 03:01 47919 /lib/libcrypt-2.2.4.so 4a3a4000-4a3a5000 rw-p 00004000 03:01 47919 /lib/libcrypt-2.2.4.so 4a3cc000-4a3da000 r-xp 00000000 03:01 47955 /lib/libresolv-2.2.4.so 4a3da000-4a3dc000 rw-p 0000d000 03:01 47955 /lib/libresolv-2.2.4.so Local Time = Wed Jun 26 21:50:20 2002 Elapsed Time = 249 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 interpreted mode) # -- Best regards, Pedro mailto:pduarte at ambisig.com From marichalperez at yahoo.es Mon Jul 1 04:15:18 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Mon, 1 Jul 2002 12:15:18 +0100 Subject: [mapserver-users] Temporary files Message-ID: Hi, all. When we configure MapServer, one of the thing to deal with is the temporary directory. I suppose MapServer carry out the deleting of this folder itself. But, what would happen if I put another files (ie, not map images) in this folder?. Does MapServer delete this files, too?. I need to create some temporary files in my application and don't know how to delete it. Then I thought that perhaps putting them in the temporary folder of MapSever would be a solution. ??. Does anybody know if MapServer clean all the content of the "tmp" directory?. Thanks a lot, Manuel Marichal P?rez _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From shpr at libero.it Mon Jul 1 05:40:21 2002 From: shpr at libero.it (Stefano Bonnin) Date: Mon, 1 Jul 2002 14:40:21 +0200 Subject: [mapserver-users] Postgis and PHP Mapscript Message-ID: <064901c220fc$76ff85a0$0601a8c0@comai.loc> Does it exist a precompiled version of Mapserver PHP Mapscript with Postgis support? Thanks. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 From rich at GreenwoodMap.com Mon Jul 1 05:45:20 2002 From: rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 01 Jul 2002 06:45:20 -0600 Subject: [mapserver-users] About "complete" Makefile.vc for MapServer 3.6.1 (and about ECW) In-Reply-To: <003101c21f83$0e8c7ca0$650202c0@vip> References: <000001c21f4c$5e5c2d70$b24d5ea0@ecology.umn.edu> Message-ID: <5.1.0.14.0.20020701064156.00a902c0@mail.greenwoodmap.com> You are correct that ecw images do not require world files. Is your ecw image within your extent, and is it in the same coordinate system (lat/lon)? I use gdaltindex with my ecw images to create a tile index. A tile index is simply a shape file of rectangles representing the extents of each image, but it is a good way to check you extents. Rich At 12:38 AM 6/30/2002 +0900, you wrote: > Thank you very much for your help, Mr. Nacionales. > > I could make MapServer 3.6.1 with WMSClient. > > And this is another question about ECW. I tried my compiled MapServer 3.6.1 >and pre-build 3.6 to display ECW image(8 bit) with following map file. > >NAME rasterex >EXTENT 139.6 35.4 139.75 35.5 >SIZE 512 512 >SHAPEPATH "d:\MapServ\map" >UNITS DD > >#WEB ># IMAGEPATH "C:\Program Files\Apache Group\Apache\htdocs\tmp\" ># IMAGEURL "/tmp/" >#END > >LAYER # start of the "yokohama" layer object > NAME "yokohama image" > DATA "533915.ecw" > TYPE RASTER > STATUS DEFAULT >END # end of layer object >END # end of map file > > But nothing diplayed without error messages. > > ECW doesn't requre World File? Without world file(.eww?), shp2img.exe >didn't show error message and created blank images. > > Do you have any suggestion. > > Best Regards. Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From woodbri at swoodbridge.com Mon Jul 1 05:50:38 2002 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 01 Jul 2002 08:50:38 -0400 Subject: [mapserver-users] Temporary files References: Message-ID: <3D20501E.431FA52C@swoodbridge.com> Manuel, Mapserver does NOT delete the files in the temporary directory. It is up to you to make a script or crontab entry that runs periodically to remove old files from the directory or it will eventually fill the disk partition. -Steve Manuel Marichal P?rez wrote: > > Hi, all. > > When we configure MapServer, one of the thing to deal with is the temporary > directory. I suppose MapServer carry out the deleting of this folder > itself. > But, what would happen if I put another files (ie, not map images) in this > folder?. Does MapServer delete this files, too?. > > I need to create some temporary files in my application and don't know how > to delete it. Then I thought that perhaps putting them in the temporary > folder of MapSever would be a solution. ??. > > Does anybody know if MapServer clean all the content of the "tmp" > directory?. > > Thanks a lot, > Manuel Marichal P?rez > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com From mail2stern at gmx.net Mon Jul 1 06:02:29 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Mon, 01 Jul 2002 14:02:29 +0100 Subject: [mapserver-users] alternative tutorial / documentation for mapserver Message-ID: <3D2052E5.7080005@gmx.net> Hi all, I just started with mapserver and finally got the demo-dataset working. Now I struggle to work through the tutorial and it's samples. Are there any alternative tutorials or documentations out there? All I found is a chapter at http://www.freegis.org/freegis_tutorial/online/freegis-tutorial.html Best Regards, Stefan From Chip.Hankley at GASAI.Com Mon Jul 1 06:57:13 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 1 Jul 2002 08:57:13 -0500 Subject: [mapserver-users] ways to get map scale value Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBB5@postoffice.GASAI.Com> Do you mean beyond the use of [SCALE]? See the template reference in the docs. http://mapserver.gis.umn.edu/doc36/template-reference.htmlhttp://mapserver.g is.umn.edu/doc36/template-reference.html Note the need for *some* caution using this, as the docs say "Current image scale. The exact value is not appropriate for user information but essential for some applications. The value can be rounded e.g. using JavaScript or server side post processing.: Here's an example using JavaScript to make it more 'palatable' in the display: ... here's the pertinent HTML ... -----Original Message----- From: Jee Young Lee [mailto:JeeYoung.Lee at safe.com] Sent: Friday, June 28, 2002 6:45 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ways to get map scale value Does anyone know any easy way (without using mapscript) to get the map scale value? Or, do I need to use mapscript to get the map scale? Thanks in advance! -Jee From Chip.Hankley at GASAI.Com Mon Jul 1 07:07:27 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 1 Jul 2002 09:07:27 -0500 Subject: [mapserver-users] Postgis and PHP Mapscript Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBB6@postoffice.GASAI.Com> Presumably you mean a windows dll? If so, I don't think so (unless someone outside of DMSolutions is compiling windows dlls). I asked Assefa Yewondwossen @ DMSolutions the other day and he said that he had not compiled a version with PostGIS support. Cheers! Chip -----Original Message----- From: Stefano Bonnin [mailto:shpr at libero.it] Sent: Monday, July 01, 2002 7:40 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Postgis and PHP Mapscript Does it exist a precompiled version of Mapserver PHP Mapscript with Postgis support? Thanks. --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 From steve.lime at dnr.state.mn.us Mon Jul 1 08:46:49 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Jul 2002 10:46:49 -0500 Subject: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 Message-ID: The bug that was filed via Bugzilla was fixed in version 3.6.1 and was correct in the 3.7 development code. I've not tested the full functionality though in some time, so if someone could confirm that all is well then that would be helpful. Steve >>> "Robert Fritz" 07/01/02 10:35AM >>> Hello, I try to use "imgshape" to query my maps, but I get either wrong data or nothing. Does "imgshape" not work ( see: "http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0205/msg 00033.html?line=23#hilite") or do I do a mistake? 1. Is there any Mapserver Version, where "imgshape" works? 2. Does the Mapscript "queryByShape" function works? (is it similar to "imgshape"?) Thank you, Robert From georef at tie.cl Mon Jul 1 09:58:38 2002 From: georef at tie.cl (Referencia SA) Date: Mon, 1 Jul 2002 11:58:38 -0500 Subject: [mapserver-users] alternative tutorial / documentation for mapserver References: <3D2052E5.7080005@gmx.net> Message-ID: <010101c22120$8c1bd6e0$b800a8c0@participa.cl> What about something similar but in english or even better in spanish. Does any one knows a usefull link? Juanse Temuko-Chile ----- Original Message ----- From: Stefan Stern To: Sent: Monday, July 01, 2002 8:02 AM Subject: [mapserver-users] alternative tutorial / documentation for mapserver > Hi all, > > I just started with mapserver and finally got the demo-dataset working. > > Now I struggle to work through the tutorial and it's samples. Are there > any alternative tutorials or documentations out there? > > All I found is a chapter at > http://www.freegis.org/freegis_tutorial/online/freegis-tutorial.html > > > Best Regards, > Stefan > > From pnaciona at gis.umn.edu Mon Jul 1 09:25:31 2002 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Mon, 1 Jul 2002 11:25:31 -0500 Subject: [mapserver-users] alternative tutorial / documentation for mapserver In-Reply-To: <010101c22120$8c1bd6e0$b800a8c0@participa.cl> Message-ID: Yes, there's a tutorial for MapServer (in English). I'm still in the process of moving it back to the TerraSIP web site but you can access it by going to http://terrasip.gis.umn.edu/projects/. Look for the link to MapServer tutorial. The first three sections are working but I need to fix the links on the rest of the tutorial. Once I get everything working properly, I will zip it up and make it available for download. I'll have it read before the week ends. -Perry N. On Mon, 1 Jul 2002, Referencia SA wrote: > What about something similar but in english or even better in spanish. Does > any one knows a usefull link? > > Juanse > Temuko-Chile > > ----- Original Message ----- > From: Stefan Stern > To: > Sent: Monday, July 01, 2002 8:02 AM > Subject: [mapserver-users] alternative tutorial / documentation for > mapserver > > > > Hi all, > > > > I just started with mapserver and finally got the demo-dataset working. > > > > Now I struggle to work through the tutorial and it's samples. Are there > > any alternative tutorials or documentations out there? > > > > All I found is a chapter at > > http://www.freegis.org/freegis_tutorial/online/freegis-tutorial.html > > > > > > Best Regards, > > Stefan > > > > > > From DMartin at erac.com Mon Jul 1 09:27:55 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 1 Jul 2002 11:27:55 -0500 Subject: [mapserver-users] MapInfo TAB format, general issues Message-ID: I've been using MapServer's new integration with MapInfo TAB formats extensively. I want to bring up some issues I've noticed with the MITAB integration, mainly to get it into the mailing list archives for those searching for answers like I OFTEN do. - STYLEITEM "auto" doesn't extract the label information. It is required to create a second ANNOTATION layer for each STYLEITEM "auto" layer. Helpful to note that by naming both with the same NAME they will turn on and off together. - STYLEITEM "auto" shows a blank legend object in a template legend - perhaps in a normal legend too but I only use template legends. - Seamless layers will not work in "No Path" mode unless all layers are in the same folder as the Seamless layer. MapServer will return: "msOGRFileOpen(): OGR error. Open failed for OGR connection `\MyPath\MySeamlessLayer.TAB'. File not found or unsupported format. " Using "Full Path" mode to create your seamless layer will also not work unless the drive mapping on your MapServer machine matches that of the machine you have MapInfo on for the layers. If you have a centralized geographic data store like I do, your only option may be to place all layers into the same folder and create your Seamless layer. MapInfo Other than these issues and a Seamless layer bug that is fixed in the CVS, the MapInfo integration is working like a champ. I've even pulled in a polygon layer with 75 business regions, each with alternating colors, and it looks identical to what it did in MapInfo. What took me about 5 minutes would've taken me an extremely long time and hundreds of lines of code to recreate it in the mapfile by hand. It's a great feature, and very well done. My thanks go to the developers. -Dan Martin PS, if any of the above are unknown *bugs* let me know and I will post a bug report. From hunt at zedxinc.com Mon Jul 1 13:26:33 2002 From: hunt at zedxinc.com (Aaron D. Hunt) Date: Mon, 1 Jul 2002 13:26:33 -0700 Subject: [mapserver-users] reference map Message-ID: <004001c2213d$97f7b430$1805000a@helicity> When I draw a reference map, I get an image but my background image is not there. Below is the code I used >From map file REFERENCE EXTENT -125.481 23.17332 -66.5282 51.7963 IMAGE /usr/home/gui-ads/html/map/framework/ref.png STATUS on size 124 74 END Php script $image_ref=$map->drawReferenceMap(); $image_url_ref=$image_ref->saveWebImage(MS_PNG,1,1,0); If I try using a gif like to doc tells, I get a mapscript error. Thanks for any help Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertha_bonita at yahoo.com Mon Jul 1 10:27:01 2002 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 1 Jul 2002 19:27:01 +0200 (CEST) Subject: [mapserver-users] fonts with ms-3.6 In-Reply-To: <5.1.0.14.0.20020628222926.00b1caa8@GrizzlyLogic.com> Message-ID: <20020701172701.94077.qmail@web14107.mail.yahoo.com> Hi I've changed as you suggest me but the error is: msGetLabelSize(): TrueType Font error. Requested font (Tunga) not found. i don't know what doesn't find tunga font , i don't understand and i'm in a dead end with this. "Timothy M. Thompson" escribi?: Bertha, Drop the ".TTF" at the end of your FONT reference in your MAP file. ie: TYPE TRUETYPE ANTIALIAS true FONT Tunga SIZE 14 (Note: I don't use double quotes around the font alias, but I think it works both ways). The word "Tunga" is all you need, since that is what you have listed it as in your "fonts.list" file. Consider your fonts.list as a lookup table (or alias table) for fonts and refer to them by their alias name only. Mapserver will load the fonts.list file to find the path/filename of the actual TTF file. Best, Tim *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- LCC.Bertha A. Serrato bserrato at cicese.mx Laboratorio de Percepci?n Remota y S.I.G. CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* --------------------------------- Copa del Mundo de la FIFA 2002 El ?nico lugar de Internet con v?deos de los 64 partidos ?Ap?ntante ya!. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Mon Jul 1 11:07:00 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 1 Jul 2002 13:07:00 -0500 Subject: [mapserver-users] reference map Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBBC@postoffice.GASAI.Com> Aaron, it sounds like your EXTENT for your reference image may not match your EXTENT for your overall map file. Those look like lat/long coordinates, is that what you are using for the rest of your map? Chip -----Original Message----- From: Aaron D. Hunt [mailto:hunt at zedxinc.com] Sent: Monday, July 01, 2002 3:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] reference map When I draw a reference map, I get an image but my background image is not there. Below is the code I used >From map file REFERENCE EXTENT -125.481 23.17332 -66.5282 51.7963 IMAGE /usr/home/gui-ads/html/map/framework/ref.png STATUS on size 124 74 END Php script $image_ref=$map->drawReferenceMap(); $image_url_ref=$image_ref->saveWebImage(MS_PNG,1,1,0); If I try using a gif like to doc tells, I get a mapscript error. Thanks for any help Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfred.kleva at siol.net Mon Jul 1 12:44:25 2002 From: alfred.kleva at siol.net (Alfred Kleva) Date: Mon, 1 Jul 2002 21:44:25 +0200 Subject: Fw: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 Message-ID: <000f01c22137$b4c03b10$1a00000a@3port.si> I have tested on ShapeFile and PostGIS layer. On ShapeFile works OK On PostGIS 0.60 layer return error : ********************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ********************************************* Alfred Kleva ----- Original Message ----- From: "Steve Lime" To: ; Sent: Monday, July 01, 2002 5:46 PM Subject: Re: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 > The bug that was filed via Bugzilla was fixed in version 3.6.1 and was > correct in the 3.7 development code. I've not tested the full > functionality though in some time, so if someone could confirm that all > is well then that would be helpful. > > Steve > > >>> "Robert Fritz" 07/01/02 10:35AM >>> > Hello, > > I try to use "imgshape" to query my maps, but I get either wrong data > or > nothing. > > Does "imgshape" not work ( see: > "http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0205/msg > > 00033.html?line=23#hilite") or do I do a mistake? > > > 1. Is there any Mapserver Version, where "imgshape" works? > 2. Does the Mapscript "queryByShape" function works? (is it similar to > "imgshape"?) > > Thank you, > Robert > > > > From Chip.Hankley at GASAI.Com Mon Jul 1 12:56:44 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 1 Jul 2002 14:56:44 -0500 Subject: [mapserver-users] reference map Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBBD@postoffice.GASAI.Com> ...hmm. Well, there are a number routes to go down that could help you narrow down your problem: 1) Your reference image is a PNG. Looks like you are on Linux / Unix, so, did you compile with PNG support... are your maps (run as PNGs) showing up? You could comment out the reference part of your mapfile and see if your main map shows up... if it does, then you can be relatively sure PNG support is working. You must NOT have GIF support since that generated an error... 2) I have no idea if this will help, but you might try adding some color defs to your reference object - REFERENCE STATUS ON IMAGE "C:\Inetpub\wwwroot\Wausau\graphics\reference.png" SIZE 150 150 EXTENT 253388.816486 170076.852191 298268.816481 214956.852186 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END 3) Try it on CGI MapServer. -----Original Message----- From: Aaron D. Hunt [mailto:hunt at zedxinc.com] Sent: Monday, July 01, 2002 5:52 PM To: Hankley, Chip Subject: Re: [mapserver-users] reference map I am using lat lon for the rest of the map. Here is the code from the top of the map file, NAME WORK STATUS ON SIZE 500 250 EXTENT -129 22 -60 55 UNITS DD SHAPEPATH "./" IMAGECOLOR 255 255 255 INTERLACE ON FONTSET "FONT.LST" Does any of this help? ----- Original Message ----- From: Hankley, Chip To: 'Aaron D. Hunt' ; mapserver-users at lists.gis.umn.edu Sent: Monday, July 01, 2002 11:07 AM Subject: RE: [mapserver-users] reference map Aaron, it sounds like your EXTENT for your reference image may not match your EXTENT for your overall map file. Those look like lat/long coordinates, is that what you are using for the rest of your map? Chip -----Original Message----- From: Aaron D. Hunt [mailto:hunt at zedxinc.com] Sent: Monday, July 01, 2002 3:27 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] reference map When I draw a reference map, I get an image but my background image is not there. Below is the code I used >From map file REFERENCE EXTENT -125.481 23.17332 -66.5282 51.7963 IMAGE /usr/home/gui-ads/html/map/framework/ref.png STATUS on size 124 74 END Php script $image_ref=$map->drawReferenceMap(); $image_url_ref=$image_ref->saveWebImage(MS_PNG,1,1,0); If I try using a gif like to doc tells, I get a mapscript error. Thanks for any help Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Mon Jul 1 14:01:27 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 01 Jul 2002 16:01:27 -0500 Subject: Fw: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 Message-ID: Then we need to get the PostGIS folks in on this. Not my area of expertise... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Alfred Kleva" 07/01/02 02:44PM >>> I have tested on ShapeFile and PostGIS layer. On ShapeFile works OK On PostGIS 0.60 layer return error : ********************************************* Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ********************************************* Alfred Kleva ----- Original Message ----- From: "Steve Lime" To: ; Sent: Monday, July 01, 2002 5:46 PM Subject: Re: [mapserver-users] Urgent - "imgshape" and MS 3.5/3.6 > The bug that was filed via Bugzilla was fixed in version 3.6.1 and was > correct in the 3.7 development code. I've not tested the full > functionality though in some time, so if someone could confirm that all > is well then that would be helpful. > > Steve > > >>> "Robert Fritz" 07/01/02 10:35AM >>> > Hello, > > I try to use "imgshape" to query my maps, but I get either wrong data > or > nothing. > > Does "imgshape" not work ( see: > "http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0205/msg > > 00033.html?line=23#hilite") or do I do a mistake? > > > 1. Is there any Mapserver Version, where "imgshape" works? > 2. Does the Mapscript "queryByShape" function works? (is it similar to > "imgshape"?) > > Thank you, > Robert > > > > From ARyan at co.linn.or.us Mon Jul 1 15:59:25 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Mon, 1 Jul 2002 15:59:25 -0700 Subject: [mapserver-users] limit query results Message-ID: <614FCE5F14A6D41180C200010240D6A2B719A1@LINNMS> Please, Is there a way to limit the number of records returned from an nquery / itemnquery? Thanks, AR From vatsavai at cs.umn.edu Mon Jul 1 17:28:55 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Mon, 1 Jul 2002 19:28:55 -0500 (CDT) Subject: [mapserver-users] mapserver web and apps Message-ID: <200207020028.TAA02967@pluto.cs.umn.edu> Hello MapServer-Users, Due to security issues, Apache Webserver is shutdown on mapserver.gis.umn.edu. As a result users can not access mapserver and appliactions. We restore new server by tomorrow afternoon (i.e., 7/2). This doesnot effect mail traffic. Thanks, Raju ---- From ycnyon at pd.jaring.my Mon Jul 1 20:49:53 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Tue, 2 Jul 2002 11:49:53 +0800 Subject: [mapserver-users] RE: reference map changes to cross-hair when map extent became small Message-ID: <006401c22183$13c1de20$6340baca@domain> i remember that with version 3.6, there is a option to specify a cross-hair/dot in place of a red bounding box when the map extent became small. However, i can't seem to find it in the map file documentation. Anyone can help? Thanks Nyon From ycnyon at pd.jaring.my Mon Jul 1 20:47:09 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Tue, 2 Jul 2002 11:47:09 +0800 Subject: [mapserver-users] RE: file naming for temp gif files created by MS Message-ID: <006301c22183$113c6bc0$6340baca@domain> hi, MS produces files names that made of numbers followed by the extension *.gif. Just wondering what conventions it follows, my guess is clock time or processor number. Nyon From lfilak at medinaco.org Tue Jul 2 05:07:51 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 08:07:51 -0400 (EDT) Subject: [mapserver-users] limit query results In-Reply-To: <614FCE5F14A6D41180C200010240D6A2B719A1@LINNMS> Message-ID: If you can use mapscript to do the query you can limit the number of returned results with the sql 'LIMIT' clause. This even appears to work with the DBD::XBase module's sql command subset. HTH Lowell F. On Mon, 1 Jul 2002, Ryan, Adam wrote: > > Please, > > Is there a way to limit the number of records returned from an nquery / > itemnquery? > > Thanks, > > AR > From flavio at tydac.ch Tue Jul 2 06:47:35 2002 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 02 Jul 2002 14:47:35 +0100 Subject: [mapserver-users] RE: reference map changes to cross-hair when map extent became small In-Reply-To: <006401c22183$13c1de20$6340baca@domain> References: <006401c22183$13c1de20$6340baca@domain> Message-ID: <200207021447350228.06C2888E@gw-tydac.thenet.ch> Hi Nyon As far as I know, in 3.6, it's there by default, with the code below it does it: REFERENCE IMAGE images/overview_switzerland.png EXTENT 485000 45000 835000 305000 STATUS ON OUTLINECOLOR 255 0 0 SIZE 185 126 END best regards flavio *********** REPLY SEPARATOR *********** On 02.07.02 at 11:49 YC Nyon wrote: >i remember that with version 3.6, there is a option to specify a >cross-hair/dot in place of a red bounding box when >the map extent became small. However, i can't seem to find it in the map >file documentation. > >Anyone can help? > >Thanks >Nyon * NEWS: TYDAC awarded Best ArcGIS Solution Partner of the Year * ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry- 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 ---------------------------------------------------------------- MAPINFO Strategic Partner - PCI Reseller - FME Distributor ESRI ArcGIS Solution Provider ---------------------------------------------------------------- From lacroix at dmsolutions.ca Tue Jul 2 06:01:57 2002 From: lacroix at dmsolutions.ca (Julien-Samuel Lacroix) Date: Tue, 02 Jul 2002 09:01:57 -0400 Subject: [mapserver-users] RE: reference map changes to cross-hair when map extent became small References: <006401c22183$13c1de20$6340baca@domain> Message-ID: <3D21A445.8040407@dmsolutions.ca> Here's the new reference map options. MARKER works like the SYMBOL keyword in the CLASS. It's the MARKER use in your reference map when the bounding box is to small (lower than MINBOXSIZE). Default is the cross-hair. MARKERSIZE is the size of the MARKER. Works like the SIZE in CLASS. MINBOXSIZE is the min size of the bounding box. At this size or lower, the cross-hair (or any MARKER specified) will be used. Use an integer value. Default value is 3. MAXBOXSIZE is the max size of the bounding box. Bigger than that, nothing will be draw. This option is really usefull when the bounding box is bigger than the reference map and does not appear on the reference map, you can prevent mapserver from drawing a bounding box outside the reference map. Julien YC Nyon wrote: >i remember that with version 3.6, there is a option to specify a >cross-hair/dot in place of a red bounding box when >the map extent became small. However, i can't seem to find it in the map >file documentation. > >Anyone can help? > >Thanks >Nyon > > > > From lfilak at medinaco.org Tue Jul 2 06:18:19 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 09:18:19 -0400 (EDT) Subject: [mapserver-users] RE: reference map changes to cross-hair when map extent became small In-Reply-To: <006401c22183$13c1de20$6340baca@domain> Message-ID: Check out: http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00105.html is that what you recall seeing? Lowell F. On Tue, 2 Jul 2002, YC Nyon wrote: > i remember that with version 3.6, there is a option to specify a > cross-hair/dot in place of a red bounding box when > the map extent became small. However, i can't seem to find it in the map > file documentation. > > Anyone can help? > > Thanks > Nyon > From lfilak at medinaco.org Tue Jul 2 06:20:19 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 09:20:19 -0400 (EDT) Subject: [mapserver-users] RE: file naming for temp gif files created by MS In-Reply-To: <006301c22183$113c6bc0$6340baca@domain> Message-ID: On *n*x it incorporates both the items you mention. In Win it is something similar. Lowell F. On Tue, 2 Jul 2002, YC Nyon wrote: > hi, > > MS produces files names that made of numbers followed by the extension > *.gif. > Just wondering what conventions it follows, my guess is clock time or > processor number. > > Nyon > From isaimichel at hotmail.com Tue Jul 2 06:57:56 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Tue, 02 Jul 2002 06:57:56 -0700 Subject: [mapserver-users] Installation Problem: Black Screen Message-ID: Hello: I am running a Suse 8.0 linux machine and have installed map server. I compiled the files and everything seems to work fine except that when I run the demo test, I get to the template file and their is a big black spot where the map picture should have been rendered. And yes, I turned the gif files into png files. Oddly, you can right click the image and choose to save it but when you try to actually save the map pictures (in PNG format) the computer says the file does not exist. The /tmp directory (relative to the top level domain) is also empty. Can someone please tell me how to get it to work? I have spent several days reading all the documentation. Thank you very much. Respectfully, IML _________________________________________________________________ Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com From marichalperez at yahoo.es Tue Jul 2 07:01:31 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Tue, 2 Jul 2002 15:01:31 +0100 Subject: [mapserver-users] Query object in PHP/MapScript. Where is it? Message-ID: Hi, all. How can I set or get the properties of a QUERY section of a layer using PHP/MapScript?. I'va been reading the PHP/MapScript documentation and don't see any word about this?. Thanks a lot, Manuel Marichal P?rez _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From m.spring at gmx.de Tue Jul 2 07:03:27 2002 From: m.spring at gmx.de (Markus Spring) Date: Tue, 02 Jul 2002 16:03:27 +0200 Subject: [mapserver-users] mapserver and mod_perl hybrid Message-ID: Hi list, I am using mod_perl and mapserver in a hybrid environment: pre- and postprocessing form data and html as well as coupling mysql data with mapserver queries. Having not dared to switch to mapscript for the generation of the maps, I do this in a hybrid way by running the mapserver executable from inside the mod_perl apache server. This is a very stable solution which gives me complete freedom over my html and sql database but maybe it is not the most performant way to achieve my goals. I would like to know if anybody does use mod_perl and mapscript to for mapserver purposes and if there are any pitfalls to avoid. Markus From pcarrasco at iver.es Tue Jul 2 00:02:37 2002 From: pcarrasco at iver.es (Pedro A. Carrasco) Date: Tue, 2 Jul 2002 09:02:37 +0200 Subject: [mapserver-users] PHP queryByRect problem. Message-ID: <001d01c22196$732ff910$0f00a8c0@iver.es> Hi all, I'm having a problem with the queryByRect function y PHP/Mapscript. My code works fine with the queryByPoint, but if I try to use the queryByRect it doesn't return any record. Here is a snippet of my code to do the search: --------------------------------------------------------------------- dl('php_mapscript.so'); $map = ms_newMapObj(_DATAPATH._GENMAPFILE); //This function change the status to 1 on the layers ActivaCapas('Servicios+Comercios+Construccion+Industria+Agrupaciones+Resto+P oblac',$map); $imgbox = str_replace(' ','+',$imgbox); $arrimgbox = explode('+',$imgbox); echo $imgbox.'
'; $ext = str_replace(' ','+',$ext); $arrext = explode('+',$ext); echo $ext.'
'; //Pix2Geo fron Gmap $minx = Pix2Geo($arrimgbox[0],0,$imWidth,$arrext[0],$arrext[2],0); $miny = Pix2Geo($arrimgbox[1],0,$imHeight,$arrext[1],$arrext[3],1); $maxx = Pix2Geo($arrimgbox[2],0,$imWidth,$arrext[0],$arrext[2],0); $maxy = Pix2Geo($arrimgbox[3],0,$imHeight,$arrext[1],$arrext[3],1); $rect = ms_newrectobj(); $rect->set('minx',$minx); $rect->set('miny',$miny); $rect->set('maxx',$maxx); $rect->set('maxy',$maxy); //This query don't return any result @$map->queryByRect($rect); $resultado = array(); for($i = 0;$i < $map->numlayers; $i++) { $lyObj = $map->getLayer($i); if($lyObj->status == 1) { $numResults = $lyObj->getNumResults(); echo $lyObj->name.'-->'.$lyObj->status.'-->'.$numResults.'
'; if($numResults == 0) continue; $lyObj->open($map->shapepath); //Nombre de los campos de los que se sacan los datos $selTables = $lyObj->getMetaData("DESCRIPTION"); $selTitulo = $lyObj->getMetaData("TITLE"); $selFields = explode(" ", $lyObj->getMetaData("RESULT_FIELDS")); $res = ''; for($j = 0;$j < $numResults;$j++) { $oRes = $lyObj->getResult($j); $oShape = $lyObj->getShape($oRes->tileindex,$oRes->shapeindex); //Concatenamos los resultados $res = $res.'|'.$oShape->values[$selFields[0]]; } $lyObj->close(); $key = $selTables.'|'.$selTitulo; echo $key.'-->'; echo $res.'
'; $resultado[$key] = $res; } } return $resultado; --------------------------------------------------------------------- Is there any problem with the code or is the PHP/Mapscript version?, I use the following Mapscript and Mapserver versions: MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $) MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE and PHP 4.2.1 in a Debian Linux. Thanks in advance. Regards. --------------------------------------------------------------------- Pedro A. Carrasco Ponce IVER Sistemas de Informaci?n Geogr?fica Dpto. T?cnico C/Salamanca, 50 46005 Valencia Telf: +34 96 316 34 00 Fax: +34 96 316 2716 mail : pcarrasco at iver.es web : http://www.iver.es --------------------------------------------------------------------- From pcarrasco at iver.es Tue Jul 2 07:11:05 2002 From: pcarrasco at iver.es (Pedro A. Carrasco) Date: Tue, 2 Jul 2002 16:11:05 +0200 Subject: [mapserver-users] PHP queryByRect problem. Message-ID: <006b01c221d2$4e681d10$0f00a8c0@iver.es> Hi all, I'm having a problem with the queryByRect function y PHP/Mapscript. My code works fine with the queryByPoint, but if I try to use the queryByRect it doesn't return any record. Here is a snippet of my code to do the search: --------------------------------------------------------------------- dl('php_mapscript.so'); $map = ms_newMapObj(_DATAPATH._GENMAPFILE); //This function change the status to 1 on the layers ActivaCapas('Servicios+Comercios+Construccion+Industria+Agrupaciones+Resto+P oblac',$map); $imgbox = str_replace(' ','+',$imgbox); $arrimgbox = explode('+',$imgbox); echo $imgbox.'
'; $ext = str_replace(' ','+',$ext); $arrext = explode('+',$ext); echo $ext.'
'; //Pix2Geo fron Gmap $minx = Pix2Geo($arrimgbox[0],0,$imWidth,$arrext[0],$arrext[2],0); $miny = Pix2Geo($arrimgbox[1],0,$imHeight,$arrext[1],$arrext[3],1); $maxx = Pix2Geo($arrimgbox[2],0,$imWidth,$arrext[0],$arrext[2],0); $maxy = Pix2Geo($arrimgbox[3],0,$imHeight,$arrext[1],$arrext[3],1); $rect = ms_newrectobj(); $rect->set('minx',$minx); $rect->set('miny',$miny); $rect->set('maxx',$maxx); $rect->set('maxy',$maxy); //This query don't return any result @$map->queryByRect($rect); $resultado = array(); for($i = 0;$i < $map->numlayers; $i++) { $lyObj = $map->getLayer($i); if($lyObj->status == 1) { $numResults = $lyObj->getNumResults(); echo $lyObj->name.'-->'.$lyObj->status.'-->'.$numResults.'
'; if($numResults == 0) continue; $lyObj->open($map->shapepath); //Nombre de los campos de los que se sacan los datos $selTables = $lyObj->getMetaData("DESCRIPTION"); $selTitulo = $lyObj->getMetaData("TITLE"); $selFields = explode(" ", $lyObj->getMetaData("RESULT_FIELDS")); $res = ''; for($j = 0;$j < $numResults;$j++) { $oRes = $lyObj->getResult($j); $oShape = $lyObj->getShape($oRes->tileindex,$oRes->shapeindex); //Concatenamos los resultados $res = $res.'|'.$oShape->values[$selFields[0]]; } $lyObj->close(); $key = $selTables.'|'.$selTitulo; echo $key.'-->'; echo $res.'
'; $resultado[$key] = $res; } } return $resultado; --------------------------------------------------------------------- Is there any problem with the code or is the PHP/Mapscript version?, I use the following Mapscript and Mapserver versions: MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $) MapServer version 3.6.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE and PHP 4.2.1 in a Debian Linux. Thanks in advance. Regards. --------------------------------------------------------------------- Pedro A. Carrasco Ponce IVER Sistemas de Informaci?n Geogr?fica Dpto. T?cnico C/Salamanca, 50 46005 Valencia Telf: +34 96 316 34 00 Fax: +34 96 316 2716 mail : pcarrasco at iver.es web : http://www.iver.es --------------------------------------------------------------------- From teb at mallit.fr.umn.edu Tue Jul 2 07:53:05 2002 From: teb at mallit.fr.umn.edu (Thomas E. Burk) Date: Tue, 2 Jul 2002 09:53:05 -0500 (CDT) Subject: [mapserver-users] new user questions (FWD) Message-ID: <200207021453.g62Er5N00487@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Deb Keddie, The Walkabout Company LLC" To: Subject: new user questions Date: Tue, 2 Jul 2002 09:31:33 -0400 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Disposition-Notification-To: "Deb Keddie, The Walkabout Company LLC" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 I am new to GIS and have a few questions: I have a database with GIS data for the location of historic sites -- FileMaker Pro is the database used. I want to be able to use the GIS data to create a "clickable" map for a website -- i.e. the Minnesota DNR website. The website I need to create is tourist oriented, not technical in nature. My question is -- what is the software used "between" the database and MapServer and what must reside on the server at my ISP? Thanks, Deb Keddie ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Jul 2 08:06:58 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 2 Jul 2002 11:06:58 -0400 Subject: [mapserver-users] mapserver and mod_perl hybrid Message-ID: <7CDD7B94357FD5119E800002A537C46E2301E3@s5-ccr-r1.ccrs.nrcan.gc.ca> Well, I vaguely recall there was a problem with the fact that the mapscript map object is not re-entrant, which causes problems with scripts "cached" with mod_perl ... There should be a discussion a discussion about this in the mailing list archives ... J.F. -----Original Message----- From: Markus Spring [mailto:m.spring at gmx.de] Sent: Tuesday, July 02, 2002 10:03 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapserver and mod_perl hybrid Hi list, I am using mod_perl and mapserver in a hybrid environment: pre- and postprocessing form data and html as well as coupling mysql data with mapserver queries. Having not dared to switch to mapscript for the generation of the maps, I do this in a hybrid way by running the mapserver executable from inside the mod_perl apache server. This is a very stable solution which gives me complete freedom over my html and sql database but maybe it is not the most performant way to achieve my goals. I would like to know if anybody does use mod_perl and mapscript to for mapserver purposes and if there are any pitfalls to avoid. Markus From ben at wblogan.net Tue Jul 2 07:13:56 2002 From: ben at wblogan.net (Ben Logan) Date: Tue, 2 Jul 2002 10:13:56 -0400 Subject: [mapserver-users] PHP Mapscript and querying/point conversion. In-Reply-To: <3D1F100D.52D401F@swoodbridge.com>; from woodbri@swoodbridge.com on Sun, Jun 30, 2002 at 10:05:01AM -0400 References: <20020630085743.A21881@wblogan.net> <3D1F100D.52D401F@swoodbridge.com> Message-ID: <20020702101356.A20960@wblogan.net> On Sun, Jun 30, 2002 at 10:05:01AM -0400, Stephen Woodbridge wrote: > Ben, > > Check out the gmap application the DM Solutions has made available. It They've done a good job--that's a nice looking application. Is the source code available? I couldn't find a link to it anywhere. > does this. You have to convert the pixels to georeferenced coords, try a > simple ratio of the height of you image in pixels to the height in > georeferenced is to the pixel the user clicked on. Okay, thanks. I wasn't sure if it was that simple due to projection issues. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Do not overtax your powers. From lfilak at medinaco.org Tue Jul 2 09:13:37 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 12:13:37 -0400 (EDT) Subject: [mapserver-users] Installation Problem: Black Screen In-Reply-To: Message-ID: What are the permissions and ownership on the /tmp directory? On Tue, 2 Jul 2002, Isai Michel wrote: > Hello: > > I am running a Suse 8.0 linux machine and have installed map server. I > compiled the files and everything seems to work fine except that when I run > the demo test, I get to the template file and their is a big black spot > where the map picture should have been rendered. And yes, I turned the gif > files into png files. Oddly, you can right click the image and choose to > save it but when you try to actually save the map pictures (in PNG format) > the computer says the file does not exist. The /tmp directory (relative to > the top level domain) is also empty. > > Can someone please tell me how to get it to work? I have spent several days > reading all the documentation. Thank you very much. > > Respectfully, > IML > > > _________________________________________________________________ > Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com > From agnieszka_zak at interia.pl Tue Jul 2 09:02:46 2002 From: agnieszka_zak at interia.pl (=?iso-8859-2?Q?Agnieszka_=AFak?=) Date: Tue, 2 Jul 2002 18:02:46 +0200 Subject: [mapserver-users] OGR and getShape Message-ID: <000701c221e1$e82c97f0$0200a8c0@Agnieszka> Hi, I use MapInfo files. On one layer I have different geometry types. I define only one type for example "polygon" in layer. Is any possibilty to find out the type of shape (I have shapeindex)? I get error - MapServer Error in msOGRLayerGetShape(): Requested feature is incompatible with layer type. Maybe method getShape could return -1 when the type is incompatible. Thanks for any help. Regards, Agnieszka ?ak Dymisja! Ministrowi Belce wyczerpal sie potencjal... >>> http://link.interia.pl/f1602 From lfilak at medinaco.org Tue Jul 2 09:23:03 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 12:23:03 -0400 (EDT) Subject: [mapserver-users] mapserver and mod_perl hybrid In-Reply-To: Message-ID: There are users on the list that are using mod_perl & mapscript and I suspect you will hear from them. The only issue that has come up so far is: http://mapserver.gis.umn.edu/wilma/mapserver-users/0205/msg00088.html You will find a quick-fix there that seems to have solved the issue(s) for now. You will also find the reply from Steve in regards to the future plans to resolve any issues for the long-term. Lowell F. On Tue, 2 Jul 2002, Markus Spring wrote: > Hi list, > > I am using mod_perl and mapserver in a hybrid environment: pre- and > postprocessing form data and html as well as coupling mysql data with > mapserver queries. > > Having not dared to switch to mapscript for the generation of the > maps, I do this in a hybrid way by running the mapserver executable > from inside the mod_perl apache server. > > This is a very stable solution which gives me complete freedom over my > html and sql database but maybe it is not the most performant way to > achieve my goals. > > I would like to know if anybody does use mod_perl and mapscript to for > mapserver purposes and if there are any pitfalls to avoid. > > Markus > From shostko at ureach.com Tue Jul 2 11:07:32 2002 From: shostko at ureach.com (Alexander Shostko) Date: Tue, 2 Jul 2002 14:07:32 -0400 Subject: [mapserver-users] Labels Message-ID: <200207021807.OAA29657@www20.ureach.com> Dear MapServer Users! The pointers to the examples with dynamic labeling will be very much appreciated (both CGI and mapscript based examples) Thanks Again Alexander Shostko shostko at ureach.com From lfilak at medinaco.org Tue Jul 2 12:39:21 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 2 Jul 2002 15:39:21 -0400 (EDT) Subject: [mapserver-users] Labels In-Reply-To: <200207021807.OAA29657@www20.ureach.com> Message-ID: You can find at least some of the examples your looking for in the wiki - however it is down for an upgrade I think. Lowell F. On Tue, 2 Jul 2002, Alexander Shostko wrote: > Dear MapServer Users! > > The pointers to the examples with dynamic labeling will be very > much appreciated (both CGI and mapscript based examples) > > > Thanks Again > Alexander Shostko > shostko at ureach.com > From shostko at ureach.com Tue Jul 2 14:09:47 2002 From: shostko at ureach.com (Alexander Shostko) Date: Tue, 2 Jul 2002 17:09:47 -0400 Subject: [mapserver-users] filtering geography Message-ID: <200207022109.RAA11704@www21.ureach.com> Dear Mapserver Users! Thanks in advance for your suggestions. Is there a way to filter certain shapes based on either specified min/max or based on *.dbf file attribute. For example if only continental area of US is wanted, to filter all other states and zones (Puerto Rico etc.) Thanks again for your help Alexander Shostko shostko at ureach.com From jvanulde at NRCan.gc.ca Tue Jul 2 14:26:38 2002 From: jvanulde at NRCan.gc.ca (Van Ulden, Joost) Date: Tue, 2 Jul 2002 17:26:38 -0400 Subject: [mapserver-users] TRUETYPE symbols in 3.6 with PHP and CGI Message-ID: <8AE17DD6AA4FD51191CD0002A5511681074A6E@s5-van1-r1.nrn.nrcan.gc.ca> Hello all, We are trying to get our php/mapscript implementation to render more than 50 classifications of a particular layer. We have a new build that supports the number we need (200) but have been unsuccessful in getting it to work. As a test we are trying to use the same mapfile in a cgi implementation, but now, we don't seem to get any true type symbols showing up at all. At least in the php/mapscript implementation (as long as we did not exceed the 50 class limit!) we got the TRUETYPE symbols to render. Is there a difference in how the fonts and symbols should be authored between the two implementations? If not, does anyone have any suggestions? Has anyone been successful in exceeding the 50 class/65 symbol limits using php/mapscript? Any suggestions would be helpful. Regards, Joost van Ulden Data Integration Specialist GSC-Pacific Division 101-605 Robson St. Vancouver, BC V6B 5J3 604.666.7525 jvanulde at nrcan.gc.ca From hi-ono at mn.xdsl.ne.jp Tue Jul 2 20:54:09 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Wed, 3 Jul 2002 12:54:09 +0900 Subject: [mapserver-users] can' acces MapServer Mailing-List Archive References: <8AE17DD6AA4FD51191CD0002A5511681074A6E@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <000901c22245$49abd140$650202c0@vip> Hello. Today I tried to access to Mailing List Archives(http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users), but failed(HTTP 404). Could you tell me when this archive will re-open? Best Regards. From stepan.kafka at centrum.cz Tue Jul 2 22:18:16 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Wed, 3 Jul 2002 07:18:16 +0200 Subject: [mapserver-users] TRUETYPE symbols in 3.6 with PHP and CGI In-Reply-To: <8AE17DD6AA4FD51191CD0002A5511681074A6E@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <000601c22251$09921860$7e3c2fc3@HSGIS> To increase number of available symbols you have to change the MS_MAXSYMBOLS constant in mapsymbol.h file and recompile. In both CGI and PHP the symbols should be rendered the same way. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Van Ulden, > Joost > Odesl?no: 2. ?ervence 2002 23:27 > Komu: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > P?edm?t: [mapserver-users] TRUETYPE symbols in 3.6 with PHP and CGI > > > Hello all, > > We are trying to get our php/mapscript implementation to render > more than 50 > classifications of a particular layer. We have a new build that supports > the number we need (200) but have been unsuccessful in getting it to work. > As a test we are trying to use the same mapfile in a cgi > implementation, but > now, we don't seem to get any true type symbols showing up at > all. At least > in the php/mapscript implementation (as long as we did not exceed the 50 > class limit!) we got the TRUETYPE symbols to render. > > Is there a difference in how the fonts and symbols should be authored > between the two implementations? If not, does anyone have any > suggestions? > Has anyone been successful in exceeding the 50 class/65 symbol > limits using > php/mapscript? Any suggestions would be helpful. > > Regards, > > Joost van Ulden > Data Integration Specialist > GSC-Pacific Division > 101-605 Robson St. > Vancouver, BC V6B 5J3 > 604.666.7525 > jvanulde at nrcan.gc.ca > > From Zuki.Harahap at conoco.com Tue Jul 2 23:36:24 2002 From: Zuki.Harahap at conoco.com (Harahap, Zuki) Date: Wed, 3 Jul 2002 13:36:24 +0700 Subject: [mapserver-users] Installation Problem: Black Screen Message-ID: <76C676FD48E2E448B68716B68B55ACFD15B944@jaexmb1.conoco.net> I faced this problem last week as first time user. On your demo_init.html file, check the line contain imagepath and imageurl. It should point to correct directory (create if not exist and check the permissions as suggested by Filak below. Zuki -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: Tuesday, July 02, 2002 11:14 PM To: Isai Michel Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Installation Problem: Black Screen What are the permissions and ownership on the /tmp directory? On Tue, 2 Jul 2002, Isai Michel wrote: > Hello: > > I am running a Suse 8.0 linux machine and have installed map server. I > compiled the files and everything seems to work fine except that when I run > the demo test, I get to the template file and their is a big black spot > where the map picture should have been rendered. And yes, I turned the gif > files into png files. Oddly, you can right click the image and choose to > save it but when you try to actually save the map pictures (in PNG format) > the computer says the file does not exist. The /tmp directory (relative to > the top level domain) is also empty. > > Can someone please tell me how to get it to work? I have spent several days > reading all the documentation. Thank you very much. > > Respectfully, > IML From cedric.bernier at thales-is.com Wed Jul 3 03:34:26 2002 From: cedric.bernier at thales-is.com (Cedric BERNIER) Date: Wed, 03 Jul 2002 12:34:26 +0200 Subject: [mapserver-users] proj4 and path configuration References: <006401c22183$13c1de20$6340baca@domain> <3D21A445.8040407@dmsolutions.ca> Message-ID: <3D22D332.511F3514@thales-is.com> Hi all! I've decided to use the --with-proj option in config the re-install mapserv. I have a problem when I start mapserv . my navigator displays an internal error. the /var/log/httpd/error_log says : mapserv:error while loading libraries:libproj.so.0 cannot open shared object file : No such file or directory. certainly a PATH misconfiguration ... this lib is installed in my /usr/local/lib. Is there anything to configure like an environment variable or something like that ? Thanks for your help. Have a nice independance day. CB. -------------- next part -------------- A non-text attachment was scrubbed... Name: cedric.bernier.vcf Type: text/x-vcard Size: 377 bytes Desc: Carte pour Cedric BERNIER URL: From ben at wblogan.net Wed Jul 3 05:25:27 2002 From: ben at wblogan.net (Ben Logan) Date: Wed, 3 Jul 2002 08:25:27 -0400 Subject: [mapserver-users] PHP Mapscript: processquerytemplate() doesn't work? Message-ID: <20020703082527.A7002@wblogan.net> Hi, I keep getting the following message: Fatal error: Call to undefined function: processquerytemplate() in ... when I call processquerytemplate() as a method of my mapObj. I am calling the function after making a query and drawing the query map. If you need to see my script, let me know. I tried searching the list archives, but I get a 404 Not found error when I try to access them. BTW, I'm using Mapserver 3.5. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 Why bother building any more nuclear warheads until we use the ones we have? From mike.elstermann at halle.de Wed Jul 3 05:30:51 2002 From: mike.elstermann at halle.de (Mike Elstermann) Date: Wed, 3 Jul 2002 14:30:51 +0200 Subject: [mapserver-users] errorhandling Message-ID: <011501c2228d$78399d10$111b550a@nt.halle.de> hi MapServers, I have a little problem: When my Users are working in the Query-Mode for identify Feature and they dont hit upon a Feture, then the MapServer gives the Error-Message: "msQueryByPoint(): Search returned no results. No matching record(s) found." How can I change this message, or how can I in this Error-Case to another HTML/ASP-Side. mfg. mikeE. ---> IT-Consult Halle GmbH ---> Bornknechtstra?e 5, 06108 Halle (Saale) ---> Sitz: Rathausstra?e 3 ---> Tel.: +49 345 221 4237, Fax: +49 345 221 4236 ---> Funk: +49 160 71 545 02 ---> mike.elstermann at itc-halle.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Wed Jul 3 06:39:54 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 03 Jul 2002 09:39:54 -0400 Subject: [mapserver-users] proj4 and path configuration Message-ID: <200207031328.g63DSbe10230@yogi.medinaco.net> If you are on Linux simply make sure that /etc/ld.so.conf contains /usr/local/lib (which it probably does) and then run '/sbin/ldconfig' as root then restart the httpd daemon. The proj.4 install usually adds /usr/local/lib to the config file but the new path is not included in the library config until after ldconfig is run. Lowell F. P.S. Anyone out there have an estimate on how long the wiki will be down? The following message was sent by Cedric BERNIER on Wed, 03 Jul 2002 12:34:26 +0200. > Hi all! > > I've decided to use the --with-proj option in config the re-install mapserv. > > I have a problem when I start mapserv . > my navigator displays an internal error. > the /var/log/httpd/error_log says : > mapserv:error while loading libraries:libproj.so.0 cannot open shared object > file : No such file or directory. > > certainly a PATH misconfiguration ... > > this lib is installed in my /usr/local/lib. > > Is there anything to configure like an environment variable or something like > that ? > > Thanks for your help. > > Have a nice independance day. > > > CB. > > > From cedric.bernier at thales-is.com Wed Jul 3 07:12:21 2002 From: cedric.bernier at thales-is.com (Cedric BERNIER) Date: Wed, 03 Jul 2002 16:12:21 +0200 Subject: [mapserver-users] proj4 and path configuration References: <200207031328.g63DSbe10230@yogi.medinaco.net> Message-ID: <3D230645.16F8E638@thales-is.com> thanks it seems good, but now when I run mapserv I have another internal error displayed on my browser : error while loading shared libraries :/usr/libwwwappp.so.0 : undefined symbol: HTZlib_inflate I've re-installed zlib and w3c with --with-zlib option but the error still remains.... Lowell Filak a ?crit : > If you are on Linux simply make sure that /etc/ld.so.conf contains /usr/local/lib (which it probably does) and then run '/sbin/ldconfig' as root then restart the httpd daemon. > The proj.4 install usually adds /usr/local/lib to the config file but the new path is not included in the library config until after ldconfig is run. > Lowell F. > > P.S. Anyone out there have an estimate on how long the wiki will be down? > > The following message was sent by Cedric BERNIER on Wed, 03 Jul 2002 12:34:26 +0200. > > > Hi all! > > > > I've decided to use the --with-proj option in config the re-install mapserv. > > > > I have a problem when I start mapserv . > > my navigator displays an internal error. > > the /var/log/httpd/error_log says : > > mapserv:error while loading libraries:libproj.so.0 cannot open shared object > > file : No such file or directory. > > > > certainly a PATH misconfiguration ... > > > > this lib is installed in my /usr/local/lib. > > > > Is there anything to configure like an environment variable or something like > > that ? > > > > Thanks for your help. > > > > Have a nice independance day. > > > > > > CB. > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: cedric.bernier.vcf Type: text/x-vcard Size: 377 bytes Desc: Carte pour Cedric BERNIER URL: From mschulz at webgis.de Wed Jul 3 07:50:01 2002 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 03 Jul 2002 16:50:01 +0200 Subject: [mapserver-users] errorhandling References: <011501c2228d$78399d10$111b550a@nt.halle.de> Message-ID: <3D230F19.2071655E@webgis.de> Hi Mike, there are two parameters in the web object of the map definition which can be used for this purpose, "Error" and/or "Empty" and url. "Error" is more global and addresses all errors (wow!), "empty" is exactly for queries without results. Cheers, Michael Mike Elstermann schrieb: > hi MapServers, I have a little problem: When my Users are working in > the Query-Mode for identify Feature and they dont hit upon a Feture, > then the MapServer gives the Error-Message: "msQueryByPoint(): Search > returned no results. No matching record(s) found." How can I change > this message, or how can I in this Error-Case to another > HTML/ASP-Side. mfg. mikeE. > ---> IT-Consult Halle GmbH > ---> Bornknechtstra?e 5, 06108 Halle (Saale) > ---> Sitz: Rathausstra?e 3 > ---> Tel.: +49 345 221 4237, Fax: +49 345 221 4236 > ---> Funk: +49 160 71 545 02 > ---> mike.elstermann at itc-halle.de -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From vatsavai at cs.umn.edu Wed Jul 3 08:01:39 2002 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Wed, 3 Jul 2002 10:01:39 -0500 (CDT) Subject: [mapserver-users] can' acces MapServer Mailing-List Archive In-Reply-To: <000901c22245$49abd140$650202c0@vip> Message-ID: <200207031501.KAA04432@pluto.cs.umn.edu> Its up! Thanks Raju ---- [ Charset ISO-8859-1 unsupported, converting... ] > Hello. > > Today I tried to access to Mailing List > Archives(http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users), but > failed(HTTP 404). > > Could you tell me when this archive will re-open? > > Best Regards. > > From rburghol at vt.edu Wed Jul 3 08:04:54 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Wed, 3 Jul 2002 11:04:54 -0400 Subject: [mapserver-users] errorhandling Message-ID: <3D262AF5@zathras> This will do the trick: @$thislayer->queryByPoint($querypoint,MS_SINGLE,-1); the '@' symbol tells php to suppress teh warning. From gadoury at dmsolutions.ca Wed Jul 3 08:24:39 2002 From: gadoury at dmsolutions.ca (Dean Gadoury) Date: Wed, 3 Jul 2002 11:24:39 -0400 Subject: [mapserver-users] WRAP - alignment In-Reply-To: <3D262AF5@zathras> Message-ID: I am using WRAP to create multi-line labels and it works very well. However, I want to center align the label's lines. Is there any way to do that? I have a work-around for now using two seperate layers and labeling one using position uc and the other lc, but I'd like a more elegant solution if possible. From ben at wblogan.net Wed Jul 3 15:11:02 2002 From: ben at wblogan.net (Ben Logan) Date: Wed, 3 Jul 2002 18:11:02 -0400 Subject: [mapserver-users] Can't get PHP to work as a CGI. Message-ID: <20020703181102.A12672@wblogan.net> Hello, I am trying to get PHP to work as a CGI on Redhat 7.1. It works fine as a DSO, but I want to use Mapserver 3.6, so... I followed the directions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI on "Running only PHPMapScript scripts as a CGI," but it isn't working for me--I always get a 404 error. I have defined a VirtualHost section in my httpd.conf file which looks like this: DocumentRoot /var/www/html/ben/mapserv_demo/local Options ExecCGI FollowSymLinks Action pmap-script /cgi/php AddHandler pmap-script .pmap ServerName map.log.cabin ServerAlias map The permissions on the cgi directory are 750 and it's group is apache. When I point my browser to http://map/test.pmap (filesystem url: /var/www/html/ben/mapserv_demo/local/test.pmap), I get a 404 stating that /cgi/php/test.pmap couldn't be found. It appears to me that Apache isn't rewriting the URL or something similar, however I'm not very familiar with Apache configuration. I would really appreciate your help, since I can't use Mapscript without figuring this out (I keep getting random errors). Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 The hearing ear is always found close to the speaking tongue, a custom whereof the memory of man runneth not howsomever to the contrary, nohow. From steveb at bundaberg.qld.gov.au Wed Jul 3 15:37:38 2002 From: steveb at bundaberg.qld.gov.au (Steven Bowden) Date: 04 Jul 2002 08:37:38 +1000 Subject: [mapserver-users] proj4 and path configuration In-Reply-To: <3D22D332.511F3514@thales-is.com> References: <006401c22183$13c1de20$6340baca@domain> <3D21A445.8040407@dmsolutions.ca> <3D22D332.511F3514@thales-is.com> Message-ID: <1025735915.14550.7.camel@homer.bundabergcity.qld.gov.au> Make sure that /usr/local/lib is in your /etc/ld.so.conf directory and then make sure you run ldconfig as root to update all the library paths. This is for a RedHat system so it may vary depending on your system. Steve On Wed, 2002-07-03 at 20:34, Cedric BERNIER wrote: Hi all! I've decided to use the --with-proj option in config the re-install mapserv. I have a problem when I start mapserv . my navigator displays an internal error. the /var/log/httpd/error_log says : mapserv:error while loading libraries:libproj.so.0 cannot open shared object file : No such file or directory. certainly a PATH misconfiguration ... this lib is installed in my /usr/local/lib. Is there anything to configure like an environment variable or something like that ? Thanks for your help. Have a nice independance day. CB. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DOtt at PALATINE.IL.US Wed Jul 3 16:04:33 2002 From: DOtt at PALATINE.IL.US (Dale Ott) Date: Wed, 03 Jul 2002 18:04:33 -0500 Subject: [mapserver-users] Can't get PHP to work as a CGI. Message-ID: Sorry but I will be out of the Office until Monday, July 15, 2002. I will be checking my email periodically while I am gone and as soon as I return and will get back to you then. Sorry for any inconvenience. Thanks! >>> "mapserver-users at lists.gis.umn.edu" 07/03/02 17:11 >>> Hello, I am trying to get PHP to work as a CGI on Redhat 7.1. It works fine as a DSO, but I want to use Mapserver 3.6, so... I followed the directions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI on "Running only PHPMapScript scripts as a CGI," but it isn't working for me--I always get a 404 error. I have defined a VirtualHost section in my httpd.conf file which looks like this: DocumentRoot /var/www/html/ben/mapserv_demo/local Options ExecCGI FollowSymLinks Action pmap-script /cgi/php AddHandler pmap-script .pmap ServerName map.log.cabin ServerAlias map The permissions on the cgi directory are 750 and it's group is apache. When I point my browser to http://map/test.pmap (filesystem url: /var/www/html/ben/mapserv_demo/local/test.pmap), I get a 404 stating that /cgi/php/test.pmap couldn't be found. It appears to me that Apache isn't rewriting the URL or something similar, however I'm not very familiar with Apache configuration. I would really appreciate your help, since I can't use Mapscript without figuring this out (I keep getting random errors). Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 The hearing ear is always found close to the speaking tongue, a custom whereof the memory of man runneth not howsomever to the contrary, nohow. From Timothy.Mackey at ga.gov.au Wed Jul 3 16:46:11 2002 From: Timothy.Mackey at ga.gov.au (Timothy.Mackey at ga.gov.au) Date: Thu, 4 Jul 2002 09:46:11 +1000 Subject: [mapserver-users] mapserver - ECW for Solaris Message-ID: <28DE833A781BD511839600D0B772248F4F5E80@agsomail1.agso.gov.au> Hi all, Does anybody know of an interface between mapserver and ECW that will run on Sun Solaris (unix)? I know of GDAL, but it only supports ECW under windows. Now that ER Mapper has released the SDK for Solaris (http://www.ermapper.com/cgi-bin/products/index2.cfm?prodid=185), does anyone have plans to write an interface to mapserver using this SDK? I'm contemplating getting a contract programmer to write this for me, but wanted to save the trouble if it's already being done. regards, Timothy Mackey Web Applications Manager Geoscience Australia timothy.mackey at ga.gov.au http://www.ga.gov.au From dave at webaugur.com Wed Jul 3 21:32:25 2002 From: dave at webaugur.com (David L Norris) Date: 03 Jul 2002 23:32:25 -0500 Subject: [mapserver-users] Can't get PHP to work as a CGI. In-Reply-To: <20020703181102.A12672@wblogan.net> References: <20020703181102.A12672@wblogan.net> Message-ID: <1025757145.12710.23.camel@Daneel.augur.homeip.net> On Wed, 2002-07-03 at 17:11, Ben Logan wrote: > but it isn't working > for me--I always get a 404 error. Well, it's probably something simple. I setup PHP-Mapscript last weekend with little trouble. Although, I have little clue what I can do with it. ;-) > I have defined a VirtualHost section in my httpd.conf file which looks > like this: > > > DocumentRoot /var/www/html/ben/mapserv_demo/local > > Options ExecCGI FollowSymLinks > > Action pmap-script /cgi/php > AddHandler pmap-script .pmap > ServerName map.log.cabin > ServerAlias map > How about something like this: ServerName map.log.cabin ServerAlias map DocumentRoot /var/www/html/ben/mapserv_demo/local/ ScriptAlias /cgi-bin/ /var/www/html/ben/mapserv_demo/local/cgi/ AddType application/x-httpd-php-cgi .pmap Action application/x-httpd-php-cgi /cgi-bin/php I use a .htaccess file instead of twiddling with the virtual server config. This way I can use the standard .php extension and switch from mod_php to the CGI where required. I also generally keep my cgi-bin out of the web tree and map it with ScriptAlias. > The permissions on the cgi directory are 750 and it's group is apache. > When I point my browser to http://map/test.pmap (filesystem url: > /var/www/html/ben/mapserv_demo/local/test.pmap), I get a 404 stating > that /cgi/php/test.pmap couldn't be found. It appears to me that > Apache isn't rewriting the URL or something similar, however I'm not > very familiar with Apache configuration. Do you get a 404 when you request /cgi/php? If so then make sure php was installed to your cgi directory. Probably either a config problem or a file/directory name problem. -- David Norris Dave's Web - http://www.webaugur.com/dave/ Augury Net - http://augur.homeip.net/ ICQ - 412039 From shpr at libero.it Thu Jul 4 02:44:39 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 4 Jul 2002 11:44:39 +0200 Subject: [mapserver-users] Postgis layer not displayed Message-ID: <01f101c2233f$6b18e2a0$0601a8c0@comai.loc> hi, i have some problem with a postgis layer visualization. LAYER CONNECTIONTYPE postgis NAME Ristoranti METADATA "DESCRIPTION" "Ristoranti" "RESULT_FIELDS" "POI_NAME|Nome" END CONNECTION "user=postgres dbname=market_db host=localhost port=5432" DATA "the_geom from restrnts" TYPE POINT STATUS ON MAXSCALE 30000 CLASS SYMBOL "circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 TEMPLATE blank.html END END i defined this layer in the map file, but it is not displayed on the map. The others layers are a "normal" shape layer and they are displayed correctly. This one is wrong. Why? In pgsql I have defined the restrnts table with the_geom attribute. have I forgotten somethig? PS. Mapserver returns no error. Thanks.. Stefano --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/02 From ben at wblogan.net Thu Jul 4 03:10:57 2002 From: ben at wblogan.net (Ben Logan) Date: Thu, 4 Jul 2002 06:10:57 -0400 Subject: [mapserver-users] Can't get PHP to work as a CGI. In-Reply-To: <1025757145.12710.23.camel@Daneel.augur.homeip.net>; from dave@webaugur.com on Wed, Jul 03, 2002 at 11:32:25PM -0500 References: <20020703181102.A12672@wblogan.net> <1025757145.12710.23.camel@Daneel.augur.homeip.net> Message-ID: <20020704061057.A17812@wblogan.net> On Wed, Jul 03, 2002 at 11:32:25PM -0500, David L Norris wrote: > How about something like this: > > > ServerName map.log.cabin > ServerAlias map > DocumentRoot /var/www/html/ben/mapserv_demo/local/ > > ScriptAlias /cgi-bin/ /var/www/html/ben/mapserv_demo/local/cgi/ > AddType application/x-httpd-php-cgi .pmap > Action application/x-httpd-php-cgi /cgi-bin/php > > > I use a .htaccess file instead of twiddling with the virtual server > config. This way I can use the standard .php extension and switch from > mod_php to the CGI where required. I also generally keep my cgi-bin out > of the web tree and map it with ScriptAlias. Thanks, David. The above did indeed work. > > The permissions on the cgi directory are 750 and it's group is apache. > > When I point my browser to http://map/test.pmap (filesystem url: > > /var/www/html/ben/mapserv_demo/local/test.pmap), I get a 404 stating > > that /cgi/php/test.pmap couldn't be found. It appears to me that > > Apache isn't rewriting the URL or something similar, however I'm not > > very familiar with Apache configuration. > > Do you get a 404 when you request /cgi/php? If so then make sure php > was installed to your cgi directory. Probably either a config problem > or a file/directory name problem. I didn't get a 404, but the binary didn't get executed. Instead, apache would just serve up the binary as-is...it was pretty ugly. I created a simple python cgi script in the cgi directory, and it wouldn't execute it either, so apparently what I had in my httpd.conf just wasn't telling it to use cgi as a cgi bin. It works with your config. Now I can compile Mapserver 3.6.1. The whole reason I'm upgrading from 3.5, is that a call to processquerytemplate in 3.5 always gives an undefined function error. Thanks for your help, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From ben at wblogan.net Thu Jul 4 04:35:01 2002 From: ben at wblogan.net (Ben Logan) Date: Thu, 4 Jul 2002 07:35:01 -0400 Subject: [mapserver-users] Can't figure out queries with Mapscript. Message-ID: <20020704073501.A20289@wblogan.net> Well, I'm sure I'm missing something simple here because I see other people making queries work, but I simply can't figure it out. I am using Mapserver 3.6.1 and PHP 4.0.6 on Redhat 7.1. PHP is running as a CGI (thanks to David Norris for help with that). The only way I can see to make use of the results of a query, is to create a template that contains some PHP code which I can then evaluate. To test things out, I created a simple template called county.php which contains the following lines: (COUNTY and STATE are fields in the dbf file.) In my map file, I have tried adding a TEMPLATE "county.php" line in the CLASS definition I'm querying. (I have also tried using the full path to county.php.) When I call processQueryTemplate(), it returns nothing. So I tried moving the TEMPLATE line into the LAYER definition, but that didn't work either. The layer gets queried, because the county I click is highlited in the query map. Of course, I realize that the data which processQueryTemplate() returns will need to be parsed by PHP in order for the variables to be set, but I can't get the function to return anything at all. I found a message in the list archives that said that TEMPLATE defs needed to be contained inside QUERY defs. Like this QUERY TEMPLATE dummy END I tried that in both the LAYER and CLASS sections, but either way Mapscript gives a fatal error parsing the map file. Am I going about this all wrong? Even if this isn't the way to get the query data, why can't I get templates to work? One other thing: I had METADATA definitions in my LAYER sections that looked like this METADATA title "My Layer Title" END I was using these to define layer titles that Mapscript could use, and it was working with Mapserver 3.5. In 3.6.1, I had to comment all of the defs out, because it wouldn't parse the map file. Can anyone tell me why? I would really appreciate any help with these problems (especially the querying problems). I have included my map file and my php script below. They are both terrible messes because I've been using them to get a feel for Mapscript. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 So many women; so little nerve. ----------php.map----------- # # Start of map file # NAME TEST STATUS ON SIZE 400 400 #EXTENT -80.633987 36.708718 -80.104413 37.123488 EXTENT -81.379427 36.542485 -80.041493 37.366792 UNITS DD #SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET "/var/www/html/ben/mapserv_demo/test/fonts" #PROJECTION # "proj=latlong" # "datum=NAD83" #END # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB #HEADER test_header.html #TEMPLATE county.php #FOOTER test_footer.html LOG "/var/www/html/ben/mapserv_demo/local/test.log" MINSCALE 1 MAXSCALE 2000000 IMAGEPATH "/var/www/html/ben/mapserv_demo/local/tmp/" IMAGEURL "http://mach1/ben/mapserv_demo/local/tmp/" METADATA WMS_TITLE "A test map." WMS_ABSTRACT "This is a test." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://mach1.log.cabin/ben/mapserv_demo/local/test_init.html" WMS_SRS "EPSG:26915" END END # # Start of reference map # #REFERENCE # IMAGE 'graphics/ref.png' # EXTENT -80.633987 36.708718 -80.104413 37.123488 # SIZE 200 200 # STATUS ON # COLOR -1 -1 -1 # OUTLINECOLOR 255 0 0 #END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 255 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # # # Start of layer definitions # LAYER NAME "County" TYPE POLYGON STATUS DEFAULT TEMPLATE /var/www/html/ben/mapserv_demo/local/county.php #DATA "tgr51063cty00" TILEINDEX "/var/www/html/ben/mapserv_demo/local/county.shp" TILEITEM "location" DATA "county" #HEADER "test_header.html" #FOOTER "test_footer.html" #METADATA # title "County Boundaries" #END CLASS NAME "County" OUTLINECOLOR 0 0 0 COLOR 255 255 200 END END #LAYER # NAME "Relief" # TYPE RASTER # STATUS DEFAULT # DATA "floyd.tif" # #PROJECTION # # "proj=utm" # # "ellps=WGS84" # # "zone=17" # # "north" # # "no_defs" # #END #END #LAYER # NAME "lpy" # TYPE POLYGON # STATUS OFF ## CONNECTIONTYPE OGR ## CONNECTION "data/carroll, 0" # DATA "tgr51063lpy" # # #CLASSITEM 'STATES' # CLASS # NAME "LandmarkPoly" # OUTLINECOLOR 0 0 255 # #COLOR 255 255 200 # END #END LAYER NAME "Places" TYPE POLYGON STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/plc00.shp" TILEITEM "location" LABELITEM "NAME" DATA "plc00" LABELMAXSCALE 500000 #METADATA # title "Designated Places" #END CLASS NAME "Places" OUTLINECOLOR 0 255 255 COLOR 240 240 180 LABEL MINDISTANCE 150 POSITION AUTO SIZE 9 TYPE truetype FONT "arial" COLOR 0 0 0 END END END LAYER NAME "majroads" TYPE LINE STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/majroads.shp" TILEITEM "location" DATA "majroads" LABELITEM "RTE_NUM" LABELMAXSCALE 500000 #METADATA # title "Major Roads" #END #CLASSITEM 'STATES' CLASS NAME "Major Roads" OUTLINECOLOR 0 0 0 COLOR 255 0 0 #TEMPLATE "majroads.html" LABEL #ANGLE AUTO #MINFEATURESIZE 40 MINDISTANCE 150 POSITION AUTO #BACKGROUNDCOLOR 255 255 255 #BACKGROUNDSHADOWCOLOR 80 80 80 #OUTLINECOLOR 0 0 0 #BUFFER 2 SIZE 8 TYPE truetype FONT "arial" COLOR 0 0 0 END END END LAYER NAME "minroads" TYPE LINE STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/minroads.shp" TILEITEM "location" DATA "minroads" LABELITEM "NAME" LABELMAXSCALE 200000 #METADATA # title "Minor Roads" #END CLASS NAME "Minor Roads" OUTLINECOLOR 0 0 0 COLOR 0 255 0 #TEMPLATE "minroads.html" LABEL #ANGLE AUTO #MINFEATURESIZE 40 MINDISTANCE 150 POSITION AUTO #BACKGROUNDCOLOR 255 255 255 #BACKGROUNDSHADOWCOLOR 80 80 80 #OUTLINECOLOR 255 255 255 #BUFFER 2 SIZE 8 TYPE truetype FONT "arial" COLOR 0 0 0 END END END QUERYMAP STATUS ON STYLE HILITE COLOR 0 255 255 END END # Map File ----------test.pmap----------- getMetaData("title"); if($title == "") { $title = $layerObj->name; } return $title; } function pixelToGeo($map,$x,$y) { # Convert x,y pixel values to georeferenced coords. Returns a # pointObj. $minx = $map->extent->minx; $miny = $map->extent->miny; $maxx = $map->extent->maxx; $maxy = $map->extent->maxy; $dx = $maxx - $minx; $dy = $maxy - $miny; $width = $map->width; $height = $map->height; $dxpp = (double)$dx/$width; $dypp = (double)$dy/$height; $geox = $minx + $dxpp*$x; $geoy = $maxy - $dypp*$y; $pointObj = ms_newPointObj(); $pointObj->setXY($geox,$geoy); return $pointObj; } $val_zsize = 3; $check_pan = "CHECKED"; $map_path = "/var/www/html/ben/mapserv_demo/local/"; $map_file = "php.map"; $layer_chkbtn_name = "layers"; $map = ms_newMapObj($map_path.$map_file); if(isset($HTTP_POST_VARS["update"]) || (isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"])) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0], $extent_to_set[1], $extent_to_set[2], $extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0], $extent_to_set[1], $extent_to_set[2], $extent_to_set[3]); if($HTTP_POST_VARS["zoom"] == 2) { # Query $zoom_factor = 1; $check_pan = ""; $check_zout = ""; $check_zin = ""; $check_query = "CHECKED"; $res = $map->queryByPoint(pixelToGeo($map,$HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]),MS_SINGLE,0); if($res == MS_SUCCESS) { # Draw a query map $q_image = $map->drawQuery(); # Save the map. $q_url = $q_image->saveWebImage(MS_PNG,1,1,0); $query_res = $map->processQueryTemplate(array()); } } else { $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; $check_query = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; $check_query = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; $check_query = ""; } } $val_zsize = abs($zoom_factor); if(isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !($HTTP_POST_VARS["zoom"] == "2")) { $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); } } $image = $map->draw(); if(is_array($HTTP_POST_VARS[$layer_chkbtn_name])) { # Turn on the necessary layers $layers = $HTTP_POST_VARS[$layer_chkbtn_name]; foreach($layers as $layer) { $l = $map->getLayer($layer); $l->set("status",MS_ON); $l->draw($image); } } $map->embedScalebar($image); $map->drawLabelCache($image); $image_url = $image->saveWebImage(MS_PNG, 1, 1, 0); $extent_to_html = $map->extent->minx." ".$map->extent->miny." ".$map->extent->maxx." ".$map->extent->maxy; # Draw the legend. $legend_image = $map->drawLegend(); $legend_url = $legend_image->saveWebImage(MS_PNG, 1, 1, 0); ?> Testing
>
Legend
Pan >
Zoom In >
Zoom Out >
Query >
Zoom Size
Full Extent
numlayers; $i++) { # Get the layerObj. $l = $map->getLayer($i); # If the layer has Default status, don't display it. if( $l->status == MS_DEFAULT ) { continue; } # Otherwise, we'll print an html form element. $chk = ""; if( $l->status == MS_ON ) { $chk = "checked"; } $layerTitle = getLayerTitle($l); print("$layerTitle
\n"); } ?>
extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy);
printf("width: %d\nheight: %d\n",$map->width,$map->height);
printf("Lat/pixel: %f\n",($map->extent->maxy - $map->extent->miny)/$map->height);
printf("Long/pixel: %f\n",($map->extent->maxx - $map->extent->minx)/$map->width);
print("Buffer: ".$query_res);

?>
From shpr at libero.it Thu Jul 4 04:51:49 2002 From: shpr at libero.it (Stefano Bonnin) Date: Thu, 4 Jul 2002 13:51:49 +0200 Subject: [mapserver-users] Postgis layer not displayed References: <01f101c2233f$6b18e2a0$0601a8c0@comai.loc> Message-ID: <03d101c22351$2e32cec0$0601a8c0@comai.loc> problem solved but .... I don't know why. In the map file there was the following line: DATA "the_geom from restrnts" and I changed it with DATA "the_geom from Restrnts" but in postgres the table name is: restrnts and not Restrnts With this change postgis works (????) ----- Original Message ----- From: "Stefano Bonnin" To: Sent: Thursday, July 04, 2002 11:44 AM Subject: [mapserver-users] Postgis layer not displayed > hi, > > i have some problem with a postgis layer visualization. > > LAYER > CONNECTIONTYPE postgis > NAME Ristoranti > METADATA > "DESCRIPTION" "Ristoranti" > "RESULT_FIELDS" "POI_NAME|Nome" > END > CONNECTION "user=postgres dbname=market_db host=localhost port=5432" > DATA "the_geom from restrnts" > TYPE POINT > STATUS ON > MAXSCALE 30000 > CLASS > SYMBOL "circle" > SIZE 10 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > TEMPLATE blank.html > END > END > > i defined this layer in the map file, but it is not displayed on the map. > The others layers are a "normal" shape layer and they are displayed > correctly. > > This one is wrong. Why? > > In pgsql I have defined the restrnts table with the_geom attribute. > have I forgotten somethig? > > PS. Mapserver returns no error. > > Thanks.. > Stefano --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/02 From cedric.bernier at thales-is.com Thu Jul 4 06:46:24 2002 From: cedric.bernier at thales-is.com (Cedric BERNIER) Date: Thu, 04 Jul 2002 15:46:24 +0200 Subject: [mapserver-users] mapserver and proj4 Message-ID: <3D2451B0.ED93BC5E@thales-is.com> Hi all , thanks for your help, it seems to be ok, for libproj, although, I have another error which concerns the /usr/lib/wwwapp.so.0 file : "undefined symbol : HTZLib_inflate" in /var/log/error_log any idea ?? -------------- next part -------------- A non-text attachment was scrubbed... Name: cedric.bernier.vcf Type: text/x-vcard Size: 377 bytes Desc: Carte pour Cedric BERNIER URL: From marichalperez at yahoo.es Thu Jul 4 07:36:46 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Thu, 4 Jul 2002 15:36:46 +0100 Subject: [mapserver-users] "Join" usage Message-ID: Hi, all. As far as I know, "JOIN" object was included in "QUERY" object in a "map" file. But "QUERY" object seems not to exist any more in MapServer 3.6. Now, Mapserver 3.6 documentation says that "JOIN" is included in "CLASS" object. Is this correct or am I wrong?. I have the next lines in my "map" file and doesn't work at all: . . . LAYER NAME "mylayer" DATA mylayer STATUS DEFAULT TYPE ANNOTATION LABELITEM "text" CLASS COLOR 0 0 0 JOIN NAME "join" TABLE "extern_dbf_file.dbf" FROM "street" TO "street" END LABEL COLOR 0 0 0 SHADOWSIZE -1 -1 . . . Thanks a lot in advance Manuel Marichal P?rez _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From carrolls at unbc.ca Thu Jul 4 17:33:52 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Thu, 4 Jul 2002 17:33:52 -0700 (PDT) Subject: [mapserver-users] tutorial Message-ID: Hi, When is the map server 3.5 tutorial going to be back online. Are there any detailed step by step tutorials available? I have been to http://terrasip.gis.umn.edu/projects/tutorial/ but some links are dead and the source code is not provided. Seamus From DOtt at PALATINE.IL.US Fri Jul 5 09:45:51 2002 From: DOtt at PALATINE.IL.US (Dale Ott) Date: Fri, 05 Jul 2002 11:45:51 -0500 Subject: [mapserver-users] Can't figure out queries with Mapscript. Message-ID: Sorry but I will be out of the Office until Monday, July 15, 2002. I will be checking my email periodically while I am gone and as soon as I return and will get back to you then. Sorry for any inconvenience. Thanks! >>> "mapserver-users at lists.gis.umn.edu" 07/04/02 06:35 >>> Well, I'm sure I'm missing something simple here because I see other people making queries work, but I simply can't figure it out. I am using Mapserver 3.6.1 and PHP 4.0.6 on Redhat 7.1. PHP is running as a CGI (thanks to David Norris for help with that). The only way I can see to make use of the results of a query, is to create a template that contains some PHP code which I can then evaluate. To test things out, I created a simple template called county.php which contains the following lines: (COUNTY and STATE are fields in the dbf file.) In my map file, I have tried adding a TEMPLATE "county.php" line in the CLASS definition I'm querying. (I have also tried using the full path to county.php.) When I call processQueryTemplate(), it returns nothing. So I tried moving the TEMPLATE line into the LAYER definition, but that didn't work either. The layer gets queried, because the county I click is highlited in the query map. Of course, I realize that the data which processQueryTemplate() returns will need to be parsed by PHP in order for the variables to be set, but I can't get the function to return anything at all. I found a message in the list archives that said that TEMPLATE defs needed to be contained inside QUERY defs. Like this QUERY TEMPLATE dummy END I tried that in both the LAYER and CLASS sections, but either way Mapscript gives a fatal error parsing the map file. Am I going about this all wrong? Even if this isn't the way to get the query data, why can't I get templates to work? One other thing: I had METADATA definitions in my LAYER sections that looked like this METADATA title "My Layer Title" END I was using these to define layer titles that Mapscript could use, and it was working with Mapserver 3.5. In 3.6.1, I had to comment all of the defs out, because it wouldn't parse the map file. Can anyone tell me why? I would really appreciate any help with these problems (especially the querying problems). I have included my map file and my php script below. They are both terrible messes because I've been using them to get a feel for Mapscript. Thanks, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 So many women; so little nerve. ----------php.map----------- # # Start of map file # NAME TEST STATUS ON SIZE 400 400 #EXTENT -80.633987 36.708718 -80.104413 37.123488 EXTENT -81.379427 36.542485 -80.041493 37.366792 UNITS DD #SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET "/var/www/html/ben/mapserv_demo/test/fonts" #PROJECTION # "proj=latlong" # "datum=NAD83" #END # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB #HEADER test_header.html #TEMPLATE county.php #FOOTER test_footer.html LOG "/var/www/html/ben/mapserv_demo/local/test.log" MINSCALE 1 MAXSCALE 2000000 IMAGEPATH "/var/www/html/ben/mapserv_demo/local/tmp/" IMAGEURL "http://mach1/ben/mapserv_demo/local/tmp/" METADATA WMS_TITLE "A test map." WMS_ABSTRACT "This is a test." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://mach1.log.cabin/ben/mapserv_demo/local/test_init.html" WMS_SRS "EPSG:26915" END END # # Start of reference map # #REFERENCE # IMAGE 'graphics/ref.png' # EXTENT -80.633987 36.708718 -80.104413 37.123488 # SIZE 200 200 # STATUS ON # COLOR -1 -1 -1 # OUTLINECOLOR 255 0 0 #END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 255 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # # # Start of layer definitions # LAYER NAME "County" TYPE POLYGON STATUS DEFAULT TEMPLATE /var/www/html/ben/mapserv_demo/local/county.php #DATA "tgr51063cty00" TILEINDEX "/var/www/html/ben/mapserv_demo/local/county.shp" TILEITEM "location" DATA "county" #HEADER "test_header.html" #FOOTER "test_footer.html" #METADATA # title "County Boundaries" #END CLASS NAME "County" OUTLINECOLOR 0 0 0 COLOR 255 255 200 END END #LAYER # NAME "Relief" # TYPE RASTER # STATUS DEFAULT # DATA "floyd.tif" # #PROJECTION # # "proj=utm" # # "ellps=WGS84" # # "zone=17" # # "north" # # "no_defs" # #END #END #LAYER # NAME "lpy" # TYPE POLYGON # STATUS OFF ## CONNECTIONTYPE OGR ## CONNECTION "data/carroll, 0" # DATA "tgr51063lpy" # # #CLASSITEM 'STATES' # CLASS # NAME "LandmarkPoly" # OUTLINECOLOR 0 0 255 # #COLOR 255 255 200 # END #END LAYER NAME "Places" TYPE POLYGON STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/plc00.shp" TILEITEM "location" LABELITEM "NAME" DATA "plc00" LABELMAXSCALE 500000 #METADATA # title "Designated Places" #END CLASS NAME "Places" OUTLINECOLOR 0 255 255 COLOR 240 240 180 LABEL MINDISTANCE 150 POSITION AUTO SIZE 9 TYPE truetype FONT "arial" COLOR 0 0 0 END END END LAYER NAME "majroads" TYPE LINE STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/majroads.shp" TILEITEM "location" DATA "majroads" LABELITEM "RTE_NUM" LABELMAXSCALE 500000 #METADATA # title "Major Roads" #END #CLASSITEM 'STATES' CLASS NAME "Major Roads" OUTLINECOLOR 0 0 0 COLOR 255 0 0 #TEMPLATE "majroads.html" LABEL #ANGLE AUTO #MINFEATURESIZE 40 MINDISTANCE 150 POSITION AUTO #BACKGROUNDCOLOR 255 255 255 #BACKGROUNDSHADOWCOLOR 80 80 80 #OUTLINECOLOR 0 0 0 #BUFFER 2 SIZE 8 TYPE truetype FONT "arial" COLOR 0 0 0 END END END LAYER NAME "minroads" TYPE LINE STATUS OFF TILEINDEX "/var/www/html/ben/mapserv_demo/local/minroads.shp" TILEITEM "location" DATA "minroads" LABELITEM "NAME" LABELMAXSCALE 200000 #METADATA # title "Minor Roads" #END CLASS NAME "Minor Roads" OUTLINECOLOR 0 0 0 COLOR 0 255 0 #TEMPLATE "minroads.html" LABEL #ANGLE AUTO #MINFEATURESIZE 40 MINDISTANCE 150 POSITION AUTO #BACKGROUNDCOLOR 255 255 255 #BACKGROUNDSHADOWCOLOR 80 80 80 #OUTLINECOLOR 255 255 255 #BUFFER 2 SIZE 8 TYPE truetype FONT "arial" COLOR 0 0 0 END END END QUERYMAP STATUS ON STYLE HILITE COLOR 0 255 255 END END # Map File ----------test.pmap----------- getMetaData("title"); if($title == "") { $title = $layerObj->name; } return $title; } function pixelToGeo($map,$x,$y) { # Convert x,y pixel values to georeferenced coords. Returns a # pointObj. $minx = $map->extent->minx; $miny = $map->extent->miny; $maxx = $map->extent->maxx; $maxy = $map->extent->maxy; $dx = $maxx - $minx; $dy = $maxy - $miny; $width = $map->width; $height = $map->height; $dxpp = (double)$dx/$width; $dypp = (double)$dy/$height; $geox = $minx + $dxpp*$x; $geoy = $maxy - $dypp*$y; $pointObj = ms_newPointObj(); $pointObj->setXY($geox,$geoy); return $pointObj; } $val_zsize = 3; $check_pan = "CHECKED"; $map_path = "/var/www/html/ben/mapserv_demo/local/"; $map_file = "php.map"; $layer_chkbtn_name = "layers"; $map = ms_newMapObj($map_path.$map_file); if(isset($HTTP_POST_VARS["update"]) || (isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"])) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0], $extent_to_set[1], $extent_to_set[2], $extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0], $extent_to_set[1], $extent_to_set[2], $extent_to_set[3]); if($HTTP_POST_VARS["zoom"] == 2) { # Query $zoom_factor = 1; $check_pan = ""; $check_zout = ""; $check_zin = ""; $check_query = "CHECKED"; $res = $map->queryByPoint(pixelToGeo($map,$HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]),MS_SINGLE,0); if($res == MS_SUCCESS) { # Draw a query map $q_image = $map->drawQuery(); # Save the map. $q_url = $q_image->saveWebImage(MS_PNG,1,1,0); $query_res = $map->processQueryTemplate(array()); } } else { $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; $check_query = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; $check_query = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; $check_query = ""; } } $val_zsize = abs($zoom_factor); if(isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !($HTTP_POST_VARS["zoom"] == "2")) { $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); } } $image = $map->draw(); if(is_array($HTTP_POST_VARS[$layer_chkbtn_name])) { # Turn on the necessary layers $layers = $HTTP_POST_VARS[$layer_chkbtn_name]; foreach($layers as $layer) { $l = $map->getLayer($layer); $l->set("status",MS_ON); $l->draw($image); } } $map->embedScalebar($image); $map->drawLabelCache($image); $image_url = $image->saveWebImage(MS_PNG, 1, 1, 0); $extent_to_html = $map->extent->minx." ".$map->extent->miny." ".$map->extent->maxx." ".$map->extent->maxy; # Draw the legend. $legend_image = $map->drawLegend(); $legend_url = $legend_image->saveWebImage(MS_PNG, 1, 1, 0); ?> Testing
>
Legend
Pan >
Zoom In >
Zoom Out >
Query >
Zoom Size
Full Extent
numlayers; $i++) { # Get the layerObj. $l = $map->getLayer($i); # If the layer has Default status, don't display it. if( $l->status == MS_DEFAULT ) { continue; } # Otherwise, we'll print an html form element. $chk = ""; if( $l->status == MS_ON ) { $chk = "checked"; } $layerTitle = getLayerTitle($l); print("$layerTitle
\n"); } ?>
extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy);
printf("width: %d\nheight: %d\n",$map->width,$map->height);
printf("Lat/pixel: %f\n",($map->extent->maxy - $map->extent->miny)/$map->height);
printf("Long/pixel: %f\n",($map->extent->maxx - $map->extent->minx)/$map->width);
print("Buffer: ".$query_res);

?>
From DOtt at PALATINE.IL.US Fri Jul 5 09:43:35 2002 From: DOtt at PALATINE.IL.US (Dale Ott) Date: Fri, 05 Jul 2002 11:43:35 -0500 Subject: [mapserver-users] Can't get PHP to work as a CGI. Message-ID: Sorry but I will be out of the Office until Monday, July 15, 2002. I will be checking my email periodically while I am gone and as soon as I return and will get back to you then. Sorry for any inconvenience. Thanks! >>> "mapserver-users at lists.gis.umn.edu" 07/04/02 05:10 >>> On Wed, Jul 03, 2002 at 11:32:25PM -0500, David L Norris wrote: > How about something like this: > > > ServerName map.log.cabin > ServerAlias map > DocumentRoot /var/www/html/ben/mapserv_demo/local/ > > ScriptAlias /cgi-bin/ /var/www/html/ben/mapserv_demo/local/cgi/ > AddType application/x-httpd-php-cgi .pmap > Action application/x-httpd-php-cgi /cgi-bin/php > > > I use a .htaccess file instead of twiddling with the virtual server > config. This way I can use the standard .php extension and switch from > mod_php to the CGI where required. I also generally keep my cgi-bin out > of the web tree and map it with ScriptAlias. Thanks, David. The above did indeed work. > > The permissions on the cgi directory are 750 and it's group is apache. > > When I point my browser to http://map/test.pmap (filesystem url: > > /var/www/html/ben/mapserv_demo/local/test.pmap), I get a 404 stating > > that /cgi/php/test.pmap couldn't be found. It appears to me that > > Apache isn't rewriting the URL or something similar, however I'm not > > very familiar with Apache configuration. > > Do you get a 404 when you request /cgi/php? If so then make sure php > was installed to your cgi directory. Probably either a config problem > or a file/directory name problem. I didn't get a 404, but the binary didn't get executed. Instead, apache would just serve up the binary as-is...it was pretty ugly. I created a simple python cgi script in the cgi directory, and it wouldn't execute it either, so apparently what I had in my httpd.conf just wasn't telling it to use cgi as a cgi bin. It works with your config. Now I can compile Mapserver 3.6.1. The whole reason I'm upgrading from 3.5, is that a call to processquerytemplate in 3.5 always gives an undefined function error. Thanks for your help, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 From morissette at dmsolutions.ca Fri Jul 5 11:24:38 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 05 Jul 2002 14:24:38 -0400 Subject: [mapserver-users] proj4 and path configuration References: <200207031328.g63DSbe10230@yogi.medinaco.net> <3D230645.16F8E638@thales-is.com> Message-ID: <3D25E466.2A245D1A@dmsolutions.ca> Cedric BERNIER wrote: > > but now when I run mapserv I have another internal error displayed on my browser : error while loading shared libraries :/usr/libwwwappp.so.0 : undefined symbol: HTZlib_inflate > > I've re-installed zlib and w3c with --with-zlib option but the error still remains.... > You may get this if you have 2 copies of w3c-libwww on your system: one under /usr/lib that came as an RPM (or with the OS), and one that you recompiled yourself and that got installed /usr/local/lib ... the solution is to remove the copy under /usr/lib. If your old wc3-libwww came as a RPM, then use 'rpm -e ...' to remove it to make sure that you delete all files related to the RPM version of the library. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From dblasby at refractions.net Fri Jul 5 14:31:27 2002 From: dblasby at refractions.net (Dave Blasby) Date: Fri, 05 Jul 2002 14:31:27 -0700 Subject: [mapserver-users] New mappostgis.c commited References: <01f101c2233f$6b18e2a0$0601a8c0@comai.loc> <03d101c22351$2e32cec0$0601a8c0@comai.loc> Message-ID: <3D26102F.81BF1110@refractions.net> I made a few minor changes to mappostgis.c. (1) Better error message reporting. (2) bug fix: you can now specify negative numbers in the 'using SRID=#' portion of a DATA statement Two of the most common places where people have problems is (1) connecting to postgresql (2) getting the correct DATA statement. Below are the two error message it will give when you make a mistake! CONNECT ------- Couldnt make connection to DB with connect string '...'. Error reported was '...'. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo DATA ---- More Help: Error parsing POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' NOTE: for (2) 'using unique' and 'SRID=' are optional, but its highly recommended that you use them!!! The most common problem with (1) is incorrectly uploading your data. There must be an entry in the geometry_columns table. This will be automatically done if you used the shp2pgsql program or created your geometry column with the AddGeometryColumn() postgis function. If you are using the (2) method, you've probably made a typo. Example: 'the_geom from (select the_geom,oid from mytable) as foo using unique oid using SRID=76' This is very much like the (1) example. The subquery ('select the_geom,oid from mytable') will be executed, and mapserver will use 'oid' (a postgresql system column) for uniquely specifying a geometry (for mapserver queries). The geometry (the_geom) must have a SRID of 76. Example: 'roads from (select table1.roads,table1.rd_segment_id,table2.rd_name,table2.rd_type from table1,table2 where table1.rd_segment_id=table2.rd_segment_id) as foo using unique rd_segment_id using SRID=89' This is a more complex sub-query involving joining two tables. The resulting geometry (column 'roads') has SRID=89, and mapserver will use rd_segment_id to uniquely identify a geometry. The attributes rd_type and rd_name are useable by other parts of mapserver. NOTE: for the (2) case, the ' as foo ' is requred. The 'using unique ' and 'using SRID=' are case sensitive. NOTE: 'using unique ' would normally be the system column 'oid', but for views and joins you'll almost certainly want to use a real column in one of your tables. NOTE: you'll want to build a spatial index on your geometric data: CREATE INDEX ON USING GIST ( GIST_GEOMETRY_OPS ) You'll also want to put an index on either oid or whatever you used for your unique column: CREATE INDEX ON
() From carrolls at unbc.ca Fri Jul 5 18:29:59 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 5 Jul 2002 18:29:59 -0700 (PDT) Subject: [mapserver-users] antialias Message-ID: When a try to use antialias in the map file I recieve the error "getSymbol(): Symbol definition error. (FONT):(23)". Any suggestions on what the problem might be? Below is its use in the map file: LEGEND STATUS ON LABEL TYPE TRUETYPE ANTIALIAS FONT arial COLOR 0 0 0 SIZE 12 END END Seamus From woodbri at swoodbridge.com Fri Jul 5 19:13:22 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 5 Jul 2002 22:13:22 -0400 Subject: [mapserver-users] antialias In-Reply-To: Message-ID: <3D261A02.25558.C78A621@localhost> Seamus, If you are using Mapserver 3.5+ then you must use ANTIALIAS TRUE -Steve On 5 Jul 2002 at 18:29, Seamus Thomas Carroll wrote: > When a try to use antialias in the map file I recieve the error > "getSymbol(): Symbol definition error. (FONT):(23)". Any suggestions on > what the problem might be? Below is its use in the map file: > > LEGEND > STATUS ON > LABEL > TYPE TRUETYPE > ANTIALIAS > FONT arial > COLOR 0 0 0 > SIZE 12 > END > END > > Seamus > > From rich at GreenwoodMap.com Fri Jul 5 20:58:05 2002 From: rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 05 Jul 2002 21:58:05 -0600 Subject: [mapserver-users] antialias Message-ID: <5.1.0.14.0.20020705215627.00a9fe98@mail.greenwoodmap.com> I was trying to send this directly to Seamus but the unbc mail server bounced it so I'll try via the list... Set up a font.list file as described in the documentation and be VERY careful of case e.g if you define arial arial.TTF but the font is stored as arial.ttf it will fail. Rich At 08:30 PM 7/5/2002 -0700, you wrote: >Thanks, >Problem solved. >I now have an error with the arial font. Do you know what package I have >installed wrong? I am using a linux box. > >Seamus > >On Fri, 5 Jul 2002, Richard Greenwood wrote: > > > Starting with MS 3.5, you have to use 'TRUE', so use ANTIALIAS TRUE. > > > > Rich > > > > At 06:29 PM 7/5/2002 -0700, you wrote: > > >When a try to use antialias in the map file I recieve the error > > >"getSymbol(): Symbol definition error. (FONT):(23)". Any suggestions on > > >what the problem might be? Below is its use in the map file: > > > > > > LEGEND > > > STATUS ON > > > LABEL > > > TYPE TRUETYPE > > > ANTIALIAS > > > FONT arial > > > COLOR 0 0 0 > > > SIZE 12 > > > END > > > END > > > > > >Seamus > > > > Richard W. Greenwood, PLS > > (307) 733-0203 > > Rich at GreenwoodMap.com > > www.GreenwoodMap.com > > Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From carrolls at unbc.ca Fri Jul 5 21:23:57 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 5 Jul 2002 21:23:57 -0700 (PDT) Subject: [mapserver-users] antialias In-Reply-To: <3D261A02.25558.C78A621@localhost> Message-ID: Thanks problem solved. Do you know how I obtain fonts so I can point my fontset path to the correct direction? Seamus On Fri, 5 Jul 2002 woodbri at swoodbridge.com wrote: > Seamus, > > If you are using Mapserver 3.5+ then you must use > > ANTIALIAS TRUE > > -Steve > > On 5 Jul 2002 at 18:29, Seamus Thomas Carroll wrote: > > > When a try to use antialias in the map file I recieve the error > > "getSymbol(): Symbol definition error. (FONT):(23)". Any suggestions on > > what the problem might be? Below is its use in the map file: > > > > LEGEND > > STATUS ON > > LABEL > > TYPE TRUETYPE > > ANTIALIAS > > FONT arial > > COLOR 0 0 0 > > SIZE 12 > > END > > END > > > > Seamus > > > > > > From carrolls at unbc.ca Sat Jul 6 01:46:18 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Sat, 6 Jul 2002 01:46:18 -0700 (PDT) Subject: [mapserver-users] truetype Message-ID: Hi, Where does one find the truetype files? Are any available for free? Seamus From woodbri at swoodbridge.com Sat Jul 6 05:27:41 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sat, 6 Jul 2002 08:27:41 -0400 Subject: [mapserver-users] antialias In-Reply-To: References: <3D261A02.25558.C78A621@localhost> Message-ID: <3D26A9FD.16366.EAB1236@localhost> On 5 Jul 2002 at 21:23, Seamus Thomas Carroll wrote: > Thanks problem solved. > > Do you know how I obtain fonts so I can point my fontset path to the > correct direction? Try http://www.google.com/search?hl=en&ie=ISO-8859- 1&q=%2Bttf+%2Bdownload or copy the fonts from your Windows box (, but that might be in violation of your EULA.) -Steve From klehr1 at tampabay.rr.com Sun Jul 7 08:01:03 2002 From: klehr1 at tampabay.rr.com (S&K Lehr) Date: Sun, 7 Jul 2002 11:01:03 -0400 Subject: [mapserver-users] Labeling Rules -- spatial priority Message-ID: <001a01c225c7$1eef15e0$0400a8c0@MAINFRAME> Mapusers: Good morning. I've got some data exported from InfoCad which is point information with text and an angle (specifically its a parcel dimension layer). The data seems to be triplicated (three records of the same data--though sometime more or less), unfortunately the data is not directly on top of one another but slightly off set. The data in the .dbf file is not sequential, so its not realistic to just null out the text label in sequential passess of the data. Does mapserver have anyway to use a first come first label, so that it wont look triple typed. i.e. if a label already occupies the space, it will only get one label? Thank you for any suggestions. Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Jul 7 09:20:30 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sun, 7 Jul 2002 12:20:30 -0400 Subject: [mapserver-users] Labeling Rules -- spatial priority In-Reply-To: <001a01c225c7$1eef15e0$0400a8c0@MAINFRAME> Message-ID: <3D28320E.20011.14A690E9@localhost> On 7 Jul 2002 at 11:01, S&K Lehr wrote: > Good morning. I've got somedata exported from InfoCad which is > point information with text and an angle (specifically its a parcel > dimension layer). The data seems to be triplicated (three records of > the same data--though sometime moreor less), unfortunately the data > is not directly ontop of one another but slightly off set. > > The data in the .dbf file is notsequential, so its not realistic to > just null out the text label in sequential passess of the data. There is a shpsort utility floating about that might let you sort the data based on an attribute, but I don't remember where I saw it. > Does mapserver have anyway to use a first come first label, so that > it wont look triple typed. i.e. if a label already occupies the > space, it will only get one label? Yes, if you set MINDISTANCE in your LABEL definition then it will not place another label with the same name within distance of the first one placed. -Steve From hi-ono at mn.xdsl.ne.jp Sun Jul 7 10:48:23 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Mon, 8 Jul 2002 02:48:23 +0900 Subject: [mapserver-users] Display contour map on Mapsever References: <001a01c225c7$1eef15e0$0400a8c0@MAINFRAME> Message-ID: <003201c225de$7d5ab820$650202c0@vip> Hello. I'd like to know there's any method or examples of displaying contour map creating from point data or grid data on Mapserver istself or with other software? For example using mapserver for emvironmental analysis, I think displaying contour maps of DEM, precipitation etc. wil be useful. Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Sun Jul 7 11:39:49 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sun, 07 Jul 2002 14:39:49 -0400 Subject: [mapserver-users] Re: MapServer source/architecture documentation (was: [mitab] Using MITAB to write SVG) References: <9EEA6C597101D31194730000F8EF9D210357A072@SNEX01> <003301c22596$a0b08400$700201c0@MAPQUEST.local> Message-ID: <3D288AF5.80B187FF@dmsolutions.ca> Paul Selormey wrote: > > Hello Daniel, > As a developer on the MapServer, do you have any documentation on > the architecture or the sources in general? > > I always try to grep here and there and before I get deep, another project > takes the time. > Hi Paul, I don't think there is much except the comments in the code, and the user documentation which can tell you a lot about the way things work internally. However, one of our developers used Doxygen a few months ago to automagically generate a set of mapserver source code documentation (based on MapServer 3.5 source). The result is quite impressive, and even includes nice little class diagrams. I've placed a copy online at: http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-dox/ I'm sure other MapServer developers would be interested by the dox above, or may have other documents to contribute, so I'll CC: this to the mapserver-users list. (I apologize for the crossposting to those who read both lists) Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From gruecker at zebris-geoconsult.de Mon Jul 8 01:27:51 2002 From: gruecker at zebris-geoconsult.de (Gernot Ruecker zebris-geoconsult) Date: Mon, 8 Jul 2002 10:27:51 +0200 Subject: [mapserver-users] unsubscribe Message-ID: <003d01c22659$8fb67740$0500a8c0@gernot> ZEBRIS Geoinformationssysteme und Consulting Lipowskystr. 26 D - 81373 M?nchen Tel.: 0049 - 89 - 58 99 88 86 Fax: 0049 - 89 - 58 95 86 53 Internet: www.zebris.com ****************************************** Besuchen Sie uns auf der AGIT 2002 in Salzburg 3.07.-05.07.2002, Stand 22 ****************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.bernier at thales-is.com Mon Jul 8 01:45:50 2002 From: cedric.bernier at thales-is.com (Cedric BERNIER) Date: Mon, 08 Jul 2002 10:45:50 +0200 Subject: [mapserver-users] proj4 and path configuration References: <200207031328.g63DSbe10230@yogi.medinaco.net> <3D230645.16F8E638@thales-is.com> <3D25E466.2A245D1A@dmsolutions.ca> Message-ID: <3D29513E.87D035F@thales-is.com> you're right I've remove the old one , and now it works ! thanks Daniel Morissette a ?crit : > Cedric BERNIER wrote: > > > > but now when I run mapserv I have another internal error displayed on my browser : error while loading shared libraries :/usr/libwwwappp.so.0 : undefined symbol: HTZlib_inflate > > > > I've re-installed zlib and w3c with --with-zlib option but the error still remains.... > > > > You may get this if you have 2 copies of w3c-libwww on your system: one > under /usr/lib that came as an RPM (or with the OS), and one that you > recompiled yourself and that got installed /usr/local/lib ... the > solution is to remove the copy under /usr/lib. If your old wc3-libwww > came as a RPM, then use 'rpm -e ...' to remove it to make sure that you > delete all files related to the RPM version of the library. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: cedric.bernier.vcf Type: text/x-vcard Size: 377 bytes Desc: Carte pour Cedric BERNIER URL: From nicolasb at maich.gr Mon Jul 8 04:21:30 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Mon, 08 Jul 2002 14:21:30 +0300 Subject: [mapserver-users] MS and Mingw References: <200207031328.g63DSbe10230@yogi.medinaco.net> <3D230645.16F8E638@thales-is.com> <3D25E466.2A245D1A@dmsolutions.ca> <3D29513E.87D035F@thales-is.com> Message-ID: <3D2975BA.7080308@maich.gr> Hi, Has anyone successfully compiled mapserver with msys/mingw? Would appreciate help. sincerely, nicolas boretos From Chip.Hankley at GASAI.Com Mon Jul 8 06:57:59 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 8 Jul 2002 08:57:59 -0500 Subject: [mapserver-users] Can't figure out queries with Mapscript. Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBD2@postoffice.GASAI.Com> Ben... There's probably a number of ways to do this, but here's how I do it (see below). There's a Mapfile component, and a mapscript component. FWIW, this is essentially exactly the way it's done in the GMAP demo. Cheers! Chip ---------------------------------------------------------------- ...in the mapfile, this would be the layer definition for the layer I want to query: LAYER NAME "DePere_Parcels" METADATA "DESCRIPTION" "PARCEL_INFO" "RESULT_FIELDS" "PARCEL_NUM AREA" # These are the two fields (PARCEL_NUM and # AREA) that I want to return END DATA parcels STATUS DEFAULT #minscale 5000 TYPE polygon CLASS TEMPLATE "ttt_query.html" Name Parcels END # CLASS END # LAYER ... in the PHP code, I have a function that handles the query... function query_map($map, $real_pts) { //$map is the Map Object //$real_pts is an array with two members: // $real_pts[0] x-coordinate in real world terms of the user click // $real_pts[1] y-coordinate in real world terms of the user click // //NOTE that this function is set up to query only ONE layer, and return // the first HIT from a query... so it wouldn't handle multiple layers // or return results from numerous objects, although it could easily be // modified to do both. $click_pt = ms_newPointObj(); $click_pt->setXY($real_pts[0], $real_pts[1]); @$map->queryByPoint($click_pt, MS_SINGLE, -1); $Layer = $map->GetLayerByName("DePere_Parcels"); $count_results = $Layer->getNumResults(); if ($count_results > 0) { $Layer->open($map->shapepath); $selFields = explode(" ", $Layer->getMetaData("RESULT_FIELDS")); //Take the first record returned, you could modify this to // loop through a bunch of returned records $oRes = $Layer->getResult(0); $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); //Save the bounding box to an array $aResBoundBox = array($oShape->bounds->minx, $oShape->bounds->miny, $oShape->bounds->maxx, $oShape->bounds->maxy); //Retrieve the PIN into a variable $PIN = $oShape->values[PARCEL_NUM]; $prcAREA = $oShape->values[AREA]; $oShape->free(); $query_result = array($PIN, $prcAREA); $return $query_result; } From Chip.Hankley at GASAI.Com Mon Jul 8 07:06:22 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 8 Jul 2002 09:06:22 -0500 Subject: [mapserver-users] truetype Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBD3@postoffice.GASAI.Com> I personally have used http://www.fontfreak.com/ a number of times. There are a number of free, no strings attached fonts here. And some pretty fancy ones to boot. Chip -----Original Message----- From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca] Sent: Saturday, July 06, 2002 3:46 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] truetype Hi, Where does one find the truetype files? Are any available for free? Seamus From thesquid at FriedBaloney.com Mon Jul 8 08:07:51 2002 From: thesquid at FriedBaloney.com (Dana Coe) Date: Mon, 08 Jul 2002 11:07:51 -0400 Subject: [mapserver-users] MapScript compilation errors Message-ID: Hello, I've been able to get Mapserver to make and run on FreeBSD 4.5, but when I attempt to include MapScript support, I get the following error: ./configure --enable-runpath --with-proj --with-php=/usr/local/src/php-4.2.1/ [configure output] make cd mapscript/php3; make; cd ../.. cc undef -I. -I.. -DPIC -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_PDF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/usr/local/src/mapserver-3.6.1 -I/usr/local/include -I/usr/local/src/php-4.2.1/ -I/usr/local/src/php-4.2.1//dl -I/usr/local/src/php-4.2.1//main -I/usr/local/src/php-4.2.1//Zend -I/usr/local/src/php-4.2.1//include -I/usr/local/src/php-4.2.1//TSRM -c php_mapscript_util.c cc: undef: No such file or directory php_mapscript_util.c: In function `_phpms_object_init': php_mapscript_util.c:681: warning: unused variable `tsrm_ls' *** Error code 1 Stop in /usr/local/src/mapserver-3.6.1/mapscript/php3. *** Error code 1 Stop in /usr/local/src/mapserver-3.6.1. My php installation seems to have worked, but mapscript won't bite. Is there something I forgot to include? Thanks, Dana L Coe From assefa at dmsolutions.ca Mon Jul 8 08:44:06 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 08 Jul 2002 11:44:06 -0400 Subject: [mapserver-users] Re: Question about ECW files References: <5ACEEE96F4F9D41190790002A528B51E027404DD@s0-ott-x11.nrn.nrcan.gc.ca> Message-ID: <3D29B346.E6C4F306@dmsolutions.ca> Hi There, I have put on the download site a mapserver/php-mapscripit with ECW support. Let me know how it goes. http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.2-dev-win32-php4.2.1-libwww-ecw.zip Later, "Tweedy, Scott" wrote: > I guess that means that there isn't one out there already? If you could > complile one that would be great. Do you have a set of instructions > anywhere for adding image support like that? I'd hate to have to ask for > something like that if MapServer keeps upgrading it's software. > > Thanks, > st > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Tuesday, July 02, 2002 2:45 PM > To: Tweedy, Scott > Subject: Re: Question about ECW files > > Hi There, > > I will compile one probably tomorrow and send it to you. > > Later, > > "Tweedy, Scott" wrote: > > > A while ago you created a mapserv.exe file that had support for rendering > > ECW images. Do you know of a copy of MapServer 3.6 that would work with > > MapLab that has support for ECW images? > > > > Thanks in advance, > > st > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From rjames57 at yahoo.com Mon Jul 8 08:47:42 2002 From: rjames57 at yahoo.com (randy james) Date: Mon, 8 Jul 2002 08:47:42 -0700 (PDT) Subject: [mapserver-users] Display contour map on Mapsever In-Reply-To: <003201c225de$7d5ab820$650202c0@vip> Message-ID: <20020708154742.61554.qmail@web12505.mail.yahoo.com> Hi I've used GRASS with great success, for generating contours from an DEM. Check out. http://www3.baylor.edu/grass/index2.html Cheers --- Hisaji ONO wrote: > Hello. > > I'd like to know there's any method or examples of > displaying contour map > creating from point data or grid data on Mapserver > istself or with other > software? > > For example using mapserver for emvironmental > analysis, I think displaying > contour maps of DEM, precipitation etc. wil be > useful. > > Best regards. > > __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com From hi-ono at mn.xdsl.ne.jp Mon Jul 8 09:06:33 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Tue, 9 Jul 2002 01:06:33 +0900 Subject: [mapserver-users] Display contour map on Mapsever References: <20020708154742.61554.qmail@web12505.mail.yahoo.com> Message-ID: <004501c22699$6dedada0$650202c0@vip> Thank you for your response, Mr. James. Could you tell me any idea of dynamically generating countour mas when some user's points with attribute data are put. Regards. ----- Original Message ----- From: "randy james" To: "Hisaji ONO" Cc: Sent: Tuesday, July 09, 2002 12:47 AM Subject: Re: [mapserver-users] Display contour map on Mapsever > Hi > > I've used GRASS with great success, for generating > contours from an DEM. Check out. > > http://www3.baylor.edu/grass/index2.html > From dylan_marks at hotmail.com Mon Jul 8 08:59:28 2002 From: dylan_marks at hotmail.com (Dylan Marks) Date: Mon, 8 Jul 2002 11:59:28 -0400 Subject: [mapserver-users] MapServer/Flash integration help Message-ID: I'm not sure if this is the best place to post such a request, but I'm a Flash MX developer looking for some paid contract help in integrating offline MapInfo files into an online site built in Flash. I could probably figure it out myself, but I'm on a bit of a time limit and was hoping to tap into some pre-existing wisdom. I know that that there are plans in the works to have swf output support in the new version of MapServer, which sounds very exciting. I don't necessarily need vector output though. Flash MX (the newest version of Flash) supports dynamic loading of jpegs, which should be fine. (although yes, I know, jpegs and maps don't mix all that well). What I need is the ability to interact with point data in a dynamically loaded map. I'm guessing MapServer will need to pull this from MapInfo TAB files. I already have a basic prototype flash front-end working but would like some help with the MapServer integration. Instead of javascript I'd be passing variables in/out of a swf, interacting with both coordinates in Mapserver and point data in MySql. My front-end prototype uses coordinate 'buttons' of buildings that, when clicked, pull data from a MySql database. I can take care of the MySql data, as long as I can link up point coordinates from MapServer with database IDs. I'm very excited about this project, and at some point would be happy to go open-source with the Flash front-end. I think there is a lot of potential in using the newest version of Flash in online mapping applications. If anyone is interested in helping (paid of course) or giving some advice, I'd greatly appreciate it. Thanks, Dylan Marks dylan_marks at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at yahoo.com Mon Jul 8 09:11:32 2002 From: rjames57 at yahoo.com (randy james) Date: Mon, 8 Jul 2002 09:11:32 -0700 (PDT) Subject: [mapserver-users] Display contour map on Mapsever In-Reply-To: <004501c22699$6dedada0$650202c0@vip> Message-ID: <20020708161132.65923.qmail@web12505.mail.yahoo.com> Hi I imagine it is possible using mapscript but i'm not up to speed with it yet. If you can execute commands from input by the user with mapscript it would work. The GRASS module, r.contour would be able to generate contours, but you would need the help of someone who can write mapscript, to be able to do it dynamically. I hope to be able to do it also someday when i have time. As i would like the users to use the system to model ecosystems. Randy --- Hisaji ONO wrote: > Thank you for your response, Mr. James. > > Could you tell me any idea of dynamically generating > countour mas when some > user's points with attribute data are put. > > Regards. > > ----- Original Message ----- > From: "randy james" > To: "Hisaji ONO" > Cc: > Sent: Tuesday, July 09, 2002 12:47 AM > Subject: Re: [mapserver-users] Display contour map > on Mapsever > > > > Hi > > > > I've used GRASS with great success, for generating > > contours from an DEM. Check out. > > > > http://www3.baylor.edu/grass/index2.html > > > > __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com From steve.lime at dnr.state.mn.us Mon Jul 8 10:15:56 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Jul 2002 12:15:56 -0500 Subject: [mapserver-users] Labeling Rules -- spatial priority Message-ID: Sortshp is included in the MapServer distribution... Steve >>> 07/07/02 11:20AM >>> On 7 Jul 2002 at 11:01, S&K Lehr wrote: > Good morning. I've got somedata exported from InfoCad which is > point information with text and an angle (specifically its a parcel > dimension layer). The data seems to be triplicated (three records of > the same data--though sometime moreor less), unfortunately the data > is not directly ontop of one another but slightly off set. > > The data in the .dbf file is notsequential, so its not realistic to > just null out the text label in sequential passess of the data. There is a shpsort utility floating about that might let you sort the data based on an attribute, but I don't remember where I saw it. > Does mapserver have anyway to use a first come first label, so that > it wont look triple typed. i.e. if a label already occupies the > space, it will only get one label? Yes, if you set MINDISTANCE in your LABEL definition then it will not place another label with the same name within distance of the first one placed. -Steve From isaimichel at hotmail.com Mon Jul 8 10:24:03 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Mon, 08 Jul 2002 10:24:03 -0700 Subject: [mapserver-users] MapServer Compilation with GDAL Problems Message-ID: Recently, I compiled MapServer (with just the default options), created my own test map files and ran the program. An image was rendered however the EXTENT options inverted the direction of the image. I have the associated .tfw file and need to have mapserv automatically rotate the tiff files for me. However I read that you need GDAL libraries for that. So I uninstalled mapserver, downloaded GDAL, installed that, and prepared to re-compile MapServer. I correctly gave the gdal-config directory and ran the program configure. That worked fine, but when I ran the MAKE program it prints out many lines (mapogr.o undefined references) and finally ends with: make: *** [shp2img] Error 1 and exits without creating the mapserv executable. Can someone please tell me how to correctly compile map serv without getting this error so that I can automatically rotate the tiff images. Thank you and have a nice day. Respectfully: IML P.D.0: I run Suse Linux 8.0 with MapServer 3.6 _________________________________________________________________ MSN. M?s ?til cada D?a. http://www.msn.es/intmap/ From steve.lime at dnr.state.mn.us Mon Jul 8 10:37:50 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Jul 2002 12:37:50 -0500 Subject: [mapserver-users] Display contour map on Mapsever Message-ID: You'd need to use some 3rd party application (ANUDEM, Grass or whatever) to create dynamic data. MapServer does not have that capability at the moment. It would be possible to use MapScript, or possibly even the CGI version to reference data created on the fly. Steve >>> "Hisaji ONO" 07/08/02 11:06AM >>> Thank you for your response, Mr. James. Could you tell me any idea of dynamically generating countour mas when some user's points with attribute data are put. Regards. ----- Original Message ----- From: "randy james" To: "Hisaji ONO" Cc: Sent: Tuesday, July 09, 2002 12:47 AM Subject: Re: [mapserver-users] Display contour map on Mapsever > Hi > > I've used GRASS with great success, for generating > contours from an DEM. Check out. > > http://www3.baylor.edu/grass/index2.html > From steve.lime at dnr.state.mn.us Mon Jul 8 10:39:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 08 Jul 2002 12:39:30 -0500 Subject: [mapserver-users] "Join" usage Message-ID: JOINs are NOT supported in 3.5/.6 but should be functional again in 3.7. Sorry for the inconvienence... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Manuel Marichal P?rez 07/04/02 09:36AM >>> Hi, all. As far as I know, "JOIN" object was included in "QUERY" object in a "map" file. But "QUERY" object seems not to exist any more in MapServer 3.6. Now, Mapserver 3.6 documentation says that "JOIN" is included in "CLASS" object. Is this correct or am I wrong?. I have the next lines in my "map" file and doesn't work at all: . . . LAYER NAME "mylayer" DATA mylayer STATUS DEFAULT TYPE ANNOTATION LABELITEM "text" CLASS COLOR 0 0 0 JOIN NAME "join" TABLE "extern_dbf_file.dbf" FROM "street" TO "street" END LABEL COLOR 0 0 0 SHADOWSIZE -1 -1 . . . Thanks a lot in advance Manuel Marichal P?rez _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From hi-ono at mn.xdsl.ne.jp Mon Jul 8 12:41:14 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Tue, 9 Jul 2002 04:41:14 +0900 Subject: [mapserver-users] Display contour map on Mapsever References: <20020708161132.65923.qmail@web12505.mail.yahoo.com> Message-ID: <00a501c226b7$6bff7690$650202c0@vip> Thank you very mich for your responses, Mr. Lime and Mr. James. I think GLM(General Mapping Toll) is alternative. Regards. From brucesaunders at maximus.com Mon Jul 8 12:31:22 2002 From: brucesaunders at maximus.com (Bruce W Saunders/SDC/Systems/HSAS/MAXIMUS) Date: Mon, 8 Jul 2002 15:31:22 -0400 Subject: [mapserver-users] Zooming with Perl/Mapscript Message-ID: There doesn't seem to be a readily accessible method to zoom with Perl/Mapscript (PHP/Mapscript seems to offer a couple of options (zoompoint, zoomrectangle, zoomscale)). I'm working with Mapserver 3.6. Before I build my own, I was wondering if maybe I've missed something or if anyone else has run across and solved this same problem. Thanks in advance. -Bruce Saunders From rich at GreenwoodMap.com Mon Jul 8 14:20:23 2002 From: rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 08 Jul 2002 15:20:23 -0600 Subject: [mapserver-users] MapServer Compilation with GDAL Problems In-Reply-To: Message-ID: <5.1.0.14.0.20020708150722.00a7c928@mail.greenwoodmap.com> At 01:50 PM 7/8/2002 -0700, you wrote: >You see the example that you sent me with 6 lines; the one with lines 2 & >3 are set to 0.0000000 > >Well, instead of having both of those lines to 0.000000, I have two values >to put in there. For example, here is a copy of an image in my data set: > >0.0096049040073729 >0.014511427005632 >0.014511427005632 >-0.0096049040073729 >626162.80392977 >3989904.0152175 > >I have been told the rotation values (lines 2 & 3) are measured in radians. > >Can you please tell me if MapServer automatically rotates the image based >on this world file data using just the GD library and not the GDAL library? > >Or am I confused? You are correct in that lines 2 & 3 specify a rotation. And I am pretty sure you need GDAL to do this. (I will forward this message to there MapServer list where there are others who are much more knowledgeable than myself). GDAL is an excellent asset to MapServer and well worth the effort of getting it installed and compiled into the MapServer executable. Maybe you could provide a little more detail on your compile sequence and associated errors. If you do not want to use GDAL, you could pre-process your imagery so that the rotation parameters (lines 2 & 3) are zero, and then use standard MapServer raster support. Rich >Thank you very much for your information. > >Respectfully: >IML > >> >>I do not understand what sort of rotation you need. Can you explain it more? >> >>>> >>>>Is your image just up side down? Maybe your .tfw files are simply >>>>incorrect. They should look something like this: >>>> 2.0000000000 >>>> 0.0000000000 >>>> 0.0000000000 >>>> -2.000000000 (SHOULD BE NEGATIVE!) >>>> 2442992.3500 >>>> 415512.55000 >>Richard W. Greenwood, PLS >>(307) 733-0203 >>Rich at GreenwoodMap.com >>www.GreenwoodMap.com > >_________________________________________________________________ >Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com > Richard W. Greenwood, PLS (307) 733-0203 Rich at GreenwoodMap.com www.GreenwoodMap.com From Simon.Kirkness at fisheries.nsw.gov.au Mon Jul 8 16:44:18 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Tue, 09 Jul 2002 09:44:18 +1000 Subject: [mapserver-users] CSV Message-ID: Hi all, Can anyone give me any tips on turning a CSV file with lat and long into points with mapserver. Thankyou <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From shostko at ureach.com Mon Jul 8 20:48:13 2002 From: shostko at ureach.com (Alexander Shostko) Date: Mon, 8 Jul 2002 23:48:13 -0400 Subject: [mapserver-users] tolls for shapefile creation Message-ID: <200207090348.XAA11484@www20.ureach.com> Dear Mapserver Users! Thanks in advance for the help. 1. What are the best tools (if any) to quickly generate the shapefiles for points/symbols and annotations ? Let's say if labels need to be put at the center of the area, which consists of many shapes. The annotations can be done by using the attributes for labels, but may be it is faster to create another layers with the shapefile. Otherwise one has to introduce another attribute into dbf file for conditional labeling. 2. Also it is nice to scale up/down the labels while scaling the image. It does to a certain extent, but it can be better. The advice on what is missing below is very much appreciated. class EXPRESSION ( [LEVEL] ge 9.0) color 255 0 0 outlinecolor 72 61 139 TEXT( [STATE], [LEVEL] ) label position auto font arial minsize 4 maxsize 30 buffer 20 force true color 100 34 100 end end Thanks again Alexander Shostko shostko at ureach.com From thaechl at geo.unizh.ch Mon Jul 8 23:52:35 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: Tue, 09 Jul 2002 08:52:35 +0200 Subject: [mapserver-users] Can't figure out queries with Mapscript. References: <3DFF131E4E6D2D4198CDD758F35A5353010ABBD2@postoffice.GASAI.Com> Message-ID: <3D2A8833.6917AEE8@geo.unizh.ch> hi chip and list, I think what ben wants to know (and I couldn't figure it out eighter), is how to use the processquerytemplate method, i.e. process a template and replace some tags in it with query results, or link external info. Steve Lime recently answered this question for the cgi version (http://mapserver.gis.umn.edu/wilma/mapserver-users/0206/msg00377.html), but I don't know how it works with mapscript. any ideas? thanks, Thomy "Hankley, Chip" wrote: > > Ben... > > There's probably a number of ways to do this, but here's how I do it (see > below). There's a Mapfile component, and a mapscript component. FWIW, this > is essentially exactly the way it's done in the GMAP demo. > > Cheers! > > Chip > > ---------------------------------------------------------------- > > ...in the mapfile, this would be the layer definition for the layer I want > to query: > > LAYER > NAME "DePere_Parcels" > METADATA > "DESCRIPTION" "PARCEL_INFO" > "RESULT_FIELDS" "PARCEL_NUM AREA" > # These are the two fields (PARCEL_NUM and > # AREA) that I want to return > END > DATA parcels > STATUS DEFAULT > #minscale 5000 > TYPE polygon > CLASS > TEMPLATE "ttt_query.html" > Name Parcels > END # CLASS > END # LAYER > > ... in the PHP code, I have a function that handles the query... > > function query_map($map, $real_pts) { > > //$map is the Map Object > //$real_pts is an array with two members: > // $real_pts[0] x-coordinate in real world terms of the user click > // $real_pts[1] y-coordinate in real world terms of the user click > // > //NOTE that this function is set up to query only ONE layer, and return > // the first HIT from a query... so it wouldn't handle multiple layers > // or return results from numerous objects, although it could easily be > // modified to do both. > > $click_pt = ms_newPointObj(); > $click_pt->setXY($real_pts[0], $real_pts[1]); > > @$map->queryByPoint($click_pt, MS_SINGLE, -1); > $Layer = $map->GetLayerByName("DePere_Parcels"); > $count_results = $Layer->getNumResults(); > > if ($count_results > 0) { > $Layer->open($map->shapepath); > $selFields = explode(" ", $Layer->getMetaData("RESULT_FIELDS")); > > //Take the first record returned, you could modify this to > // loop through a bunch of returned records > $oRes = $Layer->getResult(0); > $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > //Save the bounding box to an array > $aResBoundBox = array($oShape->bounds->minx, $oShape->bounds->miny, > $oShape->bounds->maxx, $oShape->bounds->maxy); > > //Retrieve the PIN into a variable > $PIN = $oShape->values[PARCEL_NUM]; > $prcAREA = $oShape->values[AREA]; > $oShape->free(); > > $query_result = array($PIN, $prcAREA); > $return $query_result; > } -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From silke at intevation.de Tue Jul 9 02:37:37 2002 From: silke at intevation.de (Silke Reimer) Date: Tue, 9 Jul 2002 11:37:37 +0200 Subject: [mapserver-users] MapScript compilation errors In-Reply-To: References: Message-ID: <20020709093737.GB562@intevation.de> Dana, you have to edit your Makefile in mapscript/php3/ after running the configure script. See above for the changes you have to make. Good luck, Silke On Mon, Jul 08, 2002 at 11:07:51AM -0400, Dana Coe wrote: > Hello, > > I've been able to get Mapserver to make and run on FreeBSD 4.5, but when I > attempt to include MapScript support, I get the following error: > > ./configure --enable-runpath --with-proj > --with-php=/usr/local/src/php-4.2.1/ > [configure output] > > make > > cd mapscript/php3; make; cd ../.. > cc undef -I. -I.. -DPIC -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS Delete 'undef' where this command is defined in the Makefile. > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_PDF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG > -I/usr/local/src/mapserver-3.6.1 -I/usr/local/include > -I/usr/local/src/php-4.2.1/ -I/usr/local/src/php-4.2.1//dl > -I/usr/local/src/php-4.2.1//main -I/usr/local/src/php-4.2.1//Zend > -I/usr/local/src/php-4.2.1//include -I/usr/local/src/php-4.2.1//TSRM -c The paths vor Zend, TSRM etc. are defined in the Makefile. Perhaps you have to adapt them to the configuration in your system. At least I had to do that. > php_mapscript_util.c > cc: undef: No such file or directory > php_mapscript_util.c: In function `_phpms_object_init': > php_mapscript_util.c:681: warning: unused variable `tsrm_ls' > *** Error code 1 > > Stop in /usr/local/src/mapserver-3.6.1/mapscript/php3. > *** Error code 1 > > Stop in /usr/local/src/mapserver-3.6.1. > > > My php installation seems to have worked, but mapscript won't bite. Is there > something I forgot to include? > > Thanks, > > Dana L Coe > -- Silke Reimer Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From lfilak at medinaco.org Tue Jul 9 04:51:36 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 9 Jul 2002 07:51:36 -0400 (EDT) Subject: [mapserver-users] Zooming with Perl/Mapscript In-Reply-To: Message-ID: I think one of these should do the trick: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex2 http://mapserver.gis.umn.edu/wilma/mapserver-users/0203/msg00372.html http://mapserver.gis.umn.edu/wilma/mapserver-users/0204/msg00248.html http://mapserver.gis.umn.edu/wilma/mapserver-users/0205/msg00361.html Lowell F. On Mon, 8 Jul 2002, Bruce W Saunders/SDC/Systems/HSAS/MAXIMUS wrote: > > There doesn't seem to be a readily accessible method to zoom with > Perl/Mapscript (PHP/Mapscript seems to offer a couple of options > (zoompoint, zoomrectangle, zoomscale)). I'm working with Mapserver 3.6. > Before I build my own, I was wondering if maybe I've missed something or if > anyone else has run across and solved this same problem. Thanks in > advance. > > -Bruce Saunders > From lfilak at medinaco.org Tue Jul 9 04:59:45 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 9 Jul 2002 07:59:45 -0400 (EDT) Subject: [mapserver-users] CSV In-Reply-To: Message-ID: Have you seen: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex2 Lowell F. On Tue, 9 Jul 2002, Simon Kirkness wrote: > Hi all, > > Can anyone give me any tips on turning a CSV file with lat and long > into points with mapserver. > > Thankyou > > > <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< > > Simon Kirkness > NSW Fisheries > Project Officer > Threatened Species > Port Stephens Fisheries Centre > > Ph: (02) 4916 3810 > Fax: (02) 4916 3880 > > Email: kirkness at fisheries.nsw.gov.au > > Note: This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient, > please > delete it and notify the sender. Views expressed in this message are > those > of the individual sender, and are not necessarily the views of NSW > Fisheries. > > From isaimichel at hotmail.com Tue Jul 9 08:42:20 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Tue, 09 Jul 2002 08:42:20 -0700 Subject: [mapserver-users] Same MapServer Compilation Problem (with GDAL) Message-ID: I am still trying to compile MapServer with GDAL support but the MAKE command always exits with an 1 Error code. I think that it cannot find the include header files. Can someone please help. I am currently opening up the Makefile and trying to see if I can make some modifications. I found the section for writing in GDAL parameters but there is no information on how to do this. Someone please help me with this (I need GDAL for autorotation). Thank you very much for your help. Respectfully: IML _________________________________________________________________ MSN Fotos: la forma m?s f?cil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx From carrolls at unbc.ca Tue Jul 9 11:10:48 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Tue, 9 Jul 2002 11:10:48 -0700 (PDT) Subject: [mapserver-users] negation in an expression Message-ID: Hi, Is there a way to do negation in an expression? neq does not seem to work and I dont find negation discussed in the mapserver docs. Seamus From pagurekd at agr.gc.ca Tue Jul 9 11:36:14 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Tue, 09 Jul 2002 14:36:14 -0400 Subject: [mapserver-users] addfeature - point appearing at center of map? Message-ID: Hi, I have created an application that adds points to the map "on-the-fly". It makes use of a layer outlined as follows in the map file: LAYER NAME COLLECTIONS TYPE POINT FEATURE END STATUS ON TEMPLATE VOID CLASS SYMBOL "circle" SIZE 5 COLOR 255 0 0 END PROJECTION "init=epsg:4326" END END For some reason, in addition to the points I am adding dynamically using php/mapscript, there is a point showing at the very centre of the map (the map is 600 by 300, so the point is appearing at 300, 150) or a point is appearing at 0 lat, 0 long even though I have NOT coded this at all. I can't figure out how to get rid of this point on my maps! here's a bit of code: // loop through records and display (addfeature) each point $dummylayer=ms_newLayerObj($map); //a new layerobject $numrows = count($long); for ($i = 0 ; $i <= $numrows; ++$i) { $oShp=ms_newShapeObj(MS_SHP_POINT); $oLine=ms_newLineObj(); $oLine->addXY($long[$i],$lat[$i]); $oShp->add($oLine); $dummylayer=$map->getLayerByName("COLLECTIONS"); $dummylayer->addfeature($oShp); } Anyone have any ideas why this point is appearing in the centre? Thanks, D. Pagurek From isaimichel at hotmail.com Tue Jul 9 12:30:42 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Tue, 09 Jul 2002 12:30:42 -0700 Subject: [mapserver-users] GDAL not working perhaps Message-ID: I finally got the compilation done by doing: make clean ./configure --with-gdal make instead of: make clean ./configure --with-gdal=/usr/bin make There some error messages but it kept going anyways. However, now when I run my test page (with 2 tiff images that are supposed to be autorotated with the associated twf files) the images are just placed there without any rotation what so ever (!). I thought GDAL handled rotation, or must it be specified in the MAP file? Can someone please help me. Thank you very much. Respectfully: IML P.D.0: In the output by ./configure it does print out that gdal service was asked for by the user and even confirms the existance of a gdal-config file but that apparently does not mean much since I still do not see any rotation. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From stepan.kafka at centrum.cz Tue Jul 9 13:18:37 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Tue, 9 Jul 2002 22:18:37 +0200 Subject: [mapserver-users] addfeature - point appearing at center of map? In-Reply-To: Message-ID: <000001c22785$cedda100$7e3c2fc3@HSGIS> What projection has your map set? And what is the extent of this? Please, check the relation between map and layer projections. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Debbie > Pagurek > Odesl?no: 9. ?ervence 2002 20:36 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] addfeature - point appearing at center of > map? > > > Hi, > I have created an application that adds points to the map > "on-the-fly". It makes use of a layer outlined as follows in the > map file: > > LAYER > NAME COLLECTIONS > TYPE POINT > FEATURE > END > STATUS ON > TEMPLATE VOID > CLASS > SYMBOL "circle" > SIZE 5 > COLOR 255 0 0 > END > PROJECTION > "init=epsg:4326" > END > END > > For some reason, in addition to the points I am adding > dynamically using php/mapscript, there is a point showing at the > very centre of the map (the map is 600 by 300, so the point is > appearing at 300, 150) or a point is appearing at 0 lat, 0 long > even though I have NOT coded this at all. I can't figure out how > to get rid of this point on my maps! > > here's a bit of code: > // loop through records and display (addfeature) each point > $dummylayer=ms_newLayerObj($map); //a new layerobject > > $numrows = count($long); > for ($i = 0 ; $i <= $numrows; ++$i) > { > $oShp=ms_newShapeObj(MS_SHP_POINT); > $oLine=ms_newLineObj(); > $oLine->addXY($long[$i],$lat[$i]); > $oShp->add($oLine); > $dummylayer=$map->getLayerByName("COLLECTIONS"); > $dummylayer->addfeature($oShp); > } > > Anyone have any ideas why this point is appearing in the centre? > > Thanks, > D. Pagurek > > > From ed at topozone.com Tue Jul 9 13:36:56 2002 From: ed at topozone.com (Ed McNierney) Date: Tue, 9 Jul 2002 16:36:56 -0400 Subject: [mapserver-users] GDAL not working perhaps Message-ID: <13858AA1A74F30419F319ACB66A9D1220E839F@mercator.topozone.com> Isai - Are those TIFF files GeoTIFF files as well? That is, GDAL will read the geotransform matrix from GeoTIFF tags if they're available; I'm pretty sure it will only look for a TFW file if the GeoTIFF data is absent. If there is some way we could look at the TIFF file and the world file, that would be helpful. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Isai Michel [mailto:isaimichel at hotmail.com] Sent: Tuesday, July 09, 2002 3:31 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] GDAL not working perhaps I finally got the compilation done by doing: make clean ./configure --with-gdal make instead of: make clean ./configure --with-gdal=/usr/bin make There some error messages but it kept going anyways. However, now when I run my test page (with 2 tiff images that are supposed to be autorotated with the associated twf files) the images are just placed there without any rotation what so ever (!). I thought GDAL handled rotation, or must it be specified in the MAP file? Can someone please help me. Thank you very much. Respectfully: IML P.D.0: In the output by ./configure it does print out that gdal service was asked for by the user and even confirms the existance of a gdal-config file but that apparently does not mean much since I still do not see any rotation. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From steve.lime at dnr.state.mn.us Tue Jul 9 15:04:37 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 09 Jul 2002 17:04:37 -0500 Subject: [mapserver-users] negation in an expression Message-ID: Either ne or != are supported. I can't remember if there is a not operator. I don't think so though... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Seamus Thomas Carroll 07/09/02 13:16 PM >>> Hi, Is there a way to do negation in an expression? neq does not seem to work and I dont find negation discussed in the mapserver docs. Seamus From Rich at GreenwoodMap.com Tue Jul 9 15:44:32 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 09 Jul 2002 16:44:32 -0600 Subject: [mapserver-users] GDAL not working perhaps In-Reply-To: Message-ID: <5.1.0.14.0.20020709164156.03e5e6c8@mail.GreenwoodMap.com> At 12:30 PM 7/9/2002 -0700, you wrote: >I finally got the compilation done by doing: > >make clean >./configure --with-gdal >make Be sure you also included --without-tiff or else you may have both "native" tiff support (which does not support rotation) and GDAL. The "native" support will probably take precedence over GDAL. Rich >There some error messages but it kept going anyways. However, now when I >run my test page (with 2 tiff images that are supposed to be autorotated >with the associated twf files) the images are just placed there without >any rotation what so ever (!). Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jul 9 16:17:51 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 9 Jul 2002 19:17:51 -0400 Subject: [mapserver-users] addfeature - point appearing at center of map? In-Reply-To: Message-ID: <3D2B36DF.24209.D06C04@localhost> On 9 Jul 2002 at 14:36, Debbie Pagurek wrote: > here's a bit of code: > // loop through records and display (addfeature) each point > $dummylayer=ms_newLayerObj($map); //a new layerobject > > $numrows = count($long); > for ($i = 0 ; $i <= $numrows; ++$i) > { > $oShp=ms_newShapeObj(MS_SHP_POINT); > $oLine=ms_newLineObj(); > $oLine->addXY($long[$i],$lat[$i]); > $oShp->add($oLine); > $dummylayer=$map->getLayerByName("COLLECTIONS"); > $dummylayer->addfeature($oShp); > } > > Anyone have any ideas why this point is appearing in the centre? You are cycling one too many time through the $long array. Try for ($i = 0 ; $i < $numrows; ++$i) -Steve From shostko at ureach.com Tue Jul 9 21:49:38 2002 From: shostko at ureach.com (Alexander Shostko) Date: Wed, 10 Jul 2002 00:49:38 -0400 Subject: [mapserver-users] scaling labels Message-ID: <200207100449.AAA30183@www21.ureach.com> Dear Mapserver Users! Thanks in advance for reading this message and for all possible hints and suggestions. 1. how can I make the class transparent (so other classes can set the color on the same shapes)in the same layer ? e.g. class expression( [level] lt 3.0 ) # should be transparent, but allow other class to set the color. Only labels should be defined label end end class expression ( [perimeter] > 3.0 ) color 23 23 23 outlinecolor 0 0 0 end 2. I use labeling based on the attributes (mapserver v 3.6 GIF version) and use CGI only. However it uses bitmap fonts and they do not scale at all. If I put 'type truetype, then no labels is shown at all. What can be the possible reason. The layer looks like: layer classitem 'STATE' data "statesp020" group "statesp020" labelcache on labelitem 'STATE' name "statesp020" postlabelcache true status on type polygon # red class EXPRESSION ( [LEVEL] ge 9.0 ) color 255 0 0 outlinecolor 72 61 139 TEXT( [STATE] ) label position auto font arial minsize 10 maxsize 30 mindistance 100 buffer 100 force true color 0 0 0 end end # 1 class statesp020_1 class EXPRESSION ( [LEVEL] lt 2.0 ) color 128 128 128 outlinecolor 72 61 139 end # green class EXPRESSION ( [LEVEL] ge 2.0 and [LEVEL] lt 4.0 ) color 32 178 170 outlinecolor 72 61 139 TEXT( [STATE] ) label type truetype position auto font arial minsize 10 maxsize 30 mindistance 100 buffer 100 force true color 0 0 0 end end end Thanks again for your time reading this message Alexander Shostko From Simon.Kirkness at fisheries.nsw.gov.au Tue Jul 9 23:05:53 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Wed, 10 Jul 2002 16:05:53 +1000 Subject: [mapserver-users] php/mapscript Message-ID: Hi all, Are there any Binaries for win32 precompiled with php/mapscript? Thanks <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From NVohra at eq-technologic.com Wed Jul 10 02:26:04 2002 From: NVohra at eq-technologic.com (NVohra at eq-technologic.com) Date: Wed, 10 Jul 2002 14:56:04 +0530 Subject: [mapserver-users] php/mapscript Message-ID: Yes, check at http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_dl.html Nischal Vohra - - - - - - - - - - - - That one last shot's a Permanent Vacation And a how high can you fly with broken wings Life's a journey - not a destination And I just can't tell just what tomorrow brings - Aerosmith - - - - - - - - - - - - "Simon Kirkness" .gov.au> cc: Sent by: Subject: [mapserver-users] php/mapscript owner-mapserver-users at lists.g is.umn.edu 07/10/02 11:35 AM Hi all, Are there any Binaries for win32 precompiled with php/mapscript? Thanks <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. (See attached file: InterScan_Disclaimer.txt) -------------- next part -------------- A non-text attachment was scrubbed... Name: InterScan_Disclaimer.txt Type: application/octet-stream Size: 676 bytes Desc: Text - character set unknown URL: From isaimichel at hotmail.com Wed Jul 10 07:44:37 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Wed, 10 Jul 2002 07:44:37 -0700 Subject: [mapserver-users] GDAL not working perhaps Message-ID: I did do that and now there is just a big black spot with nothing in it. I believe that maybe the --without-tiff option disabled tiff completely. I will trying reversing the order of the options and also will change some of the extents to make sure the image is in view. Thank you for the help. Respectfully, IML _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From ed at topozone.com Wed Jul 10 08:33:49 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 10 Jul 2002 11:33:49 -0400 Subject: [mapserver-users] GDAL not working perhaps Message-ID: <13858AA1A74F30419F319ACB66A9D1220E83A7@mercator.topozone.com> Isai - You should DEFINITELY include --without-tiff. If you're now getting a big black spot, it may well be that things are working "properly" and there's a discrepancy between the geographic extent of the source images and the requested output area. Are the source images and the MapServer output image in the same projection? - Ed -----Original Message----- From: Isai Michel [mailto:isaimichel at hotmail.com] Sent: Wednesday, July 10, 2002 10:45 AM To: Rich at GreenwoodMap.com Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] GDAL not working perhaps I did do that and now there is just a big black spot with nothing in it. I believe that maybe the --without-tiff option disabled tiff completely. I will trying reversing the order of the options and also will change some of the extents to make sure the image is in view. Thank you for the help. Respectfully, IML _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com From isaimichel at hotmail.com Wed Jul 10 08:49:29 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Wed, 10 Jul 2002 08:49:29 -0700 Subject: [mapserver-users] GDAL not working perhaps Message-ID: That would depend on what the definition of the map file EXTENTS variable is. I have previously tried manipulating the EXTENTS and found that certain variations cause the image to disappear. If you could give me a better definition of EXTENTS or how exactly EXTENTS work, then that might cause the images (which I guess theorectically should be there) to come back into view. Thank you. Respectfully: IML _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From ed at topozone.com Wed Jul 10 08:53:08 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 10 Jul 2002 11:53:08 -0400 Subject: [mapserver-users] GDAL not working perhaps Message-ID: <13858AA1A74F30419F319ACB66A9D1220E83A8@mercator.topozone.com> Isai - The EXTENTS are the bounding box of the output map image, in the native units of the output image projection. For example, if the output projection is UTM Zone 19 North, the EXTENTS are in UTM northing and easting meters. If the output projection is geographic, the EXTENTS are in decimal degrees. - Ed -----Original Message----- From: Isai Michel [mailto:isaimichel at hotmail.com] Sent: Wednesday, July 10, 2002 11:49 AM To: Ed McNierney; Rich at GreenwoodMap.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] GDAL not working perhaps That would depend on what the definition of the map file EXTENTS variable is. I have previously tried manipulating the EXTENTS and found that certain variations cause the image to disappear. If you could give me a better definition of EXTENTS or how exactly EXTENTS work, then that might cause the images (which I guess theorectically should be there) to come back into view. Thank you. Respectfully: IML _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From isaimichel at hotmail.com Wed Jul 10 09:22:14 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Wed, 10 Jul 2002 09:22:14 -0700 Subject: [mapserver-users] GDAL not working perhaps Message-ID: Do I have to specify the projection type in the map file? I am using UTM and here is part of the top of the map file NAME GRID EXTENT xxxx.xxxxx xxx.xxxx xxxx.xxxx xxxx.xxxx STATUS ON UNITS METERS IMAGECOLOR 0 0 0 etc... Is this sufficient for a map file heading? Also: Right now I just compiled again without the --without-tiff option (and with the --with-gdal option) just to make sure that the extents are right. The 2 images are now in almost the exact center (without rotation of course). I believe the rotation has its axis in the top left corner so when the images rotate (in the future) I should still be able to see them without changing the extents again, right? Thank you for the help. Respectfully, IML _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From ed at topozone.com Wed Jul 10 09:25:14 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 10 Jul 2002 12:25:14 -0400 Subject: [mapserver-users] GDAL not working perhaps Message-ID: <13858AA1A74F30419F319ACB66A9D1220E83A9@mercator.topozone.com> Isai - That's a good test. You don't have to specify any projection; if your sources and output are the same projection, things should work OK. It's a little safer to specify the projections in my opinion, but not necessary. I'm not sure your assumption about the images remaining visible is correct, depending on the rotation. You might try making the extents much larger, but centered on the same spot, to see if the images are actually showing up in a slightly unexpected place. - Ed -----Original Message----- From: Isai Michel [mailto:isaimichel at hotmail.com] Sent: Wednesday, July 10, 2002 12:22 PM To: Ed McNierney; Rich at GreenwoodMap.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] GDAL not working perhaps Do I have to specify the projection type in the map file? I am using UTM and here is part of the top of the map file NAME GRID EXTENT xxxx.xxxxx xxx.xxxx xxxx.xxxx xxxx.xxxx STATUS ON UNITS METERS IMAGECOLOR 0 0 0 etc... Is this sufficient for a map file heading? Also: Right now I just compiled again without the --without-tiff option (and with the --with-gdal option) just to make sure that the extents are right. The 2 images are now in almost the exact center (without rotation of course). I believe the rotation has its axis in the top left corner so when the images rotate (in the future) I should still be able to see them without changing the extents again, right? Thank you for the help. Respectfully, IML _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From isaimichel at hotmail.com Wed Jul 10 09:46:20 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Wed, 10 Jul 2002 09:46:20 -0700 Subject: [mapserver-users] GDAL not working perhaps Message-ID: I just zoomed out a lot so that the 2 images are in the dead center, and each takes up about 50x50 pixels out of a 500x500 square box. I think that should be enough so that rotation can occure without losing sight. Then I did: make clean ./configure --with-gdal --without-tiff make Then I refreshed the screen and the images disappeared. I have no idea what to do, it does not seem to work. Please help. Thank you very much for assistance. Respectfully: IML _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From ed at topozone.com Wed Jul 10 09:47:14 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 10 Jul 2002 12:47:14 -0400 Subject: [mapserver-users] GDAL not working perhaps Message-ID: <13858AA1A74F30419F319ACB66A9D1220E83AB@mercator.topozone.com> Isai - As I asked yesterday, it would be very helpful to take a look at the actual image files and their world files. - Ed -----Original Message----- From: Isai Michel [mailto:isaimichel at hotmail.com] Sent: Wednesday, July 10, 2002 12:46 PM To: Ed McNierney; Rich at GreenwoodMap.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] GDAL not working perhaps I just zoomed out a lot so that the 2 images are in the dead center, and each takes up about 50x50 pixels out of a 500x500 square box. I think that should be enough so that rotation can occure without losing sight. Then I did: make clean ./configure --with-gdal --without-tiff make Then I refreshed the screen and the images disappeared. I have no idea what to do, it does not seem to work. Please help. Thank you very much for assistance. Respectfully: IML _________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com From tesimap at hotmail.com Wed Jul 10 11:24:38 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Wed, 10 Jul 2002 20:24:38 +0200 Subject: [mapserver-users] question about GMAP demo Message-ID: Hi, I have install GMAP demo and it works very well! But I have a question, this is my layer: LAYER NAME assist METADATA "DESCRIPTION" "Assi Stradali" "RESULT_FIELDS" "NOMEVIA" "COD_VIA" "LENGTH" END TYPE LINE STATUS ON DATA assist TOLERANCE 8 LABELITEM nomevia LABELMAXSCALE 20000 CLASS NAME "Assi Stradali" TEMPLATE "ttt_query.html" COLOR 0 0 100 LABEL COLOR 255 0 0 FONT fritqat TYPE TRUETYPE SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 PARTIALS FALSE BUFFER 3 END #LABEL END # CLASS TOLERANCE 5 END # LAYER Why it doesn't work? I don't understand the line TEMPLATE "ttt_query.html". I don't find this template in application files, where is it? Thanks. _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From dan.liu at mnplan.state.mn.us Wed Jul 10 11:45:24 2002 From: dan.liu at mnplan.state.mn.us (Dan Liu) Date: Wed, 10 Jul 2002 13:45:24 -0500 Subject: [mapserver-users] msTiledSHPOpenFile() Message-ID: Hi, I got a error message "msTiledSHPOpenFile(): Shapefile error. Unable to open a single tile to use as a template.".Could anybody tell me what may cause it? Thanks in advance! Dan From carrolls at unbc.ca Wed Jul 10 12:41:26 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Wed, 10 Jul 2002 12:41:26 -0700 (PDT) Subject: [mapserver-users] labeling Message-ID: Hi, I am labeling various cities and roads I have the problem of roads and smaller cities being labelled and the larger cities not being labeled. All cities are part of the same layer and all roads are part of the same layer. The map file is outlined as follows: LAYER # road drawing layer CLASS # highway drawing layer END CLASS # road drawing layer END END # end of road drawing layer LAYER # road label layer CLASS # highways label info END CLASS # road label info END END # end of road label layer LAYER # city layer CLASS #Largest city info #Labeling and drawing of points END CLASS #Medium city info END CLASS #Small city info #Labeling and drawing of points END END # end of city layer I want the labeling to go in this order of precedence: 1) larger city 2) small city 3) highway 4) road Any suggestions? At some zoom levels things look correct and at others they dont. I have tried changing the order of the layers and the order of the classes within the layers. The FORCE command wont be useful because there are major cities side by side and I dont want overlap. Thanks for reading this far and any suggestions would be much appreciated. Seamus From vinko at cprsig.cl Wed Jul 10 13:06:29 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Wed, 10 Jul 2002 16:06:29 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 Message-ID: <20020710200629.GA18036@landsat.cprsig.cl> Hello, I've been trying to compile the mapscript python module, but I keep finding this errors: First, when swigging the .i file, i get: swig -python -shadow -DSWIGPYTHON -module mapscript -o ./mapscript_wrap.c ../mapscript.i ../mapscript.i:37. Warning: class keyword used, but not in C++ mode. ../../map.h:424. Warning: class keyword used, but not in C++ mode. /usr/lib/swig1.3/constraints.i:89. Warning. Deprecated typemap feature ($source/$target). swig: The use of $source and $target in a typemap declaration is deprecated. swig: For typemaps related to argument input (in,ignore,default,arginit,check), replace swig: $source by $input and $target by $1. For typemaps related to return values (out, swig: argout,ret,except), replace $source by $1 and $target by $result. See the file swig: Doc/Manual/Typemaps.html for complete details. /usr/lib/swig1.3/constraints.i:108. Warning. Deprecated typemap feature ($source/$target). That warning goes on for several lines. Later, when compiling the mapscript_wrap.c, i get: gcc -DNDEBUG -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math -fno-strength-reduce -fPIC -UTIFF_STATIC -UJPEG_STATIC -UZLIB_STATIC -UIGNORE_MISSING_DATA -UUSE_EPPL -UUSE_PROJ -UUSE_PROJ_API_H -UUSE_WMS -UUSE_TIFF -UUSE_JPEG -UUSE_GD_PNG -UUSE_GD_JPEG -UUSE_GD_WBMP -UUSE_GDAL -UUSE_POSTGIS -I../.. -I../../gd-1.8.4 -I/usr/local/include/freetype -I/usr/local/include -I/usr/include/python2.2 -c mapscript_wrap.c -o build/temp.linux-i686-2.2/mapscript_wrap.o mapscript_wrap.c: In function `_raise_ms_exception': mapscript_wrap.c:1583: `ms_error' undeclared (first use in this function) mapscript_wrap.c:1583: (Each undeclared identifier is reported only once mapscript_wrap.c:1583: for each function it appears in.) I've read the archives and found references to this error, but then i get only: OK, now i solved that and built the extension, and I have another problem, but they don't tell how did they solve the error :-( I've tried to use the Vines's setup.py script, but that doesn't solve the compilations problem nor the swig warnings... Python 2.2, Swig 1.3. Any and all help will be greatly appreciated. -- Vinko Vrsalovic http://www.cprsig.cl From assefa at dmsolutions.ca Wed Jul 10 13:23:16 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 10 Jul 2002 16:23:16 -0400 Subject: [mapserver-users] question about GMAP demo References: Message-ID: <3D2C97B4.DD45FB8A@dmsolutions.ca> Hi There, What is wrong exactly ? What kind of errors do you recieve ? You should give more details on the error or problem. Checking your layer here are the comments I have : - The template entry is necessary to do queries, the value is not critical here. - One error that I see is the way you defined the RESULT_FIELDS" tag. It should be define like this : "RESULT_FIELDS" "NOMEVIA COD_VIA LENGTH" The GMap demo application assumes to find the DB fields names with a space between the names. Best Regards, Ivan Paoluzzi wrote: > Hi, > I have install GMAP demo and it works very well! > > But I have a question, this is my layer: > > LAYER > NAME assist > METADATA > "DESCRIPTION" "Assi Stradali" > "RESULT_FIELDS" "NOMEVIA" "COD_VIA" "LENGTH" > END > TYPE LINE > STATUS ON > DATA assist > TOLERANCE 8 > LABELITEM nomevia > LABELMAXSCALE 20000 > CLASS > NAME "Assi Stradali" > TEMPLATE "ttt_query.html" > COLOR 0 0 100 > LABEL > COLOR 255 0 0 > FONT fritqat > TYPE TRUETYPE > SIZE 8 > ANTIALIAS TRUE > POSITION AUTO > ANGLE AUTO > MINFEATURESIZE 40 > MINDISTANCE 100 > PARTIALS FALSE > BUFFER 3 > END #LABEL > END # CLASS > TOLERANCE 5 > END # LAYER > > Why it doesn't work? > I don't understand the line TEMPLATE "ttt_query.html". > I don't find this template in application files, where is it? > > Thanks. > > _________________________________________________________________ > Chiacchiera con gli amici online, prova MSN Messenger: > http://messenger.msn.it -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From erwin at perik.nu Wed Jul 10 13:26:49 2002 From: erwin at perik.nu (E Perik) Date: Wed, 10 Jul 2002 22:26:49 +0200 Subject: [mapserver-users] question about GMAP demo In-Reply-To: Message-ID: <000001c22850$1ed893c0$967ba8c0@xp> Hi Ivan, i think when you use it like below, it should work. METADATA "DESCRIPTION" "Assi Stradali" "RESULT_FIELDS" "NOMEVIA COD_VIA LENGTH" # <--changed END The file: TEMPLATE "ttt_query.html" needs to be in there if you want to query. The file 'ttt_query.html' should contain all your Micro$oft licenses (case sensitive). No,... kidding,... it does not have to exist at all. You can also use TEMPLATE "foo" -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Ivan Paoluzzi Sent: woensdag 10 juli 2002 20:25 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] question about GMAP demo Hi, I have install GMAP demo and it works very well! But I have a question, this is my layer: LAYER NAME assist METADATA "DESCRIPTION" "Assi Stradali" "RESULT_FIELDS" "NOMEVIA" "COD_VIA" "LENGTH" END TYPE LINE STATUS ON DATA assist TOLERANCE 8 LABELITEM nomevia LABELMAXSCALE 20000 CLASS NAME "Assi Stradali" TEMPLATE "ttt_query.html" COLOR 0 0 100 LABEL COLOR 255 0 0 FONT fritqat TYPE TRUETYPE SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO MINFEATURESIZE 40 MINDISTANCE 100 PARTIALS FALSE BUFFER 3 END #LABEL END # CLASS TOLERANCE 5 END # LAYER Why it doesn't work? I don't understand the line TEMPLATE "ttt_query.html". I don't find this template in application files, where is it? Thanks. _________________________________________________________________ Chiacchiera con gli amici online, prova MSN Messenger: http://messenger.msn.it From woodbri at swoodbridge.com Wed Jul 10 13:35:44 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 10 Jul 2002 16:35:44 -0400 Subject: [mapserver-users] labeling In-Reply-To: Message-ID: <3D2C6260.25390.1AB1BA4@localhost> On 10 Jul 2002 at 12:41, Seamus Thomas Carroll wrote: > I want the labeling to go in this order of precedence: > 1) larger city > 2) small city > 3) highway > 4) road > Any suggestions? Use annotation layers which will allow you some control over which layer gets rendered first, BUT within a layer the objects get rendered in order they are in the file. Sooo, you can order them by sorting the shapefile, Orrrr you can create 4 annotation layers as you list above and use a FILTERITEM or CLASSITEM to select only the given objects that you want to annotate in the the given layer. I hope this is clear. -Steve From mckenna at dmsolutions.ca Wed Jul 10 13:45:22 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Wed, 10 Jul 2002 16:45:22 -0400 Subject: [mapserver-users] msTiledSHPOpenFile() References: Message-ID: <3D2C9CE2.CBB4471@dmsolutions.ca> Dan, We came across this error message ourselves yesterday. In our case it was that the filename specified in the DATA parameter was incorrect. You should also verify that the path set in the LOCATION field of your tileindex shapefile is correct. Jeff Dan Liu wrote: > > Hi, > I got a error message "msTiledSHPOpenFile(): Shapefile error. Unable to > open a single tile to use as a template.".Could anybody tell me what may > cause it? > Thanks in advance! > > Dan -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From sgillies at i3.com Wed Jul 10 13:52:15 2002 From: sgillies at i3.com (Sean Gillies) Date: Wed, 10 Jul 2002 14:52:15 -0600 Subject: [mapserver-users] Python Mapscript MS 3.6.1 References: <20020710200629.GA18036@landsat.cprsig.cl> Message-ID: <3D2C9E7F.8050601@i3.com> Vinko Vrsalovic wrote: > Hello, > > I've been trying to compile the mapscript python module, but I > keep finding this errors: > [snip] Vinko, One of your problems (regarding ms_error) occurs because the mapscript.i included with mapserver 3.6.1 is a bit out-of-date. Edit the Python specific section to match the following: #ifdef SWIGPYTHON // For Python, errors reported via the ms_error structure are translated // into RuntimeError exceptions. (Chris Chamberlin ) %{ static void _raise_ms_exception(void) { char errbuf[256]; errorObj *ms_error = msGetErrorObj(); snprintf(errbuf, 255, "%s: %s %s\n", ms_error->routine, msGetErrorString(ms_error->code), ms_error->message); _SWIG_exception(SWIG_RuntimeError, errbuf); } #define raise_ms_exception() { _raise_ms_exception(); return NULL; } %} %except { $function errorObj *ms_error = msGetErrorObj(); if ( (ms_error->code != MS_NOERR) && (ms_error->code != -1) ) raise_ms_exception(); } #endif // SWIGPYTHON The key thing is to get an errorObj returned from msGetErrorObj(). Good luck! Sean From Chip.Hankley at GASAI.Com Wed Jul 10 13:57:46 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 10 Jul 2002 15:57:46 -0500 Subject: [mapserver-users] Symbol Def. Help Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBE8@postoffice.GASAI.Com> I'm having a hard time figuring out a couple of things about symbol definitions. What I want to do, is make a symbol for a fiber optic line that looks like this: ------FO------FO------FO------FO I can get a trutype symbol to work, with ONE letter. 1) How can I get it to work with more than one character? 2) What is the "&#" part of the character mapping doing? Is there some reference for figuring out character mappings? TIA! Chip Hankley From steve.lime at dnr.state.mn.us Wed Jul 10 14:24:18 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Jul 2002 16:24:18 -0500 Subject: [mapserver-users] scaling labels Message-ID: I'm not sure what you're asking in 1. A shape belongs to the first class it matches, period. I think you'll need to draw the shapefile in question (perhaps once as an annotation layer) to get the effect you're after. On 2. you've neglected to define a SIZE for the label. Default it probably a GD constant for bitmap fonts (1 or something like that). Also note that you won't get any scaling unless you define a value for SYMBOLSCALE. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alexander Shostko 07/09/02 11:49PM >>> Dear Mapserver Users! Thanks in advance for reading this message and for all possible hints and suggestions. 1. how can I make the class transparent (so other classes can set the color on the same shapes)in the same layer ? e.g. class expression( [level] lt 3.0 ) # should be transparent, but allow other class to set the color. Only labels should be defined label end end class expression ( [perimeter] > 3.0 ) color 23 23 23 outlinecolor 0 0 0 end 2. I use labeling based on the attributes (mapserver v 3.6 GIF version) and use CGI only. However it uses bitmap fonts and they do not scale at all. If I put 'type truetype, then no labels is shown at all. What can be the possible reason. The layer looks like: layer classitem 'STATE' data "statesp020" group "statesp020" labelcache on labelitem 'STATE' name "statesp020" postlabelcache true status on type polygon # red class EXPRESSION ( [LEVEL] ge 9.0 ) color 255 0 0 outlinecolor 72 61 139 TEXT( [STATE] ) label position auto font arial minsize 10 maxsize 30 mindistance 100 buffer 100 force true color 0 0 0 end end # 1 class statesp020_1 class EXPRESSION ( [LEVEL] lt 2.0 ) color 128 128 128 outlinecolor 72 61 139 end # green class EXPRESSION ( [LEVEL] ge 2.0 and [LEVEL] lt 4.0 ) color 32 178 170 outlinecolor 72 61 139 TEXT( [STATE] ) label type truetype position auto font arial minsize 10 maxsize 30 mindistance 100 buffer 100 force true color 0 0 0 end end end Thanks again for your time reading this message Alexander Shostko From carrolls at unbc.ca Wed Jul 10 15:48:50 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Wed, 10 Jul 2002 15:48:50 -0700 (PDT) Subject: [mapserver-users] labeling In-Reply-To: <3D2C6260.25390.1AB1BA4@localhost> Message-ID: So what your are saying is create 4 layers with the labels I want to stand out the most on the bottom of the map file. I should split up my classes into layers. So the new order of the map file would be: 1) road layer 2) highway layer 3) small city layer 4) larger city layer Using FILTERITEM to filter the layers. Yes/No ? Seamus On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote: > On 10 Jul 2002 at 12:41, Seamus Thomas Carroll wrote: > > > I want the labeling to go in this order of precedence: > > 1) larger city > > 2) small city > > 3) highway > > 4) road > > Any suggestions? > > Use annotation layers which will allow you some control over which > layer gets rendered first, BUT within a layer the objects get > rendered in order they are in the file. Sooo, you can order them by > sorting the shapefile, Orrrr you can create 4 annotation layers as > you list above and use a FILTERITEM or CLASSITEM to select only the > given objects that you want to annotate in the the given layer. > > I hope this is clear. > > -Steve > From joe at otsys.com Wed Jul 10 15:56:35 2002 From: joe at otsys.com (Joe Bussell) Date: Wed, 10 Jul 2002 15:56:35 -0700 Subject: [mapserver-users] labeling In-Reply-To: References: Message-ID: <20020710225634.GA4779@extempore.otsys.com> We use a road classification value which is present in our *.dbf files. The trick is to define different classes depending on the data. LAYER NAME cityCenter GROUP defaultLayer TYPE POINT TILEINDEX td_sm.shp STATUS ON LABELITEM "NAME" CLASSITEM "DISPCLASS" MAXSCALE 9000 CLASS EXPRESSION ( ( [DISPCLASS] = 3 ) ) #NAME "Big City" ... END CLASS EXPRESSION ( ( [DISPCLASS] = 6 ) ) #NAME "Medium City" ... END END For roads it is very similar, except I have a functional road class to work with. Joe Bussell On Time Systems On Wed, Jul 10, 2002 at 12:41:26PM -0700, Seamus Thomas Carroll wrote: > Hi, > > I am labeling various cities and roads I have the problem of roads and > smaller cities being labelled and the larger cities not being labeled. > All cities are part of the same layer and all roads are part of the same layer. > The map file is outlined as follows: > > LAYER # road drawing layer > > CLASS > # highway drawing layer > END > > CLASS > # road drawing layer > END > END # end of road drawing layer > > LAYER # road label layer > > CLASS > # highways label info > END > > CLASS > # road label info > END > END # end of road label layer > > > LAYER # city layer > > CLASS > #Largest city info > #Labeling and drawing of points > END > > CLASS > #Medium city info > END > > CLASS > #Small city info > #Labeling and drawing of points > END > END # end of city layer > > I want the labeling to go in this order of precedence: > 1) larger city > 2) small city > 3) highway > 4) road > Any suggestions? > > At some zoom levels things look correct and at others they dont. I have > tried changing the order of the layers and the order of the classes > within the layers. The FORCE command wont be useful because there are > major cities side by side and I dont want overlap. > Thanks for reading this far and any suggestions would be much appreciated. > > Seamus > > From vinko at cprsig.cl Wed Jul 10 16:12:41 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Wed, 10 Jul 2002 19:12:41 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <3D2C9E2B.1010301@i3.com> References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> Message-ID: <20020710231241.GA21199@landsat.cprsig.cl> On Wed, Jul 10, 2002 at 02:50:51PM -0600, Sean Gillies wrote: > Vinko Vrsalovic wrote: > > Hello, > > > > I've been trying to compile the mapscript python module, but I > > keep finding this errors: > > > [snip] > > Vinko, > > One of your problems (regarding ms_error) occurs because the > mapscript.i included with mapserver 3.6.1 is a bit out-of-date. > > Edit the Python specific section to match the following: > [snap] > The key thing is to get an errorObj returned from msGetErrorObj(). Thanks a lot! The warnings from swig didn't disappear (as expected), but were irrelevant to the working of the module (as expected too), now I'm happily coding in PyMapScript :-) BTW, Vine's script is very useful in installing the module. (Why isn't mapscript.i fixed in the official distribution? Should i send the fixed file to Steve?) -- Vinko Vrsalovic http://www.cprsig.cl From carrolls at unbc.ca Wed Jul 10 16:19:01 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Wed, 10 Jul 2002 16:19:01 -0700 (PDT) Subject: [mapserver-users] labeling In-Reply-To: <20020710225634.GA4779@extempore.otsys.com> Message-ID: My method is very similiar except you have TILEINDEX and I have DATA and I dont use CLASSITEM. My EXPRESSIONs work without CLASSITEM. Is there a reason for using TILEINDEX over DATA and using CLASSITEM? Seamus On Wed, 10 Jul 2002, Joe Bussell wrote: > We use a road classification value which is present in our *.dbf files. > The trick is to define different classes depending on the data. > > LAYER > NAME cityCenter > GROUP defaultLayer > TYPE POINT > TILEINDEX td_sm.shp > STATUS ON > LABELITEM "NAME" > CLASSITEM "DISPCLASS" > MAXSCALE 9000 > > CLASS > EXPRESSION ( ( [DISPCLASS] = 3 ) ) > #NAME "Big City" > ... > END > > CLASS > EXPRESSION ( ( [DISPCLASS] = 6 ) ) > #NAME "Medium City" > ... > END > END > > For roads it is very similar, except I have a functional road class to > work with. > > Joe Bussell > On Time Systems > > > > On Wed, Jul 10, 2002 at 12:41:26PM -0700, Seamus Thomas Carroll wrote: > > Hi, > > > > I am labeling various cities and roads I have the problem of roads and > > smaller cities being labelled and the larger cities not being labeled. > > All cities are part of the same layer and all roads are part of the same layer. > > The map file is outlined as follows: > > > > LAYER # road drawing layer > > > > CLASS > > # highway drawing layer > > END > > > > CLASS > > # road drawing layer > > END > > END # end of road drawing layer > > > > LAYER # road label layer > > > > CLASS > > # highways label info > > END > > > > CLASS > > # road label info > > END > > END # end of road label layer > > > > > > LAYER # city layer > > > > CLASS > > #Largest city info > > #Labeling and drawing of points > > END > > > > CLASS > > #Medium city info > > END > > > > CLASS > > #Small city info > > #Labeling and drawing of points > > END > > END # end of city layer > > > > I want the labeling to go in this order of precedence: > > 1) larger city > > 2) small city > > 3) highway > > 4) road > > Any suggestions? > > > > At some zoom levels things look correct and at others they dont. I have > > tried changing the order of the layers and the order of the classes > > within the layers. The FORCE command wont be useful because there are > > major cities side by side and I dont want overlap. > > Thanks for reading this far and any suggestions would be much appreciated. > > > > Seamus > > > > > From joe at otsys.com Wed Jul 10 16:32:33 2002 From: joe at otsys.com (Joe Bussell) Date: Wed, 10 Jul 2002 16:32:33 -0700 Subject: [mapserver-users] labeling In-Reply-To: References: <20020710225634.GA4779@extempore.otsys.com> Message-ID: <20020710233233.GA8138@extempore.otsys.com> This is an artifact of my data source. I have data from five counties which had to be assembled into a tile set first. The classitem is necesary for the expression syntax to work I think. It defines the bit in the *.dbf file that you split the cases on. Joe Bussell On Time Systems On Wed, Jul 10, 2002 at 04:19:01PM -0700, Seamus Thomas Carroll wrote: > My method is very similiar except you have TILEINDEX and I have DATA and I > dont use CLASSITEM. My EXPRESSIONs work without CLASSITEM. > > Is there a reason for using TILEINDEX over DATA and using CLASSITEM? > > Seamus > > > > > > On Wed, 10 Jul 2002, Joe Bussell wrote: > > > We use a road classification value which is present in our *.dbf files. > > The trick is to define different classes depending on the data. > > > > LAYER > > NAME cityCenter > > GROUP defaultLayer > > TYPE POINT > > TILEINDEX td_sm.shp > > STATUS ON > > LABELITEM "NAME" > > CLASSITEM "DISPCLASS" > > MAXSCALE 9000 > > > > CLASS > > EXPRESSION ( ( [DISPCLASS] = 3 ) ) > > #NAME "Big City" > > ... > > END > > > > CLASS > > EXPRESSION ( ( [DISPCLASS] = 6 ) ) > > #NAME "Medium City" > > ... > > END > > END > > > > For roads it is very similar, except I have a functional road class to > > work with. > > > > Joe Bussell > > On Time Systems > > > > > > > > On Wed, Jul 10, 2002 at 12:41:26PM -0700, Seamus Thomas Carroll wrote: > > > Hi, > > > > > > I am labeling various cities and roads I have the problem of roads and > > > smaller cities being labelled and the larger cities not being labeled. > > > All cities are part of the same layer and all roads are part of the same layer. > > > The map file is outlined as follows: > > > > > > LAYER # road drawing layer > > > > > > CLASS > > > # highway drawing layer > > > END > > > > > > CLASS > > > # road drawing layer > > > END > > > END # end of road drawing layer > > > > > > LAYER # road label layer > > > > > > CLASS > > > # highways label info > > > END > > > > > > CLASS > > > # road label info > > > END > > > END # end of road label layer > > > > > > > > > LAYER # city layer > > > > > > CLASS > > > #Largest city info > > > #Labeling and drawing of points > > > END > > > > > > CLASS > > > #Medium city info > > > END > > > > > > CLASS > > > #Small city info > > > #Labeling and drawing of points > > > END > > > END # end of city layer > > > > > > I want the labeling to go in this order of precedence: > > > 1) larger city > > > 2) small city > > > 3) highway > > > 4) road > > > Any suggestions? > > > > > > At some zoom levels things look correct and at others they dont. I have > > > tried changing the order of the layers and the order of the classes > > > within the layers. The FORCE command wont be useful because there are > > > major cities side by side and I dont want overlap. > > > Thanks for reading this far and any suggestions would be much appreciated. > > > > > > Seamus > > > > > > > > > > From tesimap at hotmail.com Wed Jul 10 16:52:34 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 11 Jul 2002 01:52:34 +0200 Subject: [mapserver-users] question about GMAP demo Message-ID: I have changed the line "RESULT_FIELDS" "NOMEVIA" "COD_VIA" "LENGTH" in "RESULT_FIELDS" "NOMEVIA COD_VIA LENGTH" but I haven't still result when I do a query. This is my problem. Any idea? Regards Ivan >From: Yewondwossen Assefa >To: Ivan Paoluzzi >CC: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] question about GMAP demo >Date: Wed, 10 Jul 2002 16:23:16 -0400 > >Hi There, > > What is wrong exactly ? What kind of errors do you recieve ? You should >give more details on the error or problem. > > >Checking your layer here are the comments I have : > > - The template entry is necessary to do queries, the value is not >critical here. > > - One error that I see is the way you defined the RESULT_FIELDS" tag. >It should be define like this : > "RESULT_FIELDS" "NOMEVIA COD_VIA LENGTH" > > The GMap demo application assumes to find the DB fields names with a >space between the names. > > > >Best Regards, > > > >Ivan Paoluzzi wrote: > > > Hi, > > I have install GMAP demo and it works very well! > > > > But I have a question, this is my layer: > > > > LAYER > > NAME assist > > METADATA > > "DESCRIPTION" "Assi Stradali" > > "RESULT_FIELDS" "NOMEVIA" "COD_VIA" "LENGTH" > > END > > TYPE LINE > > STATUS ON > > DATA assist > > TOLERANCE 8 > > LABELITEM nomevia > > LABELMAXSCALE 20000 > > CLASS > > NAME "Assi Stradali" > > TEMPLATE "ttt_query.html" > > COLOR 0 0 100 > > LABEL > > COLOR 255 0 0 > > FONT fritqat > > TYPE TRUETYPE > > SIZE 8 > > ANTIALIAS TRUE > > POSITION AUTO > > ANGLE AUTO > > MINFEATURESIZE 40 > > MINDISTANCE 100 > > PARTIALS FALSE > > BUFFER 3 > > END #LABEL > > END # CLASS > > TOLERANCE 5 > > END # LAYER > > > > Why it doesn't work? > > I don't understand the line TEMPLATE "ttt_query.html". > > I don't find this template in application files, where is it? > > > > Thanks. > > > > _________________________________________________________________ > > Chiacchiera con gli amici online, prova MSN Messenger: > > http://messenger.msn.it > >-- >---------------------------------------------------------------- >Assefa Yewondwossen >Software Analyst > >Email: assefa at dmsolutions.ca >http://www.dmsolutions.ca/ > >Phone: (613) 565-5056 (ext 14) >Fax: (613) 565-0925 >---------------------------------------------------------------- _________________________________________________________________ Specisci e ricevi le tue email Hotmail dal tuo cellulare con: http://mobile.msn.it From woodbri at swoodbridge.com Wed Jul 10 17:06:54 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 10 Jul 2002 20:06:54 -0400 Subject: [mapserver-users] labeling In-Reply-To: References: <3D2C6260.25390.1AB1BA4@localhost> Message-ID: <3D2C93DE.18971.26C6EBA@localhost> On 10 Jul 2002 at 15:48, Seamus Thomas Carroll wrote: > So what your are saying is create 4 layers with the labels I want to stand > out the most on the bottom of the map file. I should split up my classes > into layers. So the new order of the map file would be: > > 1) road layer > 2) highway layer > 3) small city layer > 4) larger city layer > > Using FILTERITEM to filter the layers. Yes/No ? Yes and you can use FILTER also. To do what you want to do you can NOT just use CLASS because the items in the shape file are rendered in the order they are found in the shapefile, NOT the order that is specified by the CLASS expressions. > > Seamus > > > > > On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote: > > > On 10 Jul 2002 at 12:41, Seamus Thomas Carroll wrote: > > > > > I want the labeling to go in this order of precedence: > > > 1) larger city > > > 2) small city > > > 3) highway > > > 4) road > > > Any suggestions? > > > > Use annotation layers which will allow you some control over which > > layer gets rendered first, BUT within a layer the objects get > > rendered in order they are in the file. Sooo, you can order them by > > sorting the shapefile, Orrrr you can create 4 annotation layers as > > you list above and use a FILTERITEM or CLASSITEM to select only the > > given objects that you want to annotate in the the given layer. > > > > I hope this is clear. > > > > -Steve > > > > From allanp at campeb.org Wed Jul 10 22:11:26 2002 From: allanp at campeb.org (Al) Date: Thu, 11 Jul 2002 00:11:26 -0500 (EST) Subject: [mapserver-users] Increase Line Thickness in mapfile In-Reply-To: Message-ID: I am hoping and thinking this is a simple question. How would I increase the thicknes of a layer of lines..like roads? It looks to default to a single pixel, but I would like the lines to be around 4-5 pixels thick. tx al From carrolls at unbc.ca Wed Jul 10 22:12:10 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Wed, 10 Jul 2002 22:12:10 -0700 (PDT) Subject: [mapserver-users] labeling In-Reply-To: <3D2C93DE.18971.26C6EBA@localhost> Message-ID: I see, The class structure is like an if, else expression. Take the next item in the dbf. If the item belongs in the first class in the layer put it there, else look in the next class and so on. Go on to the next item in the dbf. Now that I have that understood I can make more efficient code. Seamus On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote: > On 10 Jul 2002 at 15:48, Seamus Thomas Carroll wrote: > > > So what your are saying is create 4 layers with the labels I want to stand > > out the most on the bottom of the map file. I should split up my classes > > into layers. So the new order of the map file would be: > > > > 1) road layer > > 2) highway layer > > 3) small city layer > > 4) larger city layer > > > > Using FILTERITEM to filter the layers. Yes/No ? > > Yes and you can use FILTER also. To do what you want to do you can > NOT just use CLASS because the items in the shape file are rendered > in the order they are found in the shapefile, NOT the order that is > specified by the CLASS expressions. > > > > > Seamus > > > > > > > > > > On Wed, 10 Jul 2002 woodbri at swoodbridge.com wrote: > > > > > On 10 Jul 2002 at 12:41, Seamus Thomas Carroll wrote: > > > > > > > I want the labeling to go in this order of precedence: > > > > 1) larger city > > > > 2) small city > > > > 3) highway > > > > 4) road > > > > Any suggestions? > > > > > > Use annotation layers which will allow you some control over which > > > layer gets rendered first, BUT within a layer the objects get > > > rendered in order they are in the file. Sooo, you can order them by > > > sorting the shapefile, Orrrr you can create 4 annotation layers as > > > you list above and use a FILTERITEM or CLASSITEM to select only the > > > given objects that you want to annotate in the the given layer. > > > > > > I hope this is clear. > > > > > > -Steve > > > > > > > > > From tesimap at hotmail.com Wed Jul 10 23:44:12 2002 From: tesimap at hotmail.com (Ivan Paoluzzi) Date: Thu, 11 Jul 2002 08:44:12 +0200 Subject: [mapserver-users] NEW question about GMAP demo Message-ID: HI, Thanks to the MS users; I have resolved my problem (the results of a query return) but I have an other. When I do a query I have a new extent of map as I do a zoomin. Any idea? Regards Ivan _________________________________________________________________ MSN Hotmail ? il provider email pi? grande al mondo cosa aspetti a farti un account? http://www.hotmail.it From hklinge at spektra.de Thu Jul 11 00:31:38 2002 From: hklinge at spektra.de (Holger Klinge) Date: Thu, 11 Jul 2002 09:31:38 +0200 Subject: AW: [mapserver-users] Increase Line Thickness in mapfile Message-ID: <91531C2EF097D94ABD7C10E7E914D3C0172631@victoria.spektra.de> 1. Create a symbol in the file symbols.sym, e.g. SYMBOL NAME "circle" TYPE ELLIPSE FILLED POINTS 1 1 END END 2. Reference the symbolfile in the mapfile, e.g. SYMBOLSET symbols/symbols.sym 3. Use the symbol in the layer and define thickness in pixel with the size parameter, e.g. LAYER ... CLASS SYMBOL "circle" SIZE 4 ... END END Holger -----Urspr?ngliche Nachricht----- Von: Al [mailto:allanp at campeb.org] Gesendet: Donnerstag, 11. Juli 2002 07:11 An: al Cc: mapserver-users at lists.gis.umn.edu Betreff: [mapserver-users] Increase Line Thickness in mapfile I am hoping and thinking this is a simple question. How would I increase the thicknes of a layer of lines..like roads? It looks to default to a single pixel, but I would like the lines to be around 4-5 pixels thick. tx al From mschulz at webgis.de Thu Jul 11 01:22:46 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 11 Jul 2002 10:22:46 +0200 Subject: [mapserver-users] Python Mapscript MS 3.6.1 References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> Message-ID: <3D2D4056.9E785173@webgis.de> Dear List, i am also stuck in compiling python mapscript. I use swig 1.1 and mapserver 3.6.0 (problem?) I changed the mapscript.i file according to the mail from Sean, but to no avail. When compiling I still get following errors: ... mapscript_wrap.c: In function `_wrap_imageObj_free': mapscript_wrap.c:4926: parse error before `*' mapscript_wrap.c:4927: `ms_error' undeclared (first use in this function) ... Hmm, Vinko, could you send your mapscript.i file? Or anybody got a clue why it isn't working? Cheers, Michael Vinko Vrsalovic schrieb: > On Wed, Jul 10, 2002 at 02:50:51PM -0600, Sean Gillies wrote: > > Vinko Vrsalovic wrote: > > > Hello, > > > > > > I've been trying to compile the mapscript python module, but I > > > keep finding this errors: > > > > > [snip] > > > > Vinko, > > > > One of your problems (regarding ms_error) occurs because the > > mapscript.i included with mapserver 3.6.1 is a bit out-of-date. > > > > Edit the Python specific section to match the following: > > > > [snap] > > > The key thing is to get an errorObj returned from msGetErrorObj(). > > Thanks a lot! The warnings from swig didn't disappear (as expected), but were > irrelevant to the working of the module (as expected too), now I'm happily coding in > PyMapScript :-) > > BTW, Vine's script is very useful in installing the module. > > (Why isn't mapscript.i fixed in the official distribution? Should i send > the fixed file to Steve?) > -- > Vinko Vrsalovic > http://www.cprsig.cl -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From vinko at cprsig.cl Thu Jul 11 02:01:30 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Thu, 11 Jul 2002 05:01:30 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <3D2D4056.9E785173@webgis.de> References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> <3D2D4056.9E785173@webgis.de> Message-ID: <20020711090130.GA4844@landsat.cprsig.cl> On Thu, Jul 11, 2002 at 10:22:46AM +0200, Michael Schulz wrote: > Dear List, > > i am also stuck in compiling python mapscript. I use swig 1.1 and mapserver 3.6.0 > (problem?) > > I changed the mapscript.i file according to the mail from Sean, but to no avail. When > compiling I still get following errors: > > ... > mapscript_wrap.c: In function `_wrap_imageObj_free': > mapscript_wrap.c:4926: parse error before `*' > mapscript_wrap.c:4927: `ms_error' undeclared (first use in this function) > ... > > Hmm, Vinko, could you send your mapscript.i file? Or anybody got a clue why it isn't > working? Humm, I don't know what happens in 3.6.0, but what does the line 4926 looks like? In any case, i send the mapscript.i corrected for 3.6.1 Hope it helps you. BTW (i know this is not the place, but taking advantage of the oppurtunity), has anyone installed mod_python for apache? starting apache with it makes the following error: Syntax error on line 20 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_python.so into server: /etc/httpd/modules/mod_python.so: undefined symbol: openpty That's probably because the module isn't liked against libpty, but in the configure of the mod_python package there's no way to specify the libs to link against. (I'm using python 2.2 and the mod_python docs say it'll work 'til python 2.1) -- Vinko Vrsalovic http://www.cprsig.cl -------------- next part -------------- // // mapscript.i: SWIG interface file for MapServer scripting extension called MapScript. // // language specific initialization #ifdef SWIGTCL8 %module Mapscript %{ /* static global copy of Tcl interp */ static Tcl_Interp *SWIG_TCL_INTERP; %} %init %{ #ifdef USE_TCL_STUBS if (Tcl_InitStubs(interp, "8.1", 0) == NULL) { return TCL_ERROR; } /* save Tcl interp pointer to be used in getImageToVar() */ SWIG_TCL_INTERP = interp; #endif %} #endif %module mapscript %{ #include "../../map.h" #include "../../maptemplate.h" %} %include typemaps.i %include constraints.i %rename (_class) class; // grab mapserver declarations to wrap %include "../../mapprimitive.h" %include "../../mapshape.h" %include "../../mapproject.h" %include "../../map.h" //%include "../../maperror.h" %apply Pointer NONNULL { mapObj *map }; %apply Pointer NONNULL { layerObj *layer }; #ifdef SWIGPYTHON // For Python, errors reported via the ms_error structure are translated // into RuntimeError exceptions. (Chris Chamberlin ) %{ static void _raise_ms_exception(void) { char errbuf[256]; errorObj *ms_error = msGetErrorObj(); snprintf(errbuf, 255, "%s: %s %s\n", ms_error->routine, msGetErrorString(ms_error->code), ms_error->message); _SWIG_exception(SWIG_RuntimeError, errbuf); } #define raise_ms_exception() { _raise_ms_exception(); return NULL; } %} %except { $function errorObj *ms_error = msGetErrorObj(); if ( (ms_error->code != MS_NOERR) && (ms_error->code != -1) ) raise_ms_exception(); } #endif // SWIGPYTHON // // class extensions for mapObj // %addmethods mapObj { mapObj(char *filename) { mapObj *map; if(filename && strlen(filename)) return msLoadMap(filename, NULL); else { /* create an empty map, no layers etc... */ map = (mapObj *)malloc(sizeof(mapObj)); if(!map) { msSetError(MS_MEMERR, NULL, "msLoadMap()"); return NULL; } initMap(map); return map; } } ~mapObj() { msFreeMap(self); } layerObj *getLayer(int i) { if(i >= 0 && i < self->numlayers) return &(self->layers[i]); /* returns an EXISTING layer */ else return NULL; } layerObj *getLayerByName(char *name) { int i; i = msGetLayerIndex(self, name); if(i != -1) return &(self->layers[i]); /* returns an EXISTING layer */ else return NULL; } int addColor(int r, int g, int b) { return msAddColor(self, r, g, b); } int getSymbolByName(char *name) { return msGetSymbolIndex(&self->symbolset, name); } void prepareQuery() { int status; status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scale); if(status != MS_SUCCESS) self->scale = -1; // degenerate extents ok here } imageObj *prepareImage() { int status; imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; if(self->width == -1 || self->height == -1) { msSetError(MS_MISCERR, "Image dimensions not specified.", "prepareImage()"); return NULL; } image->bytes = gdImageCreate(self->width, self->height); if(!image->bytes) { msSetError(MS_GDERR, "Unable to initialize image.", "prepareImage()"); return NULL; } image->width = self->width; image->height = self->height; image->imagepath = image->imageurl = NULL; if(msLoadPalette(image->bytes, &(self->palette), self->imagecolor) == -1) return NULL; self->cellsize = msAdjustExtent(&(self->extent), self->width, self->height); status = msCalculateScale(self->extent, self->units, self->width, self->height, self->resolution, &self->scale); if(status != MS_SUCCESS) return NULL; return image; } imageObj *draw() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawQuery() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawQueryMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawLegend() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawLegend(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawScalebar() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawScalebar(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } imageObj *drawReferenceMap() { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msDrawReferenceMap(self); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } int embedScalebar(imageObj *image) { return msEmbedScalebar(self, image->bytes); } int embedLegend(imageObj *image) { return msEmbedLegend(self, image->bytes); } int drawLabelCache(imageObj *image) { return msDrawLabelCache(image->bytes, self); } int getImageToVar(imageObj *image, char *varname) { // set a scripting language variable by name with image data int size = 0; unsigned char *imgbytes; // Tcl implementation to define needed variables, initialization #ifdef SWIGTCL8 Tcl_Obj *imgobj; int flags = TCL_LEAVE_ERR_MSG; /* no other initialization needed */ #endif // Perl implementation to define needed variables, initialization #ifdef SWIGPERL #endif // Python implementation to define needed variables, initialization #ifdef SWIGPYTHON #endif // generic code to get imgbytes, size switch (self->imagetype) { case(MS_GIF): #ifdef USE_GD_GIF // GD /w gif doesn't have gdImageGifPtr() msSetError(MS_MISCERR, "GIF output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_PNG): #ifdef USE_GD_PNG imgbytes = gdImagePngPtr(image->bytes, &size); #else msSetError(MS_MISCERR, "PNG output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_JPEG): #ifdef USE_GD_JPEG imgbytes = gdImageJpegPtr(image->bytes, &size, self->imagequality); #else msSetError(MS_MISCERR, "JPEG output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; case(MS_WBMP): #ifdef USE_GD_WBMP imgbytes = gdImageWBMPPtr(image->bytes, &size, 1); #else msSetError(MS_MISCERR, "WBMP output is not available.", "getImageToVar()"); return(MS_FAILURE); #endif break; default: msSetError(MS_MISCERR, "Unknown output image type.", "getImageToVar()"); return(MS_FAILURE); } // Tcl implementation to set variable #ifdef SWIGTCL8 imgobj = Tcl_NewByteArrayObj(imgbytes, size); Tcl_IncrRefCount(imgobj); Tcl_SetVar2Ex(SWIG_TCL_INTERP, varname, (char *)NULL, imgobj, flags); Tcl_DecrRefCount(imgobj); gdFree(imgbytes); return MS_SUCCESS; #endif // Perl implementation to set variable #ifdef SWIGPERL #endif // Python implementation to set variable #ifdef SWIGPYTHON #endif // return failure for unsupported swig languages msSetError(MS_MISCERR, "Unsupported scripting language.", "getImageToVar()"); return MS_FAILURE; } labelCacheMemberObj *nextLabel() { static int i=0; if(ilabelcache.numlabels) return &(self->labelcache.labels[i++]); else return NULL; } int queryByPoint(pointObj *point, int mode, double buffer) { return msQueryByPoint(self, -1, mode, *point, buffer); } int queryByRect(rectObj rect) { return msQueryByRect(self, -1, rect); } int queryByFeatures(int slayer) { return msQueryByFeatures(self, -1, slayer); } int queryByShape(shapeObj *shape) { return msQueryByShape(self, -1, shape); } int setWKTProjection(char *string) { return msLoadWKTProjectionString(string, &(self->projection)); } %new char *getProjection() { return msGetProjectionString(&(self->projection)); } int setProjection(char *string) { return msLoadProjectionString(&(self->projection), string); } int save(char *filename) { return msSaveMap(self, filename); } int saveQuery(char *filename) { return msSaveQuery(self, filename); } int saveQueryAsGML(char *filename) { return msGMLWriteQuery(self, filename); } char *getMetaData(char *name) { return(msLookupHashTable(self->web.metadata, name)); } int setMetaData(char *name, char *value) { if (!self->web.metadata) self->web.metadata = msCreateHashTable(); if (msInsertHashTable(self->web.metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } int setSymbolSet(char *szFileName) { msFreeSymbolSet(&self->symbolset); msInitSymbolSet(&self->symbolset); // Set symbolset filename self->symbolset.filename = strdup(szFileName); // Symbolset shares same fontset as main mapfile self->symbolset.fontset = &(self->fontset); return msLoadSymbolSet(&self->symbolset); } int mapObj_getNumSymbols() { return self->symbolset.numsymbols; } int moveLayerup(int layerindex) { return msMoveLayerUp(self, layerindex); } int moveLayerdown(int layerindex) { return msMoveLayerDown(self, layerindex); } int *getLayersdrawingOrder() { return self->layerorder; } int setLayersdrawingOrder(int *panIndexes) { return msSetLayersdrawingOrder(self, panIndexes); } char *processTemplate(int bGenerateImages, char **names, char **values, int numentries) { return msProcessTemplate(self, bGenerateImages, names, values, numentries); } char *processLegendTemplate(char **names, char **values, int numentries) { return msProcessLegendTemplate(self, names, values, numentries); } char *processQueryTemplate(char **names, char **values, int numentries) { return msProcessQueryTemplate(self, names, values, numentries); } } // // class extensions for layerObj, always within the context of a map // %addmethods layerObj { layerObj(mapObj *map) { if(map->numlayers == MS_MAXLAYERS) // no room return(NULL); if(initLayer(&(map->layers[map->numlayers])) == -1) return(NULL); map->layers[map->numlayers].index = map->numlayers; map->layerorder[map->numlayers] = map->numlayers; map->numlayers++; return &(map->layers[map->numlayers-1]); } ~layerObj() { return; // map deconstructor takes care of it } int open(char *path) { int status; status = msLayerOpen(self, path); if (status == MS_SUCCESS) { return msLayerGetItems(self); } return status; } void close() { msLayerClose(self); } int getShape(shapeObj *shape, int tileindex, int shapeindex) { return msLayerGetShape(self, shape, tileindex, shapeindex); } resultCacheMemberObj *getResult(int i) { if(!self->resultcache) return NULL; if(i >= 0 && i < self->resultcache->numresults) return &self->resultcache->results[i]; else return NULL; } classObj *getClass(int i) { // returns an EXISTING class if(i >= 0 && i < self->numclasses) return &(self->class[i]); else return NULL; } char *getItem(int i) { // returns an EXISTING item if(i >= 0 && i < self->numitems) return (self->items[i]); else return NULL; } int draw(mapObj *map, imageObj *image) { return msDrawLayer(map, self, image->bytes); } int drawQuery(mapObj *map, imageObj *image) { return msDrawLayer(map, self, image->bytes); } int queryByAttributes(mapObj *map, int mode) { return msQueryByAttributes(map, self->index, mode); } int queryByPoint(mapObj *map, pointObj *point, int mode, double buffer) { return msQueryByPoint(map, self->index, mode, *point, buffer); } int queryByRect(mapObj *map, rectObj rect) { return msQueryByRect(map, self->index, rect); } int queryByFeatures(mapObj *map, int slayer) { return msQueryByFeatures(map, self->index, slayer); } int queryByShape(mapObj *map, shapeObj *shape) { return msQueryByShape(map, self->index, shape); } int setFilter(char *string) { return loadExpressionString(&self->filter, string); } int setWKTProjection(char *string) { return msLoadWKTProjectionString(string, &(self->projection)); } %new char *getProjection() { return msGetProjectionString(&(self->projection)); } int setProjection(char *string) { return msLoadProjectionString(&(self->projection), string); } int addFeature(shapeObj *shape) { self->connectiontype = MS_INLINE; // set explicitly if(insertFeatureList(&(self->features), shape) == NULL) return -1; else return 0; } char *getMetaData(char *name) { return(msLookupHashTable(self->metadata, name)); } int setMetaData(char *name, char *value) { if (!self->metadata) self->metadata = msCreateHashTable(); if (msInsertHashTable(self->metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } // No longer a memory leak, at least with swig 1.3.11. Swig makes a copy // of the returned string and then free's it. %new char *getWMSFeatureInfoURL(mapObj *map, int click_x, int click_y, int feature_count, char *info_format) { return(msWMSGetFeatureInfoURL(map, self, click_x, click_y, feature_count, info_format)); } } // // class extensions for classObj, always within the context of a layer // %addmethods classObj { classObj(layerObj *layer) { if(layer->numclasses == MS_MAXCLASSES) // no room return NULL; if(initClass(&(layer->class[layer->numclasses])) == -1) return NULL; layer->class[layer->numclasses].type = layer->type; layer->numclasses++; return &(layer->class[layer->numclasses-1]); } ~classObj() { return; // do nothing, map deconstrutor takes care of it all } int setExpression(char *string) { return loadExpressionString(&self->expression, string); } int setText(layerObj *layer, char *string) { return loadExpressionString(&self->text, string); } char *getMetaData(char *name) { return(msLookupHashTable(self->metadata, name)); } int setMetaData(char *name, char *value) { if (!self->metadata) self->metadata = msCreateHashTable(); if (msInsertHashTable(self->metadata, name, value) == NULL) return MS_FAILURE; return MS_SUCCESS; } int drawLegendIcon(mapObj *map, layerObj *layer, int width, int height, imageObj *dstImage, int dstX, int dstY) { return msDrawLegendIcon(map, layer, self, width, height, dstImage->bytes, dstX, dstY); } imageObj *createLegendIcon(mapObj *map, layerObj *layer, int width, int height) { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = msCreateLegendIcon(map, layer, self, width, height); image->width = gdImageSX(image->bytes); image->height = gdImageSY(image->bytes); image->imagepath = image->imageurl = NULL; return image; } } // // class extensions for pointObj, useful many places // %addmethods pointObj { pointObj() { return (pointObj *)malloc(sizeof(pointObj)); } ~pointObj() { free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectPoint(in, out, self); } int draw(mapObj *map, layerObj *layer, imageObj *image, int classindex, char *text) { return msDrawPoint(map, layer, self, image->bytes, classindex, text); } double distanceToPoint(pointObj *point) { return msDistanceBetweenPoints(self, point); } double distanceToLine(pointObj *a, pointObj *b) { return msDistanceFromPointToLine(self, a, b); } double distanceToShape(shapeObj *shape) { switch(shape->type) { case(MS_SHAPE_POINT): return msDistanceFromPointToMultipoint(self, &(shape->line[0])); case(MS_SHAPE_LINE): return msDistanceFromPointToPolyline(self, shape); case(MS_SHAPE_POLYGON): return msDistanceFromPointToPolygon(self, shape); } return -1; } } // // class extensions for lineObj (eg. a line or group of points), useful many places // %addmethods lineObj { lineObj() { lineObj *line; line = (lineObj *)malloc(sizeof(lineObj)); if(!line) return(NULL); line->numpoints=0; line->point=NULL; return line; } ~lineObj() { free(self->point); free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectLine(in, out, self); } pointObj *get(int i) { if(i<0 || i>=self->numpoints) return NULL; else return &(self->point[i]); } int add(pointObj *p) { if(self->numpoints == 0) { /* new */ self->point = (pointObj *)malloc(sizeof(pointObj)); if(!self->point) return -1; } else { /* extend array */ self->point = (pointObj *)realloc(self->point, sizeof(pointObj)*(self->numpoints+1)); if(!self->point) return -1; } self->point[self->numpoints].x = p->x; self->point[self->numpoints].y = p->y; self->numpoints++; return 0; } } // // class extensions for shapeObj // %addmethods shapeObj { shapeObj(int type) { shapeObj *shape; shape = (shapeObj *)malloc(sizeof(shapeObj)); if(!shape) return NULL; msInitShape(shape); if(type >= 0) shape->type = type; return shape; } ~shapeObj() { msFreeShape(self); free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectShape(in, out, self); } lineObj *get(int i) { if(i<0 || i>=self->numlines) return NULL; else return &(self->line[i]); } int add(lineObj *line) { return msAddLine(self, line); } int draw(mapObj *map, layerObj *layer, imageObj *image) { return msDrawShape(map, layer, self, image->bytes, MS_TRUE); } void setBounds() { int i, j; self->bounds.minx = self->bounds.maxx = self->line[0].point[0].x; self->bounds.miny = self->bounds.maxy = self->line[0].point[0].y; for( i=0; inumlines; i++ ) { for( j=0; jline[i].numpoints; j++ ) { self->bounds.minx = MS_MIN(self->bounds.minx, self->line[i].point[j].x); self->bounds.maxx = MS_MAX(self->bounds.maxx, self->line[i].point[j].x); self->bounds.miny = MS_MIN(self->bounds.miny, self->line[i].point[j].y); self->bounds.maxy = MS_MAX(self->bounds.maxy, self->line[i].point[j].y); } } return; } int copy(shapeObj *dest) { return(msCopyShape(self, dest)); } char *getValue(int i) { // returns an EXISTING value if(i >= 0 && i < self->numvalues) return (self->values[i]); else return NULL; } int contains(pointObj *point) { if(self->type == MS_SHAPE_POLYGON) return msIntersectPointPolygon(point, self); return -1; } int intersects(shapeObj *shape) { switch(self->type) { case(MS_SHAPE_LINE): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylines(self, shape); case(MS_SHAPE_POLYGON): return msIntersectPolylinePolygon(self, shape); } break; case(MS_SHAPE_POLYGON): switch(shape->type) { case(MS_SHAPE_LINE): return msIntersectPolylinePolygon(shape, self); case(MS_SHAPE_POLYGON): return msIntersectPolygons(self, shape); } break; } return -1; } } // // class extensions for rectObj // %addmethods rectObj { rectObj() { rectObj *rect; rect = (rectObj *)calloc(1, sizeof(rectObj)); if(!rect) return(NULL); return(rect); } ~rectObj() { free(self); } int project(projectionObj *in, projectionObj *out) { return msProjectRect(in, out, self); } double fit(int width, int height) { return msAdjustExtent(self, width, height); } int draw(mapObj *map, layerObj *layer, imageObj *image, int classindex, char *text) { shapeObj shape; msInitShape(&shape); msRectToPolygon(*self, &shape); shape.classindex = classindex; shape.text = strdup(text); msDrawShape(map, layer, &shape, image->bytes, MS_TRUE); msFreeShape(&shape); return 0; } } // // class extensions for shapefileObj // %addmethods shapefileObj { shapefileObj(char *filename, int type) { shapefileObj *shapefile; int status; shapefile = (shapefileObj *)malloc(sizeof(shapefileObj)); if(!shapefile) return NULL; if(type == -1) status = msSHPOpenFile(shapefile, "rb", NULL, filename); else if(type == -2) status = msSHPOpenFile(shapefile, "rb+", NULL, filename); else status = msSHPCreateFile(shapefile, filename, type); if(status == -1) { msSHPCloseFile(shapefile); free(shapefile); return NULL; } return(shapefile); } ~shapefileObj() { msSHPCloseFile(self); free(self); } int get(int i, shapeObj *shape) { if(i<0 || i>=self->numshapes) return -1; msFreeShape(shape); /* frees all lines and points before re-filling */ msSHPReadShape(self->hSHP, i, shape); return 0; } int getPoint(int i, pointObj *point) { if(i<0 || i>=self->numshapes) return -1; msSHPReadPoint(self->hSHP, i, point); return 0; } int getTransformed(mapObj *map, int i, shapeObj *shape) { if(i<0 || i>=self->numshapes) return -1; msFreeShape(shape); /* frees all lines and points before re-filling */ msSHPReadShape(self->hSHP, i, shape); msTransformShape(shape, map->extent, map->cellsize); return 0; } void getExtent(int i, rectObj *rect) { msSHPReadBounds(self->hSHP, i, rect); } int add(shapeObj *shape) { return msSHPWriteShape(self->hSHP, shape); } int addPoint(pointObj *point) { return msSHPWritePoint(self->hSHP, point); } } // // class extensions for imageObj // %addmethods imageObj { imageObj(int width, int height) { imageObj *image=NULL; image = (imageObj *)malloc(sizeof(imageObj)); if(!image) return NULL; image->bytes = gdImageCreate(width, height); image->width = width; image->height = height; image->imagepath = image->imageurl = NULL; return(image); } ~imageObj() { gdImageDestroy(self->bytes); free(self->imagepath); free(self->imageurl); free(self); } void free() { gdImageDestroy(self->bytes); free(self->imagepath); free(self->imageurl); free(self); } void saveImage(char *filename, int type, int transparent, int interlace, int quality) { msSaveImage(self->bytes, filename, type, transparent, interlace, quality); } } // // class extensions for projectionObj // %addmethods projectionObj { projectionObj(char *string) { int status; projectionObj *proj=NULL; proj = (projectionObj *)malloc(sizeof(projectionObj)); if(!proj) return NULL; msInitProjection(proj); status = msLoadProjectionString(proj, string); if(status == -1) { msFreeProjection(proj); free(proj); return NULL; } return proj; } ~projectionObj() { msFreeProjection(self); free(self); } } // // class extensions for labelCacheObj - TP mods // %addmethods labelCacheObj { void freeCache() { int i; for (i = 0; i < self->numlabels; i++) { free(self->labels[i].string); msFreeShape(self->labels[i].poly); } self->numlabels = 0; for (i = 0; i < self->nummarkers; i++) { msFreeShape(self->markers[i].poly); } self->nummarkers = 0; } } // // class extensions for DBFInfo - TP mods // %addmethods DBFInfo { char *getFieldName(int iField) { static char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pszFieldName; } int getFieldWidth(int iField) { char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pnWidth; } int getFieldDecimals(int iField) { char pszFieldName[1000]; int pnWidth; int pnDecimals; msDBFGetFieldInfo(self, iField, &pszFieldName[0], &pnWidth, &pnDecimals); return pnDecimals; } int getFieldType(int iField) { return msDBFGetFieldInfo(self, iField, NULL, NULL, NULL); } } From bpicinbono at esquirolcad.fr Thu Jul 11 03:22:10 2002 From: bpicinbono at esquirolcad.fr (Blaise Picinbono) Date: Thu, 11 Jul 2002 12:22:10 +0200 Subject: [mapserver-users] querybyattributes Message-ID: <003801c228c4$d80baca0$0f01a8c0@internet.net> Hi everybody I'm working with Windows and MapScript 3.5 I manage to make a simple query on attributes using setfilter and setfilteritem. Now I'd like to make a query like ( ( Field_A > 100) and (Field_B = "good") ) on a layer (shp,shx,dbf). I can't make it work. I moved to MapServer/MapScript 3.6, as the history.txt file say that querybyattributes had been improved, but it doesn't make any change. I can't understand the syntax, and, anyway, MapServer gives me an errror if setfilter and setfilteritem are not set. (the history.txt file of version 3.6 just tells that they are no more necessary). Can any one help me with complex queries on shape file (shp,shx,dbf) ? Thanks in advance ----------------------------------------------- Blaise Picinbono bpicinbono at esquirolcad.fr ----------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at wblogan.net Thu Jul 11 04:07:16 2002 From: ben at wblogan.net (Ben Logan) Date: Thu, 11 Jul 2002 07:07:16 -0400 Subject: [mapserver-users] Can't figure out queries with Mapscript. In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABBD2@postoffice.GASAI.Com>; from Chip.Hankley@GASAI.Com on Mon, Jul 08, 2002 at 08:57:59AM -0500 References: <3DFF131E4E6D2D4198CDD758F35A5353010ABBD2@postoffice.GASAI.Com> Message-ID: <20020711070716.A18941@wblogan.net> On Mon, Jul 08, 2002 at 08:57:59AM -0500, Hankley, Chip wrote: > There's probably a number of ways to do this, but here's how I do it (see > below). There's a Mapfile component, and a mapscript component. FWIW, this > is essentially exactly the way it's done in the GMAP demo. Thanks, Chip. This is a big help. I haven't had a chance to try it yet, but I understand the code. I was going about queries in the totally wrong manner. I went to the GMAP demo page, but didn't see where to download it. I guess I need to look harder. Regards, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 To be wise, the only thing you really need to know is when to say "I don't know." From hdi12 at it.canterbury.ac.nz Thu Jul 11 04:34:19 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Thu, 11 Jul 2002 23:34:19 +1200 Subject: [mapserver-users] warning in capabilities XML output Message-ID: <3D2AFFD5@webmail> Hi, I set up the mapserver as the WMS server. In the capabilities XML output there was a warning: WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the "Mapserver WMS Server How To". Where should this mandatory metadata be set in the mapfile? Thanks for any help! Regards, Ding From warmerdam at pobox.com Thu Jul 11 05:15:36 2002 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 11 Jul 2002 08:15:36 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> Message-ID: <3D2D76E8.2070106@pobox.com> Vinko Vrsalovic wrote: > Thanks a lot! The warnings from swig didn't disappear (as expected), but were > irrelevant to the working of the module (as expected too), now I'm happily coding in > PyMapScript :-) > > BTW, Vine's script is very useful in installing the module. > > (Why isn't mapscript.i fixed in the official distribution? Should i send > the fixed file to Steve?) Vinko, The mapscript.i file is fixed in CVS. Python MapScript isn't as actively maintained as Perl or PHP MapScript so it can be easily messed up in some releases. In short, I don't think you need to send in patches unless there is going to be a 3.6.2 release. I have also committed Norman Vine's setup.py script to CVS though I find it takes quite a bit of hand editing to build and install for different sets of build options. It would be nice for it to pick up more information about the MapServer build from the configure output at some point, but that isn't high on my priority list. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Chip.Hankley at GASAI.Com Thu Jul 11 06:22:49 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 11 Jul 2002 08:22:49 -0500 Subject: [mapserver-users] RE: Symbol Def. Help Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBE9@postoffice.GASAI.Com> I figured this out...at least on a windows machine, all that needs to be done in the character section is type what you want. For instance: SYMBOL NAME "fiberline" TYPE TRUETYPE FONT arial ANTIALIAS true CHARACTER "------ FO " END I'm still not sure what the "&#...;" is for in the docs on the web page. Chip -----Original Message----- From: Hankley, Chip Sent: Wednesday, July 10, 2002 3:58 PM To: MapServer List (E-mail) Subject: Symbol Def. Help I'm having a hard time figuring out a couple of things about symbol definitions. What I want to do, is make a symbol for a fiber optic line that looks like this: ------FO------FO------FO------FO I can get a trutype symbol to work, with ONE letter. 1) How can I get it to work with more than one character? 2) What is the "&#" part of the character mapping doing? Is there some reference for figuring out character mappings? TIA! Chip Hankley From hi-ono at mn.xdsl.ne.jp Thu Jul 11 06:48:44 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Thu, 11 Jul 2002 22:48:44 +0900 Subject: [mapserver-users] Where is any document of "MapServer C API" available? References: Message-ID: <005e01c228e1$ac7c11c0$650202c0@vip> Hello. Mapscirpt is a wrapper of MapServer C API. However I couldn't find this MapServer C API's document on Mapserver web page. Could you tell me Where any document of this is available? Best Regards. From btolka at geointeractive.biz Thu Jul 11 08:01:53 2002 From: btolka at geointeractive.biz (Bryan Tolka) Date: Thu, 11 Jul 2002 11:01:53 -0400 Subject: [mapserver-users] Rosa Applet and Query/Map Display Issues Message-ID: <3D2D9DE1.7020706@geointeractive.biz> Hello everyone, I am using the Rosa Appletin conjunction with PHP Mapscript. Everything is working fine until I try to use the query function. For example I will draw a rectangle around an area, it returns the correct info, but the Rosa interface or buttons(Zoom In, Zoom Out,Pan,Query) are then centered in the map display and the image is zoomed out a bit. If I then zoom in again, the problem corrects. Any suggestions or help is greatly apprectiated. Bryan Tolka From kridl at cs.und.edu Thu Jul 11 08:25:38 2002 From: kridl at cs.und.edu (Kent S Ridl) Date: Thu, 11 Jul 2002 10:25:38 -0500 (CDT) Subject: [mapserver-users] raster reprojection Message-ID: greetings list... i've been sifting through the message archives for the last couple days, so i know that this topic has been beat to death many times... please forgive me... my script was working joyously before i dove into reprojecting anything; everything (tifs, shapefiles) displayed as it should. when i began experiementing with reprojection, i got the shapefiles to do so with little problem, but the rasters won't. i'm sure of my extents, the original projections of my test images, etc. i can't think of anything else that could be screwing it up, so a vector from anyone out there would be most helpful. i'm running MS 3.5 (compiled --without-tiff), using gdal, perl mapscript and rosa applet, using world files for my tifs... i've attached my script if anyone wants to look at it. and if anyone needs more info, just let me know and i'll get it to you right away. thanks in advance for your help! kent -------------- next part -------------- #!/usr/bin/perl -T use CGI qw(:standard :html escape); use mapscript; # Image paths - absolute and relative # First 2 are where the mapscript-generated images are stored before being displayed # Last one is where the input images are taken from my $img_path = '/www/html/testdata/tmp/'; my $img_rel_path = '/testdata/tmp/'; my $data_path = '/www/html/testdata/'; # Input images #my $nd = 'nd37wk_ndvi2001.tif'; #my $sd = 'sd37wk_ndvi2001.tif'; #my $mn = 'mn37wk_ndvi2001.tif'; #my $mt = 'mt37wk_ndvi2001.tif'; #my $id = 'id37wk_ndvi2001.tif'; #my $wy = 'wy37wk_ndvi2001.tif'; #my $jpg = '3027d.jpg'; my $refbase = 'refbase.png'; my $tif1 = '3027.tif'; my $tif2 = '3028.tif'; #my $test_tif = '3028_082400.tif'; # Output image and reference map image # Each new image generated has a timestamp in its name # Required for mapserver to display "refreshed" images after a pan/zoom action my $mapimg = 'testimg'.time().'.png'; my $refmap = 'ref'.time().'.png'; # Uncomment next statement and comment out next 3 if you want to execute this script from the command line #print "Content type: text/html\n\n"; my $r = shift; $r->content_type("text/html"); $r->send_http_header; #--------------------------------------------------------------- # Subroutine set_extent() will calculate a new image's extent. # Variables are read in from the HTML form via a param() call. #--------------------------------------------------------------- sub set_extent() { # Variables to hold coordinate conversion values/parameters and new extent my ($zoom, at imgext); my ($x,$y); my ($cx,$cy); my ($dx,$dy); # If old image extent saved in the hidden form variable "extent", then calculate a new extent # An interactive interface is assumed at this point # Calculation of new image extents is required to provide the pan/zoom effect if(param('extent')) { # Parse current extent # Resulting array values: # imgext[0] = old minx # imgext[1] = old miny # imgext[2] = old maxx # imgext[3] = old maxy @imgext = split(' ',param('extent')); # Parse the mouse input coordinates # Coordinates are recived in the following forms: # x1,xy;x2,y2 -> opposing corner coordinates of selection box for zoom in # x,y -> single-point mouse click - for map recentering @mouse_coords = split(/[,;]/,param('mouse_coords')); # Determine which action to take - zoom in, zoom out, recenter # Set toolbar buttons and zoom factor accordingly if (param('action') == 1) { # zoom in $last_cmd = "zin"; # preserve the pressed button on the toolbar $dx = $mouse_coords[2] - $mouse_coords[0]; # width of selection box $dy = $mouse_coords[3] - $mouse_coords[1]; # height of selection box if ($dx <= 0) {$dx = 1;} # prevent divide-by-0 error $zoom = $map->{width} / $dx; # zoom factor is map width proportionate - determined by width of selection box $x = $mouse_coords[0] + ($dx / 2); # x-coord of box center - offset from upper left corner of box $y = $mouse_coords[1] + ($dy / 2); # y-coord of box center - offset from upper left corner of box } # end if elsif (param('action') == 0) { # recenter the map $last_cmd = "recenter"; # preserve the pressed button on the toolbar $zoom = 1; $x = $mouse_coords[0]; $y = $mouse_coords[1]; } #end elsif elsif (param('action') == -1) { # zoom out $zoom = -2; # Use the map center coordinate as center of zoom out function $x = $map->{width} / 2; $y = $map->{height} / 2; } #end elsif $zoom = 1 / abs($zoom) if $zoom < 0; # tweak zoom factor for calculations # Calculate cellsize in x and y $cx = ($imgext[2] - $imgext[0]) / ($map->{width}); # scale cell by extent width w/ respect to map width $cy = ($imgext[3] - $imgext[1]) / ($map->{height}); # scale cell by extent height w/ respect to map height # Convert mouse coordinate values to map coordinates w/ respect to map extents ($ci * $i) # Offset scaled coordinates from upper left corner of previous image $x = $imgext[0] + $cx * $x; $y = $imgext[3] - $cy * $y; # Calculate new extent - not sure about the reasoning behind the math, but it works $map->{extent}->{minx} = $x - .5 * (($imgext[2] - $imgext[0]) / $zoom); $map->{extent}->{miny} = $y - .5 * (($imgext[3] - $imgext[1]) / $zoom); $map->{extent}->{maxx} = $x + .5 * (($imgext[2] - $imgext[0]) / $zoom); $map->{extent}->{maxy} = $y + .5 * (($imgext[3] - $imgext[1]) / $zoom); } # end if } # end sub set_extent() #------------------- # Construct the map. #------------------- # Map object and parameters $map = new mapObj(undef) or die("Unable to create mapfile... $!"); $map->{width} = 500; $map->{height} = 400; $old_proj = new projectionObj("datum=wgs84"); # old projection system $map->setProjection("proj=utm,ellps=GRS80,zone=14"); # target map projection $map->{transparent} = $mapscript::MS_ON; # Layer for shapefile and parameters $layer = new layerObj($map) or die("Unable to create new layer... $!"); $layer->{type} = $mapscript::MS_LAYER_POLYGON; $layer->setProjection("datum=wgs84"); # original shapefile projection # Class for shapefile # Used to change outline color, fill color, etc. of the shapefile $class = new classObj($layer) or die("Unable to create class object... $!"); $class->{outlinecolor} = $map->addColor(0,0,255); # Layer for raster images and parameters $layer_zappa = new layerObj($map) or die("No zappa for you!... $!"); $layer_zappa->{type} = $mapscript::MS_LAYER_RASTER; $layer_zappa->setProjection("datum=wgs84"); # original projection for raster data $layer_zappa->{status} = $mapscript::MS_ON; $layer_zappa->{offsite} = 0; # color in this index is drawn transparent # Open the shapefile $shapefile = new shapefileObj("/var/www/html/testdata/umac_states",-1) or die("Unable to open shapefile... $!"); # Set original map extents to be the full extent of the entire shapefile $map->{extent} = $shapefile->{bounds}; # bounding box of shapefile is original map extents $map->{extent}->project($old_proj,$map->{projection}); # reproject map extents to target projection # Check if maps original extents need to be restored if (!param("restore")) { # check if "Restore" button clicked &set_extent(); # set appropriate extents if pan/zoom } # end if $img = $map->prepareImage(); # prepare an image to be written to # # The raster draws will be replaced later on with a loop to draw the appropriate LandSat data # # Draw raster data of the UMAC states # For some reason, a die clause after drawing a raster will crash the program... I don't know why. $layer_zappa->{data} = $data_path . $tif1; $layer_zappa->draw($map,$img); $layer_zappa->{data} = $data_path . $tif2; $layer_zappa->draw($map,$img); #$layer_zappa->{data} = $data_path . $test_tif; #$layer_zappa->draw($map,$img); #$layer_zappa->{data} = $data_path . $mn; #$layer_zappa->draw($map,$img); # draw MN raster #$layer_zappa->{data} = $data_path . $mt; #$layer_zappa->draw($map,$img); # draw MT raster #$layer_zappa->{data} = $data_path . $id; #$layer_zappa->draw($map,$img); # draw ID raster #$layer_zappa->{data} = $data_path . $wy; #$layer_zappa->draw($map,$img); # draw WY raster # Create shape object to hold outline of each state $shape = new shapeObj(-1) or die("Unable to create shape... $!"); # Draw outlines for UMAC states # Draw order - MT, ND, SD, WY, ID, MN # Die clause also crashes the program after drawing a shape for ($i = 0; $i <= 5; $i++) { $shapefile->get($i,$shape); # get a shape from the shapefile, referenced by index number $shape->draw($map,$layer,$img); # draw the shape } # end for # Create a reference map # Used to maintain a global sense of location whilst zoomed in $map->{reference}->{extent} = $shapefile->{bounds}; # bounding box of shapefile is original refmap extents $map->{reference}->{extent}->project($old_proj,$map->{projection}); # reproject refmap extents to target projection #$map->{reference}->{color}->{red} = 0; #$map->{reference}->{color}->{green} = 0; #$map->{reference}->{color}->{blue} = 255; #$map->{reference}->{color} = $map->addColor(0,0,255); $map->{reference}->{outlinecolor}->{red} = 255; $map->{reference}->{outlinecolor}->{green} = 0; $map->{reference}->{outlinecolor}->{blue} = 0; $map->{reference}->{image} = $refbase; # base image for reference map (needs to be rebuilt with target projection) $map->{reference}->{status} = $mapscript::MS_ON; $ref = $map->drawReferenceMap(); # draw the reference map # Save current extent $imgext = join(' ',$map->{extent}->{minx},$map->{extent}->{miny},$map->{extent}->{maxx},$map->{extent}->{maxy}); $map->save("foo.map"); # create a mapfile mapscript::msSaveImage($img,$img_path.$mapimg,$mapscript::MS_PNG,1,1,0); # save image to file mapscript::msFreeImage($img); # free image from memory mapscript::msSaveImage($ref,$img_path.$refmap,$mapscript::MS_PNG,1,1,0); # save reference image to file mapscript::msFreeImage($ref); # free reference image from memory #---------------- # Print out HTML. #---------------- print << "EOF"; Test image print

HI AMANDA!! :-)

EOF #---------------------------------- # In case I need any of this again. #---------------------------------- # print "$mapscript::ms_error->{code} $mapscript::ms_error->{message} $mapscript::ms_error->{routine}\n

"; #$aspect = ($map->{extent}->{maxy} - $map->{extent}->{miny}) / ($map->{extent}->{maxx} - $map->{extent}->{minx}); #$map->{reference}->{width} = $map->{width} / 3; #$map->{reference}->{height} = $map->{reference}->{height} * $aspect; #$cellx = ($map->{extent}->{maxx} - $map->{extent}->{minx}) / $map->{reference}->{width}; #$celly = ($map->{extent}->{maxy} - $map->{extent}->{miny}) / $map->{reference}->{height}; #if ($cellx > $celly) { # $cellsize = $cellx; #} #else { # $cellsize = $celly; #} #$map->{reference}->{extent}->{minx} = $map->{extent}->{minx}; #$map->{reference}->{extent}->{miny} = $map->{extent}->{maxy} - ($cellsize * ($map->{height} + 1)); #$map->{reference}->{extent}->{maxx} = $map->{extent}->{minx} + ($cellsize * ($map->{width} + 1)); #$map->{reference}->{extent}->{maxy} = $map->{extent}->{maxy}; From mschulz at webgis.de Thu Jul 11 08:49:36 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 11 Jul 2002 17:49:36 +0200 Subject: [mapserver-users] Python Mapscript MS 3.6.1 References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> <3D2D4056.9E785173@webgis.de> <20020711090130.GA4844@landsat.cprsig.cl> Message-ID: <3D2DA910.B3102F45@webgis.de> Hi, thanks for the hint to the setup script of Norman Vine. Find it here: http://www.vso.cape.com/~nhv/files/python/mapscript/setup.py ) You may need to change some things (paths, libs, etc. ). It works well and python gets swigged and compiled and installed automatically. Yipiie! But after that i encountered some problems. After invoking python, i can do: >>>import mapscript (works fine), then i try a test that Norman mentioned in a post: >>>mapscript.msGetVersion() (should give the MS_VERSION string) but i get this error: AttributeError: 'mapscript' module has no attribute 'msGetVersion' >>>m = mapscript.ms_newmapObj('/path/to/mapfile') Traceback (most recent call last): File "", line 1, in ? AttributeError: 'mapscript' module has no attribute 'ms_newmapObj' So, it seems i get mapscript compiled and all, but it is not working properly. (I am using MS 3.6.0, Python 2.1.2, Swig 1.3.13) Perhaps someone who has an overview of mapscript/compiling/swig/python can give some advice where to look for the problem. Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From shussain at atsincorp.com Thu Jul 11 09:54:27 2002 From: shussain at atsincorp.com (Shaik Anwar Hussain) Date: Thu, 11 Jul 2002 12:54:27 -0400 Subject: [mapserver-users] DGN files Template usage Message-ID: <4D25CDA67110D3119FFB0008C707D7A7051FB6@deathstar> Hello List, I am using micro station DGN files, those showing on my browser, its fine. Now i want to display the attributes of the dgn files using the layer template definition. Is this possible to do for DGN files, any ideas, hoe to do this. Thanks, Anwar From nhv at cape.com Thu Jul 11 10:19:13 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 11 Jul 2002 13:19:13 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <3D2DA910.B3102F45@webgis.de> Message-ID: <007e01c228ff$14691e00$a300a8c0@nhv> Michael Schulz writes: > >thanks for the hint to the setup script of Norman Vine. Find it here: >http://www.vso.cape.com/~nhv/files/python/mapscript/setup.py ) >You may need to change some things (paths, libs, etc. ). > >It works well and python gets swigged and compiled and >installed automatically. Yipiie! > >But after that i encountered some problems. After invoking >python, i can do: > >>>>import mapscript (works fine), then i try a test that >Norman mentioned in a post: >>>>mapscript.msGetVersion() (should give the MS_VERSION >string) but i get this error: >AttributeError: 'mapscript' module has no attribute 'msGetVersion' >>>>m = mapscript.ms_newmapObj('/path/to/mapfile') >Traceback (most recent call last): > File "", line 1, in ? >AttributeError: 'mapscript' module has no attribute 'ms_newmapObj' > >So, it seems i get mapscript compiled and all, but it is not >working properly. >(I am using MS 3.6.0, Python 2.1.2, Swig 1.3.13) Michael The mapscript API keeps changing !! Both of the above calls no longer exist. FYI Here is what I get from a version of mapscript compiled after a very recent CVS update Cheers Norman $ python Python 2.1.1 (#44, Feb 17 2002, 12:51:44) [GCC 2.95.3-5 (cygwin special)] on cygwin Type "copyright", "credits" or "license" for more information. >>> import mapscript >>> dir() ['__builtins__', '__doc__', '__name__', 'mapscript'] >>> dir(mapscript) ['DBFInfo', 'DBFInfoPtr', 'FTDouble', 'FTInteger', 'FTInvalid', 'FTString', 'GetMapserverUnitUsingProj', 'MS_AUTO', 'MS_BITMAP', 'MS_CC', 'MS_CJC_BEVEL', 'MS_CJC_BUTT', 'MS_CJC_MITER', 'MS_CJC_NONE', 'MS_CJC_ROUND', 'MS_CJC_SQUARE', 'MS_CJC_TRIANGLE', 'MS_CL', 'MS_CR', 'MS_DD', 'MS_DEFAULT', 'MS_DELETE', 'MS_DONE', 'MS_EMBED', 'MS_FAILURE', 'MS_FALSE', 'MS_FEET', 'MS_FILE_MAP', 'MS_FILE_SYMBOL', 'MS_GIANT', 'MS_HILITE', 'MS_IMAGEMODE_FLOAT32', 'MS_IMAGEMODE_INT16', 'MS_IMAGEMODE_PC256', 'MS_IMAGEMODE_RGB', 'MS_IMAGEMODE_RGBA', 'MS_INCHES', 'MS_INLINE', 'MS_KILOMETERS', 'MS_LARGE', 'MS_LAYER_ANNOTATION', 'MS_LAYER_CIRCLE', 'MS_LAYER_LINE', 'MS_LAYER_POINT', 'MS_LAYER_POLYGON', 'MS_LAYER_QUERY', 'MS_LAYER_RASTER', 'MS_LC', 'MS_LL', 'MS_LR', 'MS_MEDIUM', 'MS_METERS', 'MS_MILES', 'MS_MULTIPLE', 'MS_NO', 'MS_NOOVERRIDE', 'MS_NORMAL', 'MS_OFF', 'MS_OGR', 'MS_ON', 'MS_ORACLESPATIAL', 'MS_PIXELS', 'MS_POSTGIS', 'MS_SDE', 'MS_SELECTED', 'MS_SHAPEFILE', 'MS_SHAPEFILE_ARC', 'MS_SHAPEFILE_MULTIPOINT', 'MS_SHAPEFILE_POINT', 'MS_SHAPEFILE_POLYGON', 'MS_SHAPE_LINE', 'MS_SHAPE_NULL', 'MS_SHAPE_POINT', 'MS_SHAPE_POLYGON', 'MS_SHP_ARCM', 'MS_SHP_MULTIPOINTM', 'MS_SHP_POINTM', 'MS_SHP_POLYGONM', 'MS_SINGLE', 'MS_SMALL', 'MS_SUCCESS', 'MS_TILED_SHAPEFILE', 'MS_TINY', 'MS_TRUE', 'MS_TRUETYPE', 'MS_UC', 'MS_UL', 'MS_UNUS ED_1', 'MS_UR', 'MS_VERSION', 'MS_WMS', 'MS_XY', 'MS_YES', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'classObj', 'classObjPtr', 'colorObj', 'colorObjPtr', 'imageObj', 'imageObjPtr', 'itemObj', 'itemObjPtr', 'labelCacheMemberObj', 'labelCacheMemberObjPtr', 'labelCacheObj', 'labelCacheObjPtr', 'labelObj', 'labelObjPtr', 'layerObj', 'layerObjPtr', 'legendObj', 'legendObjPtr', 'lineObj', 'lineObjPtr', 'mapObj', 'mapObjPtr', 'mapscript', 'mapscriptc', 'markerCacheMemberObj', 'markerCacheMemberObjPtr', 'msDBFAddField', 'msDBFClose', 'msDBFCreate', 'msDBFGetFieldCount', 'msDBFGetFieldInfo', 'msDBFGetItemIndex', 'msDBFGetItemIndexes', 'msDBFGetItems', 'msDBFGetRecordCount', 'msDBFGetValueList', 'msDBFGetValues', 'msDBFOpen', 'msDBFReadDoubleAttribute', 'msDBFReadIntegerAttribute', 'msDBFReadStringAttribute', 'msDBFWriteDoubleAttribute', 'msDBFWriteIntegerAttribute', 'msDBFWriteStringAttribute', 'msFreeImage', 'msSaveImage', 'outputFormatObj', 'outputFormatObjPtr', 'pointObj', 'pointObjPtr', 'projectionObj', 'projectionObjPtr', 'queryMapObj', 'queryMapObjPtr', 'rectObj', 'rectObjPtr', 'referenceMapObj', 'referenceMapObjPtr', 'resultCacheMemberObj', 'resultCacheMemberObj Ptr', 'resultCacheObj', 'resultCacheObjPtr', 'scalebarObj', 'scalebarObjPtr', 'shapeObj', 'shapeObjPtr', 'shapefileObj', 'shapefileObjPtr', 'styleObj', 'styleObjPtr', 'webObj', 'webObjPtr'] >>> ========== $ swig -version SWIG Version 1.3.13u-20020628-1621 Copyright (c) 1995-1998 University of Utah and the Regents of the University of California Copyright (c) 1998-2001 University of Chicago Compiled with CC From carrolls at unbc.ca Thu Jul 11 12:37:06 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Thu, 11 Jul 2002 12:37:06 -0700 (PDT) Subject: [mapserver-users] organiziing mapfile Message-ID: Hi, Is there a way to split a single map file into multiple map files? This would help with organization and reusability of code because layers could be split into seperate files. One layer file could then be used with multiple map files. My map files are growing large and are becoming harder to manage. Any thoughts on the subject? Seamus From carrolls at unbc.ca Thu Jul 11 12:43:15 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Thu, 11 Jul 2002 12:43:15 -0700 (PDT) Subject: [mapserver-users] network analysis in mapserver Message-ID: Hi, Is there a way to do network analysis using mapserver? I am currently using arc/info, arcplot module to do my network analysis. I would like to get away from esri if possible. Currently I am using two boxes to do what I need. Arc/info on a irix box and mapserver on a linux box. Using just Mapserver and maybe a module would allow me to move to a sinlge linux box. Seamus From ed at topozone.com Thu Jul 11 13:17:49 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 11 Jul 2002 16:17:49 -0400 Subject: [mapserver-users] organiziing mapfile Message-ID: <13858AA1A74F30419F319ACB66A9D1220E83BA@mercator.topozone.com> Seamus - I do this by using the C preprocessor. I create my template files using C #include statements and macros, and then run them through the C preprocessor to generate the output mapfile. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca] Sent: Thursday, July 11, 2002 3:37 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] organiziing mapfile Hi, Is there a way to split a single map file into multiple map files? This would help with organization and reusability of code because layers could be split into seperate files. One layer file could then be used with multiple map files. My map files are growing large and are becoming harder to manage. Any thoughts on the subject? Seamus From vinko at cprsig.cl Thu Jul 11 13:57:09 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Thu, 11 Jul 2002 16:57:09 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <3D2DA910.B3102F45@webgis.de> References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> <3D2D4056.9E785173@webgis.de> <20020711090130.GA4844@landsat.cprsig.cl> <3D2DA910.B3102F45@webgis.de> Message-ID: <20020711205709.GA6661@landsat.cprsig.cl> On Thu, Jul 11, 2002 at 05:49:36PM +0200, Michael Schulz wrote: > But after that i encountered some problems. After invoking python, i can do: > > >>>import mapscript (works fine), then i try a test that Norman mentioned in a post: > >>>mapscript.msGetVersion() (should give the MS_VERSION string) but i get this error: > AttributeError: 'mapscript' module has no attribute 'msGetVersion' > >>>m = mapscript.ms_newmapObj('/path/to/mapfile') > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'mapscript' module has no attribute 'ms_newmapObj' > > So, it seems i get mapscript compiled and all, but it is not working properly. > (I am using MS 3.6.0, Python 2.1.2, Swig 1.3.13) I strongly recommend you to read the python tutorial from the official website, it's really useful. You should type: map = mapscript.mapObj("/path/to/mapfile") or, if using from mapscript import * (That will work for sure on Unix platforms, dunno in Win) map = mapObj("/path/to/mapfile") The getVersion function doesn't exist anymore, now you just type MS_VERSION >>> import mapscript >>> mapscript.MS_VERSION '3.6.1' use the dir() function to reveal the actual name of the functions and constants, for instance my module says: Python 2.2 (#1, Feb 24 2002, 16:21:58) [GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> dir(mapscript) ['DBFInfo', 'DBFInfoPtr', 'FTDouble', 'FTInteger', 'FTInvalid', 'FTString', 'GetMapserverUnitUsingProj', 'MS_AUTO', 'MS_BITMAP', 'MS_CC', 'MS_CJC_BEVEL', 'MS_CJC_BUTT', 'MS_CJC_MITER', 'MS_CJC_NONE', 'MS_CJC_ROUND', 'MS_CJC_SQUARE', 'MS_CJC_TRIANGLE', 'MS_CL', 'MS_CR', 'MS_DD', 'MS_DEFAULT', 'MS_DELETE', 'MS_DONE', 'MS_EMBED', 'MS_FAILURE', 'MS_FALSE', 'MS_FEET', 'MS_FILE_MAP', 'MS_FILE_SYMBOL', 'MS_GIANT', 'MS_GIF', 'MS_GML', 'MS_HILITE', 'MS_INCHES', 'MS_INLINE', 'MS_JPEG', 'MS_KILOMETERS', 'MS_LARGE', 'MS_LAYER_ANNOTATION', 'MS_LAYER_CIRCLE', 'MS_LAYER_LINE', 'MS_LAYER_POINT', 'MS_LAYER_POLYGON', 'MS_LAYER_QUERY', 'MS_LAYER_RASTER', 'MS_LC', 'MS_LL', 'MS_LR', 'MS_MEDIUM', 'MS_METERS', 'MS_MILES', 'MS_MULTIPLE', 'MS_NO', 'MS_NORMAL', 'MS_OFF', 'MS_OGR', 'MS_ON', 'MS_ORACLESPATIAL', 'MS_PIXELS', 'MS_PNG', 'MS_POSTGIS', 'MS_SDE', 'MS_SELECTED', 'MS_SHAPEFILE', 'MS_SHAPEFILE_ARC', 'MS_SHAPEFILE_MULTIPOINT', 'MS_SHAPEFILE_POINT', 'MS_SHAPEFILE_POLYGON', 'MS_SHAPE_LINE', 'MS_SHAPE_NULL', 'MS_SHAPE_POINT', 'MS_SHAPE_POLYGON', 'MS_SHP_ARCM', 'MS_SHP_MULTIPOINTM', 'MS_SHP_POINTM', 'MS_SHP_POLYGONM', 'MS_SINGLE', 'MS_SMALL', 'MS_SUCCESS', 'MS_TILED_SHAPEFILE', 'MS_TINY', 'MS_TRUE', 'MS_TRUETYPE', 'MS_UC', 'MS_UL', 'MS_UNUSED_1', 'MS_UR', 'MS_VERSION', 'MS_WBMP', 'MS_WMS', 'MS_XY', 'MS_YES', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'classObj', 'classObjPtr', 'colorObj', 'colorObjPtr', 'imageObj', 'imageObjPtr', 'itemObj', 'itemObjPtr', 'labelCacheMemberObj', 'labelCacheMemberObjPtr', 'labelCacheObj', 'labelCacheObjPtr', 'labelObj', 'labelObjPtr', 'layerObj', 'layerObjPtr', 'legendObj', 'legendObjPtr', 'lineObj', 'lineObjPtr', 'mapObj', 'mapObjPtr', 'mapscript', 'mapscriptc', 'markerCacheMemberObj', 'markerCacheMemberObjPtr', 'msDBFAddField', 'msDBFClose', 'msDBFCreate', 'msDBFGetFieldCount', 'msDBFGetFieldInfo', 'msDBFGetItemIndex', 'msDBFGetItemIndexes', 'msDBFGetItems', 'msDBFGetRecordCount', 'msDBFGetValueList', 'msDBFGetValues', 'msDBFOpen', 'msDBFReadDoubleAttribute', 'msDBFReadIntegerAttribute', 'msDBFReadStringAttribute', 'msDBFWriteDoubleAttribute', 'msDBFWriteIntegerAttribute', 'msDBFWriteStringAttribute', 'msFreeImage', 'msSaveImage', 'pointObj', 'pointObjPtr', 'projectionObj', 'projectionObjPtr', 'queryMapObj', 'queryMapObjPtr', 'rectObj', 'rectObjPtr', 'referenceMapObj', 'referenceMapObjPtr', 'resultCacheMemberObj', 'resultCacheMemberObjPtr', 'resultCacheObj', 'resultCacheObjPtr', 'scalebarObj', 'scalebarObjPtr', 'shapeObj', 'shapeObjPtr', 'shapefileObj', 'shapefileObjPtr', 'styleObj', 'styleObjPtr', 'webObj', 'webObjPtr'] -- Vinko Vrsalovic http://www.cprsig.cl From vinko at cprsig.cl Thu Jul 11 14:35:41 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Thu, 11 Jul 2002 17:35:41 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <3D2D76E8.2070106@pobox.com> References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> <3D2D76E8.2070106@pobox.com> Message-ID: <20020711213541.GA6807@landsat.cprsig.cl> On Thu, Jul 11, 2002 at 08:15:36AM -0400, Frank Warmerdam wrote: > Vinko Vrsalovic wrote: > > > >(Why isn't mapscript.i fixed in the official distribution? Should i send > >the fixed file to Steve?) > > Vinko, > > The mapscript.i file is fixed in CVS. Python MapScript isn't as actively > maintained as Perl or PHP MapScript so it can be easily messed up in some > releases. In short, I don't think you need to send in patches unless there > is going to be a 3.6.2 release. But CVS isn't recommended for semi-production envs, is it still that way? > I have also committed Norman Vine's setup.py script to CVS though I find it > takes quite a bit of hand editing to build and install for different sets of > build options. It would be nice for it to pick up more information about > the > MapServer build from the configure output at some point, but that isn't > high on > my priority list. Yes, i totally agree, i may give it a try -- Vinko Vrsalovic http://www.cprsig.cl From hdi12 at it.canterbury.ac.nz Thu Jul 11 16:33:02 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Fri, 12 Jul 2002 11:33:02 +1200 Subject: FWD: [mapserver-users] warning in capabilities XML output Message-ID: <3D2B4413@webmail> Hi, The warning disappeared when I add metadata 'WMS_GROUP_TITLE' in the layer metadata. The new problem is the capabilities XML output is failed to be parsed. The code in my program is: Document xmlDoc = XmlDocument.createXmlDocument(xmlSource) The 'xmlSource' is the capabilties request UEL. It works well with the URL "http://wmt.digitalearth.gov/cgi-bin/wmt.cgi?REQUEST=GetCapabilities", which is capabilities of the NASA wms map server. Now I replaced the URL with mine "http://localhost:8080/cgi-bin/mapserv?map=demo.map&REQUEST=GetCapabilities" I got the error parse message: SAXException Illegal character or entity reference syntax. org.xml.sax.SAXParseException: Illegal character or entity reference syntax. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170) at org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:748) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1399) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:315) at org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:208) at wms.wmsCatelog.main(wmsCatelog.java:32) I think there must be something wrong in the capabilities xml output (see attached file). I am not sure if it is my fault that cause some problems in the xml output. Thanks for your help! Regards, Ding >===== Original Message From Hao Ding ===== Hi, I set up the mapserver as the WMS server. In the capabilities XML output there was a warning: WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the "Mapserver WMS Server How To". Where should this mandatory metadata be set in the mapfile? Thanks for any help! Regards, Ding -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapserv.txt URL: From t.f.vandenberg at larenstein.nl Fri Jul 12 00:25:43 2002 From: t.f.vandenberg at larenstein.nl (T.F. van den Berg) Date: Fri, 12 Jul 2002 09:25:43 +0200 Subject: [mapserver-users] DGN files Template usage References: <4D25CDA67110D3119FFB0008C707D7A7051FB6@deathstar> Message-ID: <00b001c22975$556574a0$0098c80a@iahlvlp.agro.nl> Hi Anwar, Take a look at dgnlib (http://groups.yahoo.com/group/dgnlib/ ) and gdal lists at yahoo. It depends on what type of attributes you want to display; if dgn generic (type, level, colorindex weigth, style, graphicgroup) (or TEXT) you're okay (same as any OGR file type using current binary mapserver/gdal117 releases). If user defined and stored in a database you will have to get the gdal/ogr cvs code (http://www.remotesensing.org/gdal/) and compile it with mapserver yourself. I've compiled gdal from cvs (without mapserver) and using ogrinfo was able to retrieve entitynum & mslink values. However on elements with multiple entitynum & mslink values (for both feature and attribute tables) it would come up with the first pair it could find. A full database query would not yet be possible. It took me quite a while to accomplish since I had to learn all about cygwins etc.. but soon I will try and compile with mapserver. Thomas ----- Original Message ----- From: "Shaik Anwar Hussain" To: "Mapserver-Users (E-mail)" Sent: Thursday, July 11, 2002 6:54 PM Subject: [mapserver-users] DGN files Template usage > Hello List, > > I am using micro station DGN files, those showing on my > browser, its fine. > > Now i want to display the attributes of the dgn files using the layer > template definition. Is this possible to do for DGN files, > > any ideas, hoe to do this. > > Thanks, > Anwar > From dylan at brc21.co.za Fri Jul 12 01:06:26 2002 From: dylan at brc21.co.za (dylan at brc21.co.za) Date: Fri, 12 Jul 2002 10:06:26 +0200 Subject: [mapserver-users] Problem with drawing of labelled layers in php mapscript 35 Message-ID: <200207121008656.SM00235@Private> Hi, I have just moved my system from a windows server to an apache server. Everything worked fine on the windows server. One problem I can't get around on the new server is the labelling. When I select a labelled layer the page refreshes but only returns part of the page - no legend, scale bar, maps etc - and usually some html code. to look at this is action go to http://mapserv.host24.com/cpf/CPF.php and select the Street Names layer (an annotation layer) and the click Redraw Map. This labels are Auto Angled - is this an issue? I think it has something to do with the way the GD library was compiled but I'm not sure. To look at the phpinfo for the server run http://www.visit27.com/cpf/phpinfo.php Thanks in advance Dylan Rawlins From mschulz at webgis.de Fri Jul 12 02:03:13 2002 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 12 Jul 2002 11:03:13 +0200 Subject: [mapserver-users] Python Mapscript MS 3.6.1 References: <20020710200629.GA18036@landsat.cprsig.cl> <3D2C9E2B.1010301@i3.com> <20020710231241.GA21199@landsat.cprsig.cl> <3D2D4056.9E785173@webgis.de> <20020711090130.GA4844@landsat.cprsig.cl> <3D2DA910.B3102F45@webgis.de> <3D2DB769.8040001@i3.com> Message-ID: <3D2E9B51.9E42F00A@webgis.de> Dear Sean, Vinko, Norman, thanks for your patient help. it is working! i got a little bit confused with the php mapscript calls, so ... I hope i can step in and provide in the future to those who are interested also some information with this mapscript dialect. Thanks again, Michael Sean Gillies schrieb: > Michael Schulz wrote: > > Hi, > > > > thanks for the hint to the setup script of Norman Vine. Find it here: > > http://www.vso.cape.com/~nhv/files/python/mapscript/setup.py ) > > You may need to change some things (paths, libs, etc. ). > > > > It works well and python gets swigged and compiled and installed automatically. Yipiie! > > > > But after that i encountered some problems. After invoking python, i can do: > > > > > >>>>import mapscript (works fine), then i try a test that Norman mentioned in a post: > >>>>mapscript.msGetVersion() (should give the MS_VERSION string) but i get this error: > >>> > > AttributeError: 'mapscript' module has no attribute 'msGetVersion' > > > >>>>m = mapscript.ms_newmapObj('/path/to/mapfile') > >>> > > Traceback (most recent call last): > > File "", line 1, in ? > > AttributeError: 'mapscript' module has no attribute 'ms_newmapObj' > > > > So, it seems i get mapscript compiled and all, but it is not working properly. > > (I am using MS 3.6.0, Python 2.1.2, Swig 1.3.13) > > > > Perhaps someone who has an overview of mapscript/compiling/swig/python can give some advice > > where to look for the problem. > > > > Thanks, Michael > > > > Michael, > > If your module builds and installs using setup.py, it should be > all together and ready to use. > > Try this from the Python (python2) prompt: > > from mapscript import * > m = mapObj('/path/to/mapfile') > print m.name > proj = map.getProjection() > print proj > layer = map.getLayer(0) > print layer.name > > Use the Python interface, not the underlying C functions. The Python > interface is not well documented, you'll need to adapt the Perl > Mapscript documentation and feel your way along. The Python attributes > and methods have the same names as in the Perl documentation, but you > will need to call them in the proper Python manner. > > One thing to keep in mind is the use of the symbol 'map'. As in > Perl, 'map' is a Python function. A very useful function. So I'd > warn against using 'map' as a name for any of your mapObjs. > > I just looked through the webgis.de website and it seems that you > have a lot of interesting mapping work. How are you going to > use Python mapscript? > > cheers, > Sean -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From morissette at dmsolutions.ca Fri Jul 12 06:57:13 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 12 Jul 2002 09:57:13 -0400 Subject: [mapserver-users] Problem with drawing of labelled layers in php mapscript 35 References: <200207121008656.SM00235@Private> Message-ID: <3D2EE039.DB8EBF00@dmsolutions.ca> Dylan, After adding the street names layer to your app, a 'view source' shows that the HTML output ends up being truncated, this usually indicates a crash (seg. fault) of the PHP server. There were some problems with running MapScript with PHP as an Apache module since 3.5, so I would recommend that you at least reinstall PHP 4.0.6 as a CGI instead of as an Apache module, or even better: upgrade to the latest MapServer 3.6 with PHP 4.2.1 installed as a CGI, and I wouldn't be surprised to see the problem go away with this new configuration. Daniel dylan at brc21.co.za wrote: > > Hi, > > I have just moved my system from a windows server to an apache > server. Everything worked fine on the windows server. One problem > I can't get around on the new server is the labelling. When I select > a labelled layer the page refreshes but only returns part of the page > - no legend, scale bar, maps etc - and usually some html code. > to look at this is action go to > http://mapserv.host24.com/cpf/CPF.php and select the Street > Names layer (an annotation layer) and the click Redraw Map. This > labels are Auto Angled - is this an issue? > > I think it has something to do with the way the GD library was > compiled but I'm not sure. To look at the phpinfo for the server run > http://www.visit27.com/cpf/phpinfo.php > > Thanks in advance > Dylan Rawlins From morissette at dmsolutions.ca Fri Jul 12 07:05:22 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 12 Jul 2002 10:05:22 -0400 Subject: [mapserver-users] warning in capabilities XML output References: <3D2AFFD5@webmail> Message-ID: <3D2EE222.95F0937A@dmsolutions.ca> The WMS_GROUP_TITLE metadata is required in order to provide a human-readable title for your layer GROUPs in the XML capabilities. You need to set it only on one of the layer that is part of the group and MapServer will find and use the value. You're correct that documentation for this metadata was missing in the WMS Server HOWTO and this will be fixed soon. Daniel Hao Ding wrote: > > Hi, > > I set up the mapserver as the WMS server. In the capabilities XML output there > was a warning: > > WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context > > I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the > "Mapserver WMS Server How To". Where should this mandatory metadata be set in > the mapfile? Thanks for any help! > > Regards, > Ding From morissette at dmsolutions.ca Fri Jul 12 07:09:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 12 Jul 2002 10:09:47 -0400 Subject: FWD: [mapserver-users] warning in capabilities XML output References: <3D2B4413@webmail> Message-ID: <3D2EE32B.6CB56B1D@dmsolutions.ca> About the XML parsing error, see http://mapserver.gis.umn.edu/wilma/mapserver-users/0206/msg00443.html Daniel Hao Ding wrote: > > Hi, > > The warning disappeared when I add metadata 'WMS_GROUP_TITLE' in the layer > metadata. The new problem is the capabilities XML output is failed to be > parsed. > The code in my program is: > > Document xmlDoc = XmlDocument.createXmlDocument(xmlSource) > > The 'xmlSource' is the capabilties request UEL. > It works well with the URL > "http://wmt.digitalearth.gov/cgi-bin/wmt.cgi?REQUEST=GetCapabilities", which > is capabilities of the NASA wms map server. > > Now I replaced the URL with mine > "http://localhost:8080/cgi-bin/mapserv?map=demo.map&REQUEST=GetCapabilities" > > I got the error parse message: > > SAXException Illegal character or entity reference syntax. > org.xml.sax.SAXParseException: Illegal character or entity reference syntax. > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170) > at org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:748) > at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1399) > at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) > at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) > at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) > at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) > at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) > at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) > at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) > at > org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:315) at > org.apache.crimson.tree.XmlDocument.createXmlDocument(XmlDocument.java:208) at > wms.wmsCatelog.main(wmsCatelog.java:32) > > I think there must be something wrong in the capabilities xml output (see > attached file). I am not sure if it is my fault that cause some problems in > the xml output. Thanks for your help! > > Regards, > Ding > > >===== Original Message From Hao Ding ===== > Hi, > > I set up the mapserver as the WMS server. In the capabilities XML output there > was a warning: > > WARNING:Mandatory metadata 'WMS_GROUP_TITLE' was missing in this context > > I did not found any discription about the metadata 'WMS_GROUP_TITLE' in the > "Mapserver WMS Server How To". Where should this mandatory metadata be set in > the mapfile? Thanks for any help! > > Regards, > Ding > > ------------------------------------------------------------------------ > Name: mapserv.txt > mapserv.txt Type: Plain Text (text/plain) > Encoding: BASE64 From stepan.kafka at centrum.cz Fri Jul 12 07:26:55 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Fri, 12 Jul 2002 16:26:55 +0200 Subject: [mapserver-users] Symbol Def. Help In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABBE8@postoffice.GASAI.Com> Message-ID: <000601c229b0$2c94b000$7e3c2fc3@HSGIS> Hi, ad 1) in 3.6 used more characters truetype symbols defined in symbolset file: CHARACTER "FO" . ad 2) The unicode character codes are preceded with these characters. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Hankley, > Chip > Odesl?no: 10. ?ervence 2002 22:58 > Komu: MapServer List (E-mail) > P?edm?t: [mapserver-users] Symbol Def. Help > > > I'm having a hard time figuring out a couple of things about symbol > definitions. > > What I want to do, is make a symbol for a fiber optic line that looks like > this: > > ------FO------FO------FO------FO > > I can get a trutype symbol to work, with ONE letter. > > 1) How can I get it to work with more than one character? > 2) What is the "&#" part of the character mapping doing? Is there some > reference for figuring out character mappings? > > TIA! > > Chip Hankley > > From rburghol at vt.edu Fri Jul 12 08:27:14 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Fri, 12 Jul 2002 11:27:14 -0400 Subject: [mapserver-users] network analysis in mapserver References: Message-ID: <3D2EF552.AA696A9A@vt.edu> Seamus, Are you using postGIS by chance? I am working on a set of tools that might not be network analysis, but we may have some overlap that we could share. I too am seeking independence from esri, and postgres extendability (all functions can be written in C, or several other languages) seems to me to be a potential for high quality, open source GIS tools. Already there are several geo-processing routines out there acting in postgres/postgis. What type of analysis functions are you looking for? Rob -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From steve.lime at dnr.state.mn.us Fri Jul 12 08:49:51 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 12 Jul 2002 10:49:51 -0500 Subject: [mapserver-users] Fwd: Newbie question : querying multiple features Message-ID: An embedded message was scrubbed... From: Guenther_Jens at gmx.de Subject: Newbie question : querying multiple features Date: Fri, 12 Jul 2002 12:55:22 +0200 (MEST) Size: 1988 URL: From mi.ro at iol.it Fri Jul 12 10:55:36 2002 From: mi.ro at iol.it (Roberto Micarelli) Date: Fri, 12 Jul 2002 19:55:36 +0200 Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <3D2EF552.AA696A9A@vt.edu> References: <3D2EF552.AA696A9A@vt.edu> Message-ID: <200207121642.LAA26185@lists.gis.umn.edu> On Friday 12 July 2002 17:27, Robert W. Burgholzer wrote: > Seamus, > Are you using postGIS by chance? I am working on a set of tools that > might not be network analysis, but we may have some overlap that we > could share. > > I too am seeking independence from esri, and postgres extendability (all > functions can be written in C, or several other languages) seems to me > to be a potential for high quality, open source GIS tools. Already there > are several geo-processing routines out there acting in > postgres/postgis. What type of analysis functions are you looking for? > In GRASS we are working at directed graph library (dglib). It is at a early development status, some functions are already implemented (shortest path on digraphs, depth-spanning, minimum-spanning). There are modules from Radim Blazek for steiner-tree and salesman-problem that will be integrated into dglib. The API is still unstable but I'm hardly working on design it. Poor documentation... A lot of work to do... Maybe we could share some info... Roberto From carrolls at unbc.ca Fri Jul 12 09:43:11 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 12 Jul 2002 09:43:11 -0700 (PDT) Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <3D2EF552.AA696A9A@vt.edu> Message-ID: Hi, I have post GIS installed but I am not currently using it. I have a road network for British Columbia and some other provinces and two sets of point data. I need to be able to find the shortest path along from point A (postal code) to point B (hospital data) using an impedance taken from the dbf. For example, the length in metres for an arc or the amount of time to travel an arc. I need the total impedance and a shape file representing the path as a result. Would any of these tools solve this problem for me? Seamus On Fri, 12 Jul 2002, Robert W. Burgholzer wrote: > Seamus, > Are you using postGIS by chance? I am working on a set of tools that > might not be network analysis, but we may have some overlap that we > could share. > > I too am seeking independence from esri, and postgres extendability (all > functions can be written in C, or several other languages) seems to me > to be a potential for high quality, open source GIS tools. Already there > are several geo-processing routines out there acting in > postgres/postgis. What type of analysis functions are you looking for? > > Rob > > From rburghol at vt.edu Fri Jul 12 10:32:28 2002 From: rburghol at vt.edu (Robert W. Burgholzer) Date: Fri, 12 Jul 2002 13:32:28 -0400 Subject: [mapserver-users] network analysis in mapserver References: Message-ID: <3D2F12AC.D20EE0CE@vt.edu> I am no expert on network analysis, but it seems that the general techniques that one would apply in order to solve it should be supported by the basic functions of postGIS. This includes distance calculations and proximity determinations. Now, Roberto's suite of tools would probably be the way to go, but what is the status of integration of these with mapserver, or their integratability with postGIS?? In my experience with postGIS/postgres, if you are willing to do some coding :) the job can be done. Roberto, I am interested in seeing some fo the code that you are putting together. perhaps we could have some overlap. As I mentioned before, I am primarily interested from a standpoint of hooking this stuff to postgres, thereby making the backend independent of any single GIS system, and potentially portable to other RDBMS's. Rob -- Robert Burgholzer al?go?rithm n. A step-by-step problem-solving procedure, especially an established, recursive computational procedure for solving a problem in a finite number of steps. Invented by Al Gore. rburghol at vt.edu http://www.soulswimmer.net/ From carrolls at unbc.ca Fri Jul 12 11:00:24 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 12 Jul 2002 11:00:24 -0700 (PDT) Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <3D2F12AC.D20EE0CE@vt.edu> Message-ID: Who is Roberto and what are is tools? Do you know that best site to find information on distance calculations and proximity determinations. Seamus On Fri, 12 Jul 2002, Robert W. Burgholzer wrote: > I am no expert on network analysis, but it seems that the general > techniques that one would apply in order to solve it should be supported > by the basic functions of postGIS. This includes distance calculations > and proximity determinations. > > Now, Roberto's suite of tools would probably be the way to go, but what > is the status of integration of these with mapserver, or their > integratability with postGIS?? > > In my experience with postGIS/postgres, if you are willing to do some > coding :) the job can be done. > > Roberto, I am interested in seeing some fo the code that you are putting > together. perhaps we could have some overlap. As I mentioned before, I > am primarily interested from a standpoint of hooking this stuff to > postgres, thereby making the backend independent of any single GIS > system, and potentially portable to other RDBMS's. > > Rob > > From carrolls at unbc.ca Fri Jul 12 11:46:02 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 12 Jul 2002 11:46:02 -0700 (PDT) Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <200207121642.LAA26185@lists.gis.umn.edu> Message-ID: I am currently using arc/info to solve this problem. The basic idea is take the start point and find its closes node on the road network. Do the same for the destination point. Now find the shortest distance between the two nodes on the road network given an impedance in the dbf. I have not done any work using postgis to solve this problem. I have just started to explore the possibility. I was hoping this functionality was built into postgis. seamus On Fri, 12 Jul 2002, Roberto Micarelli wrote: > On Friday 12 July 2002 17:27, Robert W. Burgholzer wrote: > > Seamus, > > Are you using postGIS by chance? I am working on a set of tools that > > might not be network analysis, but we may have some overlap that we > > could share. > > > > I too am seeking independence from esri, and postgres extendability (all > > functions can be written in C, or several other languages) seems to me > > to be a potential for high quality, open source GIS tools. Already there > > are several geo-processing routines out there acting in > > postgres/postgis. What type of analysis functions are you looking for? > > > > In GRASS we are working at directed graph library (dglib). It is at a early > development status, some functions are already implemented (shortest path on > digraphs, depth-spanning, minimum-spanning). There are modules from Radim > Blazek for steiner-tree and salesman-problem that will be integrated into > dglib. The API is still unstable but I'm hardly working on design it. > Poor documentation... A lot of work to do... > Maybe we could share some info... > > Roberto > From carrolls at unbc.ca Fri Jul 12 12:01:30 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Fri, 12 Jul 2002 12:01:30 -0700 (PDT) Subject: [mapserver-users] Fwd: Newbie question : querying multiple features In-Reply-To: Message-ID: Is this the what you are talking about, LAYER # start of bc road network labeling using bcrte_sort.shp NAME "BC Road Network" DATA ./streets/bcrte_sort STATUS DEFAULT TYPE ANNOTATION LABELITEM "STREET" SYMBOLSCALE 5000000 CLASS # start of expressway label class, no rotate MINSCALE 275001 MAXSCALE 5000000 EXPRESSION (('[CARTO]' eq '1') and ('[SUFTYPE]' eq 'HWY' or '[SUFTYPE]' eq 'FWY' or '[PRETYPE]' eq 'HWY')) COLOR -1 -1 -1 LABEL BUFFER 2 MINDISTANCE 200 TYPE TRUETYPE ANTIALIAS TRUE FONT arborcrest-h MINSIZE 9 MAXSIZE 14 END END # end of expressway label class, no rotate END On Fri, 12 Jul 2002, Steve Lime wrote: [NON-Text Body part not included] From philclk at attglobal.net Fri Jul 12 17:05:25 2002 From: philclk at attglobal.net (philclk at attglobal.net) Date: Fri, 12 Jul 2002 19:05:25 -0500 (CDT) Subject: [mapserver-users] Date: Fri, 12 Jul 2002 20:04:30 -0400 Message-ID: <98940-2200276130430112@M2W037.mail2web.com> I'm a new mapserver user trying to install 3.6 demo on Win32. Everything seems to validate according to installation guide, but when selecting the "INITIALIZE" button on the demo_init.html screen I get the following error in the browser. loadSymbol(): Unknown identifier. (TRUE):(109) Any ideas? thanks, Phil Clark TEQ Services philclk at attglobal.net -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From nhv at cape.com Sun Jul 14 04:34:49 2002 From: nhv at cape.com (Norman Vine) Date: Sun, 14 Jul 2002 07:34:49 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: <20020711213541.GA6807@landsat.cprsig.cl> Message-ID: <001001c22b2a$77c1b700$a300a8c0@nhv> Vinko Vrsalovic writes: > >On Thu, Jul 11, 2002 at 08:15:36AM -0400, Frank Warmerdam wrote: > >> I have also committed Norman Vine's setup.py script to CVS though I find it >> takes quite a bit of hand editing to build and install for different sets of >> build options. It would be nice for it to pick up more information about the >> MapServer build from the configure output at some point, but that isn't >> high on my priority list. > > >Yes, i totally agree, i may give it a try the attached setup.py works for me with Cygwin picking up the 'configuration' automagically :-) Note my use of the 'extra_objects' field < see # comment in script > Cheers Norman -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: setup.py URL: From dylan at brc21.co.za Sun Jul 14 05:04:32 2002 From: dylan at brc21.co.za (Dylan Rawlins) Date: Sun, 14 Jul 2002 14:04:32 +0200 Subject: [mapserver-users] Problem installing php mapscript 3.6.1 Message-ID: <200207141401360.SM00337@andrew> Hi, I have just downloaded the "mapserver-3.6.1-win32-php4.1.2- libwww.zip" from http://www2.dmsolutions.ca/mapserver/dl/ and "php-4.2.1-Win32.zip" from http"//www.php.net". Php 421 installed fine but when I load the mapsctipt extension I get the following error: Mapscript: Unable to initialize module Module compiled with module API=20010901, debug=0, thread- safety=1 PHP compiled with module API=20020429, debug=0, thread- safety=1 These options need to match Does anyone know where I can get the Mapscript module compiled for PHP 4.2.1? Thanks Dylan http://www.mapserver.co.za Innovative Geographic Information Systems From mckenna at dmsolutions.ca Mon Jul 15 05:13:09 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 15 Jul 2002 08:13:09 -0400 Subject: [mapserver-users] Problem installing php mapscript 3.6.1 References: <200207141401360.SM00337@andrew> Message-ID: <3D32BC55.AA228C43@dmsolutions.ca> Dylan, Look on our download page, http://www2.dmsolutions.ca/mapserver/dl/, there is a mapserver-3.6.1-win32-php4.2.1 and a mapserver-3.6.2-win32-php4.2.1. Jeff Dylan Rawlins wrote: > > Hi, > > I have just downloaded the "mapserver-3.6.1-win32-php4.1.2- > libwww.zip" from http://www2.dmsolutions.ca/mapserver/dl/ and > "php-4.2.1-Win32.zip" from http"//www.php.net". Php 421 installed > fine but when I load the mapsctipt extension I get the following error: > > Mapscript: Unable to initialize module > Module compiled with module API=20010901, debug=0, thread- > safety=1 > PHP compiled with module API=20020429, debug=0, thread- > safety=1 > These options need to match > > Does anyone know where I can get the Mapscript module compiled > for PHP 4.2.1? > > Thanks > Dylan > http://www.mapserver.co.za > Innovative Geographic Information Systems -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From mckenna at dmsolutions.ca Mon Jul 15 05:47:23 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 15 Jul 2002 08:47:23 -0400 Subject: [mapserver-users] Date: Fri, 12 Jul 2002 20:04:30 -0400 References: <98940-2200276130430112@M2W037.mail2web.com> Message-ID: <3D32C45B.2ED3B069@dmsolutions.ca> Phil, Make sure you installed mapserv_36 for the 3.6 demo. Jeff "philclk at attglobal.net" wrote: > > I'm a new mapserver user trying to install 3.6 demo on Win32. Everything > seems to validate according to installation guide, but when selecting the > "INITIALIZE" button on the demo_init.html screen I get the following error > in the browser. > > loadSymbol(): Unknown identifier. (TRUE):(109) > > Any ideas? > > thanks, > Phil Clark > TEQ Services > philclk at attglobal.net -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From woodbri at swoodbridge.com Mon Jul 15 07:37:20 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 15 Jul 2002 10:37:20 -0400 Subject: [mapserver-users] network analysis in mapserver In-Reply-To: References: <3D2EF552.AA696A9A@vt.edu> Message-ID: <3D32A5E0.19351.3345D59@localhost> Seamus, Mapserver doesn't have this functionality as you probably know at this point. I have code that does what you describe below that could be adapted to any number of similar application. To be able to run fast (ie for a web application) I build a directed graph that is then used to compute the shortest path method and then I extract the required segments into a shape file that can be rendered by mapserver. I have a live demo running on my site at http://iMapTools.com/demos click the "Get A Route" link This demo is using the US National Highway Planning Network shapefiles for the directed graph, but a directed graph could be built for other networks from shapefiles or other data sources. -Stephen Woodbridge On 12 Jul 2002 at 9:43, Seamus Thomas Carroll wrote: > Hi, > > I have post GIS installed but I am not currently using it. I have a road > network for British Columbia and some other provinces and two sets of > point data. I need to be able to find the shortest path along from point > A (postal code) to point B (hospital data) using an impedance taken from > the dbf. For example, the length in metres for an arc or the amount of > time to travel an arc. I need the total impedance and a shape file > representing the path as a result. Would any of these tools solve this > problem for me? > > Seamus > > > On Fri, 12 Jul 2002, Robert W. Burgholzer wrote: > > > Seamus, > > Are you using postGIS by chance? I am working on a set of tools that > > might not be network analysis, but we may have some overlap that we > > could share. > > > > I too am seeking independence from esri, and postgres extendability (all > > functions can be written in C, or several other languages) seems to me > > to be a potential for high quality, open source GIS tools. Already there > > are several geo-processing routines out there acting in > > postgres/postgis. What type of analysis functions are you looking for? > > > > Rob > > > > > > From steve.lime at dnr.state.mn.us Mon Jul 15 08:18:13 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Jul 2002 10:18:13 -0500 Subject: [mapserver-users] Where is any document of "MapServer C API" available? Message-ID: Ummmm... There is no C API documentation other than the map.h header file. The API is put to test in mapserv.c, shp2img.c and the other command line utilities so you could look there for examples. Sorry. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hisaji ONO" 07/11/02 08:48AM >>> Hello. Mapscirpt is a wrapper of MapServer C API. However I couldn't find this MapServer C API's document on Mapserver web page. Could you tell me Where any document of this is available? Best Regards. From steve.lime at dnr.state.mn.us Mon Jul 15 08:39:49 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 15 Jul 2002 10:39:49 -0500 Subject: [mapserver-users] Python Mapscript MS 3.6.1 Message-ID: Yup, it does. Not much but any change will break things. There error/version problems stem from work that was done to make error handling thread-safe. I'll get around to a MapScript fix for the 3.7 release. Norman, is your setup.py script suitable for inclusion in the distribution? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Norman Vine" 07/11/02 12:19PM >>> Michael Schulz writes: > >thanks for the hint to the setup script of Norman Vine. Find it here: >http://www.vso.cape.com/~nhv/files/python/mapscript/setup.py ) >You may need to change some things (paths, libs, etc. ). > >It works well and python gets swigged and compiled and >installed automatically. Yipiie! > >But after that i encountered some problems. After invoking >python, i can do: > >>>>import mapscript (works fine), then i try a test that >Norman mentioned in a post: >>>>mapscript.msGetVersion() (should give the MS_VERSION >string) but i get this error: >AttributeError: 'mapscript' module has no attribute 'msGetVersion' >>>>m = mapscript.ms_newmapObj('/path/to/mapfile') >Traceback (most recent call last): > File "", line 1, in ? >AttributeError: 'mapscript' module has no attribute 'ms_newmapObj' > >So, it seems i get mapscript compiled and all, but it is not >working properly. >(I am using MS 3.6.0, Python 2.1.2, Swig 1.3.13) Michael The mapscript API keeps changing !! Both of the above calls no longer exist. FYI Here is what I get from a version of mapscript compiled after a very recent CVS update Cheers Norman $ python Python 2.1.1 (#44, Feb 17 2002, 12:51:44) [GCC 2.95.3-5 (cygwin special)] on cygwin Type "copyright", "credits" or "license" for more information. >>> import mapscript >>> dir() ['__builtins__', '__doc__', '__name__', 'mapscript'] >>> dir(mapscript) ['DBFInfo', 'DBFInfoPtr', 'FTDouble', 'FTInteger', 'FTInvalid', 'FTString', 'GetMapserverUnitUsingProj', 'MS_AUTO', 'MS_BITMAP', 'MS_CC', 'MS_CJC_BEVEL', 'MS_CJC_BUTT', 'MS_CJC_MITER', 'MS_CJC_NONE', 'MS_CJC_ROUND', 'MS_CJC_SQUARE', 'MS_CJC_TRIANGLE', 'MS_CL', 'MS_CR', 'MS_DD', 'MS_DEFAULT', 'MS_DELETE', 'MS_DONE', 'MS_EMBED', 'MS_FAILURE', 'MS_FALSE', 'MS_FEET', 'MS_FILE_MAP', 'MS_FILE_SYMBOL', 'MS_GIANT', 'MS_HILITE', 'MS_IMAGEMODE_FLOAT32', 'MS_IMAGEMODE_INT16', 'MS_IMAGEMODE_PC256', 'MS_IMAGEMODE_RGB', 'MS_IMAGEMODE_RGBA', 'MS_INCHES', 'MS_INLINE', 'MS_KILOMETERS', 'MS_LARGE', 'MS_LAYER_ANNOTATION', 'MS_LAYER_CIRCLE', 'MS_LAYER_LINE', 'MS_LAYER_POINT', 'MS_LAYER_POLYGON', 'MS_LAYER_QUERY', 'MS_LAYER_RASTER', 'MS_LC', 'MS_LL', 'MS_LR', 'MS_MEDIUM', 'MS_METERS', 'MS_MILES', 'MS_MULTIPLE', 'MS_NO', 'MS_NOOVERRIDE', 'MS_NORMAL', 'MS_OFF', 'MS_OGR', 'MS_ON', 'MS_ORACLESPATIAL', 'MS_PIXELS', 'MS_POSTGIS', 'MS_SDE', 'MS_SELECTED', 'MS_SHAPEFILE', 'MS_SHAPEFILE_ARC', 'MS_SHAPEFILE_MULTIPOINT', 'MS_SHAPEFILE_POINT', 'MS_SHAPEFILE_POLYGON', 'MS_SHAPE_LINE', 'MS_SHAPE_NULL', 'MS_SHAPE_POINT', 'MS_SHAPE_POLYGON', 'MS_SHP_ARCM', 'MS_SHP_MULTIPOINTM', 'MS_SHP_POINTM', 'MS_SHP_POLYGONM', 'MS_SINGLE', 'MS_SMALL', 'MS_SUCCESS', 'MS_TILED_SHAPEFILE', 'MS_TINY', 'MS_TRUE', 'MS_TRUETYPE', 'MS_UC', 'MS_UL', 'MS_UNUS ED_1', 'MS_UR', 'MS_VERSION', 'MS_WMS', 'MS_XY', 'MS_YES', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'classObj', 'classObjPtr', 'colorObj', 'colorObjPtr', 'imageObj', 'imageObjPtr', 'itemObj', 'itemObjPtr', 'labelCacheMemberObj', 'labelCacheMemberObjPtr', 'labelCacheObj', 'labelCacheObjPtr', 'labelObj', 'labelObjPtr', 'layerObj', 'layerObjPtr', 'legendObj', 'legendObjPtr', 'lineObj', 'lineObjPtr', 'mapObj', 'mapObjPtr', 'mapscript', 'mapscriptc', 'markerCacheMemberObj', 'markerCacheMemberObjPtr', 'msDBFAddField', 'msDBFClose', 'msDBFCreate', 'msDBFGetFieldCount', 'msDBFGetFieldInfo', 'msDBFGetItemIndex', 'msDBFGetItemIndexes', 'msDBFGetItems', 'msDBFGetRecordCount', 'msDBFGetValueList', 'msDBFGetValues', 'msDBFOpen', 'msDBFReadDoubleAttribute', 'msDBFReadIntegerAttribute', 'msDBFReadStringAttribute', 'msDBFWriteDoubleAttribute', 'msDBFWriteIntegerAttribute', 'msDBFWriteStringAttribute', 'msFreeImage', 'msSaveImage', 'outputFormatObj', 'outputFormatObjPtr', 'pointObj', 'pointObjPtr', 'projectionObj', 'projectionObjPtr', 'queryMapObj', 'queryMapObjPtr', 'rectObj', 'rectObjPtr', 'referenceMapObj', 'referenceMapObjPtr', 'resultCacheMemberObj', 'resultCacheMemberObj Ptr', 'resultCacheObj', 'resultCacheObjPtr', 'scalebarObj', 'scalebarObjPtr', 'shapeObj', 'shapeObjPtr', 'shapefileObj', 'shapefileObjPtr', 'styleObj', 'styleObjPtr', 'webObj', 'webObjPtr'] >>> ========== $ swig -version SWIG Version 1.3.13u-20020628-1621 Copyright (c) 1995-1998 University of Utah and the Regents of the University of California Copyright (c) 1998-2001 University of Chicago Compiled with CC From mi.ro at iol.it Mon Jul 15 10:05:52 2002 From: mi.ro at iol.it (Roberto Micarelli) Date: Mon, 15 Jul 2002 19:05:52 +0200 Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <3D32A5E0.19351.3345D59@localhost> References: <3D2EF552.AA696A9A@vt.edu> <3D32A5E0.19351.3345D59@localhost> Message-ID: <200207151552.KAA19692@lists.gis.umn.edu> On Monday 15 July 2002 16:37, woodbri at swoodbridge.com wrote: > Seamus, > > Mapserver doesn't have this functionality as you probably know at > this point. I have code that does what you describe below that could > be adapted to any number of similar application. To be able to run > fast (ie for a web application) I build a directed graph that is then > used to compute the shortest path method and then I extract the > required segments into a shape file that can be rendered by > mapserver. > > I have a live demo running on my site at > http://iMapTools.com/demos > click the "Get A Route" link > > This demo is using the US National Highway Planning Network > shapefiles for the directed graph, but a directed graph could be > built for other networks from shapefiles or other data sources. > Do you build the graph on each invocation or does it stay resident? Did you write the code for digraph support? Roberto From carrolls at unbc.ca Mon Jul 15 09:11:31 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Mon, 15 Jul 2002 09:11:31 -0700 (PDT) Subject: [mapserver-users] network analysis in mapserver In-Reply-To: <3D32A5E0.19351.3345D59@localhost> Message-ID: Hi, The site looks very good. How can I get a copy of the code? Seamus On Mon, 15 Jul 2002 woodbri at swoodbridge.com wrote: > Seamus, > > Mapserver doesn't have this functionality as you probably know at > this point. I have code that does what you describe below that could > be adapted to any number of similar application. To be able to run > fast (ie for a web application) I build a directed graph that is then > used to compute the shortest path method and then I extract the > required segments into a shape file that can be rendered by > mapserver. > > I have a live demo running on my site at > http://iMapTools.com/demos > click the "Get A Route" link > > This demo is using the US National Highway Planning Network > shapefiles for the directed graph, but a directed graph could be > built for other networks from shapefiles or other data sources. > > -Stephen Woodbridge > > On 12 Jul 2002 at 9:43, Seamus Thomas Carroll wrote: > > > Hi, > > > > I have post GIS installed but I am not currently using it. I have a road > > network for British Columbia and some other provinces and two sets of > > point data. I need to be able to find the shortest path along from point > > A (postal code) to point B (hospital data) using an impedance taken from > > the dbf. For example, the length in metres for an arc or the amount of > > time to travel an arc. I need the total impedance and a shape file > > representing the path as a result. Would any of these tools solve this > > problem for me? > > > > Seamus > > > > > > On Fri, 12 Jul 2002, Robert W. Burgholzer wrote: > > > > > Seamus, > > > Are you using postGIS by chance? I am working on a set of tools that > > > might not be network analysis, but we may have some overlap that we > > > could share. > > > > > > I too am seeking independence from esri, and postgres extendability (all > > > functions can be written in C, or several other languages) seems to me > > > to be a potential for high quality, open source GIS tools. Already there > > > are several geo-processing routines out there acting in > > > postgres/postgis. What type of analysis functions are you looking for? > > > > > > Rob > > > > > > > > > > > > From woodbri at swoodbridge.com Mon Jul 15 09:27:04 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 15 Jul 2002 12:27:04 -0400 Subject: [mapserver-users] network analysis in mapserver In-Reply-To: References: <3D32A5E0.19351.3345D59@localhost> Message-ID: <3D32BF98.24685.398D2EA@localhost> On 15 Jul 2002 at 19:05, Roberto Micarelli wrote: > On Monday 15 July 2002 16:37, woodbri at swoodbridge.com wrote: > > Seamus, > > > > Mapserver doesn't have this functionality as you probably know at > > this point. I have code that does what you describe below that could > > be adapted to any number of similar application. To be able to run > > fast (ie for a web application) I build a directed graph that is then > > used to compute the shortest path method and then I extract the > > required segments into a shape file that can be rendered by > > mapserver. > > > > I have a live demo running on my site at > > http://iMapTools.com/demos > > click the "Get A Route" link > > > > This demo is using the US National Highway Planning Network > > shapefiles for the directed graph, but a directed graph could be > > built for other networks from shapefiles or other data sources. > > > > Do you build the graph on each invocation or does it stay resident? I build it once and reuse it. I takes like 5 minutes to read a 65 MB shapefile and build a digraph and the same digraph can be reused. I also generate other structures that I need to extract the shape info after the shortest path is done. > Did you > write the code for digraph support? Yes, I wrote this code myself and then modified an existing shortest path algorithm to use my digraph and also the code to post process the shortest path results to extract and generate the resultant shape file. -Steve From adams at terrestris.de Mon Jul 15 09:29:01 2002 From: adams at terrestris.de (Till Adams) Date: Mon, 15 Jul 2002 18:29:01 +0200 Subject: [mapserver-users] Can't run MapServer Demo Message-ID: <3D32F84D.5080408@terrestris.de> Hello cracks, I'm new to running MapServer. Maybe a simple question: I'm running mapserver 3.6 on a win 2k machine with apache webserver. I downloaded the demo-project, tested the mapserver CGI application - it works fine. But I don't get the demo running. Looking to the apache error-log, it says, that the graphic-files of my map project don't exist: [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[scalebar] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[img] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[ref] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[legend] Maybe the problem is, that running the demo_init.html file, I'm prompted to download the file or start it from the directory. Choosing "starting from ..." it returns a warning. When I ignore it, I think the mapserv.exe is executed but the demo-project (demo.html) isn't opened automatically. I also installed the libwww.dlls but didn't install the gd graphics library. Do I have to? Many thanks in advance! Cheers, Till? :-) From pkishor at GeoAnalytics.com Mon Jul 15 09:31:33 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 15 Jul 2002 11:31:33 -0500 Subject: [mapserver-users] network analysis in mapserver Message-ID: Stephen, > I have a live demo running on my site at > http://iMapTools.com/demos > click the "Get A Route" link > verrrrrrry nice. > This demo is using the US National Highway Planning Network > shapefiles for the directed graph, but a directed graph could be > built for other networks from shapefiles or other data sources. > so, is this opensource, or do we just salivate over it? ;-) pk/ > -Stephen Woodbridge > > On 12 Jul 2002 at 9:43, Seamus Thomas Carroll wrote: > > > Hi, > > > > I have post GIS installed but I am not currently using it. > I have a road > > network for British Columbia and some other provinces and > two sets of > > point data. I need to be able to find the shortest path > along from point > > A (postal code) to point B (hospital data) using an > impedance taken from > > the dbf. For example, the length in metres for an arc or > the amount of > > time to travel an arc. I need the total impedance and a shape file > > representing the path as a result. Would any of these > tools solve this > > problem for me? > > > > Seamus > > > > > > On Fri, 12 Jul 2002, Robert W. Burgholzer wrote: > > > > > Seamus, > > > Are you using postGIS by chance? I am working on a set of > tools that > > > might not be network analysis, but we may have some > overlap that we > > > could share. > > > > > > I too am seeking independence from esri, and postgres > extendability (all > > > functions can be written in C, or several other > languages) seems to me > > > to be a potential for high quality, open source GIS > tools. Already there > > > are several geo-processing routines out there acting in > > > postgres/postgis. What type of analysis functions are you > looking for? > > > > > > Rob > > > > > > > > > > > > From nhv at cape.com Mon Jul 15 09:56:41 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 15 Jul 2002 12:56:41 -0400 Subject: [mapserver-users] Python Mapscript MS 3.6.1 In-Reply-To: Message-ID: <001b01c22c20$99435ea0$a300a8c0@nhv> Steve Lime writes: > >Norman, is your setup.py script suitable for inclusion in the distribution? The one attached to this messge might be :-) http://mapserver.gis.umn.edu/wilma/mapserver-users/0207/msg00182.html Needs testing on systems other then Cygwin though !! Please report any problems / errors to the list for the archives. FYI I am using swig 1.3.13 and Python 2.1.1 but hopefully that will not matter Cheers Norman From ycnyon at pd.jaring.my Sun Jul 14 23:13:53 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Mon, 15 Jul 2002 14:13:53 +0800 Subject: [mapserver-users] Refresh via javascripts Message-ID: <001201c22c22$cc6cfc80$0dcc97ca@domain> When the checkbox of a layer is change, using the onclick command, it will run the following javascript commands function redraw() { document.mapper.zoom.value = 0; document.mapper.zsize.value = 0; document.mapper.extent.value; document.mapper.map_x.value = 225; document.mapper.map_y.value = 175; document.mapper.submit(); } It works except it displays the full extent of the map. In my file, there is the which defines the current map extent. Seems i missing something.. Nyon From woodbri at swoodbridge.com Mon Jul 15 10:18:49 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 15 Jul 2002 13:18:49 -0400 Subject: [mapserver-users] network analysis in mapserver In-Reply-To: References: <3D32A5E0.19351.3345D59@localhost> Message-ID: <3D32CBB9.30728.3C83337@localhost> Thank you for the site kudos. The code is not OpenSource sorry, but I am willing to license the source and provide consulting services to integrate it with your application. Contact me off list if you are interested. Apologies to the rest of the list for the above commerical plug. -Steve On 15 Jul 2002 at 9:11, Seamus Thomas Carroll wrote: > Hi, > > The site looks very good. How can I get a copy of the code? On 15 Jul 2002 at 11:31, Puneet Kishor wrote: > Stephen, > > > I have a live demo running on my site at > > http://iMapTools.com/demos > > click the "Get A Route" link > > > > > verrrrrrry nice. > > > > This demo is using the US National Highway Planning Network > > shapefiles for the directed graph, but a directed graph could be > > built for other networks from shapefiles or other data sources. > > > > so, is this opensource, or do we just salivate over it? > > ;-) From morissette at dmsolutions.ca Mon Jul 15 11:00:23 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 15 Jul 2002 14:00:23 -0400 Subject: [mapserver-users] Where is any document of "MapServer CAPI" available? References: Message-ID: <3D330DB7.D80AC3F2@dmsolutions.ca> The following may help, it was automagically generated from the MapServer 3.5 C source code using Doxygen: http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-dox/ I've also made a copy of the whole thing available for download at http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-dox-35.tar.gz Daniel Steve Lime wrote: > > Ummmm... There is no C API documentation other than the map.h header > file. The API is put to test in mapserv.c, shp2img.c and the other > command line utilities so you could look there for examples. Sorry. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Hisaji ONO" 07/11/02 08:48AM >>> > Hello. > > Mapscirpt is a wrapper of MapServer C API. > > However I couldn't find this MapServer C API's document on Mapserver > web > page. > > Could you tell me Where any document of this is available? > > Best Regards. From philclk at attglobal.net Mon Jul 15 12:19:34 2002 From: philclk at attglobal.net (philclk at attglobal.net) Date: Mon, 15 Jul 2002 15:19:34 -0400 Subject: [mapserver-users] Can't run MapServer Demo Message-ID: <4910-220027115191934368@M2W055.mail2web.com> It sounds like the parameters in the demo_init.html do not match the Apache root directory (currently set default directory). The install docs give more details. Hope it helps. Phil at TEQ Original Message: ----------------- From: Till Adams adams at terrestris.de Date: Mon, 15 Jul 2002 18:29:01 +0200 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Can't run MapServer Demo Hello cracks, I'm new to running MapServer. Maybe a simple question: I'm running mapserver 3.6 on a win 2k machine with apache webserver. I downloaded the demo-project, tested the mapserver CGI application - it works fine. But I don't get the demo running. Looking to the apache error-log, it says, that the graphic-files of my map project don't exist: [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[scalebar] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[img] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[ref] [Mon Jul ...] File does not exist: c:/inetpub/wwwroot/itasca/[legend] Maybe the problem is, that running the demo_init.html file, I'm prompted to download the file or start it from the directory. Choosing "starting from ..." it returns a warning. When I ignore it, I think the mapserv.exe is executed but the demo-project (demo.html) isn't opened automatically. I also installed the libwww.dlls but didn't install the gd graphics library. Do I have to? Many thanks in advance! Cheers, Till? :-) -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From mark.cave-ayland at webbased.co.uk Mon Jul 15 12:18:13 2002 From: mark.cave-ayland at webbased.co.uk (Mark Cave-Ayland) Date: Mon, 15 Jul 2002 20:18:13 +0100 Subject: [mapserver-users] Scalability and Mapscript running PHP as a module NOT CGI Message-ID: <3D332E05.7619.7CB7EA@localhost> Hi everyone, What is the current state of Mapscript being used as when running PHP as an Apache module instead of a CGI (see http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI for more info)? Currently we are looking at a system that can support 500 simultaneous users without a problem. From what I understand, the performance would be increased substantially running as a module as there is no need to launch a new process when executing the PHP script. If it is not yet supported in this configuration, would the CGI version scale to 500 users on a single machine (how many maps per second have people managed to obtain on various hardware etc.), and if not, how much work would be required to make the necessary modifications to Mapscript to run with PHP as a module to get the best performance possible? Cheers, Mark. From mweinelt at planiglobe.com Tue Jul 16 00:43:04 2002 From: mweinelt at planiglobe.com (Martin Weinelt) Date: Tue, 16 Jul 2002 09:43:04 +0200 Subject: [mapserver-users] Refresh via javascripts In-Reply-To: <001201c22c22$cc6cfc80$0dcc97ca@domain> References: <001201c22c22$cc6cfc80$0dcc97ca@domain> Message-ID: <02071609430400.02625@kopernicus> YC Nyon on Montag 15 Juli 2002 08:13: > When the checkbox of a layer is change, using the onclick command, it will > run the following javascript commands > function redraw() > { > document.mapper.zoom.value = 0; > document.mapper.zsize.value = 0; > document.mapper.extent.value; > document.mapper.map_x.value = 225; > document.mapper.map_y.value = 175; > document.mapper.submit(); > } > > It works except it displays the full extent of the map. > In my file, there is the which defines > the current map extent. > > Seems i missing something.. > > Nyon Nyon, I use two forms for the interface (also because I use different frames). One takes care of pan, zoom, query and one does the layers update. In the first form there is the line from the demo reading: When the user hits the refresh button in the second form (layers), the js routine (among other things) copies the 'imgext' value from the first form: with (parent.frBottom.document) { myForm.imgext.value = map_form.imgext.value } where frBottom is the frame the Mapserver CGI sends the map, myForm is the 'layers'-form and map_form is the form template mapserver uses. View he whole thing at : http://www.costarica.geomar.de/demo_pif/ Cheers, Martin From mail2stern at gmx.net Tue Jul 16 02:46:07 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Tue, 16 Jul 2002 10:46:07 +0100 Subject: [mapserver-users] documents: mapfile.html / templates.html ? Message-ID: <3D33EB5F.7090907@gmx.net> hi all, I can't find these two files, that are part of the documentation and the tutorial: http://mapserver.gis.umn.edu/mapfile.html http://mapserver.gis.umn.edu/templates.html I searched with Google; seems like these files are no where else. Can somebody provide me with these documents? (via mail or http) Best Regards, Stefan From jga at scot.cnes.fr Tue Jul 16 03:30:32 2002 From: jga at scot.cnes.fr (jrom) Date: 16 Jul 2002 12:30:32 +0200 Subject: [mapserver-users] Truetype label with symbol problem Message-ID: <200207161025.g6GAP0B18093@cnes.fr> Hi, I've tried without success to use truetype font with symbol objects. In my layer class: LAYER NAME Grille DATA "grille" TYPE POINT STATUS DEFAULT CLASS NAME "Grille" SYMBOL "fontsym" COLOR 255 0 0 SIZE 24 END END SYMBOL NAME "fontsym" TYPE truetype FONT arial CHARACTER "#" END The FONTSET is defined correctly. I try to replace symbol object with a label object using this font and it works to. But when i use it as a symbol nothing appear (i have a blank map with scalebar (no error)). I tried without success to: change the font change the version of mapserver (3.4, 3.5 and 3.6) change the OS (under linux and under windows) But i have the same problem each time. Did someone experience this problem before? Regards Jerome Gasperi From frank.koormann at intevation.de Tue Jul 16 04:15:52 2002 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 16 Jul 2002 13:15:52 +0200 Subject: [mapserver-users] documents: mapfile.html / templates.html ? In-Reply-To: <3D33EB5F.7090907@gmx.net> References: <3D33EB5F.7090907@gmx.net> Message-ID: <20020716111551.GC3472@intevation.de> * Stefan Stern (mail2stern at gmx.net) [020716 12:54]: > hi all, > > I can't find these two files, that are part of the documentation and the > tutorial: > > http://mapserver.gis.umn.edu/mapfile.html > http://mapserver.gis.umn.edu/templates.html > > I searched with Google; seems like these files are no where else. > Yes, depending on the version of your mapserver 3.5 / 3.6 these are now linked under http://mapserver.gis.umn.edu/doc35 http://mapserver.gis.umn.edu/doc36 and named mapfile-reference.html and template-reference.html Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From mschulz at webgis.de Tue Jul 16 05:05:06 2002 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 16 Jul 2002 14:05:06 +0200 Subject: [mapserver-users] python-mapscript Message-ID: <3D340BF2.ABB557C@webgis.de> Hi, once again a python-mapscript question. What is the correct way to get a handle to an associated DBFInfoObj of a shapefileObj? The PerlMapscriptExamples ( http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex5 ) show this using a method of the shapefileObj named "hDBF", which seems to be not existing in the last releases (it is in 3.5, but not in 3.6). But i can open a dbf file with "msDBFOpen", which returns exactly a handle to a DBFInfoObj, but you have to provide the name of the dbf instead of it being a method(?) of the shapefileObj. Are these "msDBFxxxx" new methods, that are replacing old ones? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From Bjarni.Pjetursson at tietoenator.com Tue Jul 16 06:57:50 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 16 Jul 2002 15:57:50 +0200 Subject: [mapserver-users] Oracle Spatial: SDO_SRID is bad for performance Message-ID: <18E0CC75605BD411907800508B8BB8D049E5EA@odin.enator.dk> Hi group, after experimenting with the Oracle Spatial support for mapserver, I've noticed poor performance on Oracle 9i when querying large data sets. The reason seems to be, that the query is sent to Oracle like this: SELECT rownum, shape FROM my_table my_table_alias WHERE sdo_filter(shape, mdsys.sdo_geometry( 2003, my_table_alias.shape.sdo_srid, null, mdsys.sdo_elem_info_array(1,1003,3), mdsys.sdo_ordinate_array(31,19,52,61) ),'querytype=window') = 'TRUE'; By using the "my_table_alias.shape.sdo_srid", Oracle cannot optimize the query, since each row must go through the sdo_filter function separately. I know all my data to be of the same SRID, so I can replace "my_table_alias.shape.sdo_srid" whith "8307" in the above query. The response time drops from 60 seconds to 3 seconds! Unfortunately there is no way I can tell mapserver this in the map-file... Has anyone else experienced the same problem or know of a solution? I use MapServer 3.5 on Windows. Regards Bjarni Thor Pjetursson TietoEnator Consulting A/S Denmark From silke at intevation.de Tue Jul 16 07:12:12 2002 From: silke at intevation.de (Silke Reimer) Date: Tue, 16 Jul 2002 16:12:12 +0200 Subject: [mapserver-users] Use of EPSG in Tutorial Message-ID: <20020716141212.GA20018@intevation.de> Hallo! I wanted to install the Mapserver tutorial but I had some problems with the reprojection section (section 4). The problem occurs in s4ex2.map. There an EPSG code (namely 42103) is used, which isn't defined in the current version of PROJ.4. I finally added the definition to /usr/share/proj/epsg . This is the file where those EPSG numbers are defined that are used by PROJ.4. The tutorial then worked but in my opinion it should be easier to be successful. Now I'm wondering if I oversaw something. Then I would like to learn how it should be done. If I did it the right way, I think that either the tutorial should use another projection or the EPSG code should be defined in PROJ.4. BTW: Many thanks to those who wrote the tutorial. I think it is a very good thing and when I have solved this and a few other little problems we plan to add it to the FreeGIS CD. Greetings, Silke -- Silke Reimer Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From lfilak at medinaco.org Tue Jul 16 09:14:00 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 16 Jul 2002 12:14:00 -0400 (EDT) Subject: [mapserver-users] python-mapscript In-Reply-To: <3D340BF2.ABB557C@webgis.de> Message-ID: I believe you are correct. I apologize for the confusion in the example. The example is corrected. Lowell F. On Tue, 16 Jul 2002, Michael Schulz wrote: > Hi, > > once again a python-mapscript question. What is the correct way to get a > handle to an associated DBFInfoObj of a shapefileObj? The > PerlMapscriptExamples ( > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex5 > ) show this using a method of the shapefileObj named "hDBF", which seems > to be not existing in the last releases (it is in 3.5, but not in 3.6). > > But i can open a dbf file with "msDBFOpen", which returns exactly a > handle to a DBFInfoObj, but you have to provide the name of the dbf > instead of it being a method(?) of the shapefileObj. Are these > "msDBFxxxx" new methods, that are replacing old ones? > > Thanks, Michael > > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de > > > > From john_mapserver at hotmail.com Tue Jul 16 09:58:05 2002 From: john_mapserver at hotmail.com (John Newton) Date: Tue, 16 Jul 2002 09:58:05 -0700 Subject: [mapserver-users] Oracle Spatial: SDO_SRID is bad for performance References: <18E0CC75605BD411907800508B8BB8D049E5EA@odin.enator.dk> Message-ID: try setting in your map file: DATA shape my_table USING SRID 8307 I believe this works in 3.6, I haven't check 3.5. -john ----- Original Message ----- From: "Bjarni Pjetursson" To: Sent: Tuesday, July 16, 2002 6:57 AM Subject: [mapserver-users] Oracle Spatial: SDO_SRID is bad for performance > Hi group, > after experimenting with the Oracle Spatial support for mapserver, I've > noticed poor performance on Oracle 9i when querying large data sets. The > reason seems to be, that the query is sent to Oracle like this: > > SELECT rownum, shape FROM my_table my_table_alias > WHERE sdo_filter(shape, > mdsys.sdo_geometry( > 2003, > my_table_alias.shape.sdo_srid, > null, > mdsys.sdo_elem_info_array(1,1003,3), > mdsys.sdo_ordinate_array(31,19,52,61) > ),'querytype=window') = 'TRUE'; > > By using the "my_table_alias.shape.sdo_srid", Oracle cannot optimize the > query, since each row must go through the sdo_filter function separately. > > I know all my data to be of the same SRID, so I can replace > "my_table_alias.shape.sdo_srid" whith "8307" in the above query. The > response time drops from 60 seconds to 3 seconds! Unfortunately there is no > way I can tell mapserver this in the map-file... > > Has anyone else experienced the same problem or know of a solution? > I use MapServer 3.5 on Windows. > > Regards > Bjarni Thor Pjetursson > TietoEnator Consulting A/S > Denmark > From Chip.Hankley at GASAI.Com Tue Jul 16 10:13:57 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 16 Jul 2002 12:13:57 -0500 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple Windows Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABBF8@postoffice.GASAI.Com> Kind of a generic server side processing question. I'm running a querybypoint operation w/ PHP MapScript. I can collect the results in an array, highlight the selected records, etc. etc., all in the same window. BUT, what I want to do is display the selected records in a table in a NEW window. So... I want the server-side stuff to do something like this. Receive Input | V Query Shapefile | V Return Results to Array | V Refresh Map in Existing Window (showing selected records) | V Display the Attributes of the Selected Records in a New Window It's this last step that I'm having a hard time with...I would think it should be simple. Thanks for any suggestions! Cheers! Chip Hankley From ARyan at co.linn.or.us Tue Jul 16 10:28:56 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Tue, 16 Jul 2002 10:28:56 -0700 Subject: [mapserver-users] Date field Message-ID: <614FCE5F14A6D41180C200010240D6A2BAA6D4@LINNMS> Hi. I was wondering whether future releases would include: 1. The revival of the JOIN object. 2. The ability to query a date field. Thanks, Adam From ISAI.MICHEL at saic.com Tue Jul 16 10:40:45 2002 From: ISAI.MICHEL at saic.com (Michel, Isai) Date: Tue, 16 Jul 2002 10:40:45 -0700 Subject: [mapserver-users] see if this works Message-ID: I want to see if this mailing list works. Please write me back if it does at: isai.michel at saic.com Thank you. Respectfully: IML From morissette at dmsolutions.ca Tue Jul 16 11:00:05 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Jul 2002 14:00:05 -0400 Subject: [mapserver-users] Scalability and Mapscript running PHP as a module NOT CGI References: <3D332E05.7619.7CB7EA@localhost> Message-ID: <3D345F25.30CB9E3F@dmsolutions.ca> Mark Cave-Ayland wrote: > > What is the current state of Mapscript being used as when running PHP > as an Apache module instead of a CGI (see > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI for > more info)? > This PHP CGI issue is still present in 3.6 and is being worked on for 3.7 (as a lower priority task), we hope to have PHP MapScript working with the PHP Apache module for 3.7, but there is no guarantee yet that all thread-safety issues will be resolved by then. Of course if someone is interested in funding this work then it can become a higher priority. > Currently we are looking at a system that can support 500 simultaneous > users without a problem. From what I > understand, the performance would be increased substantially running > as a module as there is no need to launch a new process when > executing the PHP script. If it is not yet supported in this configuration, > would the CGI version scale to 500 users on a single machine (how > many maps per second have people managed to obtain on various > hardware etc.), and if not, how much work would be required to make > the necessary modifications to Mapscript to run with PHP as a module > to get the best performance possible? > 500 users? How many map draws per user? What kind of data are you mapping? I think a better measure is number of maps per day. To give you an idea, a PIII 1GHz, IDE HD, 512MB RAM running Linux could easily serve 30,000 hits per day on our GMap PHP MapScript application (that's 1 hit/second at peak times, 20 hits/minute average). Of course it all depends on how much load drawing a single map puts on your server, some apps will suck several seconds of CPU per map draw, others will draw a map in a fraction of a second. So you need to benchmark how much time a single hit takes with your specific application, and do the maths yourself. Now, this being said, the PHP/CGI overhead is relatively small if your maps take 3 seconds to draw anyway... so you should look at how you can tune your map data with tile indexes and shptree before worrying too much about the PHP CGI issue. I hope that helps, Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From woodbri at swoodbridge.com Tue Jul 16 11:20:10 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 16 Jul 2002 14:20:10 -0400 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple Windows In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABBF8@postoffice.GASAI.Com> Message-ID: <3D342B9A.18324.926B801@localhost> Chip, I do not believe there is a way for the server to send a response back to the client that will generate a new window. This can only be done via client side methods like javascript or target="somewindow" on an existing page. this site does what you want: http://atlas.gc.ca/site/english/maps/environment/land/landcover?map=%2 Fhome%2Fmapdata%2Faoc_v3%2Fenglish%2F21028.map&imgext=557254.701810+- 680077.824843+2140864.014310+725930.443264&mode=browse&scale=5244128.1 5837856&imgxy=&mapext=&img.x=247&img.y=203 It does the following trickery on the form submit to pop up a new window for results but does not deal with updating the image:

HTH, -Steve On 16 Jul 2002 at 12:13, Hankley, Chip wrote: > Kind of a generic server side processing question. > > I'm running a querybypoint operation w/ PHP MapScript. I can collect the > results in an array, highlight the selected records, etc. etc., all in the > same window. BUT, what I want to do is display the selected records in a > table in a NEW window. So... I want the server-side stuff to do something > like this. > > Receive Input > | > V > Query Shapefile > | > V > Return Results to Array > | > V > Refresh Map in Existing Window > (showing selected records) > | > V > Display the Attributes of > the Selected Records in a > New Window > > It's this last step that I'm having a hard time with...I would think it > should be simple. Thanks for any suggestions! > > Cheers! > > > Chip Hankley > From Tom.Kralidis at ccrs.nrcan.gc.ca Tue Jul 16 11:23:25 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Tue, 16 Jul 2002 14:23:25 -0400 Subject: [mapserver-users] Date field Message-ID: <7CDD7B94357FD5119E800002A537C46E226BF1@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at co.linn.or.us] > Sent: Tuesday, July 16, 2002 1:29 PM > To: Mapserver User List > Subject: [mapserver-users] Date field > > > > Hi. > > I was wondering whether future releases would include: > > 1. The revival of the JOIN object. > > 2. The ability to query a date field. > > Thanks, > > Adam > I echo request #2, especially since WMS 1.1 supports time querying via ISO8601. Any plans for this? ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From pkishor at GeoAnalytics.com Tue Jul 16 12:14:57 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 16 Jul 2002 14:14:57 -0500 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows Message-ID: afaik, you can't tell the server to "push" two windows. However, you can readily tell the client to spawn an additional window that "pulls" the correct script from the server. attach a window spawning function to any client-side object that fires either by user interaction or by onload. pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Tuesday, July 16, 2002 12:14 PM > To: MapServer List (E-mail) > Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple > Windows > > > Kind of a generic server side processing question. > > I'm running a querybypoint operation w/ PHP MapScript. I can > collect the > results in an array, highlight the selected records, etc. > etc., all in the > same window. BUT, what I want to do is display the selected > records in a > table in a NEW window. So... I want the server-side stuff to > do something > like this. > > Receive Input > | > V > Query Shapefile > | > V > Return Results to Array > | > V > Refresh Map in Existing Window > (showing selected records) > | > V > Display the Attributes of > the Selected Records in a > New Window > > It's this last step that I'm having a hard time with...I > would think it > should be simple. Thanks for any suggestions! > > Cheers! > > > Chip Hankley > From scarr at progbits.com Tue Jul 16 12:26:49 2002 From: scarr at progbits.com (Scott Carr) Date: Tue, 16 Jul 2002 14:26:49 -0500 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple Windows In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABBF8@postoffice.GASAI.Com> References: <3DFF131E4E6D2D4198CDD758F35A5353010ABBF8@postoffice.GASAI.Com> Message-ID: <1026847609.3d34737961a95@progbits.com> I don't believe it is possible to create two different transmissions within the same call. (I could be wrong.) What about displaying the map and including a link, called View Records, that would pass the same query, but display the results instead of the map? You could use or something like it anyway. -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting "Hankley, Chip" : > Kind of a generic server side processing question. > > I'm running a querybypoint operation w/ PHP MapScript. I can collect the > results in an array, highlight the selected records, etc. etc., all in the > same window. BUT, what I want to do is display the selected records in a > table in a NEW window. So... I want the server-side stuff to do something > like this. > > Receive Input > | > V > Query Shapefile > | > V > Return Results to Array > | > V > Refresh Map in Existing Window > (showing selected records) > | > V > Display the Attributes of > the Selected Records in a > New Window > > It's this last step that I'm having a hard time with...I would think it > should be simple. Thanks for any suggestions! > > Cheers! > > > Chip Hankley > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ From hi-ono at mn.xdsl.ne.jp Tue Jul 16 12:45:45 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Wed, 17 Jul 2002 04:45:45 +0900 Subject: [mapserver-users] Where is any document of "MapServer CAPI" available? References: Message-ID: <008e01c22d01$60a071a0$650202c0@vip> Thank you very much, Mr. Morissette and Mr. Lime. This is very useful. > The following may help, it was automagically generated from the > MapServer 3.5 C source code using Doxygen: > http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-dox/ > > I've also made a copy of the whole thing available for download at > http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-dox-35.tar.gz From birgit_woods at yahoo.com Tue Jul 16 13:13:19 2002 From: birgit_woods at yahoo.com (Birgit Woods) Date: Tue, 16 Jul 2002 13:13:19 -0700 (PDT) Subject: [mapserver-users] MapFile[beginner] Message-ID: <20020716201319.57075.qmail@web10507.mail.yahoo.com> Hi, I have gotten the demo up and running, but I can't generate my own map. I think the problem is somewhere in my mapfile. The maps are not being generated in the temporary directory for one thing. My units are in decimal degrees and I have written in the extents. I got the extents from ArcMap. Also, my original map was an .mxd written in ArcMap. Was it really necessary for me to change it to a .gif? Because I first had to convert it to a bitmap image and then to a gif with photoshop. Seems like a lot of extra work, and I'm not sure if the extents of the image still qualify, having gone through different conversions. I have attached my mapfile. If someone could quickly take a look at it, I'd really appreciate it. Thanks, B. __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Coastlines.map URL: From dylan at brc21.co.za Tue Jul 16 13:24:05 2002 From: dylan at brc21.co.za (Dylan Rawlins) Date: Tue, 16 Jul 2002 22:24:05 +0200 Subject: [mapserver-users] Dynamic expressions in php mapscript 3.6 Message-ID: <200207162221952.SM00082@andrew> Hi, I have just updated to 3.6.1 from 3.5 but can't get my dynamic expressions to work. The expression is: $Query = "('[DAY]' =~ /$weekday/ AND '[OFFENCE]' =~ /Burglary Residential/ AND '[MONTH]' =~ /$month/ AND '[TIMECODE]' =~ /$time/)"; $class = $cLayer->getClass(0); $class->setexpression($Query); This worked fine in 3.5 but doesn't draw in 3.6.1 even though the legend picks it up. Any ideas on how to fix it or a better way of running multiple attribute expressions? Thanks Dylan http://www.mapserver.co.za Innovative Geographic Information Systems From morissette at dmsolutions.ca Tue Jul 16 13:58:29 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Jul 2002 16:58:29 -0400 Subject: [mapserver-users] Dynamic expressions in php mapscript 3.6 References: <200207162221952.SM00082@andrew> Message-ID: <3D3488F5.EF9336B6@dmsolutions.ca> Does it work in 3.6 if you set the same expression directly in the mapfile instead of doing it via the setExpression() method? Dylan Rawlins wrote: > > Hi, > > I have just updated to 3.6.1 from 3.5 but can't get my dynamic > expressions to work. The expression is: > > $Query = "('[DAY]' =~ /$weekday/ AND '[OFFENCE]' =~ /Burglary > Residential/ AND '[MONTH]' =~ /$month/ AND '[TIMECODE]' =~ > /$time/)"; > $class = $cLayer->getClass(0); > $class->setexpression($Query); > > This worked fine in 3.5 but doesn't draw in 3.6.1 even though the > legend picks it up. > > Any ideas on how to fix it or a better way of running multiple > attribute expressions? > > Thanks > Dylan > http://www.mapserver.co.za > Innovative Geographic Information Systems From DMartin at erac.com Tue Jul 16 14:20:54 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 16 Jul 2002 16:20:54 -0500 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows Message-ID: Using Javascript, you can create a new window and perform document.write to that new window. Paste this into the body of any HTML page, and I think you'll have a starting point: Now all you have to do is append your query results into myString. Hope it helps. -Dan -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Tuesday, July 16, 2002 2:15 PM To: 'Hankley, Chip'; MapServer List (E-mail) Subject: RE: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows afaik, you can't tell the server to "push" two windows. However, you can readily tell the client to spawn an additional window that "pulls" the correct script from the server. attach a window spawning function to any client-side object that fires either by user interaction or by onload. pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Tuesday, July 16, 2002 12:14 PM > To: MapServer List (E-mail) > Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple > Windows > > > Kind of a generic server side processing question. > > I'm running a querybypoint operation w/ PHP MapScript. I can > collect the > results in an array, highlight the selected records, etc. > etc., all in the > same window. BUT, what I want to do is display the selected > records in a > table in a NEW window. So... I want the server-side stuff to > do something > like this. > > Receive Input > | > V > Query Shapefile > | > V > Return Results to Array > | > V > Refresh Map in Existing Window > (showing selected records) > | > V > Display the Attributes of > the Selected Records in a > New Window > > It's this last step that I'm having a hard time with...I > would think it > should be simple. Thanks for any suggestions! > > Cheers! > > > Chip Hankley > From DMartin at erac.com Tue Jul 16 14:30:01 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 16 Jul 2002 16:30:01 -0500 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows Message-ID: Whoops, that last should be . Sorry, I hacked it together quickly. -Dan -----Original Message----- From: Martin, Daniel Sent: Tuesday, July 16, 2002 4:21 PM To: 'Hankley, Chip'; MapServer List (E-mail) Subject: RE: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows Using Javascript, you can create a new window and perform document.write to that new window. Paste this into the body of any HTML page, and I think you'll have a starting point: Now all you have to do is append your query results into myString. Hope it helps. -Dan -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Tuesday, July 16, 2002 2:15 PM To: 'Hankley, Chip'; MapServer List (E-mail) Subject: RE: [mapserver-users] PHP, HOW??: Returning Results to Multiple W indows afaik, you can't tell the server to "push" two windows. However, you can readily tell the client to spawn an additional window that "pulls" the correct script from the server. attach a window spawning function to any client-side object that fires either by user interaction or by onload. pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Tuesday, July 16, 2002 12:14 PM > To: MapServer List (E-mail) > Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple > Windows > > > Kind of a generic server side processing question. > > I'm running a querybypoint operation w/ PHP MapScript. I can > collect the > results in an array, highlight the selected records, etc. > etc., all in the > same window. BUT, what I want to do is display the selected > records in a > table in a NEW window. So... I want the server-side stuff to > do something > like this. > > Receive Input > | > V > Query Shapefile > | > V > Return Results to Array > | > V > Refresh Map in Existing Window > (showing selected records) > | > V > Display the Attributes of > the Selected Records in a > New Window > > It's this last step that I'm having a hard time with...I > would think it > should be simple. Thanks for any suggestions! > > Cheers! > > > Chip Hankley > From ISAI.MICHEL at saic.com Tue Jul 16 15:35:51 2002 From: ISAI.MICHEL at saic.com (Michel, Isai) Date: Tue, 16 Jul 2002 15:35:51 -0700 Subject: [mapserver-users] Still have autorotation problems Message-ID: Hello, it is me again (the person with the tiff automatic rotation problems). Please excuse the delay in response however I used to use hotmail but then the IT department shutdown access because of a virus problem. So now please respond to my other email address: isai.michel at saic.com Anyways, here is the current problem I have. I have still not had any success with the autorotation. Some people suggested that I MUST use the PROJ libraries. So I downloaded those, then compiled those, and then recompiled the mapserver. I did: $ make clean $ ./configure --with-gdal --with-proj $ make The template file still shows the images in the middle of a box with absolutely no rotation. As previously requested: I HAVE ATTACHED THE FOLLOWING FILES SO THAT SOMEONE MAY EDIT THEM AND HELP ME: start001.html grid001.map template001.html LaserGrid-400_0000.tfw LaserGrid-400_0001.tfw I know that I do not have a projection definition but I do not know how to write one. Can someone please edit the files so that they may work properly (I did not include the tiff images because it is rather big however the pixel dimensions are 640x480) as was previously offered. I really need to get this to work so that I can automate the process. Thank you very much and have a nice day. Respectfully: IML -------------- next part -------------- A non-text attachment was scrubbed... Name: grid001.map Type: application/octet-stream Size: 1579 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LaserGrid-400_0000.tfw Type: application/octet-stream Size: 81 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LaserGrid-400_0001.tfw Type: application/octet-stream Size: 107 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: start001.html Type: application/octet-stream Size: 1990 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: template001.html Type: application/octet-stream Size: 231 bytes Desc: not available URL: From woodbri at swoodbridge.com Tue Jul 16 19:56:23 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 16 Jul 2002 22:56:23 -0400 Subject: [mapserver-users] (Fwd) Mapserver,shp2img Message-ID: <3D34A497.21795.AFF5342@localhost> ------- Forwarded message follows ------- Date sent: Tue, 16 Jul 2002 13:53:45 -0500 From: "Dan Liu" To: <"'Stephen Woodbridge'"> Subject: Mapserver,shp2img Hi Stephen, I think you know this. On UNIX,I typed the following command to get a ref.gif ./shp2img ref.map ref.gif But I got error like this bash: ./shp2img: No such file or directory Could you tell me what is wrong? Thanks in advance. Dan ------- End of forwarded message ------- From Simon.Kirkness at fisheries.nsw.gov.au Tue Jul 16 20:21:13 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Wed, 17 Jul 2002 13:21:13 +1000 Subject: [mapserver-users] CGI Error Message-ID: Hi all, I am trying to create a perl script to display points on a map and am getting the following error Can't locate mapscript.pm in @INC (@INC contains: C:/perl/lib C:/perl/site/lib .) at C:\Inetpub\scripts\mapsightings.pl line 12. BEGIN failed--compilation aborted at C:\Inetpub\scripts\mapsightings.pl line 12. Any ideas? Regards Simon Kirkness <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From georef at tie.cl Tue Jul 16 22:22:36 2002 From: georef at tie.cl (Referencia SA) Date: Wed, 17 Jul 2002 00:22:36 -0500 Subject: [mapserver-users] Out of list translator with output gmf References: <000001c22c71$114d4b40$add4cfc8@mshome.net> <004201c22c8e$311c9490$0100a8c0@SERVER> Message-ID: <00b001c22d51$f74832a0$3200a8c0@participa.cl> Dear/Estimados Anyone knows of a translator that output files with extension .gmf, that I understand is the vector mapfile extension for fugawi software. Alguno de uds sabe de un conversor de mapas que produzca archivos de extension .gmf que entiendo es la version vectorial del software fugami. Juanse Temuko-Chile -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycnyon at pd.jaring.my Tue Jul 16 22:16:18 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Wed, 17 Jul 2002 13:16:18 +0800 Subject: [mapserver-users] display nice tiff renderings Message-ID: <000001c22d53$4b62d920$0c40baca@domain> this is a continuation what happening since i posted a similiar question few weeks back. 1. Process the landsat image in Erdas 2. Export it as Geotiff (24-bit) 3. downgrade it to geotiff-8bit in Macromedia Fireworks. (i found out from the list that MS doesn't do a good job of the 24 to 8 bit tiff conversion) 4. now displays as a geotiff in MS the quality still looks poor. i thought maybe i can 1. display it as a Erdas lan format. however, i think it's only for 1 band. 2. export it as ErMapper ECW format. would that yield better quality? Thanks Nyon From isaimichel at hotmail.com Tue Jul 16 22:32:51 2002 From: isaimichel at hotmail.com (Isai Michel) Date: Tue, 16 Jul 2002 22:32:51 -0700 Subject: [mapserver-users] Out of list translator with output gmf Message-ID: Lo siento pero no (pues no estoy seguro). Trata de leer las paginas de gd, gdal, o GRASS. Es posible que gdal lo puede hacer. De todos modos busca informacion de GRASS (un GIS gratis) en la pagina: http://www3.baylor.edu/grass/index2.html El GRASS puede comprimir a muchos archivos diferentes. Espero que la informacion le ayude. Tenga un buen dia. Con respeto, IML _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From richard at tydac.ch Wed Jul 17 01:07:23 2002 From: richard at tydac.ch (Richard Barahona) Date: Wed, 17 Jul 2002 10:07:23 +0200 Subject: [mapserver-users] PHP_Mapscript addColor function problem Message-ID: <1401905479.20020717100723@tydac.ch> Hi list, I try to define with PHP_mapscript a transparent color like this $icolor = $gpoMap->addColor(-1,-1,-1); but i get an error back. Any idea ? any workaround ? Thanks in advance. ----------------------------------------------------------------- ############ Meilleures salutations / Kind Regards ############ Richard Barahona - mailto:richard 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 ----------------------------------------------------------------- MAPINFO Strategic Partner - PCI Reseller - FME Distributor ESRI ArcGIS Solution Provider ----------------------------------------------------------------- From mweinelt at planiglobe.com Wed Jul 17 01:10:04 2002 From: mweinelt at planiglobe.com (Martin Weinelt) Date: Wed, 17 Jul 2002 10:10:04 +0200 Subject: [mapserver-users] CGI Error In-Reply-To: References: Message-ID: <02071710100400.25817@kopernicus> Simon Kirkness on 17 Juli 2002 05:21: > > Hi all, > > I am trying to create a perl script to display points on a map and am > getting the following error > > Can't locate mapscript.pm in @INC (@INC contains: C:/perl/lib > C:/perl/site/lib .) at C:\Inetpub\scripts\mapsightings.pl line 12. > BEGIN failed--compilation aborted at C:\Inetpub\scripts\mapsightings.pl > line 12. > > Any ideas? Simon, the @INC array holds the places where your perl installation stores modules/packages. Type perl -V and and the content of @INC will be printed out (among other things). Usually the 'perl Makefile.pl - make - make install ' takes care of this aspect with installin new packages. Did the installation print out any error messages? If for any reason the installtion process does not place the package where perl looks, you can always add the actual place of the package to @INC (as one of the first lines in your script). Cheers, martin From alex_rice at arc.to Wed Jul 17 01:31:43 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 17 Jul 2002 02:31:43 -0600 Subject: [mapserver-users] Getting mapserver running on Mac OS X Message-ID: <9F979AF2-995F-11D6-9518-0030653DEAA0@arc.to> Hi folks. Is anyone running mapserver on Mac OS X? I scanned the list archives but didn't see any real success stories about Mac OS X. I've got PostGIS running on OS X and now I want to get Mapserver running. After running into some trouble compiling GD and friends (libJPEG, libPNG), I paid a visit to to my old friend FINK. (fink.sourceforge.net). Now I have fresh installs of FreeType, Ping, JPEG, TIFF and GD. I was expecting the mapserver compile to go off without a problem, however, the configure script seems to be expecting the headers and libraries to have certain names in certain locations. I don't know much about FSF configure and wanted to ask before I start ripping this configure script apart. My system currently looks like this: localhost:gis/Mapserver/mapserver-3.6.0] alex% ls /sw/lib apt libfreetype.dylib libmenu.dylib.5.2 dpkg libfreetype.la libncurses++.a fink libgd.1.8.dylib libncurses.a libapt-inst.1.0.0.dylib libgd.1.dylib libncurses.dylib libapt-inst.1.0.dylib libgd.a libncurses.dylib.5 libapt-pkg.3.2.0.dylib libgd.dylib libncurses.dylib.5.2 libapt-pkg.3.2.dylib libiconv.2.0.4.dylib libpanel.a libbz2.1.0.2.dylib libiconv.2.dylib libpanel.dylib libbz2.1.dylib libiconv.dylib libpanel.dylib.5 libbz2.dylib libiconv.la libpanel.dylib.5.2 libcharset.1.0.0.dylib libintl.1.0.1.dylib libpng.2.1.0.12.dylib libcharset.1.dylib libintl.1.dylib libpng.2.dylib libcharset.a libintl.a libpng.a libcharset.dylib libintl.dylib libpng.dylib libcharset.la libintl.la libtiff.3.5.7.dylib libcurses.dylib libjpeg.62.0.0.dylib libtiff.3.dylib libform.a libjpeg.62.dylib libtiff.a libform.dylib libjpeg.a libtiff.dylib libform.dylib.5 libjpeg.dylib libz.1.1.4.dylib libform.dylib.5.2 libjpeg.la libz.1.dylib libfreetype.6.2.0.dylib libmenu.a perl5 libfreetype.6.dylib libmenu.dylib rmt libfreetype.a libmenu.dylib.5 terminfo [localhost:gis/Mapserver/mapserver-3.6.0] alex% ls /sw/include/ bzlib.h cursslk.h gdcache.h jconfig.h ncurses.h tiffconf.h curses.h eti.h gdfontg.h jerror.h panel.h tiffio.h cursesapp.h etip.h gdfontl.h jmorecfg.h png.h tiffvers.h cursesf.h form.h gdfontmb.h jpeglib.h pngconf.h unctrl.h cursesm.h freetype2 gdfonts.h libcharset.h term.h zconf.h cursesp.h gd.h gdfontt.h libintl.h termcap.h zlib.h cursesw.h gd_io.h iconv.h menu.h tiff.h You can see the headers are there and the libraries are there. And that OS X uses ".dylib" as it's usual extension for shared libraries, not ".so". (although some apps create .so files, don't know what the difference between .dylib and .so is) % ./configure --with-postgis=/usr/local/pgsql/bin/pg_config --with- jpeg=/sw/include --with-png=/sw/include --with-gd=/sw/include --with-freetype=/sw/include ... checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /sw/include. checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. checking which version of GD to use... configure: error: Could not find gd.h or libgd.a/libgd.so in /sw/include. Make sure gd is compiled before calling configure. It seems like configure is expecting the library and header files to be in the same directory, not in an include/ directory AND a lib/ directory? So, somehow I just need to convince the configure script everything is really OK. Does anyone have suggestions on this? Or, can anyone send me a Makefile after your configure is done with it. Then I can edit the Makefile and put in my own paths in? Thanks & I look forward to trying mapserver on OS X. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Wed Jul 17 01:32:40 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 17 Jul 2002 02:32:40 -0600 Subject: [mapserver-users] getting rid of GD and dependencies Message-ID: I have this crazy idea to take the Mapserver code base and rip out all the GD/libJPEG/libPNG/etc. code and rewrite the graphics routines to use Cocoa's AppKit rendering on Mac OS X. Cocoa is Apple's Objective-C framework, formerly called OpenStep. The advantages of this that I can see: 1) It would remove most or all of the difficult compile and dependency problems that mapserver has on OS X. It might be necessary to wrap mapserver in an Objective-C application, or a loadable bundle, but that won't present a problem. 2) I suspect it would look a whole lot better. Cocoa has a Postscript-like imaging model and uses PDF, antialiasing and vector graphics. No jaggies! Just nice smooth images. Appkit also has a lot of neat features for compositing images with both raster and vector content. And Unicode support. It's just a really neat graphics environment through and through. 3) Whatever work I did could theoretically, eventually be ported to GNUStep, and thus run on any other Unix platform. (http://www.gnustep.org). Although I hear that currently the GnuStep Appkit stuff still needs a lot of refinement. So mainly I just want to bounce this idea off you all... -- Would anyone take offense if I did this to the mapserver source code? -- Is there anyone on the list who knows Objective-C and Appkit programming? -- Good idea? Crazy idea? -- The license to mapserver looks very um, flexible. Are there any commercial products based on it? I don't know if this project I am describing would be open-source or not, I haven't talked with my employer about legal shtuff yet. I would push it to be open-source though. Thanks in advance, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From heidmann at Hamburg.BAW.DE Wed Jul 17 02:30:26 2002 From: heidmann at Hamburg.BAW.DE (Carsten Heidmann) Date: Wed, 17 Jul 2002 11:30:26 +0200 Subject: [mapserver-users] Problem Mapscript with GIF as CGI Message-ID: <5.1.0.14.0.20020717111731.03878c58@uranos> Hello, I m trying to get mapscript to work on a Solaris 8 System, using Mapserver 3.6.1, PHP 4.1.1 (since I didn't succeed in building a newer version) and Apache 1.3.26. After fixing the mapscript Makefile (doubled entry 'gcc' in CC Flag) everything compiled fine and the phpinfo_mapscript.php (renamed from phtml) works fine. In the beginning I compiled PHP as DSO with the resulting error and the advice to build PHP as CGI. Having done that, I tried to access test_draw_map.php and got the following error: PHP/MapScript module test Warning: MapServer Error in msLoadMap(): Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. in /data/www1/itasca/test_draw_map.php on line 34 Fatal error: Failed to open map file demo.map in /data/www1/itasca/test_draw_map.php on line 34 This is the same error which I encountered when I used a version of gd which is not "GIF-enhanced", but I already compiled PHP and Mapserver with a GIF-gd version and with the regular Mapserver-Demo, everything works fine. Any suggestions? Regards, Carsten ----------------------------------------------------------- Dipl.-Geogr. Carsten Heidmann Tel.: 040.81908.345 Fax: 040.81908.373 heidmann at hamburg.baw.de http://nokis.baw.de/ Bundesanstalt fuer Wasserbau - Aussenstelle Kueste - Wedeler Landstrasse 157 DE - 22559 Hamburg ----------------------------------------------------------- From robert-fritz at web.de Wed Jul 17 04:06:16 2002 From: robert-fritz at web.de (Robert Fritz) Date: Wed, 17 Jul 2002 12:06:16 +0100 Subject: [mapserver-users] Update MS35 to MS 36, Problem with PHP4.2.1? Message-ID: Hello, I used MS 3.5 und php4.06 and php_mapscript_35.dll without any problems. I changed to MS3.61, php_mapscript_36.dll and php4.2.1. I thought that I do not have to change my php/mapscript scripts (except rename php_mapscript_35.dll etc.). But my scripts do not work correct anymore. My Question : are changes were made (mapserver, mapscript, php) which make it necessary to change my scripts or do i use a wrong mapscript.dll or something like that? Thank you, Robert From robert-fritz at web.de Wed Jul 17 04:06:14 2002 From: robert-fritz at web.de (Robert Fritz) Date: Wed, 17 Jul 2002 12:06:14 +0100 Subject: [mapserver-users] Speed up "itemquery" ? Message-ID: Hello, I have a extensive Shapefile with many entries in the dbf file. If I use "itemquery" to search for a particular entry, mapserver works more than 1 minute. Is there a way to speed up the search (using mapscript)? Thank you, Robert From vinko at cprsig.cl Wed Jul 17 03:35:25 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Wed, 17 Jul 2002 06:35:25 -0400 Subject: [mapserver-users] mapserver-users-approval is being read? Message-ID: <20020717103525.GA7423@landsat.cprsig.cl> Hello, I've sent 2 mails to mapserver-users-approval (after sending twice the majordomo unsubscribe request) for another address i use. I've gotten no reply since. Is that address being read? Do I need to wait a few weeks (it's been a week or so since my first attempts)? I'm getting all the mails twice :-) (BTW, i'm trying to unsubscribe another address, not this one, could that be the problem?) Sorry for the inconvenience and the offtopic. -- Vinko Vrsalovic http://www.cprsig.cl From jhart at frw.uva.nl Wed Jul 17 05:08:54 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Wed, 17 Jul 2002 14:08:54 +0200 Subject: [mapserver-users] PHP, HOW??: Returning Results to Multiple Windows Message-ID: One way of doing this is creating a submit-form in each window, each calling a different PHP script. If the first window has a form called Form1 (for map results) and the second window Form2 (for query output), you can code both forms as follows: method=POST> <...>
method=POST> <...>
If both windows are in a frameset like: you can send both forms to the server with this button: