From twan at twansoft.com Thu Nov 1 00:55:51 2001 From: twan at twansoft.com (Twan Kogels) Date: Thu, 01 Nov 2001 09:55:51 +0100 Subject: [mapserver-users] Add points to a online map? (FWD) In-Reply-To: <3BE03739.4981BD8D@refractions.net> References: <200110311611.KAA27337@mallit.fr.umn.edu> Message-ID: <5.0.0.25.2.20011101095511.02b6a3a0@pop3.wish.nl> Goodmorning, First sorry for the email i sended to the wrong email address, thanks goto Ted for forwarding it to the right address. I don't know if this list is also ment for thanks replies, but wanted to thank Searle and Paul for the clear answers. I've just looked into the mapscript documentation and it seem relative easy, so im gonna try it! - twan At 09:39 31-10-2001 -0800, you wrote: >Yes. You might find one way to do this is to use PostGIS to store the >point layer. Jeff is actually putting together a little >Mapserver/PostGIS app right now to do exactly this. All the background >layers are shape files, but the point layer is a db layer, so it is very >easy to add new points to it and edit it. Needless to say, mapscript >coding is definately required. You could also do this using a shape file >to store the points, but could have file integrity problems if you were >ever unlucky enough to get two concurrent edits of the file. > >teb wrote: > > Is it possible that a visitor of our website adds a point to our online map > > and also add specific information about the point? Will this change (adding > > a point) be directly visible on the map? > >-- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ -- http://www.twansoft.com From sutton_t at giug.net Thu Nov 1 02:09:12 2001 From: sutton_t at giug.net (Tim Sutton) Date: Thu, 1 Nov 2001 10:09:12 +0000 (GMT) Subject: [mapserver-users] Rosa applet under konqueror Message-ID: Hi Doe anyone have the ROSA applet working correctly under konqueror (kde2.2.1)? I just get 'please wait' message everytime. I am using the sun 1.2.1 java sdk. Thanks Tim From ed at topozone.com Thu Nov 1 06:49:13 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 1 Nov 2001 09:49:13 -0500 Subject: [mapserver-users] pre-projection Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7762@mercator.topozone.com> Brian - As long as it doesn't interfere with the management of your data, pre-projecting your source data into your output projection makes a lot of sense. However, if your goal is to make (perceptible) performance improvements in your application, I'm not sure this will help much. The PROJ library support in MapServer is VERY fast in my experience, and I've been quite surprised at how small the impact of reprojecting point/line/polygon layers is. Reprojection is just a bunch of in-memory math, which computers do really quickly. The really slow stuff is looking for and reading data from disk, and if you're looking for performance improvements the first thing I'd do is make sure my data is organized and indexed so each map request has to touch the absolute minimum amount of data it doesn't need. If pre-projecting the data DOES make a noticeable difference, that might be evidence that your data isn't well-structured to begin with. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Brian Hill [mailto:bhill at nextbus.com] Sent: Wednesday, October 31, 2001 5:41 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] pre-projection I have tiger data in geographic projection, and other data in a mercator projection. My output projection is the mercator projection. All the preceding is specified in my .map file. Does one of the MapServer utilities allow me to pre-project all the tiger data into the same mercator projection so that the transformation doesn't have to be done on-the-fly? If so, are there directions somewhere (something much more detailed than the discussion at http://mapserver.gis.umn.edu/coordinates.html ) that I can follow to do this operation? My goal is to make my installation perform better, and I am hoping from previous posts to this list that this will be the ticket. Thanks very much for any pointers. --Brian Hill From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Nov 1 08:28:35 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Thu, 1 Nov 2001 11:28:35 -0500 Subject: [mapserver-users] PDF/Oracle Spatial support? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FCA3@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I just noticed a few new features in the CVS version of MapServer, notably PDF support, and OracleSpatial support ... Could we get a bit more information on these? Not only am I curious, but I'm wondering if I should look at documenting this :) Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From teb at mallit.fr.umn.edu Thu Nov 1 11:37:16 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 1 Nov 2001 13:37:16 -0600 (CST) Subject: [mapserver-users] mapserver error (FWD) Message-ID: <200111011937.NAA28179@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: Junaid Mahmood To: mapserver-info at lists.gis.umn.edu Subject: mapserver error Date: Thu, 1 Nov 2001 09:05:45 +0200 Importance: high X-Priority: 1 MIME-Version: 1.0 Hi There I have a slight problem with the mapserver because as i want to initialise the map the i get a function error called msLoadMap () :Unable to access file (/inetpub/wwwroot/ms_demo/demo.map). I hope that you can asist me please. Junaid ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Thu Nov 1 17:06:46 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 01 Nov 2001 18:06:46 -0700 Subject: [mapserver-users] itemquery point layer Message-ID: <5.1.0.14.0.20011101180225.039e6528@mail.GreenwoodMap.com> Hi All, If I do an itemquery against a polygon or line layer, mapserver will "zoom" to the selected feature. But an itemquery against a point layer causes mapserver to zoom to the map extents. I guess because a point doesn't have a minimum bounding rectangle. I'd like to have mapserver "zoom" to the MINSCALE with the selected point centered. Is there an easy, or obvious, way of doing this with the CGI interface? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From toni at giscampus.udg.es Fri Nov 2 03:18:15 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Fri, 2 Nov 2001 12:18:15 +0100 Subject: [mapserver-users] labelitem and filteritem References: <5.1.0.14.0.20011101180225.039e6528@mail.GreenwoodMap.com> Message-ID: <001f01c16390$115f4020$0e2fce82@udg.es> Hi All, Does anyone on the list know why I cann't use both labelitem and filteritem at the same time with CGI 3.5? If I use filteritem, the tag labelitem has no effect at all and if I detele the labelitem tag then I can use filteritem with no problem Does it have any sense? From teb at mallit.fr.umn.edu Fri Nov 2 04:55:57 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Fri, 2 Nov 2001 06:55:57 -0600 (CST) Subject: [mapserver-users] Problems with java-interface (fwd) Message-ID: <200111021255.GAA28518@mallit.fr.umn.edu> From hermesmann at jobpilot.de Fri Nov 2 01:29:41 2001 From: hermesmann at jobpilot.de (Stefan Hermesmann) Date: Fri, 2 Nov 2001 10:29:41 +0100 Subject: Problems with java-interface Message-ID: <004301c16380$e62172c0$33fe310a@int.badhomburg.germany.jobpilot> Hi, we try to implement the Mapserver into our system using ATG Dynamo. We are using your latest version of mapserver and the SWIG 1.3.9 as we listened, that it supports better the java implementation. Our current system is based on SunSolaris. The problem which occurs during the generating process is a gcc-compiler error as shown down here. The generation of the java classes with SWIG works fine.Then we try to compile the mapscript_wrap.c file with gcc and the needed libraries to create the libmapscript.so. This is the statement for gcc : gcc -shared -o libmapscript.so -I -I mapscript_wrap.c libmap.a libgd.a The error we get : mapscript_wrap.c: In function `_SWIG_exception': mapscript_wrap.c:85: warning: implicit declaration of function `ExceptionClear' mapscript_wrap.c:86: warning: implicit declaration of function `FindClass' mapscript_wrap.c:86: warning: assignment makes pointer from integer without a cast mapscript_wrap.c:89: warning: implicit declaration of function `ThrowNew' mapscript_wrap.c: At top level: mapscript_wrap.c:42: warning: `_SWIG_exception' defined but not used Text relocation remains referenced against symbol offset in file 0xc648 /var/tmp/ccbe3iG9.o 0xc644 /var/tmp/ccbe3iG9.o 0xc678 /var/tmp/ccbe3iG9.o 0xc67c /var/tmp/ccbe3iG9.o 0x3c /var/tmp/ccbe3iG9.o .... It seems to us, that there is any library information missing but we didn't find out yet which one it is. Do you maybe see any mistake in our process or do you have any suggestion. ? Thanks a lot so far regards Stefan Hermesmann | Product Development ________________________________________________________ mailto: hermesmann at jobpilot.de Tel: + 49.6172.919-438 Fax: + 49.6172.919-546 www.jobpilot.de www.jobpilot.com Europe?s career market on the internet jobpilot AG Siemensstra?e 15-17 D-61352 Bad Homburg ________________________________________________________ Frankfurt * Muenchen * Amsterdam * Bangkok * Barcelona * Bruessel Budapest * Goeteborg * Kopenhagen * Kuala Lumpur * London Mailand * Oslo * Paris * Prag * Singapur * Warschau * Wien * Zuerich From Rich at GreenwoodMap.com Fri Nov 2 08:04:36 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Fri, 02 Nov 2001 09:04:36 -0700 Subject: [mapserver-users] labelitem and filteritem In-Reply-To: <001f01c16390$115f4020$0e2fce82@udg.es> References: <5.1.0.14.0.20011101180225.039e6528@mail.GreenwoodMap.com> Message-ID: <5.1.0.14.0.20011102090103.00aab960@mail.GreenwoodMap.com> At 12:18 PM 11/2/2001 +0100, you wrote: >Hi All, > >Does anyone on the list know why I cann't use both labelitem and filteritem >at the same time with CGI 3.5? > >If I use filteritem, the tag labelitem has no effect at all and if I detele >the labelitem tag then I can use filteritem with no problem > >Does it have any sense? I may not understand your question, but anyway - You can use both labelitem and filteritem, but filteritem works with an itemquery, so if you are not in itemquery mode, no results wiil be found, and hence nothing will be labeled. Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From brent.lund at mnplan.state.mn.us Fri Nov 2 09:31:47 2001 From: brent.lund at mnplan.state.mn.us (Brent Lund) Date: Fri, 02 Nov 2001 11:31:47 -0600 Subject: [mapserver-users] URL encoding with mapserver 3.5 Message-ID: The following problem occurs with netscape 4.7. Netscape 6 and IE fix the url on the fly. I am attempting to generate a query using the shape extent. I have done this with previous revs of Mapserver no problem, but 3.5 appears to be failing in the url encoding of the shape extent. For example, within the template line I've assigned the new mapext as follows. mapext=[shpext] When using netscape 4.7, this generates mapext=437235.843750 5045171.000000 466844.718750 5121648.000000. Mapserver 3.5 then complains "loadForm(): Web application error. Not enough arguments for mapext." previous versions would have replaced the spaces with a "+", I believe the correct url encode would be "%20" in place of the spaces(both netscape 6 and ie do this automatically). Am I missing a setting or is this a bug? Brent Brent Lund Programmer Analyst 658 Cedar Street St. Paul MN 55155 (651) 297-2487 brent.lund at mnplan.state.mn.us From bfischer at mpls.houstoneng.com Fri Nov 2 11:46:54 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Fri, 2 Nov 2001 13:46:54 -0600 Subject: [mapserver-users] URL encoding with mapserver 3.5 Message-ID: <8879CCE0F0187742B7302A93A8B87B090285FD@mpls.houstoneng.com> Brent, Check out my posting from a few months ago. It should answer your question. Brian Fischer Houston Engineering, Inc. Maple Grove, MN 55369 POSTING: Or use the [getlayers] string. It gives you a properly escaped list of layers starting with '&layer=name1&layer="... Because of that format it should just be appended to the end of the URL. Note in 3.5 most substitutions can be requested in escaped or non-escaped forms so you'd use [layers_esc] or [layers]. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Brian Fischer" 09/13/01 08:44AM >>> Thanks Regina. Your suggestion worked great. It now works in both Explorer and Netscape. I already had the URL in a JavaScript function, so all I had to do is add the escape function. function printmap() { OpenPrintWin = this.open("http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[m ap]&template=printmap.html&layers=" + escape('[layers]') + "&mapext=[minx]+[miny]+[maxx]+[maxy]", "PrintWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes"); } Tom, I did not try your suggestion but I'm sure it would of worked also. It was the same concept as Regina's suggestion. Thanks again to everyone, Brian -----Original Message----- From: Obe, Regina DND\MIS [mailto:Regina.Obe.PFD at ci.boston.ma.us] Sent: Thursday, September 13, 2001 7:41 AM To: Brian Fischer; 'mapserver-users at lists.gis.umn.edu' Subject: RE: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer You have to URL Encode the layers section. IE does an implicit URL Encode when it sees spaces in a URL tag whereas Netscape doesn't. Try this line in place of your URL I don't have a netscape browser handy at the moment so couldn't test it. -----Original Message----- From: Brian Fischer [mailto:bfischer at mpls.houstoneng.com] Sent: Wednesday, September 12, 2001 5:44 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Problem with Netscape treating a space different than Internet Explorer Mapserver community, I was wondering if anyone else has had this problem. I assume there must be a way around it, but can't find a solution. Here is the problem: I am using the [layers] cgi variable in a hyperlink like shown below. http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=[map]&templat e=pr intmap.html&layers=[layers]&mapext=[minx]+[miny]+[maxx]+[maxy] The problem is Netscape does not replace the space with a %20, but Internet Explorer does. Internet Explorer 5.5 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /map viewer/mapviewer.map&template=printmap.html&layers=lakes%20Rivers%20Road s&ma pext=-100.092035+47.222059+-94.531453+51.668504 Netscape 4.7 URL: http://www.houstoneng.com/mapserv/cgi-bin/mapserv.exe?&map=projects/fgdc /map viewer/mapviewer.map&template=printmap.html&layers=lakes Rivers Roads&mapext=-96.766990+48.008085+-95.278996+49.197928 Any suggestions would be greatly appreciated. Thanks, Brian -----Original Message----- From: Brent Lund [mailto:brent.lund at mnplan.state.mn.us] Sent: Friday, November 02, 2001 11:32 AM To: < Subject: [mapserver-users] URL encoding with mapserver 3.5 The following problem occurs with netscape 4.7. Netscape 6 and IE fix the url on the fly. I am attempting to generate a query using the shape extent. I have done this with previous revs of Mapserver no problem, but 3.5 appears to be failing in the url encoding of the shape extent. For example, within the template line I've assigned the new mapext as follows. mapext=[shpext] When using netscape 4.7, this generates mapext=437235.843750 5045171.000000 466844.718750 5121648.000000. Mapserver 3.5 then complains "loadForm(): Web application error. Not enough arguments for mapext." previous versions would have replaced the spaces with a "+", I believe the correct url encode would be "%20" in place of the spaces(both netscape 6 and ie do this automatically). Am I missing a setting or is this a bug? Brent Brent Lund Programmer Analyst 658 Cedar Street St. Paul MN 55155 (651) 297-2487 brent.lund at mnplan.state.mn.us From Timothy.Mackey at agso.gov.au Sun Nov 4 16:09:20 2001 From: Timothy.Mackey at agso.gov.au (Timothy.Mackey at agso.gov.au) Date: Mon, 5 Nov 2001 11:09:20 +1100 Subject: [mapserver-users] Anyone used the Rosa applet Message-ID: <28DE833A781BD511839600D0B772248F4F54CA@agsomail1.agso.gov.au> Hi, We (Geoscience Australia) use the Rosa applet with mapserver CGI. http://www.agso.gov.au/map click on the "java" button. I have previously posted the source patch for 3.3.011 which allows the applet to talk to the CGI version of mapserv. Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Azimuth, Erwin Perik [mailto:perik at azimuth.nl] Sent: Tuesday, 30 October 2001 6:30 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Anyone used the Rosa applet Hello all, i was wondering if there are any other examples of the Rosa applet besides GMAP from the mapserver gallery. Or have i been looking at the wrong example and is there an even more interesting applet out there. Searching the web on Rosa gives very little results. Geotools is a nice alternative, but i prefer the interface of the Rosa over the one from Geotools. Thanks, Erwin From gispmpf at zipmail.com.br Sun Nov 4 18:30:14 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Mon, 5 Nov 2001 00:30:14 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?postgis=2Bquery=20layer?= Message-ID: <3BD4D57500018ACF@www.zipmail.com.br> Hello, Anyboy can tell me where i can find a exemple of the use of postgis whit a query layer? What i want to do is: draw a map using a postgis layer and then with a mouse click on this layer and then execute a query in the data base and show its results in the web browser ? Can i do it? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From gispmpf at zipmail.com.br Sun Nov 4 18:38:23 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Mon, 5 Nov 2001 00:38:23 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?newbie=20question?= Message-ID: <3BD4D57500018AFD@www.zipmail.com.br> Hello all I have a question...can i mix the use of the mapserver template tags with a programing language? Something like use the [img] tag ina php script to generate a report? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From toni at giscampus.udg.es Sun Nov 4 23:35:40 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Mon, 5 Nov 2001 08:35:40 +0100 Subject: [mapserver-users] labelitem and filteritem References: <5.1.0.14.0.20011101180225.039e6528@mail.GreenwoodMap.com> <5.1.0.14.0.20011102090103.00aab960@mail.GreenwoodMap.com> Message-ID: <00d001c165cc$7821cf60$0e2fce82@udg.es> HI, well, I already have the itemquery mode and still isn't working. I tried to put the FILTERITEM, FILTER and LABELITEM in another layer and the result is the same, I mean if FILTERITEM and FILTER appear in the map file as well as LABELITEM (the three tags in the same layer) then LABELITEM has no effect at all. Any idea? ----- Original Message ----- From: Richard Greenwood To: toni hern?ndez Cc: Sent: Friday, November 02, 2001 5:04 PM Subject: RE: [mapserver-users] labelitem and filteritem > At 12:18 PM 11/2/2001 +0100, you wrote: > >Hi All, > > > >Does anyone on the list know why I cann't use both labelitem and filteritem > >at the same time with CGI 3.5? > > > >If I use filteritem, the tag labelitem has no effect at all and if I detele > >the labelitem tag then I can use filteritem with no problem > > > >Does it have any sense? > > I may not understand your question, but anyway - You can use both labelitem > and filteritem, but filteritem works with an itemquery, so if you are not > in itemquery mode, no results wiil be found, and hence nothing will be labeled. > > > > Richard W. Greenwood, PLS > Greenwood Mapping, Inc. > Rich at GreenwoodMap.com > (307) 733-0203 > http://www.GreenwoodMap.com From castro at recife.pe.gov.br Mon Nov 5 01:52:14 2001 From: castro at recife.pe.gov.br (ronaldo castro) Date: Mon, 05 Nov 2001 07:52:14 -0200 Subject: [mapserver-users] unsubscribe References: <5.1.0.14.2.20011030082530.00a26990@localhost> <5.1.0.14.2.20011030160402.00a0a170@localhost> Message-ID: <3BE6614E.7A911292@recife.pe.gov.br> unsubscribe From sutton_t at giug.net Mon Nov 5 05:16:37 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 5 Nov 2001 13:16:37 +0000 (GMT) Subject: [mapserver-users] Preparing tif images Message-ID: Hi Can anyone point me to more detailed documentation on preparing images for use as raster layers? I have an image georeferenced and saved in both jpg and tif format. I see you need to convert to use 8bit pallette, but the tools I have available (photoshop 5.5, paintshop) don't seem to have an option. I also have the GIMP. I had a look through the archives and could not find what I am looking for. Thanks Tim From guillaume.sueur at khi2.fr Mon Nov 5 05:52:52 2001 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Mon, 5 Nov 2001 14:52:52 +0100 Subject: [mapserver-users] Transparency Message-ID: <000b01c16601$2c668040$251fa8c0@khi2.fr> Hi ! Why is the reference map outline color parameter useless when the main map transparency is set to OFF ? The reference map outline color then becomes the same than the main map background color... Please tell me why !!! Guillaume Sueur From guillaume.sueur at khi2.fr Mon Nov 5 05:57:11 2001 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Mon, 5 Nov 2001 14:57:11 +0100 Subject: [mapserver-users] Transparency 2 Message-ID: <001801c16601$c6ece960$251fa8c0@khi2.fr> Sorry, the second line of my previous message was wrong. The right one is : The reference map outline color becomes the same than background color at this place. Like if the outline was transparent in fact. Any idea ? Guillaume Sueur From mckenna at dmsolutions.ca Mon Nov 5 06:44:13 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Mon, 05 Nov 2001 09:44:13 -0500 Subject: [mapserver-users] Re: php4.0.6_php_mapscript_35.zip References: <019d01c165d2$e87a6f00$0e2fce82@udg.es> Message-ID: <3BE6A5BD.C8365614@dmsolutions.ca> Tony, I used the "-v" command-line switch on mapserv.exe and got: C:\apache\cgi-bin>mapserv -v MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=S HAPEFILE It was compiled with GD v1.8.4, and as listed above, it supports Truetype. As for your errors, someone else might have to help you with those. Jeff > toni hern?ndez wrote: > > hi, > > I am tony from spain and I saw your email adress in the net. > > I am looking for a CGI version of mapserver that supports Truetype and > GD library. > Do you know where I can find it? > > I have already found this > http://www2.dmsolutions.ca/webtools/dl/php4.0.6_php_mapscript_35.zip but > when I replace the files of the previous CGI version with this ones > the following message appears. > > "The specified CGI application misbehaved by not returning a complete > set of HTTP headers. The headers it did return are:" > > Thanks for your time -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Mon Nov 5 06:50:16 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Mon, 5 Nov 2001 09:50:16 -0500 Subject: [mapserver-users] Accessing MetaData from templates Message-ID: <7CDD7B94357FD5119E800002A537C46E22FCB3@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I recall asking this, but I searched and I searched through the mailing list archives without success ... How do I access Web-level and Layer-level Metadata for use in templates? Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From jimburnett at ntelos.net Mon Nov 5 07:45:19 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 5 Nov 2001 10:45:19 -0500 Subject: [mapserver-users] zoom extents Message-ID: <005701c16610$df344860$2f01a8c0@jbwin2000> How do I turn layers on and off depending on how far a user has zoomed in and out? -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Mon Nov 5 07:45:10 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 5 Nov 2001 09:45:10 -0600 Subject: [mapserver-users] Thick Lines??? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3FAB@postoffice.GASAI.Com> I'm having a devil of a time figuring out how to get a FILLED polygon to draw with a THICK border. Below's my map file. I'm using PHP, MapScript for 3.5, using a dll from 10/15/2001. BTW, my apologies ahead of time... I've searched the archives and found numerous references to *detailed* explanations of 3.5 line symbology on the list, but have been unable to find any. I may be query challenged ;) Chip _________________ ... SYMBOL NAME 'diagonal_hash' TYPE VECTOR POINTS 0 0 1 1 END END SYMBOL NAME 'thick_line' TYPE ELLIPSE POINTS 1 1 END FILLED END ... LAYER NAME "Employee" TYPE Polygon STATUS DEFAULT DATA ml1 CLASSITEM CODE CLASS Name 'Selectd Employee' TEMPLATE "ttt" EXPRESSION '' SYMBOL 'hash' SIZE 4 COLOR 255 0 0 OVERLAYSYMBOL 'thick_line' OVERLAYSIZE 4 OVERLAYOUTLINECOLOR 0 0 0 END # CLASS END # LAYER From Chip.Hankley at GASAI.Com Mon Nov 5 09:06:24 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 5 Nov 2001 11:06:24 -0600 Subject: [mapserver-users] zoom extents Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3FAE@postoffice.GASAI.Com> By far the EASIEST way to do this is to use the maxscale / minscale features of the layer object in the mapfile - check out the map file reference at http://mapserver.gis.umn.edu/mapfile.html Chip -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Monday, November 05, 2001 9:45 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] zoom extents How do I turn layers on and off depending on how far a user has zoomed in and out? -jim- From jpalma at donahue.umassp.edu Mon Nov 5 09:17:06 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Mon, 05 Nov 2001 12:17:06 -0500 Subject: [mapserver-users] Freetype 1 or Freetype 2 on Redhat 7.2? Message-ID: <3BE6C992.F762A64B@donahue.umassp.edu> When trying to compile Mapserver 3.3.011 on a RedHat 7.2 system with Freetype 2.0.3-7, configure could not find freetype.h. I searched my system and found that I have two freetype.h files, one in /usr/include/freetype/freetype1 and one in /usr/include/freetype/freetype2. This was confusing, so I visited the freetype web site and found that they distribute what seems like two versions of freetype, 1 and 2. So, which one do I use? And how do I get configure to look there? Thanks, Jim From bertha_bonita at yahoo.com Mon Nov 5 09:48:16 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Mon, 5 Nov 2001 18:48:16 +0100 (CET) Subject: [mapserver-users] definition ( extent ) Message-ID: <20011105174816.57935.qmail@web14101.mail.yahoo.com> Hi list. In MapServer Documentation we can read extent [minx] [miny] [maxx] [maxy]: The spatial extent of the base reference image. this definition is very short, and i don't understand how it works.. somebody could explain me more... Please. Thanks. =) ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger Comunicaci?n instant?nea gratis con tu gente. http://messenger.yahoo.es From steve.lime at dnr.state.mn.us Mon Nov 5 10:21:57 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:21:57 -0600 Subject: [mapserver-users] Freetype 1 or Freetype 2 on Redhat 7.2? Message-ID: In 3.5, Freetype support is compiled into GD and that's where the MapServer looks for it. Freetype 1 is recomended. In older versions you must use Freetype 1. I thought configure wouldn't even look for Freetype 2 so you just have to do --with-ttf=... correctly. Worse case is you have to tweak the Makefile by hand. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jim Palma" 11/05/01 11:17AM >>> When trying to compile Mapserver 3.3.011 on a RedHat 7.2 system with Freetype 2.0.3-7, configure could not find freetype.h. I searched my system and found that I have two freetype.h files, one in /usr/include/freetype/freetype1 and one in /usr/include/freetype/freetype2. This was confusing, so I visited the freetype web site and found that they distribute what seems like two versions of freetype, 1 and 2. So, which one do I use? And how do I get configure to look there? Thanks, Jim From steve.lime at dnr.state.mn.us Mon Nov 5 10:32:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:32:02 -0600 Subject: [mapserver-users] labelitem and filteritem Message-ID: Without seeing the whole application it's tough to diagnose the problem. There are lot's of places this could go wrong including the source code I can't speculate. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> toni hern?ndez 11/05/01 01:35AM >>> HI, well, I already have the itemquery mode and still isn't working. I tried to put the FILTERITEM, FILTER and LABELITEM in another layer and the result is the same, I mean if FILTERITEM and FILTER appear in the map file as well as LABELITEM (the three tags in the same layer) then LABELITEM has no effect at all. Any idea? ----- Original Message ----- From: Richard Greenwood To: toni hern?ndez Cc: Sent: Friday, November 02, 2001 5:04 PM Subject: RE: [mapserver-users] labelitem and filteritem > At 12:18 PM 11/2/2001 +0100, you wrote: > >Hi All, > > > >Does anyone on the list know why I cann't use both labelitem and filteritem > >at the same time with CGI 3.5? > > > >If I use filteritem, the tag labelitem has no effect at all and if I detele > >the labelitem tag then I can use filteritem with no problem > > > >Does it have any sense? > > I may not understand your question, but anyway - You can use both labelitem > and filteritem, but filteritem works with an itemquery, so if you are not > in itemquery mode, no results wiil be found, and hence nothing will be labeled. > > > > Richard W. Greenwood, PLS > Greenwood Mapping, Inc. > Rich at GreenwoodMap.com > (307) 733-0203 > http://www.GreenwoodMap.com From sutton_t at giug.net Mon Nov 5 10:23:50 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 5 Nov 2001 18:23:50 +0000 (GMT) Subject: [mapserver-users] Symbol prioritising Message-ID: Hi I managed to get my tiff image to display - thanks for the suggestions offered. Now I am wondering how I can prioritise labels so that labels from my cities layer get rendering precedence over labels in my sample sites layer? Thanks Tim From steve.lime at dnr.state.mn.us Mon Nov 5 10:41:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:41:18 -0600 Subject: [mapserver-users] Accessing MetaData from templates Message-ID: Use substitution strings of the form: [layername_fieldname] So if you have metadata like this in a layer named 'test': METADATA 'title' 'This is a test layer!' END then [test_title] should be replaced with 'This is a test layer!'. Web level metadata is not currently accessible using this scheme, although I could add that support easily. Something like: [web_fieldname]. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 11/05/01 08:50AM >>> Hello, I recall asking this, but I searched and I searched through the mailing list archives without success ... How do I access Web-level and Layer-level Metadata for use in templates? Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From steve.lime at dnr.state.mn.us Mon Nov 5 10:42:44 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:42:44 -0600 Subject: [mapserver-users] newbie question Message-ID: Yes, but you have to write the template handling yourself. It's not inherent to the scripting languages. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 11/04/01 08:38PM >>> Hello all I have a question...can i mix the use of the mapserver template tags with a programing language? Something like use the [img] tag ina php script to generate a report? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From steve.lime at dnr.state.mn.us Mon Nov 5 10:44:42 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:44:42 -0600 Subject: [mapserver-users] Symbol prioritising Message-ID: The last labels into the label cache are drawn first. So the highest priority is given to layers at the BOTTOM of the mapfile. Sometimes this means you have to use annotation layers to separate labeling and feature rendering to get things to look right. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Tim Sutton 11/05/01 12:23PM >>> Hi I managed to get my tiff image to display - thanks for the suggestions offered. Now I am wondering how I can prioritise labels so that labels from my cities layer get rendering precedence over labels in my sample sites layer? Thanks Tim From steve.lime at dnr.state.mn.us Mon Nov 5 10:49:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 05 Nov 2001 12:49:39 -0600 Subject: [mapserver-users] Thick Lines??? Message-ID: Well, prior to some changes I made last week what you're wanting to do is only possible using 2 layers. One for the fill and one for the thick line (i.e. one POLYGON and one POLYLINE). Recent changes allow this to happen in one step now. My email last week showed how (I think) and if not I'll commit a new test suite entry that does this for polygons and circles tonite. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 11/05/01 09:45AM >>> I'm having a devil of a time figuring out how to get a FILLED polygon to draw with a THICK border. Below's my map file. I'm using PHP, MapScript for 3.5, using a dll from 10/15/2001. BTW, my apologies ahead of time... I've searched the archives and found numerous references to *detailed* explanations of 3.5 line symbology on the list, but have been unable to find any. I may be query challenged ;) Chip _________________ ... SYMBOL NAME 'diagonal_hash' TYPE VECTOR POINTS 0 0 1 1 END END SYMBOL NAME 'thick_line' TYPE ELLIPSE POINTS 1 1 END FILLED END ... LAYER NAME "Employee" TYPE Polygon STATUS DEFAULT DATA ml1 CLASSITEM CODE CLASS Name 'Selectd Employee' TEMPLATE "ttt" EXPRESSION '' SYMBOL 'hash' SIZE 4 COLOR 255 0 0 OVERLAYSYMBOL 'thick_line' OVERLAYSIZE 4 OVERLAYOUTLINECOLOR 0 0 0 END # CLASS END # LAYER From dgraham at i3.com Mon Nov 5 10:59:57 2001 From: dgraham at i3.com (David Graham) Date: Mon, 05 Nov 2001 11:59:57 -0700 Subject: [mapserver-users] Java Wrapper for mapserver References: <3DFF131E4E6D2D4198CDD758F35A53536E3FAE@postoffice.GASAI.Com> Message-ID: <3BE6E1AD.8040202@i3.com> Hello all: I just wanted to check if anyone had written a Java class wrapper for the mapserver cgi program. I am planning on using one to make mapserver the backend engine for a java servlet. I thought I should check to see if anyone had done this and is willing to share the code before I got started. Dave Graham information integration and imaging, LLC From teb at mallit.fr.umn.edu Mon Nov 5 11:48:08 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 5 Nov 2001 13:48:08 -0600 (CST) Subject: [mapserver-users] blurry text (FWD) Message-ID: <200111051948.NAA29600@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: mapserver-info at lists.gis.umn.edu Subject: blurry text Date: Mon, 5 Nov 2001 14:25:39 -0500 MIME-Version: 1.0 the text in my legend and my labels are all blurry. i thought "ANTIALIAS TRUE" would take care of this in 3.5. what's up? Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil ------------- End Forwarded Message ------------- From jpalma at donahue.umassp.edu Mon Nov 5 12:25:53 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Mon, 05 Nov 2001 15:25:53 -0500 Subject: [mapserver-users] Freetype 1 or Freetype 2 on Redhat 7.2? References: Message-ID: <3BE6F5D1.27889C4C@donahue.umassp.edu> Thanks. Once I knew which Freetype version to use, I just made a symbolic link to /usr/include/freetype from /usr/include/freetype1/freetype and mapserver compiled properly. Jim Stephen Lime wrote: > In 3.5, Freetype support is compiled into GD and that's where the MapServer > looks for it. Freetype 1 is recomended. > > In older versions you must use Freetype 1. I thought configure wouldn't even > look for Freetype 2 so you just have to do --with-ttf=... correctly. Worse case > is you have to tweak the Makefile by hand. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Jim Palma" 11/05/01 11:17AM >>> > When trying to compile Mapserver 3.3.011 on a RedHat 7.2 system with > Freetype 2.0.3-7, configure could not find freetype.h. I searched my > system and found that I have two freetype.h files, one in > /usr/include/freetype/freetype1 and one in > /usr/include/freetype/freetype2. This was confusing, so I visited the > freetype web site and found that they distribute what seems like two > versions of freetype, 1 and 2. So, which one do I use? And how do I > get configure to look there? > Thanks, > Jim -- James R. Palma, MRP Research Coordinator UMass Donahue Institute 221 Middlesex House University of Massachusetts Amherst, MA 01003 Voice: (413) 545-6614 Fax: (413) 545-3420 Email: jpalma at donahue.umassp.edu From teb at mallit.fr.umn.edu Mon Nov 5 19:51:24 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Mon, 5 Nov 2001 21:51:24 -0600 (CST) Subject: [mapserver-users] compile error (fwd) Message-ID: <200111060351.VAA29855@mallit.fr.umn.edu> From jychoi at ecn.purdue.edu Mon Nov 5 16:53:13 2001 From: jychoi at ecn.purdue.edu (Jin Yong Choi) Date: Mon, 05 Nov 2001 19:53:13 -0500 Subject: compile error Message-ID: <3BE73479.1EF622F4@ecn.purdue.edu> Do you know why there are errors while compile with GDAL library? I've got the error like this mapraster.o mapraster.c: In function `msDrawRasterLayer': mapraster.c:1931: structure has no member named `proj' mapraster.c:1932: structure has no member named `proj' *** Error code 1 make: Fatal error: Command failed for target `mapraster.o' If you have any idea about this, please let me know. Thanks. Jin-Yong Choi -- ---------^.^-------~.~;-----^.^-------- Jin-Yong Choi, Ph.D. http://danpatch.ecn.purdue.edu/~jychoi --------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From j1mmm at hotmail.com Mon Nov 5 20:03:49 2001 From: j1mmm at hotmail.com (j1mmm) Date: Tue, 6 Nov 2001 11:03:49 +0700 Subject: [mapserver-users] MS+SDE in WIN now work Message-ID: when i started to compile MS+SDE with MSVC, it 'd some error, while doing by makefile it OK. this maybe caused by difference compiler(i think),so when u run output from makefile in win error occured. if u want ms+sde in win, just change to compile from makefile to vc,do not just add makefile and compiled -- it 's output still the same. it need to change makefile setting to VC project setting in project menu, setting, c/c++ tab and link tab hope it 's useful j1mmm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at refractions.net Mon Nov 5 23:02:25 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 05 Nov 2001 23:02:25 -0800 Subject: [mapserver-users] Symbol for Roads with Width Message-ID: <3BE78B01.F47F85C3@refractions.net> I am trying to create a particular cartographic effect. The idea is one of a road line with both width and boundaries. Like a big filled snake, with darker borders. ----------------- - - - - - - - - - ----------------- I can make it wide, but I cannot make the middle a different color from the edges... I am using 3.5 CVS Any guidance? From nhv at cape.com Tue Nov 6 00:33:53 2001 From: nhv at cape.com (Norman Vine) Date: Tue, 6 Nov 2001 03:33:53 -0500 Subject: [mapserver-users] Symbol for Roads with Width In-Reply-To: <3BE78B01.F47F85C3@refractions.net> Message-ID: <003c01c1669d$c5357c80$a300a8c0@nhv> Paul Ramsey writes: > >I am trying to create a particular cartographic effect. The idea is one >of a road line with both width and boundaries. Like a big filled snake, >with darker borders. > >----------------- >- - - - - - - - - >----------------- > >I can make it wide, but I cannot make the middle a different color from >the edges... I am using 3.5 CVS >Any guidance? Paul My guess is that unless you want to deal with all of the issues involved with 'joining fat lines' at various angles you are better off keeping the line width an odd number of pixels and drawing the roads twice First pass with full linewidth in the edge color Second pass with center width = ( fullwidth - 2*edgewidth) in the center color Note this really means that this is really only effective for roads that are displayed with a width of 5 pixels or more YMMV Norman From castro at recife.pe.gov.br Tue Nov 6 01:49:42 2001 From: castro at recife.pe.gov.br (ronaldo castro) Date: Tue, 06 Nov 2001 07:49:42 -0200 Subject: [mapserver-users] zoom extents References: <3DFF131E4E6D2D4198CDD758F35A53536E3FAE@postoffice.GASAI.Com> Message-ID: <3BE7B236.AF36966C@recife.pe.gov.br> Please, How can i unsubscribe this list? Thanks Ronaldo "Hankley, Chip" wrote: > By far the EASIEST way to do this is to use the > maxscale / minscale features of the layer object > in the mapfile - check out the map file > reference at > > http://mapserver.gis.umn.edu/mapfile.html > > Chip > > -----Original Message----- > From: Jim Burnett [mailto:jimburnett at ntelos.net] > Sent: Monday, November 05, 2001 9:45 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] zoom extents > > How do I turn layers on and off depending on how far a user has zoomed in > and out? > > -jim- From twan at twansoft.com Tue Nov 6 02:01:01 2001 From: twan at twansoft.com (Twan Kogels) Date: Tue, 06 Nov 2001 11:01:01 +0100 Subject: [mapserver-users] Hardware advice? Message-ID: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> Goodmorning, I'm planning to use MapServer and PostGIS for a demonstration project. At the current time i'm planning the hardware requirements of this project. Can anybody tell me if there are any minimum hardware requirements? The map files i use are the same as supllied with the MapServer demo sample which can be downloaded from the MapServer site. I'm planning to purchase the linux distribution Suse, will MapServer compile and run on this distribution? Thanks, - twan -- http://www.twansoft.com From flavio at tydac.ch Tue Nov 6 03:02:37 2001 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 06 Nov 2001 12:02:37 +0100 Subject: [mapserver-users] Hardware advice? In-Reply-To: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> References: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> Message-ID: <200111061202370825.00E46BEB@gw-tydac.thenet.ch> Hi Twan >I'm planning to use MapServer and PostGIS for a demonstration project. At >the current time i'm planning the hardware requirements of this project. >Can anybody tell me if there are any minimum hardware requirements? The >map We use a 1GHz, 256 RAM IBM Netfinity with RAID controller (RAID 5 configuration). If you have large datasets I'd definitely suggets a RAID and fast Harddisks, it's worth it (our experiance is that processor and RAM do not bring that much of a difference, RAID however a lot). >I'm planning to purchase the linux distribution Suse, will MapServer >compile and run on this distribution? We have SUSE 7.2 - no problem. With the above hardware it's as fast as a Ferrari ... ciao flavio ******** 10 Years TYDAC Event - Review see www.tydac.ch ********* xxxxxxxxxxxxxxxxxxx ATTENTION: New Address xxxxxxxxxxxxxxxxxxxxx ----------------------------------------------------------------- ############ 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 Markus.Spring at muenchen.de Tue Nov 6 03:23:48 2001 From: Markus.Spring at muenchen.de (Markus.Spring) Date: Tue, 06 Nov 2001 12:23:48 +0100 Subject: [mapserver-users] Hardware advice? References: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> Message-ID: <3BE7C844.2416EEF8@muenchen.de> Hi Twan, here in Munich (http://dream.lrrl.arch.tu-muenchen.de/maplist.xml?portal=arbeit) we are running mapservers on several SuSE distributions, on 7.3 we are starting now; everything works fine. Hardware: for a small demonstration site every cheap new pc should be sufficient. Our public mapserver is a duron 600 which is fast enough. For large datasets I would prefere a SCSI Raid set, but for the beginning an ide-disk (preferably ultra-dma 66, and don't forget to activate DMA transfer in linux - with SuSE it's in /etc/rc.config) will be enough. You shouldn't have a too small amount of memory, 256 MB is ok, 512 MB is better - especially if you run x-windows for development - linux uses 'excess' memory for caching purposes and thus can compensate for a slower disk. Have fun -- Markus From Ulrich.Mueller at bd.so.ch Tue Nov 6 05:41:26 2001 From: Ulrich.Mueller at bd.so.ch (=?ISO-8859-1?Q?M=FCller_Ulrich?=) Date: Tue, 6 Nov 2001 14:41:26 +0100 Subject: [mapserver-users] server error Message-ID: <5B025B1F39D6D4119F5700508BEEEC6633C6DF@srsofaioi4546.ktso.ch> I am facing three situations when I get an INTERNAL SERVER ERROR message. In two cases I have no idea what's the reason. In the third case I found a solution, but it is probably still worth mentioning. My detailed description follows below. Thanks for your advices! Uli M?ller Kanton Solothurn GIS Koordinationsstelle R?tihof CH-4509 Solothurn T: +41 (032) 627 2475 ________________________________________________________________ 1) I try to load a dgn file with the following Mapfile entries: LAYER NAME samp15 STATUS ON TYPE LINE CONNECTIONTYPE OGR CONNECTION "/opt/wwwroot/sogis/develop/umue/MapServer/daten/cad/samp15.dgn, 0" END The file is a sample from the DGNLib website, so it should be ok. I can also view it in our Desktop GIS ArcView without any problems. MapServer version: 3.4 and 3.5 apache error log entries: * msOGRLayerOpen(/opt/wwwroot/sogis/develop/umue/MapServer/daten/cad/samp15.dg n, 0)... * msOGRLayerClose(/opt/wwwroot/sogis/develop/umue/MapServer/daten/cad/samp15.d gn, 0). * malformed header from script. Bad header=Found deleted, skipping.: /opt/wwwroot/cgi-bin/sogis/ms_ogr ________________________________________________________________ 2) I want to query a numeric field of a polyline-shape. The query normally works fine. However I get the server error, when - I zoom in to a scale larger 1:1000, and when - I change the tolerance to a value different from 0 The mapfile looks like this: LAYER NAME gshiso MAXSCALE 600000 STATUS ON TOLERANCE 5 DATA aww/gewaesserschutzkarte/gshiso TYPE LINE LABELITEM "Kote" QUERYITEM "KOTE" SYMBOLSCALE 10000 LABELMAXSCALE 25000 CLASS COLOR 0 62 210 SYMBOL 2 SIZE 2 LABEL TYPE TRUETYPE ANTIALIAS FONT arial COLOR 0 0 0 OUTLINECOLOR 255 255 230 SIZE 8 MINSIZE 4 MAXSIZE 11 ANGLE AUTO POSITION CC MINFEATURESIZE AUTO END END QUERY TEMPLATE "/opt/wwwroot/sogis/develop/umue/MapServer/projekte/aww/gws_karte/qry_tpl.ht ml" END END MapServer version: 3.3 apache error log entries: * Premature end of script headers: /opt/wwwroot/cgi-bin/sogis/mapserv _____________________________________________________________ 3) I want to display a polygon shapefile. It works fine at large scales. I get the server error message, when I zoom out below 1:300000. However the error disappears completely, when I move this layer at the bottom of the mapfile. As soon as another polygon layer is drawn below the problem layer, MapServer crahses. For this problem I found a possible reason. My shapefile had some very small polygons (digitizing errors). After deleting the corresponding records, everything worked at every scale and for every layer combination. Still, MapServer should not crash with small polygons? The mapfile: LAYER NAME holoz TYPE polygon STATUS ON TRANSFORM true DATA 'aww/geologie/blatt34/holoz' CLASSITEM 'FORMATION' CLASS NAME 'Postglazial' EXPRESSION '421421' COLOR 105 105 105 SYMBOL 7 SIZE 3 END # CLASS END MapServer version: 3.3 apache error log entries: * Premature end of script headers: /opt/wwwroot/cgi-bin/sogis/mapserv -------------- next part -------------- A non-text attachment was scrubbed... Name: M?ller Ulrich.vcf Type: application/octet-stream Size: 367 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Nov 6 06:47:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 06 Nov 2001 08:47:11 -0600 Subject: [mapserver-users] Symbol for Roads with Width Message-ID: You should be able to use overlay symbols to achieve the effect. Assuming you've got a solid line symbol and a dashed line symbol try: COLOR 0 0 0 SYMBOL 'solid-line' SIZE 5 OVERLAYCOLOR 255 0 0 OVERLAYSYMBOL 'dashed-line' OVERLAYSIZE 3 That should give you a black snake with red stripes. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 11/06/01 01:26 AM >>> I am trying to create a particular cartographic effect. The idea is one of a road line with both width and boundaries. Like a big filled snake, with darker borders. ----------------- - - - - - - - - - ----------------- I can make it wide, but I cannot make the middle a different color from the edges... I am using 3.5 CVS Any guidance? From warmerdam at pobox.com Tue Nov 6 06:46:40 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 06 Nov 2001 09:46:40 -0500 Subject: [mapserver-users] server error References: <5B025B1F39D6D4119F5700508BEEEC6633C6DF@srsofaioi4546.ktso.ch> Message-ID: <3BE7F7D0.5050600@pobox.com> M?ller Ulrich wrote: > MapServer version: > 3.4 and 3.5 > > apache error log entries: > * > msOGRLayerOpen(/opt/wwwroot/sogis/develop/umue/MapServer/daten/cad/samp15.dg > n, 0)... > * > msOGRLayerClose(/opt/wwwroot/sogis/develop/umue/MapServer/daten/cad/samp15.d > gn, 0). > * malformed header from script. Bad header=Found deleted, skipping.: > /opt/wwwroot/cgi-bin/sogis/ms_ogr Uli, The message "Found deleted, skipping" is a left over debugging message in the OGR DGN driver. I have commited a fix to CVS for the GDAL/OGR source tree. Where did you get your GDAL build? What platform are you running on? If you can rebuild GDAL yourself I can send you the patch (basically remove the printf from gdal/ogr/ogrsf_frmts/dgn/ogrdgnlayer.cpp). Sorry for the inconvenience. 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 John.Arthur at voicestream.com Tue Nov 6 06:49:01 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Tue, 6 Nov 2001 06:49:01 -0800 Subject: [mapserver-users] Symbol for Roads with Width Message-ID: <987E5CD7052ED51198F400508BA25279089F4D@vamerrifms01.mail.voicestream.com> By using OVERLAYSYMBOL. See example below: LAYER NAME highways METADATA "DESCRIPTION" "Highways" END TYPE LINE DATA "Mapserver/HWYS_polyline" SYMBOLSCALE 100000 MAXSCALE 900000 MINSCALE 10000 STATUS ON CLASSITEM "Class" CLASS EXPRESSION /A/ NAME "Highways" SYMBOL "circle" SIZE 6 MINSIZE 3 MAXSIZE 6 COLOR 192 0 0 OVERLAYSYMBOL "circle" OVERLAYSIZE 2 OVERLAYMINSIZE 1 OVERLAYMAXSIZE 2 OVERLAYCOLOR 0 128 192 END END John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com _~-^-~_ VoiceStream W I R E L E S S -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Tuesday, November 06, 2001 2:02 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Symbol for Roads with Width I am trying to create a particular cartographic effect. The idea is one of a road line with both width and boundaries. Like a big filled snake, with darker borders. ----------------- - - - - - - - - - ----------------- I can make it wide, but I cannot make the middle a different color from the edges... I am using 3.5 CVS Any guidance? From pramsey at refractions.net Tue Nov 6 08:44:15 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 06 Nov 2001 08:44:15 -0800 Subject: [mapserver-users] Hardware advice? References: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> <3BE7C844.2416EEF8@muenchen.de> Message-ID: <3BE8135F.F557ACAD@refractions.net> "Markus.Spring" wrote: > You shouldn't have a too small amount of memory, 256 MB is ok, 512 MB is > better - especially if you run x-windows for development - linux uses > 'excess' memory for caching purposes and thus can compensate for a > slower disk. I concur w/ Markus on the memory, it is the best performance bang for your buck. Performance tuning postgresql generally means allocating more memory for shared segments, so having the physical RAM available will help. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Tue Nov 6 10:39:29 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 06 Nov 2001 13:39:29 -0500 Subject: [mapserver-users] getSymbol() error (was: Re: Problems with PHP/Mapscript) References: <3BE6D7A9.3750EC48@uom.gr> <3BE6D98D.D6E66A0@dmsolutions.ca> Message-ID: <3BE82E61.FA73D54E@dmsolutions.ca> Greg Liapis wrote: > > Warning: MapServer Error in getSymbol(): (Points):(5) in /path/to/Greece.php on line 5 > Fatal error: Failed to open map file /path/to/Greece.map in /path/to/Greece.php on line 5 Greg, This error is related to a recent change made by Steve to the syntax of the FILLED and ANTIALIAS symbol and label parameters. See item#3 in the following archive message: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0110/msg00374.html As you (and other users) upgrade to the latest 3.5 CVS version, you need to change all occurences of FILLED and ANTIALIAS in your mapfiles and symbol files to add a TRUE or FALSE value following the keyword. e.g. Symbol Name 'circle' Type ELLIPSE Filled Points 1 1 END END becomes Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Tue Nov 6 11:44:48 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 6 Nov 2001 14:44:48 -0500 Subject: [mapserver-users] drawQuery and draw bug? Message-ID: <002101c166fb$7ea5e3f0$6801a8c0@BURNETTLAPTOP> I have two functions one that uses drawquery and the other that uses just the draw functions. If I used the draw(), and draw a map it looks fine, if I change the draw() to drawquery(), then the map looks all choppy...is this a bug? The only thing I am changing is the draw() function. The reason I am asking, is because my drawQueries all look choppy. It seems that if you use drawQuery, it uses the default map sizes instead of what you set them with $mapobj->set("width",400); etc etc. -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimburnett at ntelos.net Tue Nov 6 12:00:53 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 6 Nov 2001 15:00:53 -0500 Subject: [mapserver-users] draw() drawquery() querymap Message-ID: <003301c166fd$bd932260$6801a8c0@BURNETTLAPTOP> OK here is my problem, I can't find a querymap class in php-mapscript, so I can't change the size of the querymap dynamically. -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fbyne at engr.uga.edu Tue Nov 6 12:15:19 2001 From: fbyne at engr.uga.edu (Wes Byne) Date: Tue, 6 Nov 2001 15:15:19 -0500 Subject: [mapserver-users] install questions Message-ID: <20011106151519.A2016@engr.uga.edu> Reply-To: I'm trying to get the demo for 3.3.011 running, and then hopefully I'll move on to a later version once i see how it works. If I compile the binary (3.3.011) with no extras (tif,ttf,jpeg,etc), then copy it to my cgi-bin and edit the demo.map file (with absolute paths) I get the mapserver demo page but without an image (I do get the small image in the lower right hand corner, but nothing to view). If I check my htdocs/tmp directory, images are created, but they're read-only root. Any suggestions? If I compile the binary (3.3 or 3.4) with tiff, jpeg, png, ttf, and then move the binary to cgi-bin, I get a server error. It appears to apache isn't recognizing my LD_LIBRARY_PATH variable and can't find the proj4 libs. Can someone tell me how to tell apache to create that variable when it creates the process for mapserver? I've tried setting the variable and then restarting apache, but it doesn't work. I'm running solaris 8 on intel, apache 1.3.22 thanks, Wes -- ***** Wes Byne Water Research and Consumption fbyne at engr.uga.edu (voice):706-542-6041 http://watershed.engr.uga.edu ***** From teb at mallit.fr.umn.edu Tue Nov 6 13:46:11 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Tue, 6 Nov 2001 15:46:11 -0600 (CST) Subject: [mapserver-users] capabilities (fwd) Message-ID: <200111062146.PAA00554@mallit.fr.umn.edu> From bblankner at co.brazos.tx.us Tue Nov 6 12:00:17 2001 From: bblankner at co.brazos.tx.us (Brett Blankner) Date: Tue, 6 Nov 2001 14:00:17 -0600 Subject: capabilities Message-ID: <009801c166fd$ab3faac0$10e0c80a@co.brazos.tx.us> Hi! Great product! I was wondering if Mapserver is able to run queries and dynamically change the appearance of maps. For instance, I want to post my county's road map, allowing people to type in "Main St." under a street name search and then the map zooms into that street and the street is a different color than the surrounding ones. Also, it would be nice if they could type in a search distance from a street and the server returns a list of all govt. offices within that distance and also highlights them on the map. Is this possible with Mapserver or are these requests too dynamic and not supported? Brett Blankner GIS Coordinator Brazos County Road & Bridge Dept. (979) 822-2127 bblankner at co.brazos.tx.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Nov 6 15:44:13 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 06 Nov 2001 17:44:13 -0600 Subject: [mapserver-users] Fwd: Mapserver Perl Download Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "Nathan Holbrook" Subject: Mapserver Perl Download Date: Tue, 06 Nov 2001 13:26:28 -0700 Size: 1411 URL: From sutton_t at giug.net Wed Nov 7 02:53:18 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 7 Nov 2001 10:53:18 +0000 (GMT) Subject: [mapserver-users] Problems with nightly / cvs compile Message-ID: Hi I am trying to compile the mapserver with php_mapscript from last night (06/11/2001). I get the following error from both CVS and nightly tar build attempts: php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:3914: warning: implicit declaration of function `php_header' I had a look in the file mentioned above to see if I could work it out, but I couldnt...can anyone help me out here? Thanks # Tim From morissette at dmsolutions.ca Wed Nov 7 04:26:28 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 07 Nov 2001 07:26:28 -0500 Subject: [mapserver-users] Problems with nightly / cvs compile References: Message-ID: <3BE92874.563DFE7B@dmsolutions.ca> Tim Sutton wrote: > > I am trying to compile the mapserver with php_mapscript from last > night (06/11/2001). I get the following error from both CVS and > nightly tar build attempts: > > php_mapscript.c: In function `php3_ms_img_saveImage': > php_mapscript.c:3914: warning: implicit declaration of function > `php_header' > > I had a look in the file mentioned above to see if I could work it > out, but I couldnt...can anyone help me out here? > This is just a warning which has been there since we started supporting PHP4 and shouldn't really affect your build. Yes I should fix it, but you can safely ignore it. If your build doesn't work then it is likely something else. -- ------------------------------------------------------------ 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 pucher at atlas.gis.univie.ac.at Wed Nov 7 05:03:36 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 07 Nov 2001 14:03:36 +0100 Subject: [mapserver-users] Line labeling Message-ID: <3BE93128.1030503@atlas.gis.univie.ac.at> Hi, in one of our mapserver-applications, we tried to label line objects of a city map - no problem. We use a truetype font, autorotate and a minFeatureSize. The problem is, that the line segments of main streets between 2 side streets are often too short, so the main street is not labeled at all. Small side streets, which are longer than minFeatureSize get labeled! Any idea, how we get the streets labeled in a correct way, let's say by importance?? mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon From morissette at dmsolutions.ca Wed Nov 7 05:34:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 07 Nov 2001 08:34:25 -0500 Subject: [mapserver-users] compile error (fwd) References: <200111060351.VAA29855@mallit.fr.umn.edu> Message-ID: <3BE93861.8B840AA4@dmsolutions.ca> jychoi at ecn.purdue.edu wrote: > > Do you know why there are errors while compile with GDAL library? > I've got the error like this > mapraster.o > mapraster.c: In function `msDrawRasterLayer': > mapraster.c:1931: structure has no member named `proj' > mapraster.c:1932: structure has no member named `proj' > *** Error code 1 > make: Fatal error: Command failed for target `mapraster.o' > If you have any idea about this, please let me know. > Thanks. > mapraster.c was missing a #ifdef USE_PROJ, I've committed a new mapraster.c to CVS that should fix this. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pramsey at refractions.net Wed Nov 7 08:17:12 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 07 Nov 2001 08:17:12 -0800 Subject: [mapserver-users] Line labeling References: <3BE93128.1030503@atlas.gis.univie.ac.at> Message-ID: <3BE95E88.818E8FD2@refractions.net> It is not a pleasant solution, but it works very well. I processed my road network so roads were not broken by intersection, and roads of a certain name were made up of as few segments as possible. So rather than having 12 "Main St" segments, broken at cross streets, I just had one. This made the labelling much more aesthetically pleasing, since I would only ever get one instance of a particular name on the map at any time. Sorting the dataset by road length then should also give you a "by importance" order as well, sort of. Alexander Pucher wrote: > > Hi, > > in one of our mapserver-applications, we tried to label line objects of > a city map - no problem. We use a truetype font, autorotate and a > minFeatureSize. The problem is, that the line segments of main streets > between 2 side streets are often too short, so the main street is not > labeled at all. Small side streets, which are longer than minFeatureSize > get labeled! > > Any idea, how we get the streets labeled in a correct way, let's say by > importance?? > > mfg > ALEX > > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From andreag at crs4.it Wed Nov 7 10:12:05 2001 From: andreag at crs4.it (Andrea Giacomelli) Date: Wed, 07 Nov 2001 19:12:05 +0100 Subject: [mapserver-users] symbols for digits Message-ID: <3BE97975.7DDEF768@crs4.it> Hi, I have tried without success to use snippets of code sent from fellow listers (having already tried following the standard reference), to add points with a text label dynamically to my map. Dynamic points work, but the labels just won't show up. I haven't figured where the problem is and at this stage of the project (which is based on v 3.4 and will terminate in 1 month) I prefer to aim at alternative practical solutions. I was thinking of using symbols defined as digits (in this speficic application I have a limited set of points to label this way). I would just like to know if such a symbolset is already available, prior to starting to edit them on my own. TIA and regards, -- ========================================= Andrea Giacomelli Centre for Advanced Studies, Research and Development in Sardinia http://www.crs4.it/~andreag ========================================= From ed at topozone.com Wed Nov 7 11:30:18 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 7 Nov 2001 14:30:18 -0500 Subject: [mapserver-users] Preparing tif images Message-ID: <13858AA1A74F30419F319ACB66A9D1220E77AD@mercator.topozone.com> Tim - If you have a 24-bit image and you load it into Photoshop, you can use the Image/Mode/Indexed Color (be sure the "8 Bits per Channel" setting is checked on the Image/Mode menu) to convert it to an 8-bit palette image. You have some options there about how to map the more-than-256-color image's colors. What sort of georeference information do you have? If you have ESRI World Files, that's fine. Photoshop will not save all the GeoTIFF tags if your image is a GeoTIFF image, so you'll need to save and reapply them. If you'd like to email me an image and georeference data I'd be happy to take a look at it. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Tim Sutton [mailto:sutton_t at giug.net] Sent: Monday, November 05, 2001 8:17 AM To: MapServer Mailing List Subject: [mapserver-users] Preparing tif images Hi Can anyone point me to more detailed documentation on preparing images for use as raster layers? I have an image georeferenced and saved in both jpg and tif format. I see you need to convert to use 8bit pallette, but the tools I have available (photoshop 5.5, paintshop) don't seem to have an option. I also have the GIMP. I had a look through the archives and could not find what I am looking for. Thanks Tim From Tom.Kralidis at ccrs.nrcan.gc.ca Wed Nov 7 11:54:26 2001 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Wed, 7 Nov 2001 14:54:26 -0500 Subject: [mapserver-users] mapplet draw cross / circle Message-ID: <7CDD7B94357FD5119E800002A537C46E226367@s5-ccr-r1.ccrs.nrcan.gc.ca> Hi, Using the mapplet Java applet, I'd like to create functionality where, when a user clicks a link (eg. placename), a circle can be drawn on the map, i.e.: - HTML select list (lat/long coords hidden foreach option) - user selects an item - item's lat/long are picked up from hidden value - calculation of x/y pixel location of lat/long to corresponding map (mapplet) - draw a small circle on the map Any ideas? Thanks ..Tom From teb at mallit.fr.umn.edu Wed Nov 7 12:05:05 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 7 Nov 2001 14:05:05 -0600 (CST) Subject: [mapserver-users] Aligning labels correctly (FWD) Message-ID: <200111072005.OAA01150@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Jim Burnett" To: Subject: Aligning labels correctly Date: Wed, 7 Nov 2001 08:44:44 -0500 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 With a roads shape file, I am trying to align labels with the road, at the same angle as the road. I put ANGLE ON put they still don't line up with the streets, -jim- ------------- End Forwarded Message ------------- From woodbri at mediaone.net Wed Nov 7 12:17:47 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Wed, 07 Nov 2001 15:17:47 -0500 Subject: [mapserver-users] Line labeling References: <3BE93128.1030503@atlas.gis.univie.ac.at> <3BE95E88.818E8FD2@refractions.net> Message-ID: <3BE996EB.86533DAA@mediaone.net> Hi, Road labeling is a critical feature in map generation for getting good looking maps (but then you already know that). So, I would like to offer a few ideas in this regard -- some/most? of which would require some support in mapserver: 1) the merging of line segments works well toward solving this problem BUT at the cost of pre-processing the data, which is not so bad, but a bigger problem is losing important geocoding information about each line segment like address from and to for each side of the segment. 2) prioritizing street segments could easily be don't with a simple code. In the Tiger/Line data every segment as a CFCC field which is the road class. Others might have to classify there roads if they don't have the equivalent. 3) for label generation I am guessing (haven't looked at the source yet) that every label placed on the map is kept in a list to check again to avoid collisions, if the name was also kept in the list you could check if you already labeled a segment of the same name within some distance of the previous label and reject labeling it if you already had. 4) having the road class also allows you to easily filter when to display what class of roads (I think this is already implemented - I will find out as soon as I get my Tiger 2000 data converted and load up a mapserver) I have implemented this labeling on my home brew server and in part on the Tiger Map Server and they work very nicely. The distance between label can be made accessable as an object attribute or config file param. Please pardon my ignorance, if I have stated something stupid or obvious, as I'm still feeling my way about with mapserver. -Stephen Woodbridge Paul Ramsey wrote: > > It is not a pleasant solution, but it works very well. I processed my > road network so roads were not broken by intersection, and roads of a > certain name were made up of as few segments as possible. So rather than > having 12 "Main St" segments, broken at cross streets, I just had one. > This made the labelling much more aesthetically pleasing, since I would > only ever get one instance of a particular name on the map at any time. > Sorting the dataset by road length then should also give you a "by > importance" order as well, sort of. > > Alexander Pucher wrote: > > > > Hi, > > > > in one of our mapserver-applications, we tried to label line objects of > > a city map - no problem. We use a truetype font, autorotate and a > > minFeatureSize. The problem is, that the line segments of main streets > > between 2 side streets are often too short, so the main street is not > > labeled at all. Small side streets, which are longer than minFeatureSize > > get labeled! > > > > Any idea, how we get the streets labeled in a correct way, let's say by > > importance?? > > > > mfg > > ALEX > > > > -- > > ________________________________________________________ > > > > Institut fuer Geographie und Regionalforschung > > Universit?t Wien > > Kartografie und Geoinformation > > > > Departement of Geography and Regional Research > > University of Vienna > > Cartographie and GIS > > > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > > > Tel: (+43 1) 4277 48644 > > Fax: (+43 1) 4277 48649 > > E-mail: pucher at atlas.gis.univie.ac.at > > > > FTP: ftp://ftp.gis.univie.ac.at > > WWW: http://www.gis.univie.ac.at/karto > > ________________________________________________________ > > > > "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon > > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ From pramsey at refractions.net Wed Nov 7 12:34:50 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 07 Nov 2001 12:34:50 -0800 Subject: [mapserver-users] Line labeling References: <3BE93128.1030503@atlas.gis.univie.ac.at> <3BE95E88.818E8FD2@refractions.net> <3BE996EB.86533DAA@mediaone.net> Message-ID: <3BE99AEA.FCAEBE01@refractions.net> Stephen Woodbridge wrote: > 1) the merging of line segments works well toward solving this problem > BUT at the cost of pre-processing the data, which is not so bad, but a > bigger problem is losing important geocoding information about each line > segment like address from and to for each side of the segment. Not if you're willing to keep two copies of the data around (as I am), one mangled for labelling and one not, for geocoding. > 4) having the road class also allows you to easily filter when to > display what class of roads (I think this is already implemented - I > will find out as soon as I get my Tiger 2000 data converted and load up > a mapserver) Yes, having road classes is *very* helpful for good road cartography. Not everyone is so blessed, but you are right, it can be a godsend. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Wed Nov 7 14:07:16 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 07 Nov 2001 16:07:16 -0600 Subject: [mapserver-users] Line labeling Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 11/07/01 02:17PM >>> > Hi, > Road labeling is a critical feature in map generation for getting good > looking maps (but then you already know that). So, I would like to offer > a few ideas in this regard -- some/most? of which would require some > support in mapserver: > 1) the merging of line segments works well toward solving this problem > BUT at the cost of pre-processing the data, which is not so bad, but a > bigger problem is losing important geocoding information about each line > segment like address from and to for each side of the segment. Disk is cheap, just keep both versions around. Line labeling is extremely sensitive to input data. Merging segments between intersections provides huge benefits in labeling. > 2) prioritizing street segments could easily be don't with a simple > code. In the Tiger/Line data every segment as a CFCC field which is the > road class. Others might have to classify there roads if they don't have > the equivalent. This is a must IF you have roads of different classes in the same file. Another strategy is store different classes seperately. The other benefit is that road display is often scale dependent (i.e. don't show city streets at the state level) so you may see huge performance increases, plus you can better make use of spatial indexing. > 3) for label generation I am guessing (haven't looked at the source yet) > that every label placed on the map is kept in a list to check again to > avoid collisions, if the name was also kept in the list you could check > if you already labeled a segment of the same name within some distance > of the previous label and reject labeling it if you already had. This is already supported. There is a MINDISTANCE label parameter that allows you to define a minimum distance between labels with the same value. > 4) having the road class also allows you to easily filter when to > display what class of roads (I think this is already implemented - I > will find out as soon as I get my Tiger 2000 data converted and load up > a mapserver) Yes, this is implemented. Depending on the size of the data though it's stupid to sort through millions of streets to display one highway. So data reorganization can really help. > I have implemented this labeling on my home brew server and in part on > the Tiger Map Server and they work very nicely. The distance between > label can be made accessable as an object attribute or config file > param. > Please pardon my ignorance, if I have stated something stupid or > obvious, as I'm still feeling my way about with mapserver. > -Stephen Woodbridge Your suggestions are go and where applicable have already been implemented in the code. I can't stress enough though that good labeling is the product of good data. Steve From woodbri at mediaone.net Wed Nov 7 15:42:49 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Wed, 07 Nov 2001 18:42:49 -0500 Subject: [mapserver-users] Polygon Questions Message-ID: <3BE9C6F9.4AD8B401@mediaone.net> Hi again, Does mapserver, or shapefiles for that matter, care if polygon points are ordered clockwise or counter-clockwise? In shapefiles, a polygon can be in multiple parts? 1) Does this mean multiple smaller closed polygons which constitue a large object? 2) A large polygon, where the additional parts represent islands in the larger one. 3) something else all together :) -Stephen Woodbridge From trem at socialchange.net.au Wed Nov 7 17:11:50 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Thu, 8 Nov 2001 12:11:50 +1100 Subject: [mapserver-users] Displaying .bil raster images in mapserv 3.5 Message-ID: <00d401c167f2$5ba8a4d0$74010a0a@socialchange.net.au> Hi all, I'm using a build of mapserv 3.5 on Linux and have been trying to display .bil files having used gdaltindex on a number of these files for tiling purposes. If I do a straight forward 'same projection' display, then I can see an image okay. (ie epsg:4326 ----> 4326) http://maps-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/elevation.map&WMTVER=1.0.0&SRS=EPSG%3A4326&REQUEST=map&FORMAT=GIF&TRANSPARENT=true&EXCEPTIONS=INIMAGE&BBOX=138,-39.0,154,-28&WIDTH=400&HEIGHT=400&LAYERS=elev&STYLES= However if I do any reprojecting, then the image is blank (ie. epsg:4326 ----> 4202 http://maps-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/elevation1.map&WMTVER=1.0.0&SRS=EPSG%3A4202&REQUEST=map&FORMAT=GIF&TRANSPARENT=true&EXCEPTIONS=INIMAGE&BBOX=138,-39.0,154,-28&WIDTH=400&HEIGHT=400&LAYERS=elev&STYLES= Is this a known bug or is there something that I am missing? Thanks in advance for your help, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Nov 7 19:21:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 07 Nov 2001 21:21:30 -0600 Subject: [mapserver-users] mapplet draw cross / circle Message-ID: Should be pretty easy although you need to extend the applet with a new public method. Then use javascript to define a function to take the map coordinate and convert it to image coordinates and then pass that coordinate (plus a label?) to the new public method. Everything you need for the calculation should be there for you. All that public java method has to do is set the coordinates of a couple of java variables and then call repaint(). Update repaint to draw the circle at the given location based on the values set in the public method. Piece of cake. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kralidis, Tom" 11/07/01 14:01 PM >>> Hi, Using the mapplet Java applet, I'd like to create functionality where, when a user clicks a link (eg. placename), a circle can be drawn on the map, i.e.: - HTML select list (lat/long coords hidden foreach option) - user selects an item - item's lat/long are picked up from hidden value - calculation of x/y pixel location of lat/long to corresponding map (mapplet) - draw a small circle on the map Any ideas? Thanks ..Tom From twan at twansoft.com Thu Nov 8 01:18:04 2001 From: twan at twansoft.com (Twan Kogels) Date: Thu, 08 Nov 2001 10:18:04 +0100 Subject: [mapserver-users] Hardware advice? In-Reply-To: <3BE8135F.F557ACAD@refractions.net> References: <5.0.0.25.2.20011106105215.00b02c80@pop3.wish.nl> <3BE7C844.2416EEF8@muenchen.de> Message-ID: <5.0.0.25.2.20011108101356.02fda748@pop3.wish.nl> Goodmorning, Thanks to Paul, Markus and Flavio, the replies were usefull and a new server is ordered. I hope it will be deliverd in the next couple of days, then i can go and work with mapserver, i'm exited :-) Best regards, Twan At 08:44 6-11-2001 -0800, you wrote: >"Markus.Spring" wrote: > > > You shouldn't have a too small amount of memory, 256 MB is ok, 512 MB is > > better - especially if you run x-windows for development - linux uses > > 'excess' memory for caching purposes and thus can compensate for a > > slower disk. > >I concur w/ Markus on the memory, it is the best performance bang for >your buck. Performance tuning postgresql generally means allocating more >memory for shared segments, so having the physical RAM available will >help. > >-- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ -- http://www.twansoft.com From Andreas.Maul at bgr.de Thu Nov 8 04:41:47 2001 From: Andreas.Maul at bgr.de (Maul, Andreas-Alexander) Date: Thu, 8 Nov 2001 13:41:47 +0100 Subject: [mapserver-users] reference box in reference map Message-ID: Hi list, why does mapserver draw initially the reference box in the reference map only partially? In example 3 of the tutorial the first call of the reference map shows only the right side of the red rectangle. The whole rectangle is drawn only after zooming in. I get the same behaviour in my application. Is there a trick to render the complete rectangle before zooming in? Andreas Maul From warmerdam at pobox.com Thu Nov 8 06:11:39 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 08 Nov 2001 09:11:39 -0500 Subject: [mapserver-users] Displaying .bil raster images in mapserv 3.5 References: <00d401c167f2$5ba8a4d0$74010a0a@socialchange.net.au> Message-ID: <3BEA929B.2010902@pobox.com> Trem Stamp wrote: > If I do a straight forward 'same projection' display, then I can see an > image okay. (ie epsg:4326 ----> 4326) Trem, How recent is your source? I fixed a serious bug in the raster resampling code last Friday that I believe would screw up any attempt to warp into a geographic coordinate system (I was using DEG_TO_RAD instead of RAD_TO_DEG in one place). This change was rev 1.20 for mapresample.c. If you have that and are still running into the problem let me know and I will try to work out what is happening. 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 warmerdam at pobox.com Thu Nov 8 06:48:07 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 08 Nov 2001 09:48:07 -0500 Subject: [mapserver-users] Polygon Questions References: <3BE9C6F9.4AD8B401@mediaone.net> Message-ID: <3BEA9B27.6060102@pobox.com> Stephen Woodbridge wrote: > Hi again, > > Does mapserver, or shapefiles for that matter, care if polygon points > are ordered clockwise or counter-clockwise? > > In shapefiles, a polygon can be in multiple parts? > 1) Does this mean multiple smaller closed polygons which constitue a > large object? > 2) A large polygon, where the additional parts represent islands in > the larger one. > 3) something else all together :) > > -Stephen Woodbridge Stephen, o I don't think MapServer cares about the direction of polygon vertices. o The Shapefile spec is specific about the ordering of vertices in the rings based on whether they are exterior or interior rings; however, it doesn't appear that ESRI products depend on this, and many generators of shapefiles are careless in generation (notably my own Shapelib!). o Shapefile polygons can be multiple islands as well as having holes in islands. Both options are correctly handled by MapServer. I could be wrong on any of the above, but I am pretty sure I am right. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at dnr.state.mn.us Thu Nov 8 07:09:20 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 08 Nov 2001 09:09:20 -0600 Subject: [mapserver-users] reference box in reference map Message-ID: You see the partial rect because that's the extent that is requested and part of it falls outside of the reference map. The trick is making sure your reference map is large enough (extent-wise) to handle whatever the default extent is. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Maul, Andreas-Alexander" 11/08/01 06:41AM >>> Hi list, why does mapserver draw initially the reference box in the reference map only partially? In example 3 of the tutorial the first call of the reference map shows only the right side of the red rectangle. The whole rectangle is drawn only after zooming in. I get the same behaviour in my application. Is there a trick to render the complete rectangle before zooming in? Andreas Maul From cabral at yadata.net Thu Nov 8 09:09:45 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Thu, 8 Nov 2001 15:09:45 -0200 Subject: [mapserver-users] reference box in reference map References: Message-ID: <003501c16878$2c77d6a0$0207a8c0@naumaki> Here is how you can calculate the reference map extents, so when you first open the "map-page" the reference map should appear with the red border fully visible. Don't know if there's a simple way to do that. This works for latest version 3.5 (I had to change the formulas some time ago because of some changes in mapserver): 1) Your reference image must have the same aspect ratio of your map initial extents. So, lets say in your .map file you have: extent [minx] [miny] [maxx] [maxy]. Then you calculate: aspect = (maxy - miny) / (maxx - minx) width = 120 # you can put any value you want height = round( width * aspect ) 2) Now, you must calculate the 'extent' you put in the 'reference' section of your mapfile (it's not the same!). I took a peek in the way mapserver maps logical (map) to physical (img) units, and the following formula is working with me: cellsize = max( (maxx-minx)/width, (maxy-miny)/height ) reference.extent.minx = minx reference.extent.maxy = maxy reference.extent.maxx = minx + cellsize*(width+1) reference.extent.miny = maxy - cellsize*(height+1) You should use the original map extent to generate the reference image with your calculated "width" and "height". For those who use mapscript, attached is a reference map generator. you should access it as: mapref.php?map=&width=. The width argument is optional. Hope it works for you. Rod. ----- Original Message ----- From: "Maul, Andreas-Alexander" To: < > Sent: Thursday, November 08, 2001 10:41 AM Subject: [mapserver-users] reference box in reference map Hi list, why does mapserver draw initially the reference box in the reference map only partially? In example 3 of the tutorial the first call of the reference map shows only the right side of the red rectangle. The whole rectangle is drawn only after zooming in. I get the same behaviour in my application. Is there a trick to render the complete rectangle before zooming in? Andreas Maul -------------- next part -------------- A non-text attachment was scrubbed... Name: mapref.php Type: application/octet-stream Size: 1359 bytes Desc: not available URL: From ed at topozone.com Thu Nov 8 09:07:37 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 8 Nov 2001 12:07:37 -0500 Subject: [mapserver-users] Polygon Questions Message-ID: <13858AA1A74F30419F319ACB66A9D1220E77B3@mercator.topozone.com> Frank - I've done a moderate amount of shapefile generation/modification with shapelib and used the results in MapServer. I've found nothing that contradicts your comments below about shapefiles. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Thursday, November 08, 2001 9:48 AM To: Stephen Woodbridge Cc: MapServer List Subject: Re: [mapserver-users] Polygon Questions Stephen Woodbridge wrote: > Hi again, > > Does mapserver, or shapefiles for that matter, care if polygon points > are ordered clockwise or counter-clockwise? > > In shapefiles, a polygon can be in multiple parts? > 1) Does this mean multiple smaller closed polygons which constitue a > large object? > 2) A large polygon, where the additional parts represent islands in > the larger one. > 3) something else all together :) > > -Stephen Woodbridge Stephen, o I don't think MapServer cares about the direction of polygon vertices. o The Shapefile spec is specific about the ordering of vertices in the rings based on whether they are exterior or interior rings; however, it doesn't appear that ESRI products depend on this, and many generators of shapefiles are careless in generation (notably my own Shapelib!). o Shapefile polygons can be multiple islands as well as having holes in islands. Both options are correctly handled by MapServer. I could be wrong on any of the above, but I am pretty sure I am right. 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 dgraham at i3.com Thu Nov 8 10:43:26 2001 From: dgraham at i3.com (David Graham) Date: Thu, 08 Nov 2001 11:43:26 -0700 Subject: [mapserver-users] Applet with polygon drawing References: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> Message-ID: <3BEAD24E.5090809@i3.com> Dear MapServer Users: Does anyone know of (can point me to) a browser Java applet for MapServer that supports drawing a polygon layer over the map? One that can then transmit the polygon layer back to the server? Dave Graham information integration and imaging, LLC From klehr1 at tampabay.rr.com Thu Nov 8 11:34:56 2001 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Thu, 8 Nov 2001 14:34:56 -0500 Subject: [mapserver-users] Converting Cad .dxf to .shp files Message-ID: <01c301c1688c$73237be0$0300a8c0@tampabay.rr.com> I'm relatively new to GIS type files, though a decent perl/C programmer. Anyway I have a DXF file that I'd like to convert to a shape file. I have ArcView 3.2 (please no blasphemous remarks) and can convert the .dxf to the .shp but the generated .dbf file looks like junk, I was kind of hoping to see all the attributes within the .dxf layers neatly plugged into the .dbf file (as a normal .shp and .dbf would have). I work with land parcel tables for municipalities, generally I receive a shape file, open up the dbf find the attributes I need, then write the map files to query the data I need. The dxf file has many layers, but I don't seem to see them in ArcView(or necessarily no how to get to that data). Is there a good way to convert these files to pull out the attribute information of the lower dxf layers and put them into a decent .dbf file? The shape file looks good as far as visual appearance, I just need help building the parsing the lower layers into a decent .dbf Thanks very much for your help and experiences. Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.armstrong at ntlworld.com Thu Nov 8 11:47:52 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 8 Nov 2001 19:47:52 -0000 Subject: [mapserver-users] help request in query with php Message-ID: <001b01c1688e$40c06580$95ecfea9@davidpc> Could someone on the list help i am having a problem setting up a query using php & mapscript etc the outline of the problem is this :- I am having problems querying a point etc in php i need to click on a point and return information i have held in a database such as vehicle / driver information , and idealy show the information in a drop down box or applet etc any idea's welcome ! ( all the information can be retreved from using the id field used in the annotation layer and then use the id field to query using sql to the database ) any code fragmant etc would be much appriciated using v3.5 & php mapscript Regards David From jpalma at donahue.umassp.edu Thu Nov 8 11:51:58 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Thu, 08 Nov 2001 14:51:58 -0500 Subject: [mapserver-users] Mapserver vs. ArcIMS Message-ID: <3BEAE25E.414FF001@donahue.umassp.edu> I have just found out that my university has a site license for ArcIMS. This makes me wonder about the differences in capability between Mapserver and ArcIMS. One thing that jumps out at me is that I would have to run ArcIMS on a Windows server, something I want to avoid due to all the security problems that we have had with our Windows servers. With Mapserver I can use Linux, which we have used on our web servers and database server with great reliability. However, I would assume that (for a non-programmer like me) ArcIMS is easier to use and has more capabilities. Is there anyone out there who has experience with both systems and can comment? Thanks, Jim From robhranac at vfny.org Thu Nov 8 14:17:30 2001 From: robhranac at vfny.org (Rob Hranac) Date: Thu, 8 Nov 2001 17:17:30 -0500 Subject: [mapserver-users] freefs 0.9a released - os wfs implementation Message-ID: <000601c168a3$28c56e70$1400fe0a@matt> VFNY has released an alpha version of an open source WFS implementation in Java, using PostGIS as the datastore. Installation of the alpha is recommended for the, um, adventurous only. We will have a beta by December and a 1.0 out by January that will both be more robust and much more user-friendly. However, we wanted to gauge developer interest in this project now rather than later. If you are interested in contributing, please let me know. Full details are given below - feel free to contact me with questions. Regards, Rob Hranac Director / Senior Developer Vision for New York (VFNY) 377 Broadway 11th Floor New York, NY 10013 tel: (212) 219-6052 email: robhranac at vfny.org www.vfny.org ******************************************* RELEASE NOTES: Free Feature Server (FreeFS) 0.9 alpha release - www.sourceforge.net/projects/freefs from Vision for New York (VFNY) - www.vfny.org contact info: robhranac at vfny.org ******************************************* OVERVIEW: This is the first release of FreeFS, a product that VFNY has developed as an implementation of the OpenGIS Consortium's (OGC, www.opengis.org) Web Feature Server v0.0.13 (WFS) specification. VFNY develops FreeFS in order to spur the adoption of interoperable geographic data standards by data providers. FreeFS is intended to serve as a free, fast, easy to use, and comprehensive geographic vector data translator for geographic 'web service' applications. FreeFS aspires to be the primary translator between the current cacophony of geographic storage formats and Geography Markup Language (GML) for vector-based geographic data. ******************************************* LICENSE: FreeFS is currently released under the GPL (www.gnu.org/copyleft/gpl.htm). However, VFNY is cooking up its own license, which is somewhat less restrictive than the GPL. When we have completed it (early 2002), we will change the licensing terms. We will, of course, fully honor the terms of the GPL when we do so. If you are interested is using the code and have objections to the GPL, please contact us. ******************************************* FUNCTIONALITY: This release is targeted more at the development community than the user community and functionality is quite limited; minimal testing has occurred exclusively on a single development server. However, FreeFS does follow the WFS v0.0.13 spec enough to lay claim to be the first bonafide, open-source implementation of the spec. Currently, FreeFS implements the WFS GetCapabilities, DescribeFeatureType, and GetFeature interfaces, but not the OGC Filter spec or any transaction interfaces. FreeFS serves data exclusively from PostgreSQL, using the PostGIS extension from the clever people at Refractions Research Inc. (www.refractions.net). Error handling in this version is essentially non-existent and documentation is limited to these release notes and the javadocs. The only feature implemented in FreeFS not mandated in the WFS spec are the metadata JSP pages, which mostly serve to help users understand what FreeFS is doing and give spiders a chance to index it. One note: almost no efforts have been made to implement security in FreeFS. If you have sensitive data that you do not want to grant public access to, do not use this alpha version of FreeFS to serve it. VFNY will likely add security features in future releases. ******************************************* FUTURE: VFNY will release a 0.9 beta version of FreeFS in December 2001, which will include the following improvements: Filter Capabilities Web-based Administration VFNY will release a 1.0 version in January 2002, which will include the following improvements: Error Handling User Documentation Minor Transaction Handling Connection Pooling Future releases, coming in early 2002, will focus on: Increased geographic storage format support Increased output type support Security and access control Full transactional support Cascading WFS support Advanced schema support Of course, VFNY will enthusiastically accept patches, functional extensions, critiques, comments, and love from other developers and interested parties, regarding FreeFS. We intend to play nicely with the open-source GIS development community and have no commercial interests in the development of FreeFS and other OpenGIS technology. When enough developer interest materializes, VFNY will begin to release nightly builds and set up a CVS repository. Please send comments/suggestions/flames to: robhranac at vfny.org. ******************************************* From pramsey at refractions.net Thu Nov 8 16:02:27 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 08 Nov 2001 16:02:27 -0800 Subject: [mapserver-users] Full Color GD Message-ID: <3BEB1D13.C9FCB757@refractions.net> What is the development plan w/ respect to GD2 and 24-bit color? The restriction to 8-bit color seems pretty onerous when it comes to presenting imagery within Mapserver. (I just finished knocking a 24bit satimage down to 8bit, and it is not nearly so pretty now.) Are the technical problems mostly restricted to the API changes in gd2 and the resulting requirement to touch alot of the mapserver core code, or are there some other hidden issues I am unaware of? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From cameron at socialchange.net.au Thu Nov 8 17:51:15 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Fri, 09 Nov 2001 12:51:15 +1100 Subject: [mapserver-users] Applet with polygon drawing References: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> <3BEAD24E.5090809@i3.com> Message-ID: <3BEB3693.1D2F5818@socialchange.net.au> David Graham wrote: > Does anyone know of (can point me to) a browser Java applet for > MapServer that supports drawing a polygon layer over the map? One that > can then transmit the polygon layer back to the server? I don't think one exists, however a few of us are working on it: Use geotools applet to send shape to Web Feature Server and PostGIS database. From PostGIS you can dump the data to shapefiles which can be used by mapserv. More information at: http://mapbuilder.sourceforge.net -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From Rich at GreenwoodMap.com Thu Nov 8 19:52:03 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 08 Nov 2001 20:52:03 -0700 Subject: [mapserver-users] Mapserver vs. ArcIMS In-Reply-To: <3BEAE25E.414FF001@donahue.umassp.edu> Message-ID: <5.1.0.14.0.20011108201909.02ae9d50@mail.GreenwoodMap.com> Jim, I think every university has a site license for ArcIMS, and every other product ESRI ever tried to market. ArcIMS uses Java Servlets, so you are not restricted to windows, although I am not sure what level of support there is for Linux, it does run on various UNIX platforms. Installing the ArcIMS server on your Java Servlet engine of choice is challenging. Once you get it going it has some nice wizard type tools to help you get pretty sophisticated interactive map pages up very easily. In terms of the user experience, mapserver "seems" much faster than ArcIMS, but I don't have numbers to back that up. If you are sharp enough to get ArcIMS running smoothly on a Java Servlet on Nt, or whatever, you are certainly sharp enough to get a nice mapserver page going on the platform of your choice. Mapserver is fast, stable, and has various interfaces (CGI, and scripting interfaces in Perl and PHP, and I think others). Mapserver is well thought out and offers a variety of ways to solve a problem. If you are committed to putting sophisticated GIS content on the web, go with mapserver. If you are in a hurry, and have good Java Servlet experience, ArcIMS will work. If you are doing a needs assessment, implementation plan, or product comparison - there are other products out there that should not be overlooked. Rich At 02:51 PM 11/8/2001 -0500, you wrote: >I have just found out that my university has a site license for ArcIMS. >This makes me wonder about the differences in capability between >Mapserver and ArcIMS. > >One thing that jumps out at me is that I would have to run ArcIMS on a >Windows server, something I want to avoid due to all the security >problems that we have had with our Windows servers. With Mapserver I >can use Linux, which we have used on our web servers and database server >with great reliability. > >However, I would assume that (for a non-programmer like me) ArcIMS is >easier to use and has more capabilities. Is there anyone out there who >has experience with both systems and can comment? > >Thanks, Jim Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From teb at mallit.fr.umn.edu Thu Nov 8 20:16:30 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Thu, 8 Nov 2001 22:16:30 -0600 (CST) Subject: [mapserver-users] Raster display (fwd) Message-ID: <200111090416.WAA02262@mallit.fr.umn.edu> From jychoi at ecn.purdue.edu Thu Nov 8 15:31:33 2001 From: jychoi at ecn.purdue.edu (Jin Yong Choi) Date: Thu, 08 Nov 2001 18:31:33 -0500 Subject: Raster display Message-ID: <3BEB15D5.665D895C@ecn.purdue.edu> Hello! I've compiled the mapserver 3.4 with jpeg and tiff lib, and it's working. But I have no idea how to display with colormap. I refered the document "HOWTO Raster" and used with expression for [value] item, color. But it's not working and only show gray tiff image. And I've compiled the mapserver 3.5 with GDAL library, and it's working. But it is not display the tiff, jpeg raster file and I can't not find a reference how to display raster file using 3.5 that was compiled with GDAL. So, I compiled 3.5 with tifflib and working, but it has projection problem (I compiled this because "HOWTO Raster" explained with 3.5). The raster image displayed turning 90 degree and the location is not the right place with gray image. The raster file has world file, but it seems that the file not working properly with 3.5. I mean, same raster file is displayed nicely with 3.4 compiled with libtiff, even though with gray. If I can get some information about aboves, please let me know. Thanks. Jin-Yong Choi -- ---------^.^-------~.~;-----^.^-------- Jin-Yong Choi, Ph.D. http://danpatch.ecn.purdue.edu/~jychoi --------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Nov 8 22:39:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 09 Nov 2001 00:39:24 -0600 Subject: [mapserver-users] Full Color GD Message-ID: The plan is to wait until after 3.5 is released and until gd2 is out of beta. As near as I can tell the gd2 implementation isn't quite complete, no support for antiliased fills/lines. They've also dropped support for FreeType 1, and unless they've updated the gd/freetype interface this is a bad thing. Begining with 3.3 the MapServer code was reworked in anticipation of 24-bit output, but there will likely still be a good bit of work involved, especially if GIF output is still desireable (and I think it is). The folks doing the GIF patches for GD are taking the same wait-and-see attitude. I'd look at 24-bit output as the major addition for 3.6 or 4.0 (whatever the next release is numbered). Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 11/08/01 18:09 PM >>> What is the development plan w/ respect to GD2 and 24-bit color? The restriction to 8-bit color seems pretty onerous when it comes to presenting imagery within Mapserver. (I just finished knocking a 24bit satimage down to 8bit, and it is not nearly so pretty now.) Are the technical problems mostly restricted to the API changes in gd2 and the resulting requirement to touch alot of the mapserver core code, or are there some other hidden issues I am unaware of? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From guillaume.sueur at khi2.fr Fri Nov 9 00:01:02 2001 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Fri, 9 Nov 2001 09:01:02 +0100 Subject: [mapserver-users] Applet with polygon drawing References: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> <3BEAD24E.5090809@i3.com> <3BEB3693.1D2F5818@socialchange.net.au> Message-ID: <002e01c168f4$b075bea0$251fa8c0@khi2.fr> Visit this link : http://www.scot-sa.com/scotnew/frame_f.htm Cropvision Demo. They use an applet which allows polygon drawing on the maps... Guillaume Sueur ----- Original Message ----- From: "Cameron Shorter" To: "David Graham" Cc: Sent: Friday, November 09, 2001 2:51 AM Subject: Re: [mapserver-users] Applet with polygon drawing > David Graham wrote: > > Does anyone know of (can point me to) a browser Java applet for > > MapServer that supports drawing a polygon layer over the map? One that > > can then transmit the polygon layer back to the server? > > I don't think one exists, however a few of us are working on it: > Use geotools applet to send shape to Web Feature Server and PostGIS > database. From PostGIS you can dump the data to shapefiles which can be > used by mapserv. > > More information at: > http://mapbuilder.sourceforge.net > > -- > Cameron Shorter Web Mapping Manager > Social Change Online > 248 Johnson St Tel: +61 (0) 2 9692 5115 > Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 > Sydney, Australia http://webmap.socialchange.net.au > > From jga at scot.cnes.fr Fri Nov 9 01:05:40 2001 From: jga at scot.cnes.fr (jrom) Date: Fri, 9 Nov 2001 10:05:40 +0100 Subject: [mapserver-users] Applet with polygon drawing In-Reply-To: <3BEAD24E.5090809@i3.com>; from dgraham@i3.com on Thu, Nov 08, 2001 at 19:43:26 +0100 References: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> <3BEAD24E.5090809@i3.com> Message-ID: <200111090900.fA990Ji26476@cnes.fr> > Dear MapServer Users: > > Does anyone know of (can point me to) a browser Java applet for > MapServer that supports drawing a polygon layer over the map? One that > can then transmit the polygon layer back to the server? > > Dave Graham > information integration and imaging, LLC Hi, We've developped such an applet. It support a lot functionnalities including: * zoom+ * zoom- * pan * browse history * distance calculation * ... And it support the drawing of polygons, lines and points with a kind of topological control with other objects load into the applet. Tests have been done with insertion of more than 10000 vertices polygons without any problem. A documented API should explain how it work (i hope ;) This applet is part of a more advanced project including mapfile editor and application creation through the web which use postgres/postgis as one of the data sources. The mapfile structure is stored into a relational schema into postgres database. We haven't yet release the source of these tools and we are in discussion with our company to see if we can make it publicly available. I think we should do this into a couple of days on sourceforge. I will send a mail when it'll be available. I can send screenshots or more explanation by email if someone is interested Regards jrom Jerome Gasperi Project manager & main developper SCOT 8-10 rue Hermes Parc Technologique du canal 31526 Ramonville FRANCE From jga at scot.cnes.fr Fri Nov 9 01:25:33 2001 From: jga at scot.cnes.fr (jrom) Date: Fri, 9 Nov 2001 10:25:33 +0100 Subject: [mapserver-users] Applet with polygon drawing In-Reply-To: <002e01c168f4$b075bea0$251fa8c0@khi2.fr>; from guillaume.sueur@khi2.fr on Fri, Nov 09, 2001 at 09:01:02 +0100 References: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> <3BEAD24E.5090809@i3.com> <3BEB3693.1D2F5818@socialchange.net.au> <002e01c168f4$b075bea0$251fa8c0@khi2.fr> Message-ID: <200111090936.fA99amU02723@cnes.fr> > Visit this link : http://www.scot-sa.com/scotnew/frame_f.htm Cropvision > Demo. > They use an applet which allows polygon drawing on the maps... > > Guillaume Sueur This is one of the application we've developped with an early version of our application (see my previous mail). I must warn you that the server hosting this application as a VERY LOW bandwith (adsl 256kb) since it's usually a very low traffic server... But we should change our servers soon. Regards jrom Jerome Gasperi Project manager & main developper SCOT 8-10 rue Hermes 31526 Ramonville FRANCE From teb at mallit.fr.umn.edu Fri Nov 9 06:59:01 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Fri, 9 Nov 2001 08:59:01 -0600 (CST) Subject: [mapserver-users] How to create TEMPLATE dynamically under php (fwd) Message-ID: <200111091459.IAA02428@mallit.fr.umn.edu> From Frederic.CATHIGNOL at astrium-space.com Fri Nov 9 06:32:39 2001 From: Frederic.CATHIGNOL at astrium-space.com (CATHIGNOL, Frederic) Date: Fri, 9 Nov 2001 15:32:39 +0100 Subject: How to create TEMPLATE dynamically under php Message-ID: Hello from France; I certainly miss something, but I would like to transform this .MAP code in PHP : LAYER NAME xx METADATA "DESCRIPTION" "xx" "RESULT_FIELDS" "NAME" END TYPE POLYGON STATUS OFF DATA xx CLASS NAME "xx" COLOR 200 255 0 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" END TOLERANCE 5 END # Layer I do not know how to create the TEMPLATE line. How do you do that ? I tried the code here after, but I block on the template tag : $layer = ms_newLayerObj($gpoMap); $layer->set("name","xx"); $layer->set("type", MS_LAYER_POLYGON); $layer->set("data", "xx"); $layer->set("status", MS_ON); $layer->setMetaData("DESCRIPTION","xx"); $layer->setMetaData("RESULT_FIELDS","NAME"); $fredclass = ms_newClassObj($layer); $fredclass->set("name","xx"); $fredclass->set("color",2); $fredclass->set("outlinecolor",2); Thanks Guys for your help to a french developper ! (frederic.cathignol at bigfoot.com) Best regards, F.CATHIGNOL From morissette at dmsolutions.ca Fri Nov 9 08:08:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 09 Nov 2001 11:08:33 -0500 Subject: [mapserver-users] How to create TEMPLATE dynamically under php (fwd) References: <200111091459.IAA02428@mallit.fr.umn.edu> Message-ID: <3BEBFF81.19FE7040@dmsolutions.ca> Frederic, A simple call to $fredclass->set("template", "ttt_query.html"); should work with MapServer 3.5 ... did you try that? If it didn't work then wihch error did you get? Daniel > From: "CATHIGNOL, Frederic" > Hello from France; > > I certainly miss something, but I would like to transform this .MAP code in > PHP : > LAYER > NAME xx > METADATA > "DESCRIPTION" "xx" > "RESULT_FIELDS" "NAME" > END > TYPE POLYGON > STATUS OFF > DATA xx > CLASS > NAME "xx" > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > TEMPLATE "ttt_query.html" > END > TOLERANCE 5 > END # Layer > > I do not know how to create the TEMPLATE line. How do you do that ? > > I tried the code here after, but I block on the template tag : > $layer = ms_newLayerObj($gpoMap); > $layer->set("name","xx"); > $layer->set("type", MS_LAYER_POLYGON); > $layer->set("data", "xx"); > $layer->set("status", MS_ON); > $layer->setMetaData("DESCRIPTION","xx"); > $layer->setMetaData("RESULT_FIELDS","NAME"); > $fredclass = ms_newClassObj($layer); > $fredclass->set("name","xx"); > $fredclass->set("color",2); > $fredclass->set("outlinecolor",2); > > Thanks Guys for your help to a french developper ! > (frederic.cathignol at bigfoot.com) > > Best regards, > > F.CATHIGNOL From Matt.Wilkie at gov.yk.ca Fri Nov 9 09:21:17 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 9 Nov 2001 09:21:17 -0800 Subject: [mapserver-users] Mapserver vs. ArcIMS Message-ID: <6DD7370C9452D31192A10008C75D07530D047B10@raptor.gov.yk.ca> > I have just found out that my university has a site license > for ArcIMS. This makes me wonder about the differences in > capability between Mapserver and ArcIMS. It's a bit dated now, but I asked a similar question awhile ago. The results can be found here: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/00 11/msg00143.html http://groups.google.com/groups?hl=en&threadm=8vbrsr%24p4c%241%40nnrp1.deja. com&rnum=1&prev=/groups%3Fq%3DMapserver%2B%253C%253D%253E%2BArcIMS%2B%26hl%3 Den%26sa%3DN%26tab%3Dwg cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From tomr at cliffie.nosc.mil Fri Nov 9 17:36:39 2001 From: tomr at cliffie.nosc.mil (Tom Russell) Date: Fri, 9 Nov 2001 17:36:39 -0800 Subject: [mapserver-users] missing __init__ when building Python wrapper Message-ID: <004d01c16988$25caf010$8664000a@sd.saclant.nato.int> After generating the C wrapper with SWIG, and building mapscriptmodule.sl, I attempt to import mapscript from the Python interactive interpreter. I get the following error: File "mapscript.py", line 2, in ? import mapscriptc ImportError: dynamic module does not define init function (initmapscriptc) Looking in mapscript_wrap.c, however, I find that initmapscriptc is actually defined, yet is apparently not making it into the shared library accessible to the interpreter. Thanks for any help Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Sun Nov 11 05:53:26 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Sun, 11 Nov 2001 07:53:26 -0600 (CST) Subject: [mapserver-users] Data (fwd) Message-ID: <200111111353.HAA03583@mallit.fr.umn.edu> From terr at terralogic.net Sat Nov 10 22:07:35 2001 From: terr at terralogic.net (terr at terralogic.net) Date: Sat, 10 Nov 2001 23:07:35 -0700 Subject: Data Message-ID: <20011110230735.K26136@saturn.terralogic.net> I've gone through all the docs I can find and I've installed the server with the test datasets. This looks good. We need a dataset that will encoumpass the whole planet. I know the DCW digital chart of the world exists - we have a copy - but our compy came via PHP associates and the data is NOT in the form we need. www.demis.nl also has a server and it has the data that we need - but I think this data is in a proprietary format that will not work woth mapserver. I have 2 things against the demis server as I udersatand it. 1) It runs only on windows. 2) I appears to output to a raster image and we'll need to do projections. If we re-project the raster the labeling is distorted. So I don't think that demis will do the job for us. I also know about cubewerx. I think that is spelt right. Cubwerx can do the projections - but at the expense of distoring the labelling - therefore I consider cubewerx to be broken. ---------- Can anyone tell me where I can get the DCW and CIA datasets in a format compatible with mapserver? I also would like some information as to the "feasibility" of letting mapserver at a full consolodated dataset comprizing all of this data. Can anyone give me any contacts so that I can have a chat with people who are already workign with this data and the mapserver in order to find out where the problems are. Thanks. Terrell Larson Terralogic From erik at gisconsult.dk Sun Nov 11 10:59:08 2001 From: erik at gisconsult.dk (GISconsult /v Erik Rosenbeck) Date: Sun, 11 Nov 2001 19:59:08 +0100 Subject: [mapserver-users] MapInfo Text objects Message-ID: Hi, If a MapInfo text object starts with a digit the MS dos not show the text !!! Any ideas? Erik Rosenbeck erik at gisconsult.dk ...se hvad der sker.. www.gisconsult.dk From Joop.de.Vries at delft-plaza.nl Mon Nov 12 04:38:56 2001 From: Joop.de.Vries at delft-plaza.nl (Joop de Vries) Date: 12 Nov 2001 13:38:56 +0100 Subject: [mapserver-users] a question Message-ID: <1005568736.1763.16.camel@paul.javel.nl> Hi, i am trying to compile mapscript on a IBM RS6000 with AIX4.3. I installed freetype1.3.1 and this error occures, can anybody help please? regards Joop mapcript_wrap.c Running Mkbootstrap for mapscript () chmod 644 mapscript.bs LD_RUN_PATH="/mapserver:/mapserver/gd-1.2:/mapserver/gdft:/lib" ld -o blib/arch/auto/mapscript/mapscript.so -bhalt:4 -bM:SRE -bI:/usr/opt/perl5/lib/5.00503/aix/CORE/perl.exp -bE:mapscript.exp -b noentry -lc -bnoquiet mapscript_wrap.o -L/mapserver -lmap -L/mapserver/gd-1.2 -lgd -L/mapserver/gdft -lgdft -lttf -lm (ld): halt 4 (ld): savename blib/arch/auto/mapscript/mapscript.so (ld): filelist 7 3 (ld): setopt noprogram (ld): noentry NOENTRY: There is no entry point. (ld): lib /usr/lib/libc.a (ld): i mapscript_wrap.o (ld): lib /mapserver/libmap.a (ld): lib /mapserver/gd-1.2/libgd.a (ld): lib /mapserver/gdft/libgdft.a (ld): lib /usr/lib/libttf.a (ld): lib /usr/lib/libm.a LIBRARY: Shared object libc.a[shr.o]: 2262 symbols imported. LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported. LIBRARY: Shared object libc.a[aio.o]: 11 symbols imported. LIBRARY: Shared object libc.a[pse.o]: 78 symbols imported. LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported. LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported. FILELIST: Number of previously inserted files processed: 7 (ld): imports /usr/opt/perl5/lib/5.00503/aix/CORE/perl.exp IMPORTS: Symbols imported from import file /usr/opt/perl5/lib/5.00503/aix/CORE/perl.exp: 1440 (ld): exports mapscript.exp EXPORTS: Symbols exported: 1 (ld): resolve RESOLVE: 4205 of 11494 symbols were kept. (ld): addgl /usr/lib/glink.o ADDGL: Glink code added for 79 symbols. (ld): er full ld: 0711-318 ERROR: Undefined symbols were found. The following symbols are in error: Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object} RLD: Address Section Rld-type Referencing Symbol ---------------------------------------------------------------------------------------------- .TT_Open_Face [30] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000003c0 .text R_RBR [96] <.fontFetch> .TT_Get_Face_Properties [32] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000003f8 .text R_RBR [96] <.fontFetch> .TT_New_Instance [34] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000408 .text R_RBR [96] <.fontFetch> .TT_Set_Instance_Resolutions [36] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 0000042c .text R_RBR [96] <.fontFetch> .TT_Set_Instance_CharSize [38] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000464 .text R_RBR [96] <.fontFetch> .TT_Get_Instance_Metrics [40] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 0000042c .text R_RBR [96] <.fontFetch> .TT_Set_Instance_CharSize [38] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000464 .text R_RBR [96] <.fontFetch> .TT_Get_Instance_Metrics [40] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 0000048c .text R_RBR [96] <.fontFetch> .TT_Get_CharMap_Count [42] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000498 .text R_RBR [96] <.fontFetch> .TT_Get_CharMap_ID [44] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000004d4 .text R_RBR [96] <.fontFetch> .TT_Get_CharMap [46] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000520 .text R_RBR [96] <.fontFetch> 0000054c .text R_RBR [96] <.fontFetch> 00000570 .text R_RBR [96] <.fontFetch> 000005a8 .text R_RBR [96] <.fontFetch> .TT_Done_Instance [52] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000006b4 .text R_RBR [98] <.fontRelease> .TT_Close_Face [54] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000006c0 .text R_RBR [98] <.fontRelease> .TT_New_Glyph [62] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000820 .text R_RBR [102] <.glyphFetch> .TT_Char_Index [64] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000008d8 .text R_RBR [102] <.glyphFetch> .TT_Load_Glyph [66] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000008f8 .text R_RBR [102] <.glyphFetch> .TT_Get_Glyph_Metrics [68] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000920 .text R_RBR [102] <.glyphFetch> .TT_Get_Glyph_Outline [70] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000948 .text R_RBR [102] <.glyphFetch> .TT_Transform_Outline [72] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 0000095c .text R_RBR [102] <.glyphFetch> .TT_Done_Glyph [74] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000d8c .text R_RBR [104] <.glyphRelease> .TT_Get_Glyph_Pixmap [78] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000ed0 .text R_RBR [108] <.bitmapFetch> .TT_Get_Glyph_Bitmap [80] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 00000eec .text R_RBR [108] <.bitmapFetch> .TT_Init_FreeType [84] ER PR gdttf.c(/mapserver/gdft/libgdft.a[gdttf.o]) 000016cc .text R_RBR [120] .imageStringTTF ER: The return code is 8. make: 1254-004 The error code from the last command is 8. From Chip.Hankley at GASAI.Com Mon Nov 12 10:30:53 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 12 Nov 2001 12:30:53 -0600 Subject: [mapserver-users] C# / .net Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3FE4@postoffice.GASAI.Com> Does anyone know anything about the feasibility of building a custom interface to MapServer (similar to what one might do with Java) using C#? Is it possible, what would be the pro's and con's? Chip From pkishor at GeoAnalytics.com Mon Nov 12 15:32:54 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 12 Nov 2001 17:32:54 -0600 Subject: [mapserver-users] RE: Mapserver getExtent Message-ID: Erwin, Please see my answer below. I am cc-ing this to the entire list so others may benefit from it also. > -----Original Message----- > From: Consult IT!, E. Perik [mailto:pxp at xs4all.nl] > Sent: Monday, November 12, 2001 5:13 PM > To: Puneet Kishor > Subject: Mapserver getExtent > > > Hello Puneet, > > i saw your question regarding getting the extents of a queried shape. > > Have you solved this problem? hop you did, because i could > youse some help > on that. > I have a form-list with all cities of a dbase database. When > user selects a > citie, the queried citie is highlighted. > > What i want to do (with PHP and mapscript) is to zoom in on > that city. Have > tried for ages, but never succeeded. Here's the general concept -- 1. You have to find the index of the shape that belongs to the feature you have selected. For example, if you have selected City eq "Delft", then you have to find the index of the shape in the cities layer that represents "Delft". 2. Once you have found the index then it is merely a matter of creating a new shapeobject with that shapeindex, and finding its mapextent. The problem is getting the index of the shape. 3. The index of the shape is the same as the row number of the city record in the corresponding .dbf file (remember, all shape files are made up of .shp, .shx, .dbf and whatnot... the .shp stores the actual geometry while the .dbf stores the attributes... they are linked by the shapeindex which is the same as the row number of the corresponding record in the .dbf file.) 4. .dbf files are really primitive. They have an absolute sort order that is hard-coded in the way the file is written. You have to somehow query the .dbf file for City eq "Delft" and get the row number of the that record. You can use the Xbase module in PHP to do that. I have not done that. Instead, I imported the .dbf file into a MySQL table and created a new field called row_id. I populated the row_id with the corresponding row number in the .dbf file. Keep in mind, the .dbf file is indexed from 0, however, the first row contains the row headers (the field names). Now I simply query the MySQL table for City eq "Delft" and get its row_id. 5. The advantage of doing it the way I do it is that it is really fast... no mucking around with .dbf and Xbase. The downside is that if my shapefile were to ever change then I would have to purge my MySQL table and re-import. Not a problem for me at this time. 6. If you are using the Xbase module then your Xbase query will return the row number somehow or the other... I haven't done this but others have assured that it is indeed so. > > Do you have an example of your version. It would really help. > I do have, and I have been promising the list that I am going to make it all available. Except, I have been so madly beseiged with another client project that I haven't had the time to package the scripts and the data in a way that not only does it make sense to other coders/users but it also doesn't make the client (for whom I did the PHP/Mapserver project) unhappy by violating their secrecy, privacy, etc. In other words, I will have all the scripts and sample data available for everyone's perusing pleasure sooner or later, but I don't right now. Otoh, if any of the above is confusing, just let me know I will be happy to guide you further. Good luck, pk/ From pkishor at GeoAnalytics.com Mon Nov 12 15:37:33 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 12 Nov 2001 17:37:33 -0600 Subject: [mapserver-users] RE: Mapserver getExtent Message-ID: Erwin, One errata in what I just wrote you... > 4. .dbf files are really primitive. They have an absolute > sort order that is hard-coded in the way the file is written. > You have to somehow query the .dbf file for City eq "Delft" > and get the row number of the that record. You can use the > Xbase module in PHP to do that. I have not done that. > Instead, I imported the .dbf file into a MySQL table and > created a new field called row_id. I populated the row_id > with the corresponding row number in the .dbf file. Keep in > mind, the .dbf file is indexed from 0, however, the first row > contains the row headers (the field names). Now I simply > query the MySQL table for City eq "Delft" and get its row_id. Actually, what I meant to say was that the Shapes are indexed from 0 while the .dbf file is indexed from 1. Since the first row of the .dbf file is the fieldnames, it is the second row in the .dbf file that corresponds to the first shape in the shapefile. This first shape is shape[0]. Hence, when I populate the MySQL table with the .dbf data, I calculate the row_id field with a sequence starting from 0. That way, when I retrieve row_id from any record, I automatically get the correct index for the corresponding shape. Hth, pk/ From david.armstrong at ntlworld.com Mon Nov 12 15:49:16 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Mon, 12 Nov 2001 23:49:16 -0000 Subject: [mapserver-users] mapserver workbench suitable for version 3.5 Message-ID: <000b01c16bd4$a414f440$9200a8c0@davidpc> Could anyone advise is there a more up to date version of mapserver workbench pending or available than version 0.3 at sourceforge Kind Regards Dave From pkishor at eidesis.org Tue Nov 13 07:01:54 2001 From: pkishor at eidesis.org (Puneet Kishor) Date: Tue, 13 Nov 2001 09:01:54 -0600 Subject: [mapserver-users] RE: Mapserver getExtent In-Reply-To: <5.1.0.14.2.20011113065016.00a0a4d0@localhost> Message-ID: <609A02C6-D847-11D5-9523-003065B5737C@eidesis.org> Erwin, Look at my response below (I am cc-ing this to the entire list so others may benefit) -- On Tuesday, November 13, 2001, at 12:01 AM, Azimuth, Erwin Perik wrote: > Hi Puneet, > > thanks for the answer. As you perhaps may have thought i was hoping for > a small example, but the textual explanation is good for exploring also. > Index +1 could be my problem. Will sort that out. be very sure of that, otherwise you will be getting a map that is off > > Delft was a good example ;-) > > I'll mail (not at the PC where i have setup mapserver) my code which > get's the row information for the City. > > What you said under 2: "merely a matter of creating a new shapeobject > with that shapeindex, and finding its mapextent." is my actual problem. > I do have the index, but that's the part on where i got stuck. Have to > read the mapscript info again i think ;-) > This should be real easy, but somehow i cannot make it happen. > here's the script -- getExtent( $shpIndex ); // calc new map extent using the border $minx = ( $shapeExtObj->minx ) * ( 1 - $border ); $miny = ( $shapeExtObj->miny ) * ( 1 - $border ); $maxx = ( $shapeExtObj->maxx ) * ( 1 + $border ); $maxy = ( $shapeExtObj->maxy ) * ( 1 + $border ); // set extent of the map object $mapObj->setextent( $minx, $miny, $maxx, $maxy ); } ?> Now remember, all you have done till now is created a new mapextent to zoom to. The next step is to actually show the City eq "Delft" (or shall we make it Ootmarsum, a place I have fond memories of) highlighted in some bright color. To do that make sure you have an additional layer for cities in your map file with the appropriate highlighted color. This highlight layer (as I call it) should be evaluated in the map file with an expression (see docs for this), and should be set to "off" so it doesn't display all the time. Once you have calculated the map extent using the script above, make sure you turn on the highlight layer using another script. That way when you draw your map, it will draw zoomed in to a rectangle around City eq "Delft," and Delft itself will be turned on in the highlight color. Enjoy. > At 17:32 12-11-01 -0600, you wrote: >> Erwin, >> >> Please see my answer below. I am cc-ing this to the entire list so >> others >> may benefit from it also. >> >> > -----Original Message----- >> > From: Consult IT!, E. Perik [mailto:pxp at xs4all.nl] >> > Sent: Monday, November 12, 2001 5:13 PM >> > To: Puneet Kishor >> > Subject: Mapserver getExtent >> > >> > >> > Hello Puneet, >> > >> > i saw your question regarding getting the extents of a queried shape. >> > >> > Have you solved this problem? hop you did, because i could >> > youse some help >> > on that. >> > I have a form-list with all cities of a dbase database. When >> > user selects a >> > citie, the queried citie is highlighted. >> > >> > What i want to do (with PHP and mapscript) is to zoom in on >> > that city. Have >> > tried for ages, but never succeeded. >> >> >> >> Here's the general concept -- >> >> 1. You have to find the index of the shape that belongs to the feature >> you >> have selected. For example, if you have selected City eq "Delft", then >> you >> have to find the index of the shape in the cities layer that represents >> "Delft". >> >> 2. Once you have found the index then it is merely a matter of >> creating a >> new shapeobject with that shapeindex, and finding its mapextent. The >> problem >> is getting the index of the shape. >> >> 3. The index of the shape is the same as the row number of the city >> record >> in the corresponding .dbf file (remember, all shape files are made up >> of >> .shp, .shx, .dbf and whatnot... the .shp stores the actual geometry >> while >> the .dbf stores the attributes... they are linked by the shapeindex >> which is >> the same as the row number of the corresponding record in the .dbf >> file.) >> >> 4. .dbf files are really primitive. They have an absolute sort order >> that is >> hard-coded in the way the file is written. You have to somehow query >> the >> .dbf file for City eq "Delft" and get the row number of the that >> record. You >> can use the Xbase module in PHP to do that. I have not done that. >> Instead, I >> imported the .dbf file into a MySQL table and created a new field >> called >> row_id. I populated the row_id with the corresponding row number in >> the .dbf >> file. Keep in mind, the .dbf file is indexed from 0, however, the >> first row >> contains the row headers (the field names). Now I simply query the >> MySQL >> table for City eq "Delft" and get its row_id. >> >> 5. The advantage of doing it the way I do it is that it is really >> fast... no >> mucking around with .dbf and Xbase. The downside is that if my >> shapefile >> were to ever change then I would have to purge my MySQL table and >> re-import. >> Not a problem for me at this time. >> >> 6. If you are using the Xbase module then your Xbase query will return >> the >> row number somehow or the other... I haven't done this but others have >> assured that it is indeed so. >> >> > >> > Do you have an example of your version. It would really help. >> > >> >> >> I do have, and I have been promising the list that I am going to make >> it all >> available. Except, I have been so madly beseiged with another client >> project >> that I haven't had the time to package the scripts and the data in a >> way >> that not only does it make sense to other coders/users but it also >> doesn't >> make the client (for whom I did the PHP/Mapserver project) unhappy by >> violating their secrecy, privacy, etc. >> >> In other words, I will have all the scripts and sample data available >> for >> everyone's perusing pleasure sooner or later, but I don't right now. >> >> Otoh, if any of the above is confusing, just let me know I will be >> happy to >> guide you further. >> >> Good luck, >> >> pk/ >> -- Puneet Kishor pkishor at eidesis.org From bbaily at CEMML.ColoState.EDU Tue Nov 13 09:21:57 2001 From: bbaily at CEMML.ColoState.EDU (Beth Baily) Date: Tue, 13 Nov 2001 10:21:57 -0700 Subject: [mapserver-users] Mapplet problem - SecurityExceptionEx[mapplet.init] Message-ID: <3BF156B5.B200EE5E@CEMML.ColoState.EDU> I'm very new to MapServer and am trying to run the Demo with mapplet. I'm getting the following error: exception: com.ms.security.SecurityExceptionEx[mapplet.init]: Unable to check hostname "myhost\tmp\DEMO1005669791352.png". The page loads but doesn't show any images. The images exist on the disk. Does anyone have any ideas? Thanks in advance, Beth Baily E-mail: bbaily at cemml.colostate.edu From steve.lime at dnr.state.mn.us Tue Nov 13 09:37:28 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 13 Nov 2001 11:37:28 -0600 Subject: [mapserver-users] Mapplet problem - SecurityExceptionEx[mapplet.init] Message-ID: The image mapplet parameter needs to be a fully qualified URL including protocol. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Beth Baily 11/13/01 11:21AM >>> I'm very new to MapServer and am trying to run the Demo with mapplet. I'm getting the following error: exception: com.ms.security.SecurityExceptionEx[mapplet.init]: Unable to check hostname "myhost\tmp\DEMO1005669791352.png". The page loads but doesn't show any images. The images exist on the disk. Does anyone have any ideas? Thanks in advance, Beth Baily E-mail: bbaily at cemml.colostate.edu From Tom.Kralidis at ccrs.nrcan.gc.ca Tue Nov 13 10:36:08 2001 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Tue, 13 Nov 2001 13:36:08 -0500 Subject: [mapserver-users] Mapplet problem - SecurityExceptionEx[mappl et.init] Message-ID: <7CDD7B94357FD5119E800002A537C46E22638F@s5-ccr-r1.ccrs.nrcan.gc.ca> Beth, You'd have to include the entire URL ('http://' included). i.e: Using the MapServer CGI 'host' directive makes this more portable. ..in addition, I don't believe the mapplet supports PNG, unless you've compiled them in yourself. Someone correct me if I'm mistaken. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ 45.42, -75.70 ================================= > -----Original Message----- > From: Beth Baily [mailto:bbaily at CEMML.ColoState.EDU] > Sent: Tuesday, November 13, 2001 12:22 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Mapplet problem - > SecurityExceptionEx[mapplet.init] > > > I'm very new to MapServer and am trying to run the Demo with mapplet. > I'm getting the following error: > > exception: com.ms.security.SecurityExceptionEx[mapplet.init]: > Unable to > check hostname "myhost\tmp\DEMO1005669791352.png". > > The page loads but doesn't show any images. The images exist on the > disk. > > Does anyone have any ideas? > > Thanks in advance, > Beth Baily > > E-mail: bbaily at cemml.colostate.edu > From claude.philipona at camptocamp.com Tue Nov 13 11:30:05 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Tue, 13 Nov 2001 20:30:05 +0100 Subject: [mapserver-users] zoom out in phpmapscript: possible bug Message-ID: <002701c16c79$98ecc160$c800a8c0@bsa> Hello, I've observed a strange behaviour when we zoom out beyond the extent with php-mapscript. This problem appears only if the width/height ratio of the EXTENT is bigger than width/height ratio of the mapsize. Actually the map rendered is totally off the EXTENT limit. This totally reproducible. Let me explain the situation more in detail: PHP-Mapscript used: MapScript Version (Spet 13, 2001) MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE EXTENT in .map file (unit meters) 490000 70000 840000 310000 MAXSCALE 2000000 which gives Width_EXTENT: 350000 Height_EXTENT: 240000 Ratio Width_EXTENT/Height_EXTENT= 1.4583 ----> CASE 1: ratio_MAPSIZE > ratio_EXTENT (no bug, comportement is normal): we choose a map size: Width_MAPSIZE 600 Height_MAPSIZE 400 which gives a ratio of 1.5 so ratio_MAPSIZE > ratio_EXTENT We assume that the maxscale is set big enough so that when we zoom out, mapserver has to reajust to the EXTENT (in this example 2000000 is ok) Now we zoom out and we see that everything is normal. It comes a point when mapserver reajust automatically the BBOX to the EXTENT. The map is always properly placed inside the extent. returned BBOX: 490000 70000 840000 310000 ----> CASE 2: ratio_MAPSIZE < ratio_EXTENT (buggy): we choose a map size: Width_MAPSIZE 600 Height_MAPSIZE 500 which gives a ratio of 1.2 so ratio_MAPSIZE < ratio_EXTENT We assume that the maxscale is set big enough so that when we zoom out, mapserver has to reajust to the EXTENT (in this example 2000000 is ok) Now we zoom out and we see that mapserver doesn't reajust properly when go beyond the EXTENT, mapserver doesn't reajust properly to the max EXTENT: Suddenly, there is a strong offset to the top, the map is almost totally off the extent limit. If we take a look at the returned BBOX, we see that mapserver has set y_max_extent to y_min_bbox, and a strange number to y_max_bbox: returned BBOX: 490000 310000 840000 361333.33333333 This totally reproducible. I could also reproduce with gmap (with modification of mapsize). I'm almost sure that it is bug, but not knowing the source code that well I couldn't find it. It seems to appear at least with zoompoint () and zoomscale(). Has anyone an idea? Claude From assefa at dmsolutions.ca Tue Nov 13 11:41:00 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 13 Nov 2001 14:41:00 -0500 Subject: [mapserver-users] zoom out in phpmapscript: possible bug References: <002701c16c79$98ecc160$c800a8c0@bsa> Message-ID: <3BF1774C.4CBFA987@dmsolutions.ca> I have added this in the bug list. I will look at it some times this week. Thanks for the detailed explanations. Claude Philipona wrote: > Hello, > I've observed a strange behaviour when we zoom out beyond the extent with > php-mapscript. This problem appears only if the width/height ratio of the EXTENT > is bigger than width/height ratio of the mapsize. Actually the map rendered is > totally off the EXTENT limit. This totally reproducible. Let me explain the > situation more in detail: > > PHP-Mapscript used: > MapScript Version (Spet 13, 2001) > MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=EPPL7 INPUT=JPEG INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > EXTENT in .map file (unit meters) > 490000 70000 840000 310000 > MAXSCALE 2000000 > > which gives > Width_EXTENT: 350000 > Height_EXTENT: 240000 > > Ratio Width_EXTENT/Height_EXTENT= 1.4583 > > ----> CASE 1: ratio_MAPSIZE > ratio_EXTENT (no bug, comportement is normal): > we choose a map size: > Width_MAPSIZE 600 > Height_MAPSIZE 400 > > which gives a ratio of 1.5 so ratio_MAPSIZE > ratio_EXTENT > > We assume that the maxscale is set big enough so that when we zoom out, mapserver > has to reajust to the EXTENT (in this example 2000000 is ok) > > Now we zoom out and we see that everything is normal. It comes a point when > mapserver reajust automatically the BBOX to the EXTENT. The map is always > properly placed inside the extent. > returned BBOX: 490000 70000 840000 310000 > > ----> CASE 2: ratio_MAPSIZE < ratio_EXTENT (buggy): > we choose a map size: > Width_MAPSIZE 600 > Height_MAPSIZE 500 > > which gives a ratio of 1.2 so ratio_MAPSIZE < ratio_EXTENT > > We assume that the maxscale is set big enough so that when we zoom out, mapserver > has to reajust to the EXTENT (in this example 2000000 is ok) > > Now we zoom out and we see that mapserver doesn't reajust properly when go beyond > the EXTENT, mapserver doesn't reajust properly to the max EXTENT: Suddenly, there > is a strong offset to the top, the map is almost totally off the extent limit. If > we take a look at the returned BBOX, we see that mapserver has set y_max_extent > to y_min_bbox, and a strange number to y_max_bbox: > returned BBOX: 490000 310000 840000 361333.33333333 > > This totally reproducible. I could also reproduce with gmap (with modification of > mapsize). I'm almost sure that it is bug, but not knowing the source code that > well I couldn't find it. It seems to appear at least with zoompoint () and > zoomscale(). > > Has anyone an idea? > > Claude -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From david.fawcett at moea.state.mn.us Tue Nov 13 12:10:54 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 13 Nov 2001 14:10:54 -0600 Subject: [mapserver-users] Cat'ing field names in URLs Message-ID: I am trying to do an itemquery with a querymap, building the URL dynamically. For the 'item', I would like to concatenate a 'C' on to the FIPs code returned by the county that is clicked upon. I assume that it can be done, I just don't know the syntax. For Example: ....cgi-bin/mapserv.exe?map=[map]&item=C+[value]&value=9612&mode=itemquerymap&mapext=shapes" [value] should return the FIPs code the county that is selected. If I were to click on Hennepin County (MN), I would want the value for 'item' to be 'C27053'. Thanks, David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From JohnHockaday at auslig.gov.au Tue Nov 13 15:22:13 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 14 Nov 2001 10:22:13 +1100 Subject: [mapserver-users] Compiling gd with freetype2 on Solaris 2.6 Message-ID: <53273E187450D311ACF6009027927B12022C108B@smtpgate.auslig.gov.au> Hi, This is probably not the right list for this discussion but, after looking at the archives, I did notice some people have had similar problems and sent similar emails. I also haven't had a response from "Albatross Consulting" so I thought that I would try this list. I am trying to compile a nightly build of mapserver 3.5 on Solaris 2.6 using gd-1.8.4amgif from the http://www.rhyme.com.au/gd/ site. I want mapserver to use GIFS because I am in Australia and the GIF licence agreement doesn't apply to us and our users are using some really old browsers. I believe that I have successfully compiled freetype-2.0.1 with its pre-requisites but when I try to compile gd as follows: ./configure --enable-freetype2 --libdir=/usr/local/lib \ --includedir=/usr/local/include \ --x-includes=/usr/local/include/freetype/freetype \ --x-libraries=/usr/local/lib I get the following warning: "... checking for X... libraries /usr/local/lib, headers /usr/local/include/freetype2/freetype checking for main in -lm... (cached) yes checking for deflate in -lz... (cached) yes checking for png_check_sig in -lpng... (cached) yes checking for freetype.h... (cached) no configure: warning: libgd will be built without support for FreeType2 fonts - no freetype.h. checking for FT_Init_FreeType in -lfreetype... (cached) yes checking for ANSI C header files... (cached) no ..." freetype.h is located in /usr/local/include/freetype2/freetype but the configuration file seems to ignore that I have included this path in the --x-includes option for configure. Has anyone come across this problem and solved it? If so can someone tell me what I need to do to get gd to compile with freetype2 with GIF support? Thanks in advance for your help. John Hockaday From JohnHockaday at auslig.gov.au Tue Nov 13 20:16:55 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 14 Nov 2001 15:16:55 +1100 Subject: [mapserver-users] Compiling gd with freetype2 on Solaris 2.6 Message-ID: <53273E187450D311ACF6009027927B12022C1090@smtpgate.auslig.gov.au> John, First of all thanks for replying. Yes I did have a "2" in the ./configure statement. It just made a transpose mistake while putting it into my initial email. I have had some success by using the gd-1.8.4gif.tar.gz version located at "Albatross Consulting" site URL: http://www.rhyme.com.au/gd/ and editing the Makefile to include the path to the freetype2 include files. IE. /usr/local/include/freetype2 (note the "2" this time) ;--) This seems to have worked however after I compile mapserver I get the following error when I run mapserv: "$ ./mapserv ld.so.1: ./mapserv: fatal: libfreetype.so.6: open failed: No such file or directory Killed" The /usr/local/lib/libfreetype.so.6 file exists. I've tried adding lots of configuration options to the configure script. ie. ./configure --prefix=/usr/local/ --exec-prefix=/usr/local --with-freetype --with-proj --with-gd=/usr/local --with-zlib --with-wmsclient Anyone know what is happening? Thanks. John Thanks for your help. John > -----Original Message----- > From: John Carlson [SMTP:carlson14 at llnl.gov] > Sent: Wednesday, November 14, 2001 1:38 PM > To: Hockaday, John > Subject: Re: [mapserver-users] Compiling gd with freetype2 on Solaris > 2.6 > > > > > >I believe that I have successfully compiled freetype-2.0.1 with its > >pre-requisites but when I try to compile gd as follows: > > > > ./configure --enable-freetype2 --libdir=/usr/local/lib \ > > --includedir=/usr/local/include \ > > --x-includes=/usr/local/include/freetype/freetype \ > > > Do you need a freetype2 above???? > > > --x-libraries=/usr/local/lib > > > >I get the following warning: > > > >"... > >checking for X... libraries /usr/local/lib, headers > >/usr/local/include/freetype2/freetype > >checking for main in -lm... (cached) yes > >checking for deflate in -lz... (cached) yes > >checking for png_check_sig in -lpng... (cached) yes > >checking for freetype.h... (cached) no > >configure: warning: libgd will be built without support for FreeType2 > fonts > >- no freetype.h. > >checking for FT_Init_FreeType in -lfreetype... (cached) yes > >checking for ANSI C header files... (cached) no > >..." > > > >freetype.h is located in /usr/local/include/freetype2/freetype > > > > You have a 2 here, but not above. > > John > > >but the configuration file seems to ignore that I have > >included this path in the --x-includes option for configure. > > > >Has anyone come across this problem and solved it? If so can someone > tell > >me what I need to do to get gd to compile with freetype2 with GIF > support? > > > >Thanks in advance for your help. > > > >John Hockaday From morissette at dmsolutions.ca Tue Nov 13 21:03:54 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 14 Nov 2001 00:03:54 -0500 Subject: [mapserver-users] Compiling gd with freetype2 on Solaris 2.6 References: <53273E187450D311ACF6009027927B12022C1090@smtpgate.auslig.gov.au> Message-ID: <3BF1FB3A.3F6A2A2C@dmsolutions.ca> "Hockaday, John" wrote: > > This seems to have worked however after I compile mapserver I get the > following error when I run mapserv: > > "$ ./mapserv > ld.so.1: ./mapserv: fatal: libfreetype.so.6: open failed: No such file or > directory > Killed" > > The /usr/local/lib/libfreetype.so.6 file exists. > The file exists but probably isn't in your runtime library path... see http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0110/msg00340.html for a discussion of a few solutions to this problem. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From JohnHockaday at auslig.gov.au Tue Nov 13 22:01:01 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 14 Nov 2001 17:01:01 +1100 Subject: [mapserver-users] Compiling gd with freetype2 on Solaris 2.6 Message-ID: <53273E187450D311ACF6009027927B12022C1097@smtpgate.auslig.gov.au> Mapservers, The problem is that /usr/local/lib is not in LD_LIBRARY_PATH. If I add /usr/local/lib to the LD_LIBRARY_PATH then the ./mapserv works if I run it on the command line. If I run it as a cgi-bin script it doesn't work. I have tracked the problem down to our web user, www, which doesn't have a shell. I added and exported the LD_LIBRARY_PATH for the www user but it still doesn't work because the www user doesn't open a shell as itself to run the mapserv cgi-bin script. I then added the following lines to our apache web server: SetEnv LD_LIBRARY_PATH "/usr/local/lib" PassEnv LD_LIBRARY_PATH I stopped and started the apache web server and everything started working. Thanks to all of you who have responded. Again it has proven to me that this is one the most responsive lists with the most knowledgable people on a subject. Thanks again. John Hockaday > -----Original Message----- > From: Paul Ramsey [SMTP:pramsey at refractions.net] > Sent: Wednesday, November 14, 2001 4:26 PM > To: Hockaday, John > Subject: Re: [mapserver-users] Compiling gd with freetype2 on Solaris > 2.6 > > Does your LD_LIBRARY_PATH environment variable include /usr/local/lib? > > "Hockaday, John" wrote: > > > > John, > > > > First of all thanks for replying. > > > > Yes I did have a "2" in the ./configure statement. It just made a > transpose > > mistake while putting it into my initial email. > > > > I have had some success by using the gd-1.8.4gif.tar.gz version located > at > > "Albatross Consulting" site URL: > > http://www.rhyme.com.au/gd/ > > and editing the Makefile to include the path to the freetype2 include > files. > > IE. /usr/local/include/freetype2 (note the "2" this time) ;--) > > > > This seems to have worked however after I compile mapserver I get the > > following error when I run mapserv: > > > > "$ ./mapserv > > ld.so.1: ./mapserv: fatal: libfreetype.so.6: open failed: No such file > or > > directory > > Killed" > > > > The /usr/local/lib/libfreetype.so.6 file exists. > > > > I've tried adding lots of configuration options to the configure script. > > ie. > > > > ./configure --prefix=/usr/local/ --exec-prefix=/usr/local > --with-freetype > > --with-proj --with-gd=/usr/local --with-zlib --with-wmsclient > > > > Anyone know what is happening? > > > > Thanks. > > > > John > > > > Thanks for your help. > > > > John > > > > > -----Original Message----- > > > From: John Carlson [SMTP:carlson14 at llnl.gov] > > > Sent: Wednesday, November 14, 2001 1:38 PM > > > To: Hockaday, John > > > Subject: Re: [mapserver-users] Compiling gd with freetype2 on > Solaris > > > 2.6 > > > > > > > > > > > > > >I believe that I have successfully compiled freetype-2.0.1 with its > > > >pre-requisites but when I try to compile gd as follows: > > > > > > > > ./configure --enable-freetype2 --libdir=/usr/local/lib \ > > > > --includedir=/usr/local/include \ > > > > > --x-includes=/usr/local/include/freetype/freetype \ > > > > > > > > > Do you need a freetype2 above???? > > > > > > > --x-libraries=/usr/local/lib > > > > > > > >I get the following warning: > > > > > > > >"... > > > >checking for X... libraries /usr/local/lib, headers > > > >/usr/local/include/freetype2/freetype > > > >checking for main in -lm... (cached) yes > > > >checking for deflate in -lz... (cached) yes > > > >checking for png_check_sig in -lpng... (cached) yes > > > >checking for freetype.h... (cached) no > > > >configure: warning: libgd will be built without support for FreeType2 > > > fonts > > > >- no freetype.h. > > > >checking for FT_Init_FreeType in -lfreetype... (cached) yes > > > >checking for ANSI C header files... (cached) no > > > >..." > > > > > > > >freetype.h is located in /usr/local/include/freetype2/freetype > > > > > > > > > > > > You have a 2 here, but not above. > > > > > > John > > > > > > >but the configuration file seems to ignore that I have > > > >included this path in the --x-includes option for configure. > > > > > > > >Has anyone come across this problem and solved it? If so can someone > > > tell > > > >me what I need to do to get gd to compile with freetype2 with GIF > > > support? > > > > > > > >Thanks in advance for your help. > > > > > > > >John Hockaday From v at w.cl Wed Nov 14 04:35:51 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 14 Nov 2001 09:35:51 -0300 (CLST) Subject: [mapserver-users] QUERYONLY? Message-ID: <20011114123606.E0AD722C0D@mail.selperchile.cl> I've tried setting a layer to be queryonly on MS 3.5, but getSymbol() does not recognize it, i've tried in status (as the code says) and in type (as the docs say) but in neither place it works. Any clues? (as always, php/ms 3.5) Thanks, -- V. From teb at mallit.fr.umn.edu Wed Nov 14 07:29:07 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Wed, 14 Nov 2001 09:29:07 -0600 (CST) Subject: [mapserver-users] applet param busyimage (fwd) Message-ID: <200111141529.JAA05364@mallit.fr.umn.edu> From Amy.Stender at erdc.usace.army.mil Wed Nov 14 06:17:09 2001 From: Amy.Stender at erdc.usace.army.mil (Stender, Amy ERDC-CRREL-NH) Date: Wed, 14 Nov 2001 09:17:09 -0500 Subject: applet param busyimage Message-ID: <048FBD219330D211B47000A0C9B3BAFD02DB9D49@crl02.crrel.usace.army.mil> i'd like to have a "working..." busyimage show while the map is reloading, but i don't know how to reload JUST the main map area, as opposed to the while page (is that the swapping method?). is that mapscript? also, is there anyway to refresh the [legend] with the map like this? i've looked through the archives and at the dnr landview. i'm using version 3.5 and i was wondering how to implement those javascripts. Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil From steve.lime at dnr.state.mn.us Wed Nov 14 07:58:17 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 14 Nov 2001 09:58:17 -0600 Subject: [mapserver-users] QUERYONLY? Message-ID: It's STATUS QUERY, not QUERYONLY. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Vinko Vrsalovic B." 11/14/01 06:35AM >>> I've tried setting a layer to be queryonly on MS 3.5, but getSymbol() does not recognize it, i've tried in status (as the code says) and in type (as the docs say) but in neither place it works. Any clues? (as always, php/ms 3.5) Thanks, -- V. From jtang at gmu.edu Wed Nov 14 08:12:48 2001 From: jtang at gmu.edu (jtang at gmu.edu) Date: Wed, 14 Nov 2001 11:12:48 -0500 Subject: [mapserver-users] Newbie question: How to display TIFF image in Mapserver? Message-ID: <1ba48981ba7d98.1ba7d981ba4898@gmu.edu> Greetings, I have a satellite TIFF file (500meter resolution), but no tfw file with it. How can I get the projection and coordinate extension information of the TIFF file? Suppose I already have such information, and indicate them in the MAP object in my map file as the RASTER_HOWTO tutorial said, will the TIFF file be displayed OK? Is there any example? Thank you in advance. Jiang Tang ================ School of Computational Sciences George Mason University Fairfax, VA, 22030 USA From v at w.cl Wed Nov 14 08:28:50 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 14 Nov 2001 13:28:50 -0300 (CLST) Subject: [mapserver-users] QUERYONLY? In-Reply-To: from "Stephen Lime" at nov 14, 2001 09:58:17 Message-ID: <20011114162850.076AC229A5@mail.selperchile.cl> > It's STATUS QUERY, not QUERYONLY. also tried that, but: Warning: MapServer Error in getSymbol(): (QUERY):(64) LAYER NAME buses METADATA "DESCRIPTON" "Rec Buses" "RESULT_FIELDS" "ROUTE_ID" END <---------------------------------------- Line 64 STATUS QUERY TYPE LINE LABELITEM "NOMBRE" DATA r_bus_utm56 CLASS NAME "Rec Buses" TEMPLATE "test_draw_map.phtml" LABEL COLOR 238 238 140 FONT arial_V TYPE truetype ANGLE AUTO ANTIALIAS SIZE 7 END COLOR 200 150 54 END TOLERANCE 10 END -- V. From gregliapis at hotmail.com Wed Nov 14 11:13:19 2001 From: gregliapis at hotmail.com (Greg Liapis) Date: Wed, 14 Nov 2001 21:13:19 +0200 Subject: [mapserver-users] How to show/hide labels? References: <53273E187450D311ACF6009027927B12022C108B@smtpgate.auslig.gov.au> Message-ID: Hi all, I am new to map server and this question may seem a little silly. Is there a method in PHP/Mapscript to show or hide labels dynamically? Thanks. Greg Liapis Greece From morissette at dmsolutions.ca Wed Nov 14 13:04:58 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 14 Nov 2001 16:04:58 -0500 Subject: [mapserver-users] How to show/hide labels? References: <53273E187450D311ACF6009027927B12022C108B@smtpgate.auslig.gov.au> Message-ID: <3BF2DC7A.74C5A7CC@dmsolutions.ca> Greg Liapis wrote: > > Hi all, > I am new to map server and this question may seem a little silly. > Is there a method in PHP/Mapscript to show or hide labels dynamically? > Thanks. > There is no way to set STATUS OFF on labels explicitly, but there are a few tricks you can do, like setting LABELITEM to an empty or invalid value... (e.g. $layer->set("labelitem", "") ) ... since there won't be any label value then the labels won't show up. You could also try setting LABELMAXSCALE to a very small value... -- ------------------------------------------------------------ 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 joel at crrel.usace.army.mil Wed Nov 14 14:02:45 2001 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Wed, 14 Nov 2001 17:02:45 -0500 (EST) Subject: [mapserver-users] maporaclespatial Message-ID: i haven't seen anyone mention it yet, so i'll try to be the first happy mapserver user to thank Rodrigo Cabral for all his work on the maporaclespatial code. we've been using it for about a week and its worked perfectly. we used oracle shp2sdo utility to convert shape files to oracle loader format. we loaded 2.7 million texas tiger 2000 road segments as a test data set, indexed with oracle's recommended tile size, and have been viewing and querying with mapserver with no problem. the nicest part of using oracle spatial with mapserver is being able to pass standard sql queries either from the map file or by modifiying the map_layer_data_ .. these can be attribute queries, oracle spatial queries on geometry, or a combination. i included a couple of lines from a map file in case anyone's interested ... # counties from oracle spatial LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from tx_cty" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END # only draw interstates (hwi) from all roads LAYER NAME tx1 TYPE line STATUS default MAXSCALE 200000 MINSCALE 80000 CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from (select * from tx_rds where CFCC = 'hwi') CLASS" COLOR 200 0 0 END END # draw 1/2 degree x 1/2 degree square area from roads LAYER NAME tx2 TYPE line STATUS default CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from (select * from tx_rds where mdsys.sdo_relate (tx_rds.geom, mdsys.sdo_geometry (2003, null, null,mdsys.sdo_elem_info_array (1,1003,3), mdsys.sdo_ordinate_array (-100, 30.5, -99.5 , 31)), 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE')" CLASS COLOR 200 0 0 END END joel From sutton_t at giug.net Wed Nov 14 13:52:55 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 14 Nov 2001 21:52:55 +0000 (GMT) Subject: [mapserver-users] How to show/hide labels? In-Reply-To: Message-ID: Hi Greg One way to do this is to create a separate annotation layer - annotation layers will draw no features only layers. Tim On Wed, 14 Nov 2001, Greg Liapis wrote: > Hi all, > I am new to map server and this question may seem a little silly. > Is there a method in PHP/Mapscript to show or hide labels dynamically? > Thanks. > > Greg Liapis > Greece > -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From Chip.Hankley at GASAI.Com Wed Nov 14 14:29:24 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 14 Nov 2001 16:29:24 -0600 Subject: [mapserver-users] How to show/hide labels? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3FF7@postoffice.GASAI.Com> You could have your labels done as a separate layer in the mapfile (annotation) and then turn that layer on / off based on whatever criteria you want to use for 'dynamically' showing or hiding labels... Here's an example of a layer definition from one of my mapfiles that shows only annotation (the data source is a polygon shapefile)...i.e. this layer will display only the labels based on the 'feat_name' field of the shapefile... it WON'T draw the polygon outline, etc. ... LAYER NAME "Feat_Labels" STATUS Default DATA ml3_feat LABELCACHE ON TYPE ANNOTATION LABELITEM "feat_name" CLASS COLOR 255 255 255 LABEL FORCE TRUE POSITION CC SIZE TINY OUTLINECOLOR 255 255 255 BACKGROUNDCOLOR 255 255 204 BACKGROUNDSHADOWCOLOR 221 221 221 BACKGROUNDSHADOWSIZE 1 1 MINDISTANCE 2 COLOR 0 0 0 WRAP "$" END END END # Annotation Layer ... In php... $map = ms_newMapObj("test.map"); $MyLayer = $map->getlayerbyname("Feat_Labels"); $MyLayer->set("status", 1); //display the layer //OR $MyLayer->set("status", 0); //hide the layer Chip -----Original Message----- From: Greg Liapis [mailto:gregliapis at hotmail.com] Sent: Wednesday, November 14, 2001 1:13 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] How to show/hide labels? Hi all, I am new to map server and this question may seem a little silly. Is there a method in PHP/Mapscript to show or hide labels dynamically? Thanks. Greg Liapis Greece From JohnHockaday at auslig.gov.au Wed Nov 14 14:57:13 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 15 Nov 2001 09:57:13 +1100 Subject: [mapserver-users] applet param busyimage (fwd) Message-ID: <53273E187450D311ACF6009027927B12022C109C@smtpgate.auslig.gov.au> Teb, This is not exactly what you want but I have seen an interface that pops up a javascript window while the map is being loaded. In this window it shows a message about waiting for the map to be generated. The window then shuts down when the map is down. You could replace this with a busy image. The URL of this site is: http://www.environment.gov.au/marine/coastal_atlas/atlaspage.html This will pop up a window and when you interact with the map the window, to which I am referring above, pops up. I had a look at it this morning and the database was down but you an get a quick idea of what happens as the window flashes for a moment. Hope this helps. John > -----Original Message----- > From: teb at mallit.fr.umn.edu [SMTP:teb at mallit.fr.umn.edu] > Sent: Thursday, November 15, 2001 2:29 AM > To: mapserver-users at lists.gis.umn.edu > Cc: astender at crrel.usace.army.mil > Subject: [mapserver-users] applet param busyimage (fwd) > > From Amy.Stender at erdc.usace.army.mil Wed Nov 14 08:15:52 2001 > Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) > by mallit.fr.umn.edu (8.9.3+Sun/8.9.3) with ESMTP id IAA05339 > for ; Wed, 14 Nov 2001 08:15:51 -0600 (CST) > Received: from crlmail01.crrel.usace.army.mil (crl02.crrel.usace.army.mil > [144.3.102.6]) > by lists.gis.umn.edu (8.9.3+Sun/8.9.1) with ESMTP id IAA19320 > for ; Wed, 14 Nov 2001 08:18:53 > -0600 (CST) > Received: by crl02.crrel.usace.army.mil with Internet Mail Service > (5.5.2653.19) > id ; Wed, 14 Nov 2001 09:17:22 -0500 > Message-ID: > <048FBD219330D211B47000A0C9B3BAFD02DB9D49 at crl02.crrel.usace.army.mil> > From: "Stender, Amy ERDC-CRREL-NH" > To: mapserver-info at lists.gis.umn.edu > Subject: applet param busyimage > Date: Wed, 14 Nov 2001 09:17:09 -0500 > MIME-Version: 1.0 > X-Mailer: Internet Mail Service (5.5.2653.19) > Content-Type: text/plain; > charset="iso-8859-1" > Content-Length: 654 > > i'd like to have a "working..." busyimage show while the map is reloading, > but i don't know how to reload JUST the main map area, as opposed to the > while page (is that the swapping method?). is that mapscript? also, is > there > anyway to refresh the [legend] with the map like this? > > i've looked through the archives and at the dnr landview. i'm using > version > 3.5 and i was wondering how to implement those javascripts. > > Amy L. Stender > Remote Sensing/GIS Center > Cold Regions Research and Engineering Laboratory > United States Army Corps of Engineers > 72 Lyme Road, Hanover, NH 03755-1290 > Tel: (603) 646-4733 > Fax: (603) 646-4730 > astender at crrel.usace.army.mil > From Regina.Obe.PFD at ci.boston.ma.us Wed Nov 14 14:27:30 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 14 Nov 2001 17:27:30 -0500 Subject: [mapserver-users] QUERYONLY? Message-ID: I got a similar error too (not sure if these two are related) - using the mapserv35_png_ogr for win32 build 11/7/2001. This was using the itasca demo app for 3.5 (I downloaded 10/17/2001) (and my other apps which worked with prior version of the mapserv 3.5 exe also give similar behavior. So I was wondering if an interim change to specs had taken place during the 3.5 between 10/19 and now. The prior version I was using was a build around 10/19/2001. I get an error getSymbol(): Symbol definition error. (END):(96) (I did modify it a bit to work with my configuration so not the exact demo - but just minor changes to paths) When trying to use the itasca demo app - dated around 10/17/2001 -----Original Message----- From: Vinko Vrsalovic B. [mailto:v at w.cl] Sent: Wednesday, November 14, 2001 11:29 AM To: steve.lime at dnr.state.mn.us Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] QUERYONLY? > It's STATUS QUERY, not QUERYONLY. also tried that, but: Warning: MapServer Error in getSymbol(): (QUERY):(64) LAYER NAME buses METADATA "DESCRIPTON" "Rec Buses" "RESULT_FIELDS" "ROUTE_ID" END <---------------------------------------- Line 64 STATUS QUERY TYPE LINE LABELITEM "NOMBRE" DATA r_bus_utm56 CLASS NAME "Rec Buses" TEMPLATE "test_draw_map.phtml" LABEL COLOR 238 238 140 FONT arial_V TYPE truetype ANGLE AUTO ANTIALIAS SIZE 7 END COLOR 200 150 54 END TOLERANCE 10 END -- V. From chris at casad.net Wed Nov 14 15:10:03 2001 From: chris at casad.net (Chris Casad) Date: Wed, 14 Nov 2001 18:10:03 -0500 Subject: [mapserver-users] Large scale implementation Message-ID: Hello: I was wondering if anyone has used MapServer for a large scale implementation where you could be having 100's of hits per minute or even per second. It may or may not return an image. At the very least it would use a lat/long to return a city/zip. Can MapServer handle a task like this? Would we have to use a large number of servers to handle this number of requests? Any help or suggestions would be greatly appreciated. Anyone have any real world implementations like this? Thank you, Chris From david.fawcett at moea.state.mn.us Wed Nov 14 15:23:55 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Wed, 14 Nov 2001 17:23:55 -0600 Subject: [mapserver-users] QUERYONLY? Message-ID: Regina, I don't believe that the getSymbol() error that you are receiving is related to Vinko's error below. You are getting an error because the syntax for the SYMBOL object has changed. Look at line 96 of your map file: #This is the old syntax SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END #This is the new syntax SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED = TRUE #You need to add '= TRUE' to this line END Once you make this change, you will most likely get an error in line 137 related to the layer type polyline. You can find a previous post from Steve Lime regarding these changes at: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/0110/msg00374.html I was just in the process of writing up a list of needed revisions for the 3.5 Demo for Steve. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Obe, Regina DND\MIS[SMTP:Regina.Obe.PFD at ci.boston.ma.us] > Sent: Wednesday, November 14, 2001 4:27 PM > To: 'v at w.cl'; steve.lime at dnr.state.mn.us > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] QUERYONLY? > > I got a similar error too (not sure if these two are related) - using the > mapserv35_png_ogr for win32 build 11/7/2001. This was using the itasca demo > app for 3.5 (I downloaded 10/17/2001) (and my other apps which worked with > prior version of the mapserv 3.5 exe also give similar behavior. So I was > wondering if an interim change to specs had taken place during the 3.5 > between 10/19 and now. > > > The prior version I was using was a build around 10/19/2001. > > I get an error > > getSymbol(): Symbol definition error. (END):(96) > (I did modify it a bit to work with my configuration so not the exact demo - > but just minor changes to paths) > > When trying to use the itasca demo app - dated around 10/17/2001 > > From jtang at gmu.edu Wed Nov 14 19:32:21 2001 From: jtang at gmu.edu (jtang at gmu.edu) Date: Thu, 15 Nov 2001 11:32:21 +0800 Subject: [mapserver-users] Question on command: "Mapserv -v" Message-ID: <1c6072b1c5e85e.1c5e85e1c6072b@gmu.edu> Lists, I met a problem with the mapserver 3.3 when trying using command "mapserv -v". ===== scs 100% mapserv -v This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. ==== >From the web document "Raster Howto", it says that this command will return something as "mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG...." I got different answer. Is it because they are different version? Thank you. Jiang Tang From toni at giscampus.udg.es Thu Nov 15 02:59:30 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 15 Nov 2001 11:59:30 +0100 Subject: [mapserver-users] change map file on the fly References: <1c6072b1c5e85e.1c5e85e1c6072b@gmu.edu> Message-ID: <006d01c16dc4$99e71380$0e2fce82@udg.es> Hy everyone, Is it possible not only to change the values of the map file on the fly but to eliminate on line?. It happens that I can not use labelitem and filteritem at the same time so I would like to put just one of them in the map file depending on the values of the form. Thanks From DebasishS at riskinc.com Thu Nov 15 02:47:35 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Thu, 15 Nov 2001 16:17:35 +0530 Subject: [mapserver-users] maporaclespatial Message-ID: Hi, Which version of Mapserver you are using ?? thanks Debasish. Joel Schlagel To: Sent by: cc: owner-mapserver-users at lists.g Subject: [mapserver-users] maporaclespatial is.umn.edu 11/15/01 03:32 AM Please respond to Joel.D.Schlagel i haven't seen anyone mention it yet, so i'll try to be the first happy mapserver user to thank Rodrigo Cabral for all his work on the maporaclespatial code. we've been using it for about a week and its worked perfectly. we used oracle shp2sdo utility to convert shape files to oracle loader format. we loaded 2.7 million texas tiger 2000 road segments as a test data set, indexed with oracle's recommended tile size, and have been viewing and querying with mapserver with no problem. the nicest part of using oracle spatial with mapserver is being able to pass standard sql queries either from the map file or by modifiying the map_layer_data_ .. these can be attribute queries, oracle spatial queries on geometry, or a combination. i included a couple of lines from a map file in case anyone's interested ... # counties from oracle spatial LAYER NAME counties TYPE polygon STATUS default MAXSCALE 1000000 CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from tx_cty" CLASS NAME 'county' COLOR 220 224 230 OUTLINECOLOR 0 0 0 END # only draw interstates (hwi) from all roads LAYER NAME tx1 TYPE line STATUS default MAXSCALE 200000 MINSCALE 80000 CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from (select * from tx_rds where CFCC = 'hwi') CLASS" COLOR 200 0 0 END END # draw 1/2 degree x 1/2 degree square area from roads LAYER NAME tx2 TYPE line STATUS default CONNECTIONTYPE oraclespatial CONNECTION 'u/p at sdo' DATA "GEOM from (select * from tx_rds where mdsys.sdo_relate (tx_rds.geom, mdsys.sdo_geometry (2003, null, null,mdsys.sdo_elem_info_array (1,1003,3), mdsys.sdo_ordinate_array (-100, 30.5, -99.5 , 31)), 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE')" CLASS COLOR 200 0 0 END END joel From cabral at yadata.net Thu Nov 15 05:43:10 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Thu, 15 Nov 2001 11:43:10 -0200 Subject: Fw: [mapserver-users] applet param busyimage (fwd) Message-ID: <003801c16ddb$77d68f20$0207a8c0@naumaki> Check this: http://g10.cttmar.univali.br/sipesca/mapas/mapas.php I think it's exactly what you want. We're generating versions for IE and NS4. Still working on NS6 support. Uses only javascript and layers. Hope it helps, Rod. ----- Original Message ----- From: To: Cc: Sent: Wednesday, November 14, 2001 1:29 PM Subject: [mapserver-users] applet param busyimage (fwd) i'd like to have a "working..." busyimage show while the map is reloading, but i don't know how to reload JUST the main map area, as opposed to the while page (is that the swapping method?). is that mapscript? also, is there anyway to refresh the [legend] with the map like this? i've looked through the archives and at the dnr landview. i'm using version 3.5 and i was wondering how to implement those javascripts. Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil From morissette at dmsolutions.ca Thu Nov 15 05:56:43 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 15 Nov 2001 08:56:43 -0500 Subject: [mapserver-users] Question on command: "Mapserv -v" References: <1c6072b1c5e85e.1c5e85e1c6072b@gmu.edu> Message-ID: <3BF3C99B.9F75C1B4@dmsolutions.ca> The "mapserv -v" switch was added only in MapServer 3.4. It was not there in 3.3.x ... that's why you get this error. Daniel jtang at gmu.edu wrote: > > Lists, > I met a problem with the mapserver 3.3 when trying using > command "mapserv -v". > > ===== > scs 100% mapserv -v > This script can only be used to decode form results and > should be initiated as a CGI process via a httpd server. > ==== > > >From the web document "Raster Howto", it says that this command will > return something as "mapserver version 3.5 OUTPUT=PNG OUTPUT=JPEG...." > > I got different answer. Is it because they are different version? > > Thank you. > > Jiang Tang From joel at crrel.usace.army.mil Thu Nov 15 06:39:42 2001 From: joel at crrel.usace.army.mil (Joel Schlagel) Date: Thu, 15 Nov 2001 09:39:42 -0500 (EST) Subject: [mapserver-users] maporaclespatial In-Reply-To: Message-ID: debasish: For work with mapserver & oracle spatial, i'm using mapserver 3.5 nightly build, and oracle 8.1.7 client on redhat linux. joel On Thu, 15 Nov 2001 DebasishS at riskinc.com wrote: > > Hi, > > Which version of Mapserver you are using ?? > > thanks > Debasish. > > From teb at mallit.fr.umn.edu Thu Nov 15 06:39:37 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 15 Nov 2001 08:39:37 -0600 (CST) Subject: [mapserver-users] cgi with truetype and gd library support (FWD) Message-ID: <200111151439.IAA05996@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: toni hern?ndez To: Subject: cgi with truetype and gd library support Date: Thu, 15 Nov 2001 10:18:10 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Hi, This is tony from University of Girona in Spain. I am looking for CGI version of mapserver that supports truetype and gd library. I have just fount one but it seems not to work fine with filteritem, filter and labelitem at the same time. Is it anywhere? Thanks in advance. ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason.coutermarsh at crrel.usace.army.mil Thu Nov 15 11:56:08 2001 From: jason.coutermarsh at crrel.usace.army.mil (Jason Coutermarsh) Date: Thu, 15 Nov 2001 14:56:08 -0500 Subject: [mapserver-users] Inappropriate ioctl for device error Message-ID: When trying to create a new mapObj I get the following error: Inappropriate ioctl for device I read on in the archives that this wasn't a mapscript error. Nevertheless, has anyone figured out a way to get around it? Thanks. Jason Coutermarsh Jason.Coutermarsh at crrel.usace.army.mil From teb at mallit.fr.umn.edu Thu Nov 15 13:12:32 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 15 Nov 2001 15:12:32 -0600 (CST) Subject: [mapserver-users] unable to start mapserv (FWD) Message-ID: <200111152112.PAA06218@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Thu, 15 Nov 2001 13:22:19 -0600 (CST) From: Pushkar Pradhan Subject: unable to start mapserv To: mapserver-info at lists.gis.umn.edu MIME-Version: 1.0 Content-MD5: e9Z86WjLwFYy23BEVvDHuQ== Hi, I have successfully compiled mapserv and other executables. I have copied mapserv to the cgi-bin directory of my apache server (apache_1.3.22). However when I request mapserv, I get an internal server error. I am running my server on solaris 8. I looked up apache's help for running cgi programs. I was able to run other cgi programs successfully. This is what the log file says: ld.so.1: mapserv: fatal: libpng.so.2: open failed: No such file or directory [Thu Nov 15 13:18:11 2001] [error] [client 127.0.0.1] Premature end of script headers: /rstc/user1/erc/pushkar/apache_1.3.22/cgi-bin/mapserv Could anyone please help me out. Thanks, ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ ------------- End Forwarded Message ------------- From jpalma at donahue.umassp.edu Thu Nov 15 14:25:05 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Thu, 15 Nov 2001 17:25:05 -0500 Subject: [mapserver-users] Can Mapserver do this? Message-ID: <3BF440C1.927DAB6D@donahue.umassp.edu> I found this example of a nice GIS web site that does many of the things I would like to do. It seems to run on ESRI's MapCafe, a program I am unfamiliar with. http://209.21.13.19/sites/Vallejo/Maproom.html Could a Mapserver server be configured to do these sorts of things? Is anyone else on the list trying things like this? Jim From pramsey at refractions.net Thu Nov 15 16:43:47 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 15 Nov 2001 16:43:47 -0800 Subject: [mapserver-users] Can Mapserver do this? References: <3BF440C1.927DAB6D@donahue.umassp.edu> Message-ID: <3BF46143.7BAF66E@refractions.net> What exactly did you like about it? The glacially slow rendering? The generally unattractive cartographic sensibilities? In all seriousness, I assume it is things like the demographics, address finder, and whatnot. It is not really a matter of "can mapserver do it", mapserver provides an extremely good rendering and query engine, so it has the horsepower to run this kind of application. But most of interface stuff you see in this app would have to be put together specifically for whatever it is you are doing. I assume that whomeever put this together invested a fair amount of time on this java applet -- it certainly is not the default one which shipped with MapCafe (way back when). Good luck, Paul Jim Palma wrote: > > I found this example of a nice GIS web site that does many of the things > I would like to do. It seems to run on ESRI's MapCafe, a program I am > unfamiliar with. > > http://209.21.13.19/sites/Vallejo/Maproom.html > > Could a Mapserver server be configured to do these sorts of things? Is > anyone else on the list trying things like this? > > Jim -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From jpalma at donahue.umassp.edu Thu Nov 15 17:34:14 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Thu, 15 Nov 2001 20:34:14 -0500 Subject: [mapserver-users] Can Mapserver do this? Message-ID: <77468A31D56.AAA1329@uis.umassp.edu> >But most of >interface stuff you see in this app would have to be put together >specifically for whatever it is you are doing. I assume that whomeever >put this together invested a fair amount of time on this java applet -- >it certainly is not the default one which shipped with MapCafe (way >back when). Yes I guess this is what I have to wrap my mind around: what mapserver does and what any auxiliary program that supports it does. I am very interested in the capabilities of PostGIS and Mapserver together. But first I have to get Mapserver up and running. Jim From JohnHockaday at auslig.gov.au Thu Nov 15 18:44:13 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 16 Nov 2001 13:44:13 +1100 Subject: [mapserver-users] unable to start mapserv (FWD) Message-ID: <53273E187450D311ACF6009027927B12022C10B4@smtpgate.auslig.gov.au> Teb/Pushkar, I have the same situation this week. Here is a snippet of the answer email: "The problem is that /usr/local/lib is not in LD_LIBRARY_PATH. If I add /usr/local/lib to the LD_LIBRARY_PATH then the ./mapserv works if I run it on the command line. If I run it as a cgi-bin script it doesn't work. I have tracked the problem down to our web user, www, which doesn't have a shell. I added and exported the LD_LIBRARY_PATH for the www user but it still doesn't work because the www user doesn't open a shell as itself to run the mapserv cgi-bin script. I then added the following lines to our apache web server: SetEnv LD_LIBRARY_PATH "/usr/local/lib" PassEnv LD_LIBRARY_PATH I stopped and started the apache web server and everything started working. Thanks to all of you who have responded. Again it has proven to me that this is one the most responsive lists with the most knowledgable people on a subject. Thanks again. John Hockaday" > -----Original Message----- > From: teb [SMTP:teb at mallit.fr.umn.edu] > Sent: Friday, November 16, 2001 8:13 AM > To: mapserver-users at lists.gis.umn.edu > Cc: pushkar at ERC.MsState.Edu > Subject: [mapserver-users] unable to start mapserv (FWD) > > > ------------- Begin Forwarded Message ------------- > > Date: Thu, 15 Nov 2001 13:22:19 -0600 (CST) > From: Pushkar Pradhan > Subject: unable to start mapserv > To: mapserver-info at lists.gis.umn.edu > MIME-Version: 1.0 > Content-MD5: e9Z86WjLwFYy23BEVvDHuQ== > > Hi, > I have successfully compiled mapserv and other executables. I have copied > mapserv to the cgi-bin directory of my apache server (apache_1.3.22). > However > when I request mapserv, I get an internal server error. > I am running my server on solaris 8. > I looked up apache's help for running cgi programs. I was able to run > other cgi > programs successfully. This is what the log file says: > ld.so.1: mapserv: fatal: libpng.so.2: open failed: No such file or > directory > [Thu Nov 15 13:18:11 2001] [error] [client 127.0.0.1] Premature end of > script > headers: /rstc/user1/erc/pushkar/apache_1.3.22/cgi-bin/mapserv > > Could anyone please help me out. Thanks, > -------------------------------------------------------------------------- > ---- > PUSHKAR S. PRADHAN > Master's Candidate in ELECTRICAL ENGINEERING, > MISSISSIPPI STATE UNIVERSITY, > STARKVILLE, MS 39759. > > Engineering Research Center > Box 9627 > Mississippi State, MS 39762-9627 > -------------------------------------------------------------------------- > ---- > > > ------------- End Forwarded Message ------------- > From bertha_bonita at yahoo.com Thu Nov 15 22:06:32 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Fri, 16 Nov 2001 07:06:32 +0100 (CET) Subject: [mapserver-users] Some General Questions ... Message-ID: <20011116060632.4565.qmail@web14105.mail.yahoo.com> Hi list: I have some questions .. - Why do you use MapServer and not others programas? - What other programs exists like MapServer (Free)? - How many people are working directly with computation areas ( i mean with computation carees )? thanks for your comments. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger Comunicaci?n instant?nea gratis con tu gente. http://messenger.yahoo.es From sutton_t at giug.net Fri Nov 16 01:35:30 2001 From: sutton_t at giug.net (Tim Sutton) Date: Fri, 16 Nov 2001 09:35:30 +0000 (GMT) Subject: [mapserver-users] Problems with gd missing freetype support in RedHat 7.2 Message-ID: Hi This is really just a general note for the archives so that if anyone encounters the same problem they will have an answer: Problem: Running php_mapscript (possibly will affect other forms of mapserver too) on RedHat 7.2 raises an error where truetype labels are used ('gd has not been compiled with freetype support'). I tried compiling gd from source, but it does not seem to create a libgd.so file, only a libgd.a file. This causes apache to not load properly. Solution: Grab the redhat 7.1 rpm for gd (version 1.8.3) which does seem to have freetype compiled in and downgrade the gd1.8.4 to this version. Restart the httpd server and you should one again be able to use truetype labels on your maps. Tim -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From bartvde at hotmail.com Fri Nov 16 11:02:29 2001 From: bartvde at hotmail.com (Bart van den Eijnden) Date: Fri, 16 Nov 2001 11:02:29 Subject: [mapserver-users] labelling in mapserver Message-ID: Hi everybody, I have a question about labelling in mapserver. How is it done, what kind of algorithms are used and how 'state-of-the-art' is the labelling engine? Thanks for the answer in advance! Bart The Netherlands _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From sjohnston at satshot.com Fri Nov 16 01:12:19 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 16 Nov 2001 09:12:19 +0000 (GMT) Subject: [mapserver-users] Can Mapserver do this? In-Reply-To: <3BF46143.7BAF66E@refractions.net> Message-ID: On Thu, 15 Nov 2001, Paul Ramsey wrote: > What exactly did you like about it? The glacially slow rendering? The > generally unattractive cartographic sensibilities? Hey, don't knock the glaciers. Relatively speaking they move pretty darn fast. ;) Cheers, Shawn From sjohnston at satshot.com Fri Nov 16 01:18:00 2001 From: sjohnston at satshot.com (Shawn L Johnston) Date: Fri, 16 Nov 2001 09:18:00 +0000 (GMT) Subject: [mapserver-users] Rosa applet under konqueror In-Reply-To: Message-ID: On Thu, 1 Nov 2001, Tim Sutton wrote: > Hi > > Doe anyone have the ROSA applet working correctly under konqueror > (kde2.2.1)? I just get 'please wait' message everytime. I am using the > sun 1.2.1 java sdk. I didn't have much luck with konqueror and the rosa applet either. Konqueror is still fairly bugy though ;( Shawn From Frederic.CATHIGNOL at astrium-space.com Fri Nov 16 06:34:39 2001 From: Frederic.CATHIGNOL at astrium-space.com (CATHIGNOL, Frederic) Date: Fri, 16 Nov 2001 15:34:39 +0100 Subject: [mapserver-users] Where to download DLL that was built after Sept 13 for WindowsNT / Appache Message-ID: Hello Guys; You wrote in http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 10/msg00001.html message : >There was a problem with the way PHP objects were handled internally with PHP 4.0.x. A fix for this was committed to CVS on Sept. >13, so you'll have to get a new DLL that was built after that date. I have the "Fatal error: Object has an invalid '_map_handle_' property", and I do not know where to download this .dll built after this date for windows NT and Apache server. Thanks to help me please,... F.CATHIGNOL From jimburnett at ntelos.net Fri Nov 16 07:30:43 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Fri, 16 Nov 2001 10:30:43 -0500 Subject: [mapserver-users] querymap size - mapscript Message-ID: <000e01c16eb3$a82ff0c0$6801a8c0@jburnett> Not sure if I asked this yet or not. I dont see an object for dynamically adding a query map obj. I need to be able to set the width and height of the quermap, just like I can do with the main map. Is there a way to do this? thanks! -jimb- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Fri Nov 16 07:54:01 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 16 Nov 2001 09:54:01 -0600 Subject: [mapserver-users] Screen Resolution Woes... Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E4006@postoffice.GASAI.Com> I'm really in my first year of creating dynamic web sites... so this is pretty basic. I keep running into issues with screen resolution on target machines. I go through the whole process of making a really great ;) MapServer application, designing it on my box (@ 1280 x 1024), then realize that half my audience is running 640 x 480. I'm mostly designing my apps for in-house clients now... but am on the cusp of putting things on the web - I can only imagine this problem will be compounded then. What I've been experimenting with is using JavaScript to detect the available screen real-estate, then building the interface based on those numbers (I'm using PHP with MapScript). This works OK, but seems quite cumbersome. What is really frustrating to me is that the width / height ratio doesn't seem to remain the same as screen resolution setting change - so simply shrinking / expanding the interface in a linear fashion doesn't work very well. I like the idea of having the application be automatically sized appropriately based on what's available (i.e. NOT having a "click here to increase / decrease the size). How do other people deal with this? From assefa at dmsolutions.ca Fri Nov 16 08:08:37 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Fri, 16 Nov 2001 11:08:37 -0500 Subject: [mapserver-users] Where to download DLL that was built after Sept 13 for WindowsNT / Appache References: Message-ID: <3BF53A05.CC4D4D45@dmsolutions.ca> There is one compiled around mi-October with php4.0.6 : http://www2.dmsolutions.ca/webtools/dl/php4.0.6_php_mapscript_35.zip "CATHIGNOL, Frederic" wrote: > Hello Guys; > You wrote in > http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 > 10/msg00001.html message : > >There was a problem with the way PHP objects were handled internally with > PHP 4.0.x. A fix for this was committed to CVS on Sept. > >13, so you'll have to get a new DLL that was built after that date. > > I have the "Fatal error: Object has an invalid '_map_handle_' property", and > I do not know where to download this .dll built after this date for > windows NT and Apache server. > > Thanks to help me please,... > > F.CATHIGNOL -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From jrpatton at northcoast.com Fri Nov 16 08:44:50 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Fri, 16 Nov 2001 08:44:50 -0800 Subject: [mapserver-users] Screen Resolution Woes... References: <3DFF131E4E6D2D4198CDD758F35A53536E4006@postoffice.GASAI.Com> Message-ID: <3BF54281.D246822A@northcoast.com> greetings, well, i just design to a smaller screen. but thats not what you want. your ideas are pretty cool. what i would suggest is that you design for the width of screen resolutions this is the main limiting factor, in my opinion. jay "Hankley, Chip" wrote: > I'm really in my first year of creating dynamic web sites... so this is > pretty basic. > > I keep running into issues with screen resolution on target machines. > > I go through the whole process of making a really great ;) MapServer > application, designing it on my box (@ 1280 x 1024), then realize that half > my audience is running 640 x 480. I'm mostly designing my apps for in-house > clients now... but am on the cusp of putting things on the web - I can only > imagine this problem will be compounded then. > > What I've been experimenting with is using JavaScript to detect the > available screen real-estate, then building the interface based on those > numbers (I'm using PHP with MapScript). This works OK, but seems quite > cumbersome. What is really frustrating to me is that the width / height > ratio doesn't seem to remain the same as screen resolution setting change - > so simply shrinking / expanding the interface in a linear fashion doesn't > work very well. I like the idea of having the application be automatically > sized appropriately based on what's available (i.e. NOT having a "click here > to increase / decrease the size). > > How do other people deal with this? From pkishor at GeoAnalytics.com Fri Nov 16 08:44:36 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 16 Nov 2001 10:44:36 -0600 Subject: [mapserver-users] Screen Resolution Woes... Message-ID: Here's what I do... Create three presets (small, medium, large for the geek challenged) designed for 600, 800, and larger monitors. Keep the aspect ratio same for all, set an application width accordingly. Default to medium, and give an option to the user to reset the size. Store the user's choice on the user's computer using a cookie. hth. pk/ > -----Original Message----- > From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] > Sent: Friday, November 16, 2001 9:54 AM > To: MapServer List (E-mail) > Subject: [mapserver-users] Screen Resolution Woes... > > > I'm really in my first year of creating dynamic web sites... > so this is > pretty basic. > > I keep running into issues with screen resolution on target machines. > > I go through the whole process of making a really great ;) MapServer > application, designing it on my box (@ 1280 x 1024), then > realize that half > my audience is running 640 x 480. I'm mostly designing my > apps for in-house > clients now... but am on the cusp of putting things on the > web - I can only > imagine this problem will be compounded then. > > What I've been experimenting with is using JavaScript to detect the > available screen real-estate, then building the interface > based on those > numbers (I'm using PHP with MapScript). This works OK, but seems quite > cumbersome. What is really frustrating to me is that the > width / height > ratio doesn't seem to remain the same as screen resolution > setting change - > so simply shrinking / expanding the interface in a linear > fashion doesn't > work very well. I like the idea of having the application be > automatically > sized appropriately based on what's available (i.e. NOT > having a "click here > to increase / decrease the size). > > How do other people deal with this? > From aalgera at ibama.gov.br Fri Nov 16 09:04:11 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Fri, 16 Nov 2001 15:04:11 -0200 (BRST) Subject: [mapserver-users] maporaclespatial In-Reply-To: Message-ID: Great to read that oracle spatial is working with mapserver. I'd like to do some tests, but haven't been able to find the shp2sdo utility in the oracle in the oracle distributions we have over here. Anyone out there knows where to find it? Thanks, Andries On Wed, 14 Nov 2001, Joel Schlagel wrote: > > we used oracle shp2sdo utility to convert shape files to oracle > loader format. > > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From jga at scot.cnes.fr Fri Nov 16 09:19:28 2001 From: jga at scot.cnes.fr (jrom) Date: Fri, 16 Nov 2001 18:19:28 +0100 Subject: [mapserver-users] value not check in itemquery request Message-ID: <200111161712.fAGHC9i12261@cnes.fr> Hi, I've got a problem with itemnquery request. I'm using mapserver 3.5 and postgis 0.5.1 itemnquery request with a qlayer and item parameter returns me all the records from the qlayer. It seems that the value parameter is not used... Any help will be appreciated :) jrom From aalgera at ibama.gov.br Fri Nov 16 09:14:18 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Fri, 16 Nov 2001 15:14:18 -0200 (BRST) Subject: [mapserver-users] Mapserver on Solaris Message-ID: Over the last couple of days I've been trying to install mapserver on Solaris 2.6 Sparc. I found that I wasn't able to compile with gcc-3.0.1 and gcc-3.0.2. I got errors regarding 'gxx_personality_v0'. It seems it has got something to do with c++ compiler. Using gcc-2.95.3 this problem disappeared and I was able to compile the mapserver binary. In order to compile the php_mapscript module I found that I had to have installed the proj.4 software even using the --without-proj option during configuration. I also found that I had to add the option -shared to the LDFLAGS in the php_mapscript Makefile. Hope this information is usefull. Andries -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From jimburnett at ntelos.net Fri Nov 16 09:25:01 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Fri, 16 Nov 2001 12:25:01 -0500 Subject: [mapserver-users] gd1.8.4 problem Message-ID: <007401c16ec3$a03e9aa0$6801a8c0@jburnett> Hey, did you happen to get an emails reguarding the gd1.8.4 and freetype 2 problem? I can compile from source just fine, but when I run the gdtestttf test program for truetype fonts, it saiys gd was not compiled with HAVE_LIBTTF, but you dont use HAVE_LIBTTF wit hfreetype 2. gd bug? -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at mediaone.net Fri Nov 16 10:00:17 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Fri, 16 Nov 2001 13:00:17 -0500 Subject: [mapserver-users] Screen Resolution Woes... References: <3DFF131E4E6D2D4198CDD758F35A53536E4006@postoffice.GASAI.Com> <3BF54281.D246822A@northcoast.com> Message-ID: <3BF55431.377B419E@mediaone.net> The only way(s) I know that this can be done are not perfect. You can use javascript to get the current browser size and populate hidden form variables and then design your UI so that it basically does a submit on any changes to the user makes. This way you get the current browser size on the PHP side and can make appropriate changes in the page layout. I also think you can set an window event handler so on page resize you could then have it do a form submit with the new browser size and have PHP send back an updated page layout. my $.02, -Steve "Jason R. Patton" wrote: > > greetings, > > well, i just design to a smaller screen. but thats not what you want. your ideas > are pretty cool. what i would suggest is that you design for the width of screen > resolutions this is the main limiting factor, in my opinion. > > jay > > "Hankley, Chip" wrote: > > > I'm really in my first year of creating dynamic web sites... so this is > > pretty basic. > > > > I keep running into issues with screen resolution on target machines. > > > > I go through the whole process of making a really great ;) MapServer > > application, designing it on my box (@ 1280 x 1024), then realize that half > > my audience is running 640 x 480. I'm mostly designing my apps for in-house > > clients now... but am on the cusp of putting things on the web - I can only > > imagine this problem will be compounded then. > > > > What I've been experimenting with is using JavaScript to detect the > > available screen real-estate, then building the interface based on those > > numbers (I'm using PHP with MapScript). This works OK, but seems quite > > cumbersome. What is really frustrating to me is that the width / height > > ratio doesn't seem to remain the same as screen resolution setting change - > > so simply shrinking / expanding the interface in a linear fashion doesn't > > work very well. I like the idea of having the application be automatically > > sized appropriately based on what's available (i.e. NOT having a "click here > > to increase / decrease the size). > > > > How do other people deal with this? From joel.d.schlagel at usace.army.mil Fri Nov 16 10:25:35 2001 From: joel.d.schlagel at usace.army.mil (Joel D. Schlagel) Date: Fri, 16 Nov 2001 13:25:35 -0500 Subject: [mapserver-users] maporaclespatial In-Reply-To: Message-ID: Andries you can download the shp2sdo program from http://otn.oracle.com/software/products/spatial/content.html to access the page you need to sign up for an oracle tech net account, but its free. the utility is available for solaris and nt. the format for oracle spatial geometry types changed from a 1 digit to a four digit code, shp2sdo still output the one digit geometry code, while maporaclespatial needs the four digit code. e.g. sed 's/3|1|3|1|/2003|1|3|1|/g' vt_cty_P.dat > vt_cty_Px.dat then use sqlloader to load -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Andries J. Algera Sent: Friday, November 16, 2001 12:04 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] maporaclespatial Great to read that oracle spatial is working with mapserver. I'd like to do some tests, but haven't been able to find the shp2sdo utility in the oracle in the oracle distributions we have over here. Anyone out there knows where to find it? Thanks, Andries On Wed, 14 Nov 2001, Joel Schlagel wrote: > > we used oracle shp2sdo utility to convert shape files to oracle > loader format. > > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From steve.lime at dnr.state.mn.us Fri Nov 16 11:00:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 16 Nov 2001 13:00:30 -0600 Subject: [mapserver-users] value not check in itemquery request Message-ID: Itemqueries have changed drastically in 3.5. Neither the item nor the value parameter are used. See examples at: http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> jrom 11/16/01 11:19AM >>> Hi, I've got a problem with itemnquery request. I'm using mapserver 3.5 and postgis 0.5.1 itemnquery request with a qlayer and item parameter returns me all the records from the qlayer. It seems that the value parameter is not used... Any help will be appreciated :) jrom From scott at esrp.csustan.edu Fri Nov 16 13:50:23 2001 From: scott at esrp.csustan.edu (Scott Phillips) Date: Fri, 16 Nov 2001 13:50:23 -0800 Subject: [mapserver-users] Preparing tif images Message-ID: <3BF58A1F.802@esrp.csustan.edu> To change to 8-bit pallete in Paint Shop, use Colors->Reduce Color Depth to reduce the colors to 256 colors (makes 8 bit palleted image). It lets you choose from a few methods (Median Cut, Octree, Standard). You can try each out to see what gives the best results, Octree usually works good for the images I've converted. Also, if you have many images you could use ImageMagick, a program with command tools you could use to do a bunch of images in batch. I think the command line for this is something like: convert -colors 255 [ORIGINAL IMAGE] [NEW IMAGE] or convert -antialias -colors 255 [ORIGINAL IMAGE] [NEW IMAGE] You can make a batch file like: ---------------------------------------------------- REM colordepth.bat - reduces the color depth convert -colors 255 %1 %2 ---------------------------------------------------- Then run a second batch file like: ---------------------------------------------------- REM runs colordepth.bat for a bunch of files call colordepth.bat foo1.tif foo1b.tif call colordepth.bat foo2.tif foo2b.tif call colordepth.bat foo3.tif foo3b.tif ---------------------------------------------------- This method can be a time saver if you are working on a large set of files. Also, neither program keeps the GeoTIFF tags, so you need to make sure you save or create a World File for these. If they are GeoTIFF and don't have world files, you can use the "geotifcp" program that comes with the GeoTIFF library to make them: geotifcp -TFW foo.tif (this reads Geotiff file foo.tif and makes a new World file called foo.tfw) Once you have the world file from the original image, you can just rename it to match your new 8-bit image. - Scott From gthornberry at sdimaps.com Fri Nov 16 14:22:04 2001 From: gthornberry at sdimaps.com (Gerald Thornberry) Date: Fri, 16 Nov 2001 17:22:04 -0500 (EST) Subject: [mapserver-users] off-topic: shape to DWG/DXF Message-ID: Is anyone aware of a windows library for converting shapefiles to DWG or DXF? (preferably free) Thanks. -- Gerald Thornberry Technical Support Manager Spatial Data Integrations, Inc. From teb at mallit.fr.umn.edu Fri Nov 16 14:42:05 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Fri, 16 Nov 2001 16:42:05 -0600 (CST) Subject: [mapserver-users] drop down menus (fwd) Message-ID: <200111162242.QAA07072@mallit.fr.umn.edu> From steven.drake at richardson.army.mil Fri Nov 16 13:14:16 2001 From: steven.drake at richardson.army.mil (Drake Steven T DPW ENV NAT RES ITAM(n)) Date: Fri, 16 Nov 2001 21:14:16 -0000 Subject: drop down menus Message-ID: Newbie question... I would like to add a drop down menu with many choices of data layers to display. I would like the user to have the option of choosing none, a combination, or all layers, and keeping them 'on' through re-draws until toggled 'off' from the same drop down menu. Any suggestions how to go about this? Thank you in advance. Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From steven.drake at richardson.army.mil Fri Nov 16 16:23:07 2001 From: steven.drake at richardson.army.mil (Drake Steven T DPW ENV NAT RES ITAM(n)) Date: Sat, 17 Nov 2001 00:23:07 -0000 Subject: [mapserver-users] drop down menu question Message-ID: Let's try this again.... I would like to add a drop down menu with many choices of data layers to display. I would like the user to have the option of choosing none, a combination, or all layers, and keeping them 'on' through re-draws until toggled 'off' from the same drop down menu. Any suggestions how to go about this? Thanks in advance, Steven Drake -------------- next part -------------- An HTML attachment was scrubbed... URL: From DebasishS at riskinc.com Sat Nov 17 02:48:23 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Sat, 17 Nov 2001 16:18:23 +0530 Subject: [mapserver-users] MapScript and OracleSpatial Message-ID: Hi, Does the MapScript included with MapServer version 3.5 supports Oracle Spatial . thanks and regards Debasish Sahu. Senior Software Engineer RMS India. From phercad at terra.es Sat Nov 17 03:55:01 2001 From: phercad at terra.es (Juan Marin Otero) Date: Sat, 17 Nov 2001 05:55:01 -0600 (CST) Subject: [mapserver-users] Date: Sat, 17 Nov 2001 12:53:30 +0100 Message-ID: auth 06150f08 subscribe mapserver-users phercad at terra.es From DebasishS at riskinc.com Sat Nov 17 05:04:11 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Sat, 17 Nov 2001 18:34:11 +0530 Subject: [mapserver-users] MapScript Java Message-ID: Hi, Has anybody compiled the latest mapscript version 3.5 interface using SWIG .If yes please do let me know the steps or if anybody can provide me with the java classes and precompiled mapscript dll. thanks and regards Debasish Sahu. Senior Software Engineer RMS India. From DebasishS at riskinc.com Sat Nov 17 06:14:45 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Sat, 17 Nov 2001 19:44:45 +0530 Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. Message-ID: Hi, Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you please provide me with the workspace file. Am getting the following error when i try to compile Linking... mapserv.obj : error LNK2005: _main already defined in legend.obj scalebar.obj : error LNK2005: _main already defined in legend.obj shp2img.obj : error LNK2005: _main already defined in legend.obj shpindex.obj : error LNK2005: _main already defined in legend.obj shptree.obj : error LNK2005: _main already defined in legend.obj sortshp.obj : error LNK2005: _main already defined in legend.obj mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageDestroy maputil.obj : error LNK2001: unresolved external symbol _gdImageDestroy scalebar.obj : error LNK2001: unresolved external symbol _gdImageDestroy shp2img.obj : error LNK2001: unresolved external symbol _gdImageDestroy legend.obj : error LNK2001: unresolved external symbol _gdImageDestroy maplegend.obj : error LNK2001: unresolved external symbol _gdImageDestroy mapscale.obj : error LNK2001: unresolved external symbol _gdImageDestroy mapserv.obj : error LNK2001: unresolved external symbol _gdImageDestroy mapfile.obj : error LNK2001: unresolved external symbol _gdImageColorAllocate mapraster.obj : error LNK2001: unresolved external symbol _gdImageColorAllocate mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageColorAllocate mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp shptree.obj : error LNK2001: unresolved external symbol _strcasecmp mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp maphash.obj : error LNK2001: unresolved external symbol _strcasecmp mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp maputil.obj : error LNK2001: unresolved external symbol _strcasecmp mapfile.obj : error LNK2001: unresolved external symbol _regfree mapparser.obj : error LNK2001: unresolved external symbol _regfree mapserv.obj : error LNK2001: unresolved external symbol _regfree mapfile.obj : error LNK2001: unresolved external symbol _regexec mapparser.obj : error LNK2001: unresolved external symbol _regexec mapserv.obj : error LNK2001: unresolved external symbol _regexec maputil.obj : error LNK2001: unresolved external symbol _regexec mapfile.obj : error LNK2001: unresolved external symbol _regcomp mapparser.obj : error LNK2001: unresolved external symbol _regcomp mapserv.obj : error LNK2001: unresolved external symbol _regcomp maputil.obj : error LNK2001: unresolved external symbol _regcomp maplabel.obj : error LNK2001: unresolved external symbol _gdFontGiant maplabel.obj : error LNK2001: unresolved external symbol _gdFontLarge maplabel.obj : error LNK2001: unresolved external symbol _gdFontMediumBold maplabel.obj : error LNK2001: unresolved external symbol _gdFontSmall maplabel.obj : error LNK2001: unresolved external symbol _gdFontTiny maplabel.obj : error LNK2001: unresolved external symbol _gdImageString maplegend.obj : error LNK2001: unresolved external symbol _gdImageCreate mapscale.obj : error LNK2001: unresolved external symbol _gdImageCreate mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCreate maputil.obj : error LNK2001: unresolved external symbol _gdImageCreate maplegend.obj : error LNK2001: unresolved external symbol _gdImageColorTransparent mapscale.obj : error LNK2001: unresolved external symbol _gdImageColorTransparent mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageColorTransparent maputil.obj : error LNK2001: unresolved external symbol _gdImageColorTransparent mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageSetPixel mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetPixel mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageLine mapscale.obj : error LNK2001: unresolved external symbol _gdImageLine mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageLine mapraster.obj : error LNK2001: unresolved external symbol _gdImageRectangle mapscale.obj : error LNK2001: unresolved external symbol _gdImageRectangle mapraster.obj : error LNK2001: unresolved external symbol _gdImageFilledRectangle mapscale.obj : error LNK2001: unresolved external symbol _gdImageFilledRectangle mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp sortshp.obj : error LNK2001: unresolved external symbol _strncasecmp mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageFilledPolygon mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageFillToBorder mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageArc mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetTile mapsymbol.obj : error LNK2001: unresolved external symbol _gdImagePolygon mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCopy mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetStyle mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetBrush maputil.obj : error LNK2001: unresolved external symbol _gdImageInterlace shpindex.obj : error LNK2001: unresolved external symbol _SHPClose shpindex.obj : error LNK2001: unresolved external symbol _SHPReadBounds shpindex.obj : error LNK2001: unresolved external symbol _SHPGetInfo shpindex.obj : error LNK2001: unresolved external symbol _SHPOpen Debug/mapserver.exe : fatal error LNK1120: 32 unresolved externals Error executing link.exe. mapserver.exe - 73 error(s), 109 warning(s) Debasish Sahu. Senior Software Engineer RMS India. From morissette at dmsolutions.ca Sat Nov 17 08:43:46 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Sat, 17 Nov 2001 11:43:46 -0500 Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. References: Message-ID: <3BF693C2.63C7E0AA@dmsolutions.ca> DebasishS at riskinc.com wrote: > > Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you > please provide me with the workspace file. > Am getting the following error when i try to compile > The source distribution contains the VC++ Makefiles (makefile.vc) that we use to compile MapServer on Windows... see the file README.WIN32 for the details. There is no project Workspace available officially for sure... unless someone on the list has built one for their own needs. -- ------------------------------------------------------------ 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 gispmpf at zipmail.com.br Sat Nov 17 09:42:28 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Sat, 17 Nov 2001 15:42:28 -0200 Subject: [mapserver-users] =?iso-8859-1?Q?query=20example?= Message-ID: <3BE74F2600019C4E@www.zipmail.com.br> Hello all, I need for yestarday an example to se the use os a query in a dinamic map using mapserver and postgis. Anybody could help me? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From aalgera at ibama.gov.br Sat Nov 17 09:48:16 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Sat, 17 Nov 2001 15:48:16 -0200 (BRST) Subject: [mapserver-users] MapScript and OracleSpatial In-Reply-To: Message-ID: I didn't have any problems using OracleSpatial with php-Mapscript. Andries On Sat, 17 Nov 2001 DebasishS at riskinc.com wrote: > Hi, > > Does the MapScript included with MapServer version 3.5 supports Oracle > Spatial . > > > thanks and regards > Debasish Sahu. > Senior Software Engineer > RMS India. > > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From bertha_bonita at yahoo.com Sat Nov 17 22:31:24 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Sun, 18 Nov 2001 07:31:24 +0100 (CET) Subject: [mapserver-users] MapServer Message-ID: <20011118063124.26278.qmail@web14103.mail.yahoo.com> Hi lists.! i need understand how mapserver works for generate all the images ... what are the process that do it? i know in this part, one of the principal images are generated, but i don't understand how really work.. and the other images in mode=query so, if you can help me i apreciate your comments thanks. ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger Comunicaci?n instant?nea gratis con tu gente. http://messenger.yahoo.es From gmader at GeoAnalytics.com Sun Nov 18 09:44:52 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Sun, 18 Nov 2001 11:44:52 -0600 Subject: [mapserver-users] How do I determine the direction of a line or polyline with Shape lib? Message-ID: Hi Frank and list, I am sorry that this is a little off topic, but I am working on my simple(primitive?) geocoder program, that hopefully will be useful to Mapserver users. How do I determine the directionality of a line or polyline with shapelib? Is directionality controlled by the order of the nodes, and thus the direction that a line was digitized? Is there some attribute that I am unaware of from the documentation that shows directionality? When one assigns an address to a line in arcview, it is usually in the form of "from address, to address", but this still implies that directionality is known. I suppose that I could always derive directionality by looking at adjoining line elements, but this would be potentially wrong in a lot of cases. Thanks, Greg Mader GIS analyst, and CompSci student. Chicago, IL From j1mmm at hotmail.com Sun Nov 18 19:04:21 2001 From: j1mmm at hotmail.com (j1mmm) Date: Mon, 19 Nov 2001 10:04:21 +0700 Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. References: Message-ID: on VC, project menu and click setting C++ tab, category: Preprocessor in undefine sysbols -- put ex. -DUSE_JPEG -DUSE_GD_GIF and all your needed predefine in addtional include directory -- put directory of needed OBJ, ex. -I./gd-1.8.4 -I./tiff-v3.5.6-beta/libtiff -I./jpeg-6b -I./regex-0.12 -I. /gdal-1.1.5/ogr/ogrsf_frmts -I./gdal-1.1.5/ogr -I./gdal-1.1.5/ogr/../port Link tab, category Input in additional library path -- put your needed Lib path,ex /gd-1.8.4/gd.lib ./jpeg-6b/jpeg.lib ./lpng1011/libpng.lib ./zlib-1.1.3/zlib.lib ./freetype-2.0.1/obj/freetype.lib all these vary setting is exist in Makefile.vc hope useful j1mmm at hotmail.com ----- Original Message ----- From: To: Sent: Saturday, November 17, 2001 9:14 PM Subject: [mapserver-users] MapServer Visual C++ 6.0 Project Workspace. > Hi, > > Has anbody tried compiling Mapserver 3.5 using Visual C++ 6.0 . Can you > please provide me with the workspace file. > Am getting the following error when i try to compile > > Linking... > mapserv.obj : error LNK2005: _main already defined in legend.obj > scalebar.obj : error LNK2005: _main already defined in legend.obj > shp2img.obj : error LNK2005: _main already defined in legend.obj > shpindex.obj : error LNK2005: _main already defined in legend.obj > shptree.obj : error LNK2005: _main already defined in legend.obj > sortshp.obj : error LNK2005: _main already defined in legend.obj > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maputil.obj : error LNK2001: unresolved external symbol _gdImageDestroy > scalebar.obj : error LNK2001: unresolved external symbol _gdImageDestroy > shp2img.obj : error LNK2001: unresolved external symbol _gdImageDestroy > legend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > maplegend.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapscale.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapserv.obj : error LNK2001: unresolved external symbol _gdImageDestroy > mapfile.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorAllocate > mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp > shptree.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp > maphash.obj : error LNK2001: unresolved external symbol _strcasecmp > mapserv.obj : error LNK2001: unresolved external symbol _strcasecmp > maputil.obj : error LNK2001: unresolved external symbol _strcasecmp > mapfile.obj : error LNK2001: unresolved external symbol _regfree > mapparser.obj : error LNK2001: unresolved external symbol _regfree > mapserv.obj : error LNK2001: unresolved external symbol _regfree > mapfile.obj : error LNK2001: unresolved external symbol _regexec > mapparser.obj : error LNK2001: unresolved external symbol _regexec > mapserv.obj : error LNK2001: unresolved external symbol _regexec > maputil.obj : error LNK2001: unresolved external symbol _regexec > mapfile.obj : error LNK2001: unresolved external symbol _regcomp > mapparser.obj : error LNK2001: unresolved external symbol _regcomp > mapserv.obj : error LNK2001: unresolved external symbol _regcomp > maputil.obj : error LNK2001: unresolved external symbol _regcomp > maplabel.obj : error LNK2001: unresolved external symbol _gdFontGiant > maplabel.obj : error LNK2001: unresolved external symbol _gdFontLarge > maplabel.obj : error LNK2001: unresolved external symbol _gdFontMediumBold > maplabel.obj : error LNK2001: unresolved external symbol _gdFontSmall > maplabel.obj : error LNK2001: unresolved external symbol _gdFontTiny > maplabel.obj : error LNK2001: unresolved external symbol _gdImageString > maplegend.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapscale.obj : error LNK2001: unresolved external symbol _gdImageCreate > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCreate > maputil.obj : error LNK2001: unresolved external symbol _gdImageCreate > maplegend.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > maputil.obj : error LNK2001: unresolved external symbol > _gdImageColorTransparent > mapprimitive.obj : error LNK2001: unresolved external symbol > _gdImageSetPixel > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetPixel > mapprimitive.obj : error LNK2001: unresolved external symbol _gdImageLine > mapscale.obj : error LNK2001: unresolved external symbol _gdImageLine > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageLine > mapraster.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapscale.obj : error LNK2001: unresolved external symbol _gdImageRectangle > mapraster.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapscale.obj : error LNK2001: unresolved external symbol > _gdImageFilledRectangle > mapserv.obj : error LNK2001: unresolved external symbol _strncasecmp > sortshp.obj : error LNK2001: unresolved external symbol _strncasecmp > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFilledPolygon > mapsymbol.obj : error LNK2001: unresolved external symbol > _gdImageFillToBorder > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageArc > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetTile > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImagePolygon > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageCopy > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetStyle > mapsymbol.obj : error LNK2001: unresolved external symbol _gdImageSetBrush > maputil.obj : error LNK2001: unresolved external symbol _gdImageInterlace > shpindex.obj : error LNK2001: unresolved external symbol _SHPClose > shpindex.obj : error LNK2001: unresolved external symbol _SHPReadBounds > shpindex.obj : error LNK2001: unresolved external symbol _SHPGetInfo > shpindex.obj : error LNK2001: unresolved external symbol _SHPOpen > Debug/mapserver.exe : fatal error LNK1120: 32 unresolved externals > Error executing link.exe. > > mapserver.exe - 73 error(s), 109 warning(s) > > > Debasish Sahu. > Senior Software Engineer > RMS India. > > > From joemayfair at usa.net Sun Nov 18 21:00:49 2001 From: joemayfair at usa.net (Walt Lin) Date: Mon, 19 Nov 2001 00:00:49 -0500 Subject: [mapserver-users] overlapping map data Message-ID: <20011119000049.A6605@eggbert> Hi-- I'm trying to get a worldwide mapserver going. I have the TIGER data and it's producing nice looking US maps. I also have world data, but it's not as good. The plan is to switch over to the TIGER data at a certain scale if someone is looking at the US. The problem is if they are on a border (say, Canada or Mexico), is there any way in mapserver to show the US TIGER data and the worldwide Canada/Mexico data (and NOT the worldwide US data). The worldwide data is in one shp file per layer. So, for example, if someone is on the border can I tell mapserver to show the cities in Candada and Mexico but not the cities in the US, even though there is one worldwide city file? Thanks for any help. Walt Lin From jga at scot.cnes.fr Mon Nov 19 01:08:10 2001 From: jga at scot.cnes.fr (jrom) Date: Mon, 19 Nov 2001 10:08:10 +0100 Subject: [mapserver-users] value not check in itemquery request Message-ID: <200111190908.fAJ98KU28091@cnes.fr> > Itemqueries have changed drastically in 3.5. Neither the item nor the > value > parameter are used. See examples at: > > http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html > Hi, I've looked at these examples but it does not solve my problem. Since i'm using postgis, the FILTER parameter in the mapfile is already used and i cannot modify the mapfile during query (with mapscript for example) So i have a layer like this: LAYER NAME "roads" CONNECTIONTYPE POSTGIS CONNECTION "user=toto password=toto dbname=toto" DATA "geo_value from roads" FILTER "area2D(geo_value) > 30000000" CLASSITEM "voirie" TYPE POLYGON CLASS COLOR 132 132 23 END END Assuming i want to get all the data with the "voirie" column including the keyword "RN", i would like to do this with the mapserver cgi command line as i done it before with < 3.5 i.e. something like: mapserv?map=/test.map&mode=itemnquery&layer=roads&item=voirie&value=RN I've tried this but it doesn't work either: mapserv?map=/test.map&mode=itemnquery&qlayer=roads&filteritem=voirie&filter=RN In this case mapserver send me all the data in roads layer and not those including RN in "voirie" column. Regards jrom From drechsler at gmx.net Mon Nov 19 05:03:44 2001 From: drechsler at gmx.net (Klaus Drechsler) Date: Mon, 19 Nov 2001 14:03:44 +0100 Subject: [mapserver-users] Is MapServer for me? Message-ID: <5.0.0.25.2.20011119135810.01f01888@192.168.0.1> for a resaerch project I have to do the following tasks: 1. I have a client with a gps receiver. With the gps-coordinates I want to query a server and get back the location where I am (city-name or street name or both ...) as ***ascii string*** (without a map) ... 2. Like in task one I have a client with a gps receiver. This time I send the gps-coordinates to a server and want a part of a map (as gif/jpg or something like that) back where I can see wher I am and the near neighbourhood. Is there (open source) software that can do the above tasks? I found that GRASS could be what I am searching for (I thought), but in the GRASS Mailinglist someone told me, that GRASS is overkill and I should take a look at MapServer... So thats why I ask the professionals in this mailinglist: Can mapserver do the above tasks? I think that Task 2 is possible, but I need a solution (or ideas) for task 1. I hope someone can give me hints on this! Bye, Klaus -- Zentrum f?r Graphische Datenverarbeitung (ZGDV) Abt. Mobile Informationsvisualisierung email: klaus.drechsler at zgdv.de zgdv at kdnet.de From david.fawcett at moea.state.mn.us Mon Nov 19 06:21:01 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Mon, 19 Nov 2001 08:21:01 -0600 Subject: [mapserver-users] overlapping map data Message-ID: Walt, Here is a possible solution. Create two different layers for your Worldwide dataset. Make them scale dependent using MINSCALE and MAXSCALE so that one appears at smaller scales and the other appears at larger scales. (They don't appear at the same time, and the scale cut-off is the point at which you want your tiger data to appear) For the Worldwide data layer that you want to appear at smaller scales, set a filter so the US data doesn't show up. Make your TIGER data layer scale dependent, so it only shows up below a certain scale. I am still becoming familiar with the 3.5 syntax, so I can't tell you precisely how to implement it, but I am sure that someone else can. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Walt Lin[SMTP:joemayfair at usa.net] > Sent: Sunday, November 18, 2001 11:00 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] overlapping map data > > Hi-- I'm trying to get a worldwide mapserver going. I have the TIGER data and it's producing nice looking US maps. I also have world data, but it's not as good. The plan is to switch over to the TIGER data at a certain scale if someone is looking at the US. The problem is if they are on a border (say, Canada or Mexico), is there any way in mapserver to show the US TIGER data and the worldwide Canada/Mexico data (and NOT the worldwide US data). The worldwide data is in one shp file per layer. So, for example, if someone is on the border can I tell mapserver to show the cities in Candada and Mexico but not the cities in the US, even though there is one worldwide city file? > > Thanks for any help. > Walt Lin > From chris at casad.net Mon Nov 19 06:35:55 2001 From: chris at casad.net (Chris Casad) Date: Mon, 19 Nov 2001 09:35:55 -0500 Subject: [mapserver-users] Try Again ... Large scale implementation Message-ID: Hello: I would really like to be able to use MapServer for my project but I need some evidence that it can handle what I need!! I was wondering if anyone has used MapServer for a large scale implementation where you could be having 100's of hits per minute or even per second. It may or may not return an image. At the very least it would use a lat/long to return a city/zip. Can MapServer handle a task like this? Would we have to use a large number of servers to handle this number of requests? Any help or suggestions would be greatly appreciated. Anyone have any real world implementations like this? Thank you, Chris From ed at topozone.com Mon Nov 19 07:09:22 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 19 Nov 2001 10:09:22 -0500 Subject: [mapserver-users] Try Again ... Large scale implementation Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7834@mercator.topozone.com> Chris - This is a pretty complicated question. The short answer is, sure - MapServer can do that. Most things could do it, depending on how much hardware you throw at them. You don't do into a lot of detail, and that makes it really hard to answer your question well. Saying "100's of hits per minute or even per second" is a load range of 60 times - there's a long way between 100 hits a minute and 100 hits a second. Do you know what your requirements will be? You might not want to use MapServer for everything. You mention using lat/long to return a city/zip, for example. Depending on exactly what you're trying to do (do you need the exact zip code that point lies in, or do you need the nearest zip code centroid?) there might be other (better) ways to address that specific task. What kind of data are you using? Do you have a single vector layer, 14 raster data layers, or 73 vector layers on top of a raster base map? There's a huge range in there. There are lots of folks here willing to help, but if you can possibly be more specific about what your requirements are it will be MUCH easier to help. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Chris Casad [mailto:chris at casad.net] Sent: Monday, November 19, 2001 9:36 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Try Again ... Large scale implementation Hello: I would really like to be able to use MapServer for my project but I need some evidence that it can handle what I need!! I was wondering if anyone has used MapServer for a large scale implementation where you could be having 100's of hits per minute or even per second. It may or may not return an image. At the very least it would use a lat/long to return a city/zip. Can MapServer handle a task like this? Would we have to use a large number of servers to handle this number of requests? Any help or suggestions would be greatly appreciated. Anyone have any real world implementations like this? Thank you, Chris From chris at casad.net Mon Nov 19 08:05:46 2001 From: chris at casad.net (Chris Casad) Date: Mon, 19 Nov 2001 11:05:46 -0500 Subject: [mapserver-users] Try Again ... Large scale implementation In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220E7834@mercator.topozone.com> Message-ID: Ed: Thank you for the response. I'm glad you let me know that my question was very vague, I wasn't sure if no one could answer it or what. As for more detail ... The simple version: The application in its simplest form would have a zipcode polygon vector layer that is used to return the zip/cityname where the lat/long point lies in. For example, the front-end request would pass a lat/long and app would respond with the zip/cityname the lat/long resides in. For something this simple is there a better way then using MapServer? The complex version: The application in its complex form would have a zipcode polygon vector layer and a street line vector layer. The front-end request would pass a lat/long and the app would respond with the zip/cityname and a zoomed in image around the lat/long point. I understand that saying "100's of hits per minute or per second" is a wide range. I guess I was just being broad in the fact that I was hoping to get some examples for others on what they need hardware wise if they have 100's per minute or per second. Unfortunately you never really now whether you are going to get 100's per minute or 100's per second so I am trying to look at best and worst case scenarios. =) I have seen a lot of threads about which is better ArcIMS or MapServer. And from what I have read MapServer is faster. But is that a simple one to one request comparison, where MapServer just draws a map faster? If I have 100's of hits per second do I need to have 50 more servers to handle these requests than ArcIMS would need? If so then it would probably be cheaper to pay for ArcIMS and to not have to deal with a large number of servers? Correct? Unfortunately I haven't noticed any threads about anyone using MapServer for large-scale implementations (hence my thread). Also, I know that ArcIMS is somewhat easily scaleable if your hit counts increase. Can MapServer be just as easily scaleable if the need arises or is there a lot more coding you would have to do? I would love to be able to use MapServer but I don't want to jump into the deep end not having any idea of what to expect using it. I can get an estimate from ESRI for ArcIMS on how many servers are needed for certain large scale hit counts, I am hoping to get the same type of estimates or examples from users of MapServer so that I can hopefully use MapServer. I hope this is a little more detailed. =) Thanks Chris -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, November 19, 2001 10:09 AM To: Chris Casad; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Try Again ... Large scale implementation Chris - This is a pretty complicated question. The short answer is, sure - MapServer can do that. Most things could do it, depending on how much hardware you throw at them. You don't do into a lot of detail, and that makes it really hard to answer your question well. Saying "100's of hits per minute or even per second" is a load range of 60 times - there's a long way between 100 hits a minute and 100 hits a second. Do you know what your requirements will be? You might not want to use MapServer for everything. You mention using lat/long to return a city/zip, for example. Depending on exactly what you're trying to do (do you need the exact zip code that point lies in, or do you need the nearest zip code centroid?) there might be other (better) ways to address that specific task. What kind of data are you using? Do you have a single vector layer, 14 raster data layers, or 73 vector layers on top of a raster base map? There's a huge range in there. There are lots of folks here willing to help, but if you can possibly be more specific about what your requirements are it will be MUCH easier to help. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Chris Casad [mailto:chris at casad.net] Sent: Monday, November 19, 2001 9:36 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Try Again ... Large scale implementation Hello: I would really like to be able to use MapServer for my project but I need some evidence that it can handle what I need!! I was wondering if anyone has used MapServer for a large scale implementation where you could be having 100's of hits per minute or even per second. It may or may not return an image. At the very least it would use a lat/long to return a city/zip. Can MapServer handle a task like this? Would we have to use a large number of servers to handle this number of requests? Any help or suggestions would be greatly appreciated. Anyone have any real world implementations like this? Thank you, Chris From pramsey at refractions.net Mon Nov 19 09:30:49 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 19 Nov 2001 09:30:49 -0800 Subject: [mapserver-users] Is MapServer for me? References: <5.0.0.25.2.20011119135810.01f01888@192.168.0.1> Message-ID: <3BF941C9.787EA57A@refractions.net> Klaus Drechsler wrote: > > 1. > I have a client with a gps receiver. With the gps-coordinates I want > to query a server and get back the location where I am (city-name or > street name or both ...) as ***ascii string*** (without a map) ... Mapserver with Mapscript could do this. There is no rule that you have to render a map in response to a query. Just run the query in mapscript and then return the requisite string. The real trick will be figuring out what constitutes being "on a street" based on a single GPS query point. (Within 20 meters of a street? If within 20 meters of two streets, then which street are you "on"?) > 2. > Like in task one I have a client with a gps receiver. This time I send > the gps-coordinates to a server and want a part of a map (as gif/jpg > or something like that) back where I can see wher I am and the near > neighbourhood. > > Is there (open source) software that can do the above tasks? > I found that GRASS could be what I am searching for (I thought), but > in the GRASS Mailinglist someone told me, that GRASS is overkill and I > should take a look at MapServer... > > So thats why I ask the professionals in this mailinglist: > Can mapserver do the above tasks? > > I think that Task 2 is possible, but I need a solution (or ideas) for task 1. > > I hope someone can give me hints on this! > > Bye, > Klaus > > -- > Zentrum f?r Graphische Datenverarbeitung (ZGDV) > Abt. Mobile Informationsvisualisierung > email: klaus.drechsler at zgdv.de > zgdv at kdnet.de -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Mon Nov 19 09:45:25 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 19 Nov 2001 09:45:25 -0800 Subject: [mapserver-users] Try Again ... Large scale implementation References: Message-ID: <3BF94535.D9D53BA6@refractions.net> Chris Casad wrote: > I have seen a lot of threads about which is better ArcIMS or MapServer. And > from what I have read MapServer is faster. But is that a simple one to one > request comparison, where MapServer just draws a map faster? 1) Yes, that is the fundamental unit of comparison. Based on the same data, which system requires more effort to get the fundamental result (a map). > If I have > 100's of hits per second do I need to have 50 more servers to handle these > requests than ArcIMS would need? If so then it would probably be cheaper to > pay for ArcIMS and to not have to deal with a large number of servers? > Correct? 2) No, because ArcIMS is an order of magnitude more expensive than a new computer. The software cost actually dwarfs the hardware cost. > Unfortunately I haven't noticed any threads about anyone using > MapServer for large-scale implementations (hence my thread). Also, I know > that ArcIMS is somewhat easily scaleable if your hit counts increase. Can > MapServer be just as easily scaleable if the need arises or is there a lot > more coding you would have to do? The scaling effect of 1) is that the CPU-required-per-hit for a mapserver installation is lower than for an IMS installation. For a large installation, the differential only magnifies. IMS marketing folks might say that because they are long-run multi-threaded they can scale better into high hit ranges, but they only get X amount of performance advantage from that. If they are also burning CPU in ineffecient rendering (as they are) they'll end up losing all the speed advantage their architecture is supposed to give them. And as an added bonus, the long-run aspect of IMS makes it less fault tolerant -- if you crash ArcIMS, the whole thing is toast. If you crash Mapserver, you lose just the one rendering instance. As far as scaling up, Steve has in the past pointed out some ultra simple load balancing tricks. A single simple front-end perl script can redirect map requests to a whole farm of mapserver hosts. All of which still fails to answer your fundamental question about an existing high-volume site. I would feel perfectly safe setting up a high-volume site under mapserver, but I do not have an example to offer you :( -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From woodbri at mediaone.net Mon Nov 19 09:43:58 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Mon, 19 Nov 2001 12:43:58 -0500 Subject: [mapserver-users] Try Again ... Large scale implementation References: Message-ID: <3BF944DE.81D2AA3D@mediaone.net> Chris, For your simple version, assuming you have data files that contain all the polygons for the zip codes, it would not be hard to build a dedicated app that takes the lat-lon and see what polygon it fars on. A variant of this would be to take all the Zip Code centroids and find the one closed to the lat-lon you were given. Either could be done very fast on modest hardware. I'll let other here speak on Mapserver which I'm sure is up to the task you mention. -Steve Chris Casad wrote: > > Ed: > > Thank you for the response. I'm glad you let me know that my question was > very vague, I wasn't sure if no one could answer it or what. > > As for more detail ... > > The simple version: The application in its simplest form would have a > zipcode polygon vector layer that is used to return the zip/cityname where > the lat/long point lies in. For example, the front-end request would pass a > lat/long and app would respond with the zip/cityname the lat/long resides > in. For something this simple is there a better way then using MapServer? > > The complex version: The application in its complex form would have a > zipcode polygon vector layer and a street line vector layer. The front-end > request would pass a lat/long and the app would respond with the > zip/cityname and a zoomed in image around the lat/long point. > > I understand that saying "100's of hits per minute or per second" is a wide > range. I guess I was just being broad in the fact that I was hoping to get > some examples for others on what they need hardware wise if they have 100's > per minute or per second. Unfortunately you never really now whether you > are going to get 100's per minute or 100's per second so I am trying to look > at best and worst case scenarios. =) > > I have seen a lot of threads about which is better ArcIMS or MapServer. And > from what I have read MapServer is faster. But is that a simple one to one > request comparison, where MapServer just draws a map faster? If I have > 100's of hits per second do I need to have 50 more servers to handle these > requests than ArcIMS would need? If so then it would probably be cheaper to > pay for ArcIMS and to not have to deal with a large number of servers? > Correct? Unfortunately I haven't noticed any threads about anyone using > MapServer for large-scale implementations (hence my thread). Also, I know > that ArcIMS is somewhat easily scaleable if your hit counts increase. Can > MapServer be just as easily scaleable if the need arises or is there a lot > more coding you would have to do? > > I would love to be able to use MapServer but I don't want to jump into the > deep end not having any idea of what to expect using it. I can get an > estimate from ESRI for ArcIMS on how many servers are needed for certain > large scale hit counts, I am hoping to get the same type of estimates or > examples from users of MapServer so that I can hopefully use MapServer. > > I hope this is a little more detailed. =) > > Thanks > Chris > > -----Original Message----- > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Monday, November 19, 2001 10:09 AM > To: Chris Casad; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Try Again ... Large scale implementation > > Chris - > > This is a pretty complicated question. The short answer is, sure - > MapServer can do that. Most things could do it, depending on how much > hardware you throw at them. > > You don't do into a lot of detail, and that makes it really hard to > answer your question well. Saying "100's of hits per minute or even per > second" is a load range of 60 times - there's a long way between 100 > hits a minute and 100 hits a second. Do you know what your requirements > will be? > > You might not want to use MapServer for everything. You mention using > lat/long to return a city/zip, for example. Depending on exactly what > you're trying to do (do you need the exact zip code that point lies in, > or do you need the nearest zip code centroid?) there might be other > (better) ways to address that specific task. > > What kind of data are you using? Do you have a single vector layer, 14 > raster data layers, or 73 vector layers on top of a raster base map? > There's a huge range in there. > > There are lots of folks here willing to help, but if you can possibly be > more specific about what your requirements are it will be MUCH easier to > help. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Chris Casad [mailto:chris at casad.net] > Sent: Monday, November 19, 2001 9:36 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Try Again ... Large scale implementation > > Hello: > > I would really like to be able to use MapServer for my project but I > need > some evidence that it can handle what I need!! > > I was wondering if anyone has used MapServer for a large scale > implementation where you could be having 100's of hits per minute or > even > per second. It may or may not return an image. At the very least it > would > use a lat/long to return a city/zip. > > Can MapServer handle a task like this? Would we have to use a large > number > of servers to handle this number of requests? > > Any help or suggestions would be greatly appreciated. Anyone have any > real > world implementations like this? > > Thank you, > Chris From steve.lime at dnr.state.mn.us Mon Nov 19 09:48:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 19 Nov 2001 11:48:14 -0600 Subject: [mapserver-users] How do I determine the direction of a line or polyline with Shapelib? Message-ID: Direction with regards to shapefiles only is used in conjuction with polygons. There the issue is the orientation of the vertices (clockwise or counter-clockwise) and inner and outer rings. With lines/polylines I think it's incumbent on the data to store from and to information as attributes. I don't think you'd want to rely solely on the order of vertices in the shapefile. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Greg Mader 11/18/01 11:44AM >>> Hi Frank and list, I am sorry that this is a little off topic, but I am working on my simple(primitive?) geocoder program, that hopefully will be useful to Mapserver users. How do I determine the directionality of a line or polyline with shapelib? Is directionality controlled by the order of the nodes, and thus the direction that a line was digitized? Is there some attribute that I am unaware of from the documentation that shows directionality? When one assigns an address to a line in arcview, it is usually in the form of "from address, to address", but this still implies that directionality is known. I suppose that I could always derive directionality by looking at adjoining line elements, but this would be potentially wrong in a lot of cases. Thanks, Greg Mader GIS analyst, and CompSci student. Chicago, IL From steve.lime at dnr.state.mn.us Mon Nov 19 10:35:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 19 Nov 2001 12:35:58 -0600 Subject: [mapserver-users] Try Again ... Large scale implementation Message-ID: Also remember, there is nothing magic about MapServer or IMS or any other web mapping application. If you have really high volume you're gonna need multiple servers no matter what software you use. I've not seen a single vendor adequately address scalability issues or how many simultaneous maps it can make. It's a tough question... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 11/19/01 11:43AM >>> Chris, For your simple version, assuming you have data files that contain all the polygons for the zip codes, it would not be hard to build a dedicated app that takes the lat-lon and see what polygon it fars on. A variant of this would be to take all the Zip Code centroids and find the one closed to the lat-lon you were given. Either could be done very fast on modest hardware. I'll let other here speak on Mapserver which I'm sure is up to the task you mention. -Steve Chris Casad wrote: > > Ed: > > Thank you for the response. I'm glad you let me know that my question was > very vague, I wasn't sure if no one could answer it or what. > > As for more detail ... > > The simple version: The application in its simplest form would have a > zipcode polygon vector layer that is used to return the zip/cityname where > the lat/long point lies in. For example, the front-end request would pass a > lat/long and app would respond with the zip/cityname the lat/long resides > in. For something this simple is there a better way then using MapServer? > > The complex version: The application in its complex form would have a > zipcode polygon vector layer and a street line vector layer. The front-end > request would pass a lat/long and the app would respond with the > zip/cityname and a zoomed in image around the lat/long point. > > I understand that saying "100's of hits per minute or per second" is a wide > range. I guess I was just being broad in the fact that I was hoping to get > some examples for others on what they need hardware wise if they have 100's > per minute or per second. Unfortunately you never really now whether you > are going to get 100's per minute or 100's per second so I am trying to look > at best and worst case scenarios. =) > > I have seen a lot of threads about which is better ArcIMS or MapServer. And > from what I have read MapServer is faster. But is that a simple one to one > request comparison, where MapServer just draws a map faster? If I have > 100's of hits per second do I need to have 50 more servers to handle these > requests than ArcIMS would need? If so then it would probably be cheaper to > pay for ArcIMS and to not have to deal with a large number of servers? > Correct? Unfortunately I haven't noticed any threads about anyone using > MapServer for large-scale implementations (hence my thread). Also, I know > that ArcIMS is somewhat easily scaleable if your hit counts increase. Can > MapServer be just as easily scaleable if the need arises or is there a lot > more coding you would have to do? > > I would love to be able to use MapServer but I don't want to jump into the > deep end not having any idea of what to expect using it. I can get an > estimate from ESRI for ArcIMS on how many servers are needed for certain > large scale hit counts, I am hoping to get the same type of estimates or > examples from users of MapServer so that I can hopefully use MapServer. > > I hope this is a little more detailed. =) > > Thanks > Chris > > -----Original Message----- > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Monday, November 19, 2001 10:09 AM > To: Chris Casad; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Try Again ... Large scale implementation > > Chris - > > This is a pretty complicated question. The short answer is, sure - > MapServer can do that. Most things could do it, depending on how much > hardware you throw at them. > > You don't do into a lot of detail, and that makes it really hard to > answer your question well. Saying "100's of hits per minute or even per > second" is a load range of 60 times - there's a long way between 100 > hits a minute and 100 hits a second. Do you know what your requirements > will be? > > You might not want to use MapServer for everything. You mention using > lat/long to return a city/zip, for example. Depending on exactly what > you're trying to do (do you need the exact zip code that point lies in, > or do you need the nearest zip code centroid?) there might be other > (better) ways to address that specific task. > > What kind of data are you using? Do you have a single vector layer, 14 > raster data layers, or 73 vector layers on top of a raster base map? > There's a huge range in there. > > There are lots of folks here willing to help, but if you can possibly be > more specific about what your requirements are it will be MUCH easier to > help. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Chris Casad [mailto:chris at casad.net] > Sent: Monday, November 19, 2001 9:36 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Try Again ... Large scale implementation > > Hello: > > I would really like to be able to use MapServer for my project but I > need > some evidence that it can handle what I need!! > > I was wondering if anyone has used MapServer for a large scale > implementation where you could be having 100's of hits per minute or > even > per second. It may or may not return an image. At the very least it > would > use a lat/long to return a city/zip. > > Can MapServer handle a task like this? Would we have to use a large > number > of servers to handle this number of requests? > > Any help or suggestions would be greatly appreciated. Anyone have any > real > world implementations like this? > > Thank you, > Chris From lfilak at yahoo.com Mon Nov 19 11:04:56 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Mon, 19 Nov 2001 11:04:56 -0800 (PST) Subject: [mapserver-users] Is MapServer for me? In-Reply-To: <5.0.0.25.2.20011119135810.01f01888@192.168.0.1> Message-ID: <20011119190456.6299.qmail@web11305.mail.yahoo.com> For task 1: once the coordinates from the GPS are known it would be easy to submit a manual or automated request to a CGI/perl script that incorporates the Mapscript interface to Mapserver. You could submit the coordinates as arguments to the script and then use Mapscript to do a QueryByPoint using the coordinates. The query result can then be used to retrieve the attribute information for the layer of your choice which does not need to include a map. Multiple layers can be queried just as easily. You will need to keep map projections in mind if your base data is in a different projection than what comes in from the GPS (Lat/Lon). Lowell Filak --- Klaus Drechsler wrote: > for a resaerch project I have to do the following > tasks: > > 1. > I have a client with a gps receiver. With the > gps-coordinates I want > to query a server and get back the location where I > am (city-name or > street name or both ...) as ***ascii string*** > (without a map) ... > > 2. > Like in task one I have a client with a gps > receiver. This time I send > the gps-coordinates to a server and want a part of a > map (as gif/jpg > or something like that) back where I can see wher I > am and the near > neighbourhood. > > Is there (open source) software that can do the > above tasks? > I found that GRASS could be what I am searching for > (I thought), but > in the GRASS Mailinglist someone told me, that GRASS > is overkill and I > should take a look at MapServer... > > So thats why I ask the professionals in this > mailinglist: > Can mapserver do the above tasks? > > I think that Task 2 is possible, but I need a > solution (or ideas) for task 1. > > I hope someone can give me hints on this! > > Bye, > Klaus > > -- > Zentrum f?r Graphische Datenverarbeitung (ZGDV) > Abt. Mobile Informationsvisualisierung > email: klaus.drechsler at zgdv.de > zgdv at kdnet.de > __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com From steve.lime at dnr.state.mn.us Mon Nov 19 11:47:03 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 19 Nov 2001 13:47:03 -0600 Subject: [mapserver-users] QUERYONLY? Message-ID: My bad, it's acually TYPE QUERY. How the query is handled is dependant on the underlying shape type not the LAYER TYPE so that setting was moved. The 3.5 docs are mostly correct except that QUERYONLY should be QUERY. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 11/14/01 04:27PM >>> I got a similar error too (not sure if these two are related) - using the mapserv35_png_ogr for win32 build 11/7/2001. This was using the itasca demo app for 3.5 (I downloaded 10/17/2001) (and my other apps which worked with prior version of the mapserv 3.5 exe also give similar behavior. So I was wondering if an interim change to specs had taken place during the 3.5 between 10/19 and now. The prior version I was using was a build around 10/19/2001. I get an error getSymbol(): Symbol definition error. (END):(96) (I did modify it a bit to work with my configuration so not the exact demo - but just minor changes to paths) When trying to use the itasca demo app - dated around 10/17/2001 -----Original Message----- From: Vinko Vrsalovic B. [mailto:v at w.cl] Sent: Wednesday, November 14, 2001 11:29 AM To: steve.lime at dnr.state.mn.us Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] QUERYONLY? > It's STATUS QUERY, not QUERYONLY. also tried that, but: Warning: MapServer Error in getSymbol(): (QUERY):(64) LAYER NAME buses METADATA "DESCRIPTON" "Rec Buses" "RESULT_FIELDS" "ROUTE_ID" END <---------------------------------------- Line 64 STATUS QUERY TYPE LINE LABELITEM "NOMBRE" DATA r_bus_utm56 CLASS NAME "Rec Buses" TEMPLATE "test_draw_map.phtml" LABEL COLOR 238 238 140 FONT arial_V TYPE truetype ANGLE AUTO ANTIALIAS SIZE 7 END COLOR 200 150 54 END TOLERANCE 10 END -- V. From sshealy at e811.com Mon Nov 19 11:26:30 2001 From: sshealy at e811.com (Scott Shealy) Date: Mon, 19 Nov 2001 14:26:30 -0500 Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 Message-ID: <01111914250817.22549@aristotle> Prelims System: RedHat 7.2 Code base nightly.tar.gz(latest as of today) Proj 4.4.4 Config configure --without-ogr --with-proj (found Proj installation successfully) ----> Test Map file NAME unocal EXTENT -98.0 26.0 -87.0 29.5 SIZE 800 400 SHAPEPATH "/maps/base_cov" PROJECTION "proj=latlong" END LAYER NAME "coast" DATA "coast" STATUS ON TYPE LINE CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END LAYER NAME "api" DATA "api" STATUS ON TYPE line CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END LAYER NAME "intl" DATA "intl" STATUS ON TYPE line CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END LAYER NAME "states" DATA "states" STATUS ON TYPE line CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END LAYER NAME "counties" DATA "counties" STATUS ON TYPE line CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END LAYER NAME "lease" DATA "lease" STATUS ON TYPE line CLASS COLOR 128 128 128 END PROJECTION "proj=latlong" END END END ---->Test code #include #include "../../map.h" // we are to directories down in mapserver dist int main(int argc,char *argv[]) { mapObj *m; int i; m=msLoadMap("./1_2.map"); printf("%ld\n",m->numlayers); for( i=0;inumlayers;i++) { printf("%s\n",m->layers[i].name); } } compile command for test code gcc test.c -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ltiff -L/usr/local/lib -lproj ../../libmap.a Everything links fine When I run it I get the follwoing output 6 coast (null) (null) (null) (null) Segmentation Fault That is obviously not right... So I started playing around with things I reconfigured with configure --without-ogr did a make clean and then a make again... recompiled my test program.. and changed my map file so that it doesn't have any PROJECTION options(BTW if you don't do that you an immediate core dump I guess b/c of the lack of PROJECTION SUPPORT) And now I get the expected output.. which is 6 coast api intl states counties lease So then I whipped out DDD and started debugging.... stepped though the code and noticed that when I leave msLoadMap function the map is fine... the data structures for all six layers looks fine but the instant I return from msLoadMap and I use the mapObj *m in my test.c program and I inspect its layers I quickly notice that thing are not right. m->layers[0] is ok but if I look at m->layers[0..5] in the debugger I notice that some of its members are pointing to arbitray places and that in second layer the name now shows up in the group and then after the second one nothing seems right in the susbsequent layerObj datastructures. My first hunch what that somehow I had different struct defintion of layer obj b/c of some #ifdef statement when I compiled my test.c program but after lookin in map.h the only thing I see that could do that is #ifndef SWIG and that is definetly defined for either compiling the server or my test program. So my next hunch was that (b/c my problem goes away when I don't include --with-proj ... is the the proj code or mapserv stub for interacting with have some kind of memory leak.. But I am not sure about that b/c I can take the mapserv cgi program and place it in my cgi-bin of my apache web server and issue the following command http://localhost/cgi-bin/mapserv?map=/maps/maps/1_2.map&layers=coast+api+lease and I get back a great image...and even project the shape files into other projection with no problem... I am stumped... is this a bug?... Am I doing something wrong.? I need the projection stuff to work and I need to do it this way b/c I am using the mapscript interface in a java project. But when testing I ran into this problem so I pulled the java stuff out of the equation by writing test.c above to isolate the problem ... BTW I have got the mapscript interface working in java and I am planning to post to the mailing list how I did that as soon as the project is complete(deadlines are looming and I am working 65 hrs a week ... or I would do it now!) Any help is greatly appreciated... BTW we have been using mapserver for about 2 weeks and we LOVE IT!!!! Scott Shealy E811 Inc. From cabral at cttmar.univali.br Mon Nov 19 13:38:46 2001 From: cabral at cttmar.univali.br (Rodrigo B. Cabral) Date: Mon, 19 Nov 2001 19:38:46 -0200 (BRST) Subject: [mapserver-users] mapscript and queries Message-ID: <1006205926.3bf97be61429d@webmail.cttmar.univali.br> Hi, How queries can be handled with mapscript? By that I mean: when the user selects an item (e.g. name of the shape), I want the map object to highlight it and to set the map extents to enclose the shape. Thanks, Rod. ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From teb at mallit.fr.umn.edu Mon Nov 19 13:53:08 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 19 Nov 2001 15:53:08 -0600 (CST) Subject: [mapserver-users] 3.5 nightly build / PostGIS 0.6.2 (fwd) Message-ID: <200111192153.PAA08233@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- To: mapserver-info at lists.gis.umn.edu Date: Mon, 19 Nov 2001 13:20:35 -0800 From: "Luis Viveros" Mime-Version: 1.0 X-Sent-Mail: off X-Priority: 3 Subject: 3.5 nightly build / PostGIS 0.6.2 X-Sender-Ip: 200.193.164.79 Content-Language: en Content-Transfer-Encoding: 7bit Hello, I've been trying for several days and in several positions to install this MapServer recipe into a Mandrake 8.0: 1 Mapserver 3.5 (nightly build!) 1 PostGIS 0.6.2 1 GD-1.8.4 headache optional 1 Mapscript/PHP4 1 GDAL-1.1.5/OGR 1 PROJ-4.4.4 I read some Warmerdam's advices and other's complains. My last tentative was this. Trying to use the ms_demo, IT sends me back the next sentence: msLoadSymbolFile():Unknown identifier. (SHADESET):(0) Someone told me it could be a nightly build bug, but I've seen this since june in the mailing_list (specially about gd/png/zlib). I have 80.000 parcel polygons in PostGIS and i need to show them yesterday (in the morning). I've edited Makefile and gdft/Makefile too. Similar. regards, Luis Viveros [root at postgis mapserver]# ./configure --with-gd=/tmp/gd-1.8.4 --with-ogr=/tmp/gdal-1.1.5/apps/gdal-config --with-gdal=/tmp/gdal-1.1.5 --with-postgis=/usr/local/pgsql/bin/pg_config loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... 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... using libgd from -L/tmp/gd-1.8.4 -lgd checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking where Zlib is installed... checking for zlibVersion in -lz... (cached) yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageGif in -lc... no checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... no checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... no using GD ( -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT) from /tmp/gd-1.8.4. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... (cached) no libpdf not found... PDF support not included. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... no libtiff not found... TIFF support not included. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... checking for OGRRegisterAll in -lgdal.1.1... (cached) yes using OGR from system libs. checking if GDAL support requested... yes, user supplied gdal-config ./configure: /tmp/gdal-1.1.5: is a directory checking if PostGIS support requested... yes, user supplied pg_config checking if OracleSpatial support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... PHP/MapScript module not configured. creating ./config.status creating Makefile [root at postgis mapserver]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplexer.c -o maplexer.o maplexer.c:3112: warning: `yyunput' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapprimitive.c -o mapprimitive.o mapprimitive.c:771: warning: `get_centroid' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapproject.c -o mapproject.o mapproject.c:66: warning: `msProjectGrowRect' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapraster.c -o mapraster.o mapraster.c:602: warning: `drawTIFF' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsde.c -o mapsde.o c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapresample.c -o mapresample.omapresample.c:419: warning: `msInitApproxTransformer' defined but not used mapresample.c:436: warning: `msFreeApproxTransformer' defined but not used mapresample.c:447: warning: `msApproxTransformer' defined but not used mapresample.c:551: warning: `msTransformMapToSource' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapwmslayer.c -o mapwmslayer.ogcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maporaclespatial.c -o maporaclespatial.o maporaclespatial.c:782:6: warning: no newline at end of file maporaclespatial.c:782:6: warning: no newline at end of file gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapgml.c -o mapgml.o mapgml.c: In function `msGMLWriteQuery': mapgml.c:10: warning: unused variable `j' mapgml.c: In function `msGMLWriteShape': mapgml.c:105: warning: unused variable `j' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapprojhack.c -o mapprojhack.omapprojhack.c: In function `ConvertProjUnitStringToMS': mapprojhack.c:67: warning: implicit declaration of function `strcmp' mapprojhack.c: At top level: mapprojhack.c:66: warning: `ConvertProjUnitStringToMS' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include epplib.c -o epplib.o ar rc libmap.a mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o epplib.o ranlib libmap.a gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shp2img.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o shp2img gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include legend.c -o legend.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include legend.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o legend gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapserv.c -o mapserv.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include cgiutil.c -o cgiutil.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapserv.o cgiutil.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o mapserv gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptree.c -o shptree.o shptree.c: In function `main': shptree.c:40: warning: `byte_order' might be used uninitialized in this functiongcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptree.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o shptree gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreevis.c -o shptreevis.o shptreevis.c: In function `main': shptreevis.c:76: warning: unused variable `pabyBuf' gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreevis.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o shptreevis gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreetst.c -o shptreetst.o shptreetst.c: In function `main': shptreetst.c:68: warning: `node' might be used uninitialized in this function gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreetst.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o shptreetst gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include scalebar.c -o scalebar.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include scalebar.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o scalebar gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include sortshp.c -o sortshp.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include sortshp.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o sortshp touch perlvars pwd > perlvars echo -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL >> perlvars echo -I. -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts >> perlvars echo -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm >> perlvars echo >> perlvars gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include tile4ms.c -o tile4ms.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include tile4ms.o -L. -lmap -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib -lpq -lm -o tile4ms [root at postgis mapserver]# make install cp -f libmap.a /usr/local/lib/ cp -f map.h /usr/local/include/mapserver-3.5/ ------------- End Forwarded Message ------------- From pramsey at refractions.net Mon Nov 19 15:57:05 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 19 Nov 2001 15:57:05 -0800 Subject: [mapserver-users] 3.5 nightly build / PostGIS 0.6.2 (fwd) References: <200111192153.PAA08233@mallit.fr.umn.edu> Message-ID: <3BF99C51.FFEE64A8@refractions.net> There are changes in the handling of symbols from 3.4 to 3.5, and that is probably what is causing problems. Just skip the demo files and start with your own file. Do a simple one-layer shape mapfile, get that working, then move on to adding stuff like PostGIS layers etc. Paul teb wrote: > > ------------- Begin Forwarded Message ------------- > > To: mapserver-info at lists.gis.umn.edu > Date: Mon, 19 Nov 2001 13:20:35 -0800 > From: "Luis Viveros" > Mime-Version: 1.0 > X-Sent-Mail: off > X-Priority: 3 > Subject: 3.5 nightly build / PostGIS 0.6.2 > X-Sender-Ip: 200.193.164.79 > Content-Language: en > Content-Transfer-Encoding: 7bit > > Hello, > > I've been trying for several days and in several positions to install this MapServer > recipe into a Mandrake 8.0: > > 1 Mapserver 3.5 (nightly build!) > 1 PostGIS 0.6.2 > 1 GD-1.8.4 headache > > optional > > 1 Mapscript/PHP4 > 1 GDAL-1.1.5/OGR > 1 PROJ-4.4.4 > > I read some Warmerdam's advices and other's complains. My last tentative was this. > Trying to use the ms_demo, IT sends me back the next sentence: > > msLoadSymbolFile():Unknown identifier. (SHADESET):(0) > > Someone told me it could be a nightly build bug, but I've seen this since june in > the mailing_list (specially about gd/png/zlib). > > I have 80.000 parcel polygons in PostGIS and i need to show them yesterday (in the > morning). > > I've edited Makefile and gdft/Makefile too. Similar. > > regards, > > Luis Viveros > > [root at postgis mapserver]# ./configure --with-gd=/tmp/gd-1.8.4 > --with-ogr=/tmp/gdal-1.1.5/apps/gdal-config --with-gdal=/tmp/gdal-1.1.5 > --with-postgis=/usr/local/pgsql/bin/pg_config > > loading cache ./config.cache > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we > are using > GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for c++... (cached) c++ > checking whether the C++ compiler (c++ ) works... yes > checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether > we are > using GNU C++... (cached) yes > checking whether c++ accepts -g... (cached) yes > checking for ranlib... (cached) ranlib > checking for flex... (cached) flex > checking for yywrap in -lfl... (cached) yes > checking for bison... (cached) bison -y > checking if compiler supports -R... (cached) no > checking if compiler supports -Wl,-rpath,... (cached) yes > checking for exp in -lm... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking for strcasecmp... (cached) yes > checking for strncasecmp... (cached) yes > checking for strdup... (cached) yes > checking whether we should include JPEG support... > 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... > using libgd from -L/tmp/gd-1.8.4 -lgd > checking where FreeType is installed... > checking for FT_Init_FreeType in -lfreetype... yes > using libfreetype -lfreetype from system libs. > ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking > where Zlib is > installed... > checking for zlibVersion in -lz... (cached) yes > using libz from system libs. > checking where PNG is installed... > checking for png_init_io in -lpng... yes > using libpng from system libs. > checking for gdImageGif in -lc... no > checking for gdImagePng in -lc... yes > checking for gdImageJpeg in -lc... no > checking for gdImageWBMP in -lc... yes > checking for gdImageStringFT in -lc... yes > checking for gdImageString16 in -lc... yes > checking for gdImageGifPtr in -lc... no > using GD ( -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT) from /tmp/gd-1.8.4. > checking whether we should include PDF support... > checking for PDF_setlinewidth in -lpdf... no > checking for PDF_setrgbcolor in -lpdf... no > checking for PDF_moveto in -lpdf... no > checking for PDF_curveto in -lpdf... no > checking for PDF_show_xy in -lpdf... (cached) no > libpdf not found... PDF support not included. > checking whether we should include TIFF support... > checking for TIFFOpen in -ltiff... no > libtiff not found... TIFF support not included. > checking whether we should include EPPL7 support... > including EPPL7 support. > checking whether we should include PROJ.4 support... > PROJ.4 support not requested. > checking whether we should include ESRI SDE support... > ESRI SDE support not requested. > checking whether we should compile in MPATROL support... > MPATROL support not requested. > checking whether we should include OGR support... > checking for OGRRegisterAll in -lgdal.1.1... (cached) yes > using OGR from system libs. > checking if GDAL support requested... yes, user supplied gdal-config ./configure: > /tmp/gdal-1.1.5: is a directory > checking if PostGIS support requested... yes, user supplied pg_config checking if > OracleSpatial > support requested... no > checking whether we should include WMS support... > OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we > should include WMS Client Connections support... OGC WMS Client Connections not > enabled > (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. > checking for PHP/MapScript module options... > PHP/MapScript module not configured. > creating ./config.status > creating Makefile > > [root at postgis mapserver]# make > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapbits.c -o mapbits.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maphash.c -o maphash.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapshape.c -o > mapshape.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapxbase.c -o > mapxbase.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapparser.c -o > mapparser.o gcc -c > -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplexer.c -o > maplexer.o > maplexer.c:3112: warning: `yyunput' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maptree.c -o maptree.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsearch.c -o > mapsearch.o gcc -c > -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapstring.c -o > mapstring.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsymbol.c -o > mapsymbol.o gcc -c > -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapfile.c -o mapfile.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplegend.c -o > maplegend.o gcc -c > -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maputil.c -o maputil.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapscale.c -o > mapscale.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapquery.c -o > mapquery.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplabel.c -o > maplabel.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maperror.c -o > maperror.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapprimitive.c -o > mapprimitive.o > mapprimitive.c:771: warning: `get_centroid' defined but not used gcc -c -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapproject.c -o > mapproject.o > mapproject.c:66: warning: `msProjectGrowRect' defined but not used gcc -c -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapraster.c -o > mapraster.o > mapraster.c:602: warning: `drawTIFF' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapsde.c -o mapsde.o > c++ -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapogr.cpp -o mapogr.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mappostgis.c -o > mappostgis.o gcc -c > -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maplayer.c -o > maplayer.o gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapresample.c -o > mapresample.omapresample.c:419: warning: `msInitApproxTransformer' defined but not > used > mapresample.c:436: warning: `msFreeApproxTransformer' defined but not used > mapresample.c:447: warning: `msApproxTransformer' defined but not used > mapresample.c:551: > warning: `msTransformMapToSource' defined but not used gcc -c -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapwms.c -o mapwms.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapwmslayer.c -o > mapwmslayer.ogcc > -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include maporaclespatial.c -o > maporaclespatial.o maporaclespatial.c:782:6: warning: no newline at end of file > maporaclespatial.c:782:6: warning: no newline at end of file gcc -c -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapgml.c -o mapgml.o > mapgml.c: In > function `msGMLWriteQuery': > mapgml.c:10: warning: unused variable `j' > mapgml.c: In function `msGMLWriteShape': > mapgml.c:105: warning: unused variable `j' > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapprojhack.c -o > mapprojhack.omapprojhack.c: In function `ConvertProjUnitStringToMS': > mapprojhack.c:67: > warning: implicit declaration of function `strcmp' mapprojhack.c: At top level: > mapprojhack.c:66: warning: `ConvertProjUnitStringToMS' defined but not used gcc -c > -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include epplib.c -o epplib.o ar > rc libmap.a > mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o > mapsearch.o > mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o > maplabel.o > maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o > maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o > mapprojhack.o epplib.o ranlib libmap.a > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shp2img.c -o shp2img.o > gcc -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shp2img.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o shp2img gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL > -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL > -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > legend.c -o > legend.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include legend.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o legend gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapserv.c -o mapserv.o > gcc -c -O2 > -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include cgiutil.c -o cgiutil.o > gcc -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include mapserv.o cgiutil.o -L. > -lmap > -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 > -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq -lm -o mapserv gcc -c -O2 -Wall -DIGNORE_MISSING_DATA > -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR > -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port > -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > shptree.c -o > shptree.o shptree.c: In function `main': > shptree.c:40: warning: `byte_order' might be used uninitialized in this functiongcc > -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptree.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o shptree gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL > -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL > -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > shptreevis.c -o > shptreevis.o shptreevis.c: In function `main': > shptreevis.c:76: warning: unused variable `pabyBuf' > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreevis.o -L. -lmap > -L/tmp/gd-1.8.4 -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 > -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq -lm -o shptreevis gcc -c -O2 -Wall -DIGNORE_MISSING_DATA > -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR > -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port > -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > shptreetst.c -o > shptreetst.o shptreetst.c: In function `main': > shptreetst.c:68: warning: `node' might be used uninitialized in this function gcc > -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include shptreetst.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o shptreetst gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL > -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL > -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > scalebar.c -o > scalebar.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include scalebar.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o scalebar gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL > -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL > -DUSE_POSTGIS -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core > -I/tmp/gdal-1.1.5/ogr -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include > sortshp.c -o > sortshp.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include sortshp.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o sortshp touch perlvars > pwd > perlvars > echo -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL >> perlvars echo -I. -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts >> perlvars echo -L. -lmap -L/tmp/gd-1.8.4 -lgd > -lfreetype > -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 -L/usr/local/pgsql/lib > -lpq -lm >> > perlvars echo >> perlvars > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG > -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS > -I/tmp/gd-1.8.4 -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include tile4ms.c -o tile4ms.o > gcc -O2 -Wall > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_WBMP > -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -I/tmp/gd-1.8.4 > -I/tmp/gdal-1.1.5/port -I/tmp/gdal-1.1.5/core -I/tmp/gdal-1.1.5/ogr > -I/tmp/gdal-1.1.5/ogr/ogrsf_frmts -I/usr/local/pgsql/include tile4ms.o -L. -lmap > -L/tmp/gd-1.8.4 > -lgd -lfreetype -lpng -lz -lfreetype -lpng -lz -L/tmp/gdal-1.1.5 -lgdal.1.1 > -L/usr/local/pgsql/lib -lpq > -lm -o tile4ms > > [root at postgis mapserver]# make install > cp -f libmap.a /usr/local/lib/ > cp -f map.h /usr/local/include/mapserver-3.5/ > > ------------- End Forwarded Message ------------- -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From warmerdam at pobox.com Mon Nov 19 18:12:16 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 19 Nov 2001 21:12:16 -0500 Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 References: <01111914250817.22549@aristotle> Message-ID: <3BF9BC00.5050002@pobox.com> Scott Shealy wrote: > I am stumped... is this a bug?... Am I doing something wrong.? I need the > projection stuff to work and I need to do it this way b/c I am using the > mapscript interface in a java project. But when testing I ran into this > problem so I pulled the java stuff out of the equation by writing test.c > above to isolate the problem ... BTW I have got the mapscript interface > working in java and I am planning to post to the mailing list how I did that > as soon as the project is complete(deadlines are looming and I am working 65 > hrs a week ... or I would do it now!) > > Any help is greatly appreciated... > > BTW we have been using mapserver for about 2 weeks and we LOVE IT!!!! Scott, I encountered exactly the same problem. It turns out that mapObj includes a projectionObj, but the size of projectionObj (in mapproject.h) changes depending on whether USE_PROJ is defined or not. USE_PROJ is consistently defined for all the regular MapServer components by the makefile, but your mainline build did not define this symbol, and so projectionObj was smaller and all the alighnment of stuff in mapObj was screwed up in your mainline. Steve ... I would suggest we change projectionObj to look like this: typedef struct { char **args; /* variable number of projection args */ int numargs; /* actual number of projection args */ #ifdef USE_PROJ projPJ proj; /* a projection structure for the PROJ package */ #else void *proj; /* dummy place holder */ #endif } projectionObj; instead of this: typedef struct { char **args; /* variable number of projection args */ int numargs; /* actual number of projection args */ #ifdef USE_PROJ projPJ proj; /* a projection structure for the PROJ package */ #endif } projectionObj; This change will ensure that projectionObj is always the same size reguardless of whether USE_PROJ is defined for a given build. What do you think? Scott ... your fix is to just build with -DUSE_PROJ on the commandline. 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 cabral at yadata.net Tue Nov 20 04:22:17 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Tue, 20 Nov 2001 10:22:17 -0200 Subject: [mapserver-users] Blank image generated from oracle spatial layer. References: Message-ID: <006d01c171bd$ffaefbe0$0207a8c0@naumaki> Hello Debasish, I'll try to answer all of your questions with one single e-mail. ----- Original Message ----- Sent: Wednesday, June 20, 2001 6:41 AM > Am working on NT with Mapserver 3.5 . The problem is mapserver is > generating a blank white image for the oracle spatial layer. > Am i missing out something. The description of map file is as follows > > LAYER > NAME states > TYPE polygon > STATUS default > CONNECTIONTYPE oraclespatial > CONNECTION 'system/manager at orcl' > DATA "GEOM from country" > CLASS > NAME 'states' > COLOR 220 224 230 > OUTLINECOLOR 0 0 0 > END > END Looks like your map definition is okay, and MapServer is drawing everything according to your definitions. So I guess your data is not showing up because it's not within the extents you supplied (EXTENT -180 -90 180 90). If they're in UTM, this is mostly like the case. You can use SDO functions to query your data extents and be sure of what you have. ----- Original Message ----- Sent: Wednesday, June 20, 2001 4:05 AM > I am getting the following error when i try to load an oracle spatial > layer. msOracleSpatialLayerWhichShapes(): OracleSpatial error. > ORA-29902: error in executing ODCIIndexStart() routine ORA-13208: internal > error while evaluating [window SRID does not match layer SRID] operator > ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84 ORA-06512: > at line 1 . SQL statement: > SELECT rownum, GEOLOC FROM states WHERE SDO_FILTER( GEOLOC, > MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY > (1,1003,3),MDSYS.SDO_ORDINATE_ARRAY > (-228.293276,-60.0032762,-16.6267238,151.663276) ),'querytype=window') > = 'TRUE' Here's certainly an SDO indexing/srid problem, not related to MapServer. Have you created the spatial indexes at all? Try running the following command using your SQL command prompt (then you may track the error): SELECT rownum, GEOLOC FROM states WHERE SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3),MDSYS.SDO_ORDINATE_ARRAY (-228.293276,-60.0032762,-16.6267238,151.663276) ),'querytype=window') = 'TRUE' ----- Original Message ----- Sent: Wednesday, June 20, 2001 2:47 AM > I tried using the oracle spatial option in the mapserver ver 3.5 > makefile.vc but not yet succesful . Can you please show an example . > > #oracle spatial > ORACLESPATIAL_OPT=-DUSE_ORACLESPATIAL > ORACLESPATIAL_INC=-I./oci/include As I mentioned, I haven't tested or worked with an VC compiler to make sure everything is running accordingly. Also, looks like the ORACLESPATIAL_INC variable is missing it's home path in the -I part. But I guess, based on your other questions, you solved this problem. If this is the case, perhaps you could share with this list how you manage to make things working with Oracle Spatial on an NT environment. Best regards, Rod. From cabral at yadata.net Tue Nov 20 04:36:37 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Tue, 20 Nov 2001 10:36:37 -0200 Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 References: <01111914250817.22549@aristotle> <3BF9BC00.5050002@pobox.com> Message-ID: <007701c171c0$002b9400$0207a8c0@naumaki> Hi there, sorry about the intrusion on your chat, but using a "void *" to make structures be the same size doesn't sounds good to me. Looks more like Scott is linking code that has been compiled with different options (w/&w/o proj), although he mentioned in it's previous e-mail that he cleaned everything up, reconfigured and rebuild the code, still I think something's wrong. Here's the clue from where I make this assumption: ----- Original Message ----- From: "Scott Shealy" Sent: Monday, November 19, 2001 5:26 PM Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 > (...) configure --without-ogr > did a make clean and then a make again... recompiled my test program.. and > changed my map file so that it doesn't have any PROJECTION options(BTW if you > don't do that you an immediate core dump I guess b/c of the lack of > PROJECTION SUPPORT) The "immediate core dump" is what tricks me out. He actually should get an "Projection support is not available." issued by msLoadProjectionString in mapfile.c (or something like that, I just made a quick look at the files). So I guess one might check where the error actually is (either in Scott's coding/compiling or in mapserver's mapfile.c/mapproject.c); or perhaps this would be one of those infamous hard-to-find-but-suddenly-it's-gone-error. Best regards, Rod. ----- Original Message ----- From: "Frank Warmerdam" To: Cc: ; Sent: Tuesday, November 20, 2001 12:12 AM Subject: Re: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 Scott Shealy wrote: > I am stumped... is this a bug?... Am I doing something wrong.? I need the > projection stuff to work and I need to do it this way b/c I am using the > mapscript interface in a java project. But when testing I ran into this > problem so I pulled the java stuff out of the equation by writing test.c > above to isolate the problem ... BTW I have got the mapscript interface > working in java and I am planning to post to the mailing list how I did that > as soon as the project is complete(deadlines are looming and I am working 65 > hrs a week ... or I would do it now!) > > Any help is greatly appreciated... > > BTW we have been using mapserver for about 2 weeks and we LOVE IT!!!! Scott, I encountered exactly the same problem. It turns out that mapObj includes a projectionObj, but the size of projectionObj (in mapproject.h) changes depending on whether USE_PROJ is defined or not. USE_PROJ is consistently defined for all the regular MapServer components by the makefile, but your mainline build did not define this symbol, and so projectionObj was smaller and all the alighnment of stuff in mapObj was screwed up in your mainline. Steve ... I would suggest we change projectionObj to look like this: typedef struct { char **args; /* variable number of projection args */ int numargs; /* actual number of projection args */ #ifdef USE_PROJ projPJ proj; /* a projection structure for the PROJ package */ #else void *proj; /* dummy place holder */ #endif } projectionObj; instead of this: typedef struct { char **args; /* variable number of projection args */ int numargs; /* actual number of projection args */ #ifdef USE_PROJ projPJ proj; /* a projection structure for the PROJ package */ #endif } projectionObj; This change will ensure that projectionObj is always the same size reguardless of whether USE_PROJ is defined for a given build. What do you think? Scott ... your fix is to just build with -DUSE_PROJ on the commandline. 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 cabral at cttmar.univali.br Tue Nov 20 05:23:46 2001 From: cabral at cttmar.univali.br (Rodrigo Becke Cabral) Date: Tue, 20 Nov 2001 11:23:46 -0200 Subject: [mapserver-users] mapscript and queries References: Message-ID: <00b901c171c6$98a380c0$0207a8c0@naumaki> Okay, I believe I've narrowed down my question: Steve's reply: (1) "Once the query is done..." (2) "you can quickly step through all the layer query results generating a global extent" And also considering this reply: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 11/msg00182.html (which also suits my case, let's consider I want to query/highlight/show "Aitkin" in the map) In (1) my question is: how do I set the query argument in mapscript? I can think of several solutions using classitem and expressions, but still I wouldn't be performing an actual query. Using queryByPoint or other queryBy... methods, I still don't have a "queryItem( itemstring )" method in layerObj, which sounds better for me. In (2), if a queryItem method is implemented, it could also set map extents automatically. However, if I choose to step through query results, how do I do that? Where the query results are stored in mapscript? Regards, Rod. ----- Original Message ----- From: "Stephen Lime" To: Sent: Tuesday, November 20, 2001 3:30 AM Subject: Re: [mapserver-users] mapscript and queries Well, all of the the CGI query options are recreatable under MapScript. Once the query is done you can quickly step through all the layer query results generating a global extent. Then you just use the drawQueryMap method to leverage the query results in building a map. let me know if you want specifics... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> ""Rodrigo B. Cabral"" 11/19/01 15:46 PM >>> Hi, How queries can be handled with mapscript? By that I mean: when the user selects an item (e.g. name of the shape), I want the map object to highlight it and to set the map extents to enclose the shape. Thanks, Rod. From Michael.Dreesmann at LVERMAP.brandenburg.de Tue Nov 20 07:12:42 2001 From: Michael.Dreesmann at LVERMAP.brandenburg.de (Dreesmann, Michael) Date: Tue, 20 Nov 2001 16:12:42 +0100 Subject: [mapserver-users] experience with shptree Message-ID: <47E1D354A19DD311BA2600105A4234F40139CC4F@ntsv3.lvap.kvv-bb.de> Hi, has any one experience with shptree ? I use it on WinNT with a polygon shape (50 MByte). I started it with shptree f001 10 shptree said creating index of old native format and creates a f001.qix but it seems to run in an endless loop. After finnishing (if it works), must I update the mapfile ? How faster is the presentation ? Regards Michael ---------------------------------------------------------------------------- ---- Landesvermessungsamt Brandenburg, Technische Stellen ALB/ALK E-Mail : Michael.Dreesmann at LVermAP.brandenburg.de Post : 14473 Potsdam, Heinrich-Mann-Allee 103 From sshealy at e811.com Tue Nov 20 06:40:06 2001 From: sshealy at e811.com (Scott Shealy) Date: Tue, 20 Nov 2001 09:40:06 -0500 Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 In-Reply-To: <3BF9BC00.5050002@pobox.com> References: <01111914250817.22549@aristotle> <3BF9BC00.5050002@pobox.com> Message-ID: <0111200940061B.22549@aristotle> Thanks... that did it... next time I will be sure to look at all the D switches... Scott On Monday 19 November 2001 09:12 pm, Frank Warmerdam wrote: > Scott Shealy wrote: > > I am stumped... is this a bug?... Am I doing something wrong.? I need the > > projection stuff to work and I need to do it this way b/c I am using the > > mapscript interface in a java project. But when testing I ran into this > > problem so I pulled the java stuff out of the equation by writing test.c > > above to isolate the problem ... BTW I have got the mapscript interface > > working in java and I am planning to post to the mailing list how I did > > that as soon as the project is complete(deadlines are looming and I am > > working 65 hrs a week ... or I would do it now!) > > > > Any help is greatly appreciated... > > > > BTW we have been using mapserver for about 2 weeks and we LOVE IT!!!! > > Scott, > > I encountered exactly the same problem. It turns out that mapObj includes > a projectionObj, but the size of projectionObj (in mapproject.h) changes > depending on whether USE_PROJ is defined or not. USE_PROJ is consistently > defined for all the regular MapServer components by the makefile, but your > mainline build did not define this symbol, and so projectionObj was smaller > and all the alighnment of stuff in mapObj was screwed up in your mainline. > > Steve ... I would suggest we change projectionObj to look like this: > > typedef struct { > char **args; /* variable number of projection args */ > int numargs; /* actual number of projection args */ > #ifdef USE_PROJ > projPJ proj; /* a projection structure for the PROJ package */ > > #else > void *proj; /* dummy place holder */ > > > #endif > } projectionObj; > > instead of this: > > typedef struct { > char **args; /* variable number of projection args */ > int numargs; /* actual number of projection args */ > #ifdef USE_PROJ > projPJ proj; /* a projection structure for the PROJ package */ > #endif > } projectionObj; > > This change will ensure that projectionObj is always the same size > > reguardless of whether USE_PROJ is defined for a given build. What > do you think? > > Scott ... your fix is to just build with -DUSE_PROJ on the commandline. > > Best regards, From cabral at yadata.net Tue Nov 20 08:32:32 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Tue, 20 Nov 2001 14:32:32 -0200 Subject: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 References: <01111914250817.22549@aristotle> <3BF9BC00.5050002@pobox.com> <007701c171c0$002b9400$0207a8c0@naumaki> <3BFA6C04.7030306@pobox.com> Message-ID: <004c01c171e0$fdec0140$0207a8c0@naumaki> Ok then, it is one solution. On the other hand, if making structures the same size is relevant across different compilation options, then it would be necessary to search all other structures that have compilation options defining its members, and to insert paddings properly. For instance, we have SWIG structures defined all over mapserver objects, not to mention that some of them are not pointers, but embedded local structures. Finally, why it's necessary to exist a projectionObj at all, if USE_PROJ is not defined? Parsing projection structures is not permited when USE_PROJ is disabled, right? Cheers, Rod. ----- Original Message ----- From: "Frank Warmerdam" To: "Rodrigo Becke Cabral" Sent: Tuesday, November 20, 2001 12:43 PM Subject: Re: [mapserver-users] Possible bug with 3.5 code w/ Proj 4 Rodrigo Becke Cabral wrote: > Hi there, sorry about the intrusion on your chat, but using a "void *" to > make structures be the same size doesn't sounds good to me. Looks more like > Scott is linking code that has been compiled with different options (w/&w/o > proj), although he mentioned in it's previous e-mail that he cleaned > everything up, reconfigured and rebuild the code, still I think something's > wrong. Here's the clue from where I make this assumption: > Rodrigo, You are right about linking code compiled with other options. The problem is that he wrote his own mainline program and didn't use the full set of MapServer compilation options when he compiled it. Due to a quirk of the projectionObj it has different sizes depending on whether USE_PROJ is defined as the include files are processed. In short the problem would never have occured if all the macro definitions from the MapServer makefile had been used when the custom mainline was written. However, to avoid this sort of issue in the future Steve has applied my suggested patch to ensure that the structures don't depend on the macros to establish size. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at dnr.state.mn.us Tue Nov 20 09:34:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 20 Nov 2001 11:34:18 -0600 Subject: [mapserver-users] experience with shptree Message-ID: How old is the version of the code you have. I fixed a bug in the shptree code about 2 weeks ago and it should work ok, at least it has for me. There's nothing you need to do to in the mapfile. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Dreesmann, Michael" 11/20/01 09:12AM >>> Hi, has any one experience with shptree ? I use it on WinNT with a polygon shape (50 MByte). I started it with shptree f001 10 shptree said creating index of old native format and creates a f001.qix but it seems to run in an endless loop. After finnishing (if it works), must I update the mapfile ? How faster is the presentation ? Regards Michael ---------------------------------------------------------------------------- ---- Landesvermessungsamt Brandenburg, Technische Stellen ALB/ALK E-Mail : Michael.Dreesmann at LVermAP.brandenburg.de Post : 14473 Potsdam, Heinrich-Mann-Allee 103 From Hannah.Jensen at erdc.usace.army.mil Tue Nov 20 10:23:59 2001 From: Hannah.Jensen at erdc.usace.army.mil (Jensen, Hannah ERDC-CRREL-NH) Date: Tue, 20 Nov 2001 13:23:59 -0500 Subject: [mapserver-users] symbol size limit? Message-ID: <048FBD219330D211B47000A0C9B3BAFD02A61A20@crl02.crrel.usace.army.mil> Hi, all. I'm trying to change the size of a symbol by changing the map file parameter via the URL. It seems to work up to a certain size, but not beyond it. It looks as if the limit is around 100 pixels. Is there a symbol size limit in MapServer? Maybe there's a better way to do what I'm trying to do. I want to draw a 3 mile radius circle around a point. I'm calculating the appropriate symbol size based on the map scale right now, but am open to other suggestions. I saw a few posts on this topic regarding the use of layer type circle, but I couldn't get it to work. Any ideas? Thanks! Cheers, Hannah Hannah Jensen (603) 646-4145 Remote Sensing / GIS Center Cold Regions Research and Engineering Lab (CRREL) US Army Corps of Engineers 72 Lyme Rd, Hanover, NH 03755-1290 From nicol.hermann at geoworld.de Tue Nov 20 12:55:52 2001 From: nicol.hermann at geoworld.de (Nicol Hermann) Date: Tue, 20 Nov 2001 21:55:52 +0100 Subject: [mapserver-users] seg faults with php_mapscript Message-ID: <3BFAC358.604D23FD@geoworld.de> Dear List, i?m working with the latest build of mapserver and php_mapscript on SuSE Linux (2.4.12) with PHP 4.0.6 (build as module) and mysql (3.23.41). To create the map i dynamically get the layer information from the mysql database where each parameter is stored in a separate field. To ensure that the variables for example 'units' has the right type i convert it if needed into Integer. After that i check the transformation with settype($map_units, "Integer"); printf ('
Units: %s', var_dump($map_units) ); printf returns int(5) Now my problem starts. Whenever i use this variable '$map_units' in the statement $map -> scalebar -> set ("units", $map_units); it causes a Segmentation fault. If i replace the variable '$map_units' with a "true" value for example 5 ( $map -> scalebar -> set ("units", 5); ) the application works fine. Does anybody know what?s the problem? Thanks for any help. Greetings from Germany Nicol From vguzman at main-task.com Tue Nov 20 09:42:34 2001 From: vguzman at main-task.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Tue, 20 Nov 2001 18:42:34 +0100 Subject: [mapserver-users] question creating shapes Message-ID: <3BFA960A.3000001@main-task.com> Hello, everybody. I would like to create a polygon shape, but I just can't make it work.... I can create point shapes (like in the mapserver example), but not polygons...... This is the code I've tryied: $shpFilePoligono = ms_newShapeFileObj( $shpPoligono, MS_SHP_POLYGON); $oShp = ms_newShapeObj(MS_SHP_POLYGON); $oLine = ms_newLineObj(); $oLine->addXY(1000000, 1000000); $oLine->addXY(1000022, 1000014); $oLine->addXY(1000000, 1000020); $oLine->addXY(1000000, 1000000); $oShp->add( $oLine ); $shpFile->addShape($oShp); $dbfFile = dbase_create( $shpPoligono.".dbf", array(array("PROG_ID", "N", 5, 0))); What am I doing wrong? Please help Thanks in advance, ---------------- Vladimir Guzm?n R www.main-task.com From DebasishS at riskinc.com Tue Nov 20 21:30:56 2001 From: DebasishS at riskinc.com (DebasishS at riskinc.com) Date: Wed, 21 Nov 2001 11:00:56 +0530 Subject: [mapserver-users] Convert Decimal Degrees to Meters Message-ID: Hi, I am trying to convert Decimal Degrees to Linear Units say Meters . Can anybody provide me a formula to go about it. thanks Debasish Sahu. Senior Software Engineer RMS India. From Trevor at NeedHighSpeed.com Tue Nov 20 23:19:41 2001 From: Trevor at NeedHighSpeed.com (Trevor Banister) Date: Wed, 21 Nov 2001 00:19:41 -0700 Subject: [mapserver-users] Convert Decimal Degrees to Meters Message-ID: <28A804CA68651348A9AA5EFFE3AD92980396FC@buzzsaw.banisterconsulting.com> It's a messy formula for Longitude, since it depends on Latitude. Latitude is easier, and should be something like Meters = (Lat1DD - Lat2DD) / 360 * Radius of the earth in Meters Longitude is essentially the same formula, but to compensate for different Latitudes, take the Cosine of the Average Latitude and use it as a scalar for the result. So for Longitude: Meters = (Lat1DD - Lat2DD) / 360 * Radius of the earth in Meters * Cosine((Lat1DD + Lat2DD) / 2) Taking the average might introduce some errors if Lat1DD and Lat2DD are far apart. Someone smarter than me in math might be able to explain this. To do true conversions (reprojections) to standard coordinate systems, there's some C code at the website below that will convert from Lat/Long to UTM (meters) There should also be some good code in the reprojection library that is included with MapServer. http://sbcx.mit.edu/bathymetry/ Trevor Banister Need High Speed, Inc. Trevor at NeedHighSpeed.com 303-942-0979 x 10 -----Original Message----- From: DebasishS at riskinc.com [mailto:DebasishS at riskinc.com] Sent: Tuesday, November 20, 2001 10:31 PM Subject: [mapserver-users] Convert Decimal Degrees to Meters Hi, I am trying to convert Decimal Degrees to Linear Units say Meters . Can anybody provide me a formula to go about it. thanks Debasish Sahu. Senior Software Engineer RMS India. From Michael.Dreesmann at LVERMAP.brandenburg.de Wed Nov 21 00:46:13 2001 From: Michael.Dreesmann at LVERMAP.brandenburg.de (Dreesmann, Michael) Date: Wed, 21 Nov 2001 09:46:13 +0100 Subject: [mapserver-users] experience with shptree Message-ID: <47E1D354A19DD311BA2600105A4234F40139CC50@ntsv3.lvap.kvv-bb.de> Sometimes Windows makes me crazy. Today shptree exit after a view seconds with following error (see shptree_error.gif). I ignored the error and use the quadtree-indexfile like your info. It works well and very fast. The shptree version I used is from Feb. 2001 (MS 3.4). I'll download a newer one and hope it will work okay, or I generate it under LINUX. Thanks for your help. Michael -----Ursprungliche Nachricht----- Von: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Gesendet: Dienstag, 20. November 2001 18:34 An: mapserver-users at lists.gis.umn.edu; Michael.Dreesmann at LVERMAP.brandenburg.de Betreff: Re: [mapserver-users] experience with shptree How old is the version of the code you have. I fixed a bug in the shptree code about 2 weeks ago and it should work ok, at least it has for me. There's nothing you need to do to in the mapfile. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Dreesmann, Michael" 11/20/01 09:12AM >>> Hi, has any one experience with shptree ? I use it on WinNT with a polygon shape (50 MByte). I started it with shptree f001 10 shptree said creating index of old native format and creates a f001.qix but it seems to run in an endless loop. After finnishing (if it works), must I update the mapfile ? How faster is the presentation ? Regards Michael ---------------------------------------------------------------------------- ---- Landesvermessungsamt Brandenburg, Technische Stellen ALB/ALK E-Mail : Michael.Dreesmann at LVermAP.brandenburg.de Post : 14473 Potsdam, Heinrich-Mann-Allee 103 -------------- next part -------------- A non-text attachment was scrubbed... Name: shptree_error.gif Type: image/gif Size: 13213 bytes Desc: not available URL: From Michael.Dreesmann at LVERMAP.brandenburg.de Wed Nov 21 02:17:36 2001 From: Michael.Dreesmann at LVERMAP.brandenburg.de (Dreesmann, Michael) Date: Wed, 21 Nov 2001 11:17:36 +0100 Subject: [mapserver-users] Convert Decimal Degrees to Meters Message-ID: <47E1D354A19DD311BA2600105A4234F40139CC51@ntsv3.lvap.kvv-bb.de> If you want to canculate a distance on earth (unit degrees) into meters, there are two ways. An easy one (not so exact) distance [m] = 6378137.0 [m] * Pi * distance [degree] / 180.0 6378137.0 means the earth radius To get an exact value you must transform each coordinate from maybe GRS80 (geographical system) into maybe UTM (metre based coordinate system). This is what the projection of the mapserver did. The formula could be found in the PROJ4 source. If you want to know more about coordinate systems take a look to http://www.epsg.com. The European Petroleum Surveying Group has more than 1700 definitions of world wide used coordinate systems. Michael ---------------------------------------------------------------------------- ---- Landesvermessungsamt Brandenburg the state mapping agency of Brandenburg -----Ursprungliche Nachricht----- Von: DebasishS at riskinc.com [mailto:DebasishS at riskinc.com] Gesendet: Mittwoch, 21. November 2001 06:31 Betreff: [mapserver-users] Convert Decimal Degrees to Meters Hi, I am trying to convert Decimal Degrees to Linear Units say Meters . Can anybody provide me a formula to go about it. thanks Debasish Sahu. Senior Software Engineer RMS India. From Chip.Hankley at GASAI.Com Wed Nov 21 08:33:58 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 21 Nov 2001 10:33:58 -0600 Subject: [mapserver-users] How do they do that??? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E401D@postoffice.GASAI.Com> I've seen a few MapServer apps where, after a navigation event, the entire page doesn't reload... only the map window. for example: http://maps.dnr.state.mn.us/landview/ http://144.92.235.164/orthofinder/ How do they do that? Is this using Java? One site uses frames and the other doesn't... TIA Chip Hankley From ed at topozone.com Wed Nov 21 09:15:51 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 21 Nov 2001 12:15:51 -0500 Subject: [mapserver-users] How do they do that??? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E7860@mercator.topozone.com> Yes, both sites use Java applets to generate the MapServer requests and update the image they display. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Wednesday, November 21, 2001 11:34 AM To: MapServer List (E-mail) Subject: [mapserver-users] How do they do that??? I've seen a few MapServer apps where, after a navigation event, the entire page doesn't reload... only the map window. for example: http://maps.dnr.state.mn.us/landview/ http://144.92.235.164/orthofinder/ How do they do that? Is this using Java? One site uses frames and the other doesn't... TIA Chip Hankley From pramsey at refractions.net Wed Nov 21 10:41:22 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 21 Nov 2001 10:41:22 -0800 Subject: [mapserver-users] How do they do that??? References: <3DFF131E4E6D2D4198CDD758F35A53536E401D@postoffice.GASAI.Com> Message-ID: <3BFBF552.36B31368@refractions.net> You could also do it w/ JavaScript and frames, but you would not be able to do the purty zoom boxes. I think ArcIMS uses the Javascript / Frames approach for their 'html only' client. "Hankley, Chip" wrote: > > I've seen a few MapServer apps where, after a navigation event, the entire > page doesn't reload... only the map window. > > for example: > http://maps.dnr.state.mn.us/landview/ > http://144.92.235.164/orthofinder/ > > How do they do that? Is this using Java? One site uses frames and the other > doesn't... > > TIA > > Chip Hankley -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Wed Nov 21 11:23:11 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 21 Nov 2001 13:23:11 -0600 Subject: [mapserver-users] How do they do that??? Message-ID: Well I can speak to landview since I wrote it. In short it uses a small applet to do the display and mouse event handling and manages all of the coordinate information using a javascript library. Then I use a public method of the applet to swap the image being displayed. The image urls are actually calls to the MapServer (mode=map). This could also be done using DHTML (i.e. layers) IF you use frames or a single page design with absolute positioning of layers. Absolute positioning is fine in a frame with nothing else or if you have a design with nothing that will change size to the left and above your map. Personally I like the freedom the applet gives you. All of my code is available on request, but it really needs more documentation (like everything else). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 11/21/01 10:33AM >>> I've seen a few MapServer apps where, after a navigation event, the entire page doesn't reload... only the map window. for example: http://maps.dnr.state.mn.us/landview/ http://144.92.235.164/orthofinder/ How do they do that? Is this using Java? One site uses frames and the other doesn't... TIA Chip Hankley From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Wed Nov 21 12:10:14 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Wed, 21 Nov 2001 15:10:14 -0500 Subject: [mapserver-users] QUERYONLY? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD1C@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I've updated the docs with this correction, Cheers, J.F. -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, November 19, 2001 2:47 PM To: Regina.Obe.PFD at ci.boston.ma.us; v at w.cl Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] QUERYONLY? My bad, it's acually TYPE QUERY. How the query is handled is dependant on the underlying shape type not the LAYER TYPE so that setting was moved. The 3.5 docs are mostly correct except that QUERYONLY should be QUERY. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Obe, Regina DND\MIS" 11/14/01 04:27PM >>> I got a similar error too (not sure if these two are related) - using the mapserv35_png_ogr for win32 build 11/7/2001. This was using the itasca demo app for 3.5 (I downloaded 10/17/2001) (and my other apps which worked with prior version of the mapserv 3.5 exe also give similar behavior. So I was wondering if an interim change to specs had taken place during the 3.5 between 10/19 and now. The prior version I was using was a build around 10/19/2001. I get an error getSymbol(): Symbol definition error. (END):(96) (I did modify it a bit to work with my configuration so not the exact demo - but just minor changes to paths) When trying to use the itasca demo app - dated around 10/17/2001 -----Original Message----- From: Vinko Vrsalovic B. [mailto:v at w.cl] Sent: Wednesday, November 14, 2001 11:29 AM To: steve.lime at dnr.state.mn.us Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] QUERYONLY? > It's STATUS QUERY, not QUERYONLY. also tried that, but: Warning: MapServer Error in getSymbol(): (QUERY):(64) LAYER NAME buses METADATA "DESCRIPTON" "Rec Buses" "RESULT_FIELDS" "ROUTE_ID" END <---------------------------------------- Line 64 STATUS QUERY TYPE LINE LABELITEM "NOMBRE" DATA r_bus_utm56 CLASS NAME "Rec Buses" TEMPLATE "test_draw_map.phtml" LABEL COLOR 238 238 140 FONT arial_V TYPE truetype ANGLE AUTO ANTIALIAS SIZE 7 END COLOR 200 150 54 END TOLERANCE 10 END -- V. From Chip.Hankley at GASAI.Com Wed Nov 21 12:52:59 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 21 Nov 2001 14:52:59 -0600 Subject: [mapserver-users] referenceMapObj - PHP Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E4025@postoffice.GASAI.Com> How do I access the properties of a referenceMapObj with PHP MapScript? I want to change the width and height properties... I've tried several variations on the following... ($map is set) $refmap=$map->referenceMapObj; $refmap->set('width', 100); or $map->referenceMapObj->set('width', 100); ...both of these result in Fatal error: Call to a member function on a non-object in ... Thanks! Chip Hankley From morissette at dmsolutions.ca Wed Nov 21 13:27:43 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 21 Nov 2001 16:27:43 -0500 Subject: [mapserver-users] referenceMapObj - PHP References: <3DFF131E4E6D2D4198CDD758F35A53536E4025@postoffice.GASAI.Com> Message-ID: <3BFC1C4F.113AE87@dmsolutions.ca> "Hankley, Chip" wrote: > > I've tried several variations on the following... ($map is set) > > $refmap=$map->referenceMapObj; > $refmap->set('width', 100); > > or > > $map->referenceMapObj->set('width', 100); > > ...both of these result in Fatal error: Call to a member function on a > non-object in ... > The class member is actually called "reference", so the following should work: $refmap=$map->reference; $refmap->set('width', 100); or $map->reference->set('width', 100); -- ------------------------------------------------------------ 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 trem at socialchange.net.au Wed Nov 21 13:49:32 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Thu, 22 Nov 2001 08:49:32 +1100 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 Message-ID: <004301c172d6$6759f100$74010a0a@socialchange.net.au> Hi, Does anyone know if there is an EPSG code for LCC projection information? I seem to remember looking last time and couldn't fine one so had to use the following type of syntax: PROJECTION "proj=lcc" "ellps=aust_SA" "lat_0=-32.5" "lon_0=147.0" "lat_1=-29.5" "lat_2=-36.5" END If there is no EPSG code for this currently, does anyone know if there is likely to be in the near future? Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at GASAI.Com Wed Nov 21 14:27:37 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 21 Nov 2001 16:27:37 -0600 Subject: [mapserver-users] referenceMapObj - PHP Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E4026@postoffice.GASAI.Com> Daniel... I must be confused about how this works. Your comments help, and I can now access the class member and manipulate it without error... but the size of the image that is produced by drawReferenceMap() is unaffected. I have a reference image that is 300x300. In the mapfile I set it's width / height to 150x150, however the image that is produced by $img=drawReferenceMap() and $img->saveWebImage is still 300x300 In PHP, $map->reference->width returns 150 (as is specified by the mapfile), and if I were to change is by issuing $map->reference->set('width', 100) then $map->reference->width returns 100, but subsequent execution of drawReferenceMap() and saveWebImage still result in an image that is 300x300. Am I misunderstanding how this component works? Thanks for your help! Chip "Morissette, Daniel" wrote: > >The class member is actually called "reference", so the following should >work: > > $refmap=$map->reference; > $refmap->set('width', 100); >or > $map->reference->set('width', 100); From morissette at dmsolutions.ca Wed Nov 21 14:55:27 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 21 Nov 2001 17:55:27 -0500 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <004301c172d6$6759f100$74010a0a@socialchange.net.au> Message-ID: <3BFC30DF.807F8C30@dmsolutions.ca> > Trem Stamp wrote: > > Does anyone know if there is an EPSG code for LCC projection > information? I seem to remember looking last time and couldn't fine > one so had to use the following type of syntax: > > PROJECTION > "proj=lcc" > "ellps=aust_SA" > "lat_0=-32.5" > "lon_0=147.0" > "lat_1=-29.5" > "lat_2=-36.5" > END > > If there is no EPSG code for this currently, does anyone know if there > is likely to be in the near future? > Trem, We ran into the same issue for Canadian LCC projections... there wasn't any in the official list of EPSG codes. But you can edit the /usr/local/share/proj/epsg file to add your own codes... that's what we ended up doing... read on... Cubewerx which is actively involved in all that WMS stuff had also run into this issue and resolved it by defining its own extension to the EPSG list for LCC and other projections useful to canadians. They used custom EPSG codes in the range 42100-42399. We adopted the same codes for our own WMS implementations and added (some of) them to our local "epsg" file, so our clients and servers can exchange LCC projection with other servers that also adopted Cubewerx's EPSG extension. Question to Frank W: Do you think the 42100-42399 custom EPSG codes could be added to the official "epsg" file distributed with PROJ4? Now, I realize that this doesn't resolve your problem with Australian projections not having an EPSG code... I think you should raise this issue on the WMS-Dev list and see if a better solution to this problem has been adopted. (See http://www.intl-interfaces.net/mailman/listinfo/wms-dev) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Nov 21 15:20:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 21 Nov 2001 18:20:49 -0500 Subject: [mapserver-users] referenceMapObj - PHP References: <3DFF131E4E6D2D4198CDD758F35A53536E4026@postoffice.GASAI.Com> Message-ID: <3BFC36D1.B6B5F52E@dmsolutions.ca> "Hankley, Chip" wrote: > > I have a reference image that is 300x300. > > In the mapfile I set it's width / height to 150x150, however the image that > is produced by $img=drawReferenceMap() and $img->saveWebImage is still > 300x300 > Well, maybe that's not a PHP-specific issue. I'm not sure how the reference map size is handled internally in MapServer, but I wouldn't be surprised if there would be an assumption that the size that you set in the mapfile has to match the actual size of the reference image. I'll let Steve comment on that. -- ------------------------------------------------------------ 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 aalgera at ibama.gov.br Wed Nov 21 16:15:29 2001 From: aalgera at ibama.gov.br (Andries Jan Algera) Date: Wed, 21 Nov 2001 22:15:29 -0200 (BRST) Subject: No subject Message-ID: <1006388129.3bfc43a121914@www2.ibama.gov.br> I compiled apache and php as one binary. It's looks like that this reduces significantly the memory usage of the web server. However, after reconfiguring and recompiling mapserver/php-mapscript with the following configure options -- with-apache=../apache_1.3.22 --with-php=../php-4.0.6 --with-proj --with- oraclespatial=$ORACLE_HOME and installing the php_mapscript.so in the extensions directory, I get the following error when I am trying to load a page: Unable to load dynamic library '/opt/local/lib/php/extensions/php_mapscript.so' - ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /opt/local/lib/php/extensions/php_mapscript.so: symbol alloc_globals: referenced symbol not found Can anyone explain what may be happening here, and, perhaps, indicate what I might try to resolve this. OS=Solaris2.6 and gcc=2.95.3 Thanks for the help Andries Jan Algera CSR - IBAMA Fone/Phone: +55 61 316-1453 Fax: +55 61 223-7108 From pramsey at refractions.net Wed Nov 21 21:27:24 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 21 Nov 2001 21:27:24 -0800 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <004301c172d6$6759f100$74010a0a@socialchange.net.au> <3BFC30DF.807F8C30@dmsolutions.ca> Message-ID: <3BFC8CBC.7DE0A456@refractions.net> This dependence on the EPSG authority has got to be the worst aspect of the WMS spec. There are scads of useful (and widely used!) projections which EPSG does not have codes for. So now people are just randomly adding codes willy nilly. ESRI has already done so, in their "predefined" projections provided with ArcGIS8. They took the EPSG list, dropped a few projections, and then added a bunch of new ones of their own. I can send a proj4-style epsg file with the ESRI-added codes to anyone who needs it. What I do not understand is why the WMS spec does not support WKT as a means of defining projection information in the first place. Ironically, ArcIMS *does* support WKT for defining projection information. Daniel Morissette wrote: > > > Trem Stamp wrote: > > > > Does anyone know if there is an EPSG code for LCC projection > > information? I seem to remember looking last time and couldn't fine > > one so had to use the following type of syntax: > > > > PROJECTION > > "proj=lcc" > > "ellps=aust_SA" > > "lat_0=-32.5" > > "lon_0=147.0" > > "lat_1=-29.5" > > "lat_2=-36.5" > > END > > > > If there is no EPSG code for this currently, does anyone know if there > > is likely to be in the near future? > > > > Trem, > > We ran into the same issue for Canadian LCC projections... there wasn't > any in the official list of EPSG codes. But you can edit the > /usr/local/share/proj/epsg file to add your own codes... that's what we > ended up doing... read on... > > Cubewerx which is actively involved in all that WMS stuff had also run > into this issue and resolved it by defining its own extension to the > EPSG list for LCC and other projections useful to canadians. They used > custom EPSG codes in the range 42100-42399. We adopted the same codes > for our own WMS implementations and added (some of) them to our local > "epsg" file, so our clients and servers can exchange LCC projection with > other servers that also adopted Cubewerx's EPSG extension. > > Question to Frank W: Do you think the 42100-42399 custom EPSG codes > could be added to the official "epsg" file distributed with PROJ4? > > Now, I realize that this doesn't resolve your problem with Australian > projections not having an EPSG code... I think you should raise this > issue on the WMS-Dev list and see if a better solution to this problem > has been adopted. > (See http://www.intl-interfaces.net/mailman/listinfo/wms-dev) > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From rob at socialchange.net.au Wed Nov 21 21:58:07 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 22 Nov 2001 16:58:07 +1100 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <004301c172d6$6759f100$74010a0a@socialchange.net.au> <3BFC30DF.807F8C30@dmsolutions.ca> <3BFC8CBC.7DE0A456@refractions.net> Message-ID: <3BFC93EF.718B2772@socialchange.net.au> Interesting discussion this. IMHO - and I've been involved with both mapserver and WMS since inception, the use of codes allows a greater degree of discovery through service registries, and ability of client to discover how to negotiate a binding with the service. WMS is all about interoperability after all. The lack of a better taxonomy is a broader issue - the solution would be to have an active engagement with an ISO process so that each country has a simple means to register its WKT (actually the model for the projection) and get a code assigned as required. RA Paul Ramsey wrote: > This dependence on the EPSG authority has got to be the worst aspect of > the WMS spec. There are scads of useful (and widely used!) projections > which EPSG does not have codes for. So now people are just randomly > adding codes willy nilly. ESRI has already done so, in their > "predefined" projections provided with ArcGIS8. They took the EPSG list, > dropped a few projections, and then added a bunch of new ones of their > own. I can send a proj4-style epsg file with the ESRI-added codes to > anyone who needs it. > > What I do not understand is why the WMS spec does not support WKT as a > means of defining projection information in the first place. Ironically, > ArcIMS *does* support WKT for defining projection information. > > Daniel Morissette wrote: > > > > > Trem Stamp wrote: > > > > > > Does anyone know if there is an EPSG code for LCC projection > > > information? I seem to remember looking last time and couldn't fine > > > one so had to use the following type of syntax: > > > > > > PROJECTION > > > "proj=lcc" > > > "ellps=aust_SA" > > > "lat_0=-32.5" > > > "lon_0=147.0" > > > "lat_1=-29.5" > > > "lat_2=-36.5" > > > END > > > > > > If there is no EPSG code for this currently, does anyone know if there > > > is likely to be in the near future? > > > > > > > Trem, > > > > We ran into the same issue for Canadian LCC projections... there wasn't > > any in the official list of EPSG codes. But you can edit the > > /usr/local/share/proj/epsg file to add your own codes... that's what we > > ended up doing... read on... > > > > Cubewerx which is actively involved in all that WMS stuff had also run > > into this issue and resolved it by defining its own extension to the > > EPSG list for LCC and other projections useful to canadians. They used > > custom EPSG codes in the range 42100-42399. We adopted the same codes > > for our own WMS implementations and added (some of) them to our local > > "epsg" file, so our clients and servers can exchange LCC projection with > > other servers that also adopted Cubewerx's EPSG extension. > > > > Question to Frank W: Do you think the 42100-42399 custom EPSG codes > > could be added to the official "epsg" file distributed with PROJ4? > > > > Now, I realize that this doesn't resolve your problem with Australian > > projections not having an EPSG code... I think you should raise this > > issue on the WMS-Dev list and see if a better solution to this problem > > has been adopted. > > (See http://www.intl-interfaces.net/mailman/listinfo/wms-dev) > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette morissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > Don't put for tomorrow what you can do today, because if > > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From info at geo-it.com Thu Nov 22 00:11:27 2001 From: info at geo-it.com (Geo-IT-GmbH) Date: Thu, 22 Nov 2001 09:11:27 +0100 Subject: [mapserver-users] MapServer ArcView Utility Message-ID: <9138808AB827D311B56800E018900A610FB653@gdppdc.gdp.com> Hi Ross, we have tried out Your MapServer ArcView Utility and it works great with Internet Explorer. But we couldn't get it started with Netscape (4.7). We modified the code of the applet a little bit and now it works with one exception: The dimensions of the inline images for the scalebar, the legend and the reference map are not recognized by Netscape. That means, they are always scaled to the same false dimensions (20x20 Pixel), independent from their real dimensions. That's no problem for the scalebar and the reference map, because their dimensions are always the same and You can specify width and height in the HTML-code. But the dimensions of the legend are varying, dependent on the layer combination. I have searched days for a solution of this problem, but with no effort. Have You (or the list) any explanation or solution for this strange behaviour? Thanks in advance, Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** From info at geo-it.com Thu Nov 22 00:21:23 2001 From: info at geo-it.com (Geo-IT-GmbH) Date: Thu, 22 Nov 2001 09:21:23 +0100 Subject: AW: [mapserver-users] How do they do that??? Message-ID: <9138808AB827D311B56800E018900A610FB654@gdppdc.gdp.com> Hi Steve, we are also experimenting with Java applets to generate MapServer requests (using Ross Searles ArcView utility). Can You please send us the code for Your landview application. We are working on the combination of Java applets and the MapServer oraclespatial option. Thanks in advance, Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** > -----Urspr?ngliche Nachricht----- > Von: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Gesendet am: Mittwoch, 21. November 2001 20:23 > An: Chip.Hankley at GASAI.Com; mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] How do they do that??? > > Well I can speak to landview since I wrote it. In short it uses a small > applet to do the display and mouse event handling and manages all of the > coordinate information using a javascript library. Then I use a public > method of the applet to swap the image being displayed. The image urls are > actually calls to the MapServer (mode=map). This could also be done using > DHTML (i.e. layers) IF you use frames or a single page design with > absolute positioning of layers. Absolute positioning is fine in a frame > with nothing else or if you have a design with nothing that will change > size to the left and above your map. Personally I like the freedom the > applet gives you. > > All of my code is available on request, but it really needs more > documentation (like everything else). > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Hankley, Chip" 11/21/01 10:33AM >>> > I've seen a few MapServer apps where, after a navigation event, the entire > page doesn't reload... only the map window. > > for example: > http://maps.dnr.state.mn.us/landview/ > http://144.92.235.164/orthofinder/ > > How do they do that? Is this using Java? One site uses frames and the > other > doesn't... > > TIA > > Chip Hankley > From cathode at nichebox.com Thu Nov 22 00:49:21 2001 From: cathode at nichebox.com (Rob Martinson) Date: Thu, 22 Nov 2001 10:49:21 +0200 Subject: [mapserver-users] How do they do that??? In-Reply-To: <3BFBF552.36B31368@refractions.net> Message-ID: <002401c17332$9593e060$d600a8c0@rmm> It is also possible to do this with a bit of Javascript and without frames. And yes, you can implement the zoom rects as well. If you're familiar with the various implementations of onMouseOver image swapping, the idea is the same. Basically your map image is in a standard image tag with a name. Something like: Buildmap.php would return ONLY image data for the requested map and parameters. The doClick function would retrieve the clicked mouse coords and create a new string to set as the src of this image and would do so as: if(document.formname.tool.value == 'zoomin'){ zoom = zoom * 2; }else if (document.formname.tool.value == 'zoomout'){ zoom = zoom / 2; } document[mymap].src = 'http://domain.com/buildmap.php?zoom='+zoom; Of course you would also pass the x/y coords and change any other information you needed. In order to do this, you must use client-side JS to preserve the state of any variables (zoom, x/y, etc.) but it's relatively easy and works well. If you're interested in doing this and need some help, I can setup a small sample if you like. Hope this helps. Rob Martinson Nichebox - http://www.nichebox.com > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of > Paul Ramsey > Sent: Wednesday, November 21, 2001 8:41 PM > To: Hankley, Chip; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] How do they do that??? > > > You could also do it w/ JavaScript and frames, but you would > not be able to do the purty zoom boxes. I think ArcIMS uses > the Javascript / Frames approach for their 'html only' client. > > "Hankley, Chip" wrote: > > > > I've seen a few MapServer apps where, after a navigation event, the > > entire page doesn't reload... only the map window. > > > > for example: > > http://maps.dnr.state.mn.us/landview/ > > http://144.92.235.164/orthofinder/ > > > > How do they do that? Is this using Java? One site uses > frames and the > > other doesn't... > > > > TIA > > > > Chip Hankley > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ > From PHERCAD at terra.es Thu Nov 22 01:29:18 2001 From: PHERCAD at terra.es (PHERCAD) Date: Thu, 22 Nov 2001 10:29:18 +0100 Subject: [mapserver-users] Simple question Message-ID: <505824c4bb.4c4bb50582@teleline.es> Hi all, I am new to this, and have been able to set a working mapserver demo.I have some soubts, though.Is it possible to simbolize a layer based on an item's attributes (e.g. different color for every different road type in a shapefile)?.If so, how is this acomplished?. Thank you very much in advance Juan From castro at recife.pe.gov.br Thu Nov 22 01:41:09 2001 From: castro at recife.pe.gov.br (ronaldo castro) Date: Thu, 22 Nov 2001 07:41:09 -0200 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <004301c172d6$6759f100$74010a0a@socialchange.net.au> Message-ID: <3BFCC835.6AE41728@recife.pe.gov.br> Friends Please, how can i unsubscribe this list? Thanks Ronaldo Trem Stamp wrote: > Hi, Does anyone know if there is an EPSG code for LCC projection > information? I seem to remember looking last time and couldn't fine > one so had to use the following type of syntax: PROJECTION > "proj=lcc" > "ellps=aust_SA" > "lat_0=-32.5" > "lon_0=147.0" > "lat_1=-29.5" > "lat_2=-36.5" > END If there is no EPSG code for this currently, does anyone know if > there is likely to be in the near future? Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From cabral at yadata.net Thu Nov 22 04:41:42 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Thu, 22 Nov 2001 10:41:42 -0200 Subject: [mapserver-users] symbol size limit? Message-ID: <00ad01c17353$09f02f20$0207a8c0@naumaki> You can create a circle layer made up of circle shapes with 3 mile radius based on your original point layer. This way you don't have to worry about calculating the right size of your symbols. Circle shapes are two-point shapes, which define the bounding box (left,top)-(right,bottom) for the circle. Am I right Steve? Rod. ----- Original Message ----- From: "Jensen, Hannah ERDC-CRREL-NH" To: Sent: Tuesday, November 20, 2001 4:23 PM Subject: [mapserver-users] symbol size limit? Hi, all. I'm trying to change the size of a symbol by changing the map file parameter via the URL. It seems to work up to a certain size, but not beyond it. It looks as if the limit is around 100 pixels. Is there a symbol size limit in MapServer? Maybe there's a better way to do what I'm trying to do. I want to draw a 3 mile radius circle around a point. I'm calculating the appropriate symbol size based on the map scale right now, but am open to other suggestions. I saw a few posts on this topic regarding the use of layer type circle, but I couldn't get it to work. Any ideas? Thanks! Cheers, Hannah Hannah Jensen (603) 646-4145 Remote Sensing / GIS Center Cold Regions Research and Engineering Lab (CRREL) US Army Corps of Engineers 72 Lyme Rd, Hanover, NH 03755-1290 From dchampion at clacks.gov.uk Thu Nov 22 05:22:34 2001 From: dchampion at clacks.gov.uk (dchampion at clacks.gov.uk) Date: Thu, 22 Nov 2001 13:22:34 +0000 Subject: [mapserver-users] X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: subscribe ********************************************************************** This email and any attachments have been scanned for viruses prior to leaving Clackmannanshire Council. Clackmannanshire Council will not be liable for any losses as a result of any viruses being passed on. www.clacksweb.org.uk ********************************************************************** From martin at cadcorpdev.co.uk Thu Nov 22 05:33:49 2001 From: martin at cadcorpdev.co.uk (Martin Daly) Date: Thu, 22 Nov 2001 13:33:49 -0000 Subject: [wms-dev] Re: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <004301c172d6$6759f100$74010a0a@socialchange.net.au> <3BFC30DF.807F8C30@dmsolutions.ca> <3BFC8CBC.7DE0A456@refractions.net> <3BFC93EF.718B2772@socialchange.net.au> Message-ID: <00c101c1735a$5492eb10$c49e28c3@VICTORIA> My understanding was that using "EPSG:xxxx" was a pragmatic solution to a complex problem. GML 3.0 will have XML encoding of co-ordinate reference systems (much more powerful than existing WKT), and support for CRS dictionaries, e.g. for on-line repositories containng CRS definitions that can be referenced with a URI. This will remove the dependence on EPSG, and the problem of using CRS-s that do not have an EPSG code will disappear in an instant ... or at least the problem will be changed and moved somewhere else. Regards, Martin Daly, Technical Director, Cadcorp Ltd e: martin at cadcorpdev.co.uk w: www.cadcorp.com t: +44 (0) 20 7383 0014 f: +44 (0) 20 7388 6313 ----- Original Message ----- From: "Rob Atkinson" To: "Paul Ramsey" Cc: "Daniel Morissette" ; "Trem Stamp" ; "Mapserv Users List" ; Sent: Thursday, November 22, 2001 5:58 AM Subject: [wms-dev] Re: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 > > Interesting discussion this. > > IMHO - and I've been involved with both mapserver and WMS since inception, the > use of codes allows a greater degree of discovery through service registries, > and ability of client to discover how to negotiate a binding with the service. > WMS is all about interoperability after all. The lack of a better taxonomy is > a broader issue - the solution would be to have an active engagement with an > ISO process so that each country has a simple means to register its WKT > (actually the model for the projection) and get a code assigned as required. > > RA > > Paul Ramsey wrote: > > > This dependence on the EPSG authority has got to be the worst aspect of > > the WMS spec. There are scads of useful (and widely used!) projections > > which EPSG does not have codes for. So now people are just randomly > > adding codes willy nilly. ESRI has already done so, in their > > "predefined" projections provided with ArcGIS8. They took the EPSG list, > > dropped a few projections, and then added a bunch of new ones of their > > own. I can send a proj4-style epsg file with the ESRI-added codes to > > anyone who needs it. > > > > What I do not understand is why the WMS spec does not support WKT as a > > means of defining projection information in the first place. Ironically, > > ArcIMS *does* support WKT for defining projection information. > > > > Daniel Morissette wrote: > > > > > > > Trem Stamp wrote: > > > > > > > > Does anyone know if there is an EPSG code for LCC projection > > > > information? I seem to remember looking last time and couldn't fine > > > > one so had to use the following type of syntax: > > > > > > > > PROJECTION > > > > "proj=lcc" > > > > "ellps=aust_SA" > > > > "lat_0=-32.5" > > > > "lon_0=147.0" > > > > "lat_1=-29.5" > > > > "lat_2=-36.5" > > > > END > > > > > > > > If there is no EPSG code for this currently, does anyone know if there > > > > is likely to be in the near future? > > > > > > > > > > Trem, > > > > > > We ran into the same issue for Canadian LCC projections... there wasn't > > > any in the official list of EPSG codes. But you can edit the > > > /usr/local/share/proj/epsg file to add your own codes... that's what we > > > ended up doing... read on... > > > > > > Cubewerx which is actively involved in all that WMS stuff had also run > > > into this issue and resolved it by defining its own extension to the > > > EPSG list for LCC and other projections useful to canadians. They used > > > custom EPSG codes in the range 42100-42399. We adopted the same codes > > > for our own WMS implementations and added (some of) them to our local > > > "epsg" file, so our clients and servers can exchange LCC projection with > > > other servers that also adopted Cubewerx's EPSG extension. > > > > > > Question to Frank W: Do you think the 42100-42399 custom EPSG codes > > > could be added to the official "epsg" file distributed with PROJ4? > > > > > > Now, I realize that this doesn't resolve your problem with Australian > > > projections not having an EPSG code... I think you should raise this > > > issue on the WMS-Dev list and see if a better solution to this problem > > > has been adopted. > > > (See http://www.intl-interfaces.net/mailman/listinfo/wms-dev) > > > > > > -- > > > ------------------------------------------------------------ > > > Daniel Morissette morissette at dmsolutions.ca > > > DM Solutions Group http://www.dmsolutions.ca/ > > > ------------------------------------------------------------ > > > Don't put for tomorrow what you can do today, because if > > > you enjoy it today you can do it again tomorrow. > From info at geo-it.com Thu Nov 22 05:47:18 2001 From: info at geo-it.com (Geo-IT-GmbH) Date: Thu, 22 Nov 2001 14:47:18 +0100 Subject: [mapserver-users] msProcessProjection() Error Message-ID: <9138808AB827D311B56800E018900A610FB655@gdppdc.gdp.com> Hi, trying to run MapServer 3.5 nightly under Suse Linux, I get this error: msProcessProjection(): Projection library error. unknown projection id. I used Proj-4.4.4. Any ideas? Thanks. Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** From steve.lime at dnr.state.mn.us Thu Nov 22 07:03:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 22 Nov 2001 09:03:33 -0600 Subject: AW: [mapserver-users] How do they do that??? Message-ID: I'm out of the office until next monday but you should be able to get everything off the web. LandView itself is a single HTML file. Just download maps.dnr.state.mn.us/landview/index.html with Netscape. All the javascript is at maps.dnr.state.mn.us/javascript and the java applet is at maps.dnr.state.mn.us/java/mapplet. It'd be nice if we had coordinated client development efforts as well. That's what I was aiming for when I started LandView. Think of the tools that could be written around such a beast. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Geo-IT-GmbH 11/22/01 02:33 AM >>> Hi Steve, we are also experimenting with Java applets to generate MapServer requests (using Ross Searles ArcView utility). Can You please send us the code for Your landview application. We are working on the combination of Java applets and the MapServer oraclespatial option. Thanks in advance, Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** > -----Urspr?ngliche Nachricht----- > Von: Stephen Lime [SMTP:steve.lime at dnr.state.mn.us] > Gesendet am: Mittwoch, 21. November 2001 20:23 > An: Chip.Hankley at GASAI.Com; mapserver-users at lists.gis.umn.edu > Betreff: Re: [mapserver-users] How do they do that??? > > Well I can speak to landview since I wrote it. In short it uses a small > applet to do the display and mouse event handling and manages all of the > coordinate information using a javascript library. Then I use a public > method of the applet to swap the image being displayed. The image urls are > actually calls to the MapServer (mode=map). This could also be done using > DHTML (i.e. layers) IF you use frames or a single page design with > absolute positioning of layers. Absolute positioning is fine in a frame > with nothing else or if you have a design with nothing that will change > size to the left and above your map. Personally I like the freedom the > applet gives you. > > All of my code is available on request, but it really needs more > documentation (like everything else). > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Hankley, Chip" 11/21/01 10:33AM >>> > I've seen a few MapServer apps where, after a navigation event, the entire > page doesn't reload... only the map window. > > for example: > http://maps.dnr.state.mn.us/landview/ > http://144.92.235.164/orthofinder/ > > How do they do that? Is this using Java? One site uses frames and the > other > doesn't... > > TIA > > Chip Hankley > From csbruce at cubewerx.com Thu Nov 22 07:32:19 2001 From: csbruce at cubewerx.com (Craig Bruce) Date: Thu, 22 Nov 2001 10:32:19 -0500 Subject: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 Message-ID: <200111221532.KAA08019@tux.cubewerx.com> Paul Ramsey wrote: > This dependence on the EPSG authority has got to be the worst aspect of > the WMS spec. There are scads of useful (and widely used!) projections > which EPSG does not have codes for. So now people are just randomly > adding codes willy nilly. ESRI has already done so, in their > "predefined" projections provided with ArcGIS8. They took the EPSG list, > dropped a few projections, and then added a bunch of new ones of their > own. I can send a proj4-style epsg file with the ESRI-added codes to > anyone who needs it. The reason that the EPSG approach was incorporated is that a concrete list of codes makes it easy for a map server to describe to its client what coordinate systems are available for its layers. An alternate approach for fully dynamic coordinate systems would be for the map server to describe what projections and datums are available from a well-known list. (Ellipsoids can be fully described parametrically.) This method would need to be in addition to the present fixed-coordinate-system method, since some map servers and layers may only be available for very specific projection parameters. > What I do not understand is why the WMS spec does not support WKT as a > means of defining projection information in the first place. Ironically, > ArcIMS *does* support WKT for defining projection information. Our map server will actually accept WKT strings (at least as [almost] defined in OGC SQL Simple Features 1.0), e.g.: http://www.cubewerx.com/demo/cubeserv/cubeserv.cgi?VERSION=1.1.0&REQUEST=GetMap&SRS=PROJCS["WGS84/LCCCanada",GEOGCS["WGS84",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Decimal_Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["Central_Meridian",-95],PARAMETER["Latitude_of_Origin",0],PARAMETER["Standard_Parallel_1",49],PARAMETER["Standard_Parallel_2",77],PARAMETER["False_Easting",0],PARAMETER["False_Northing",-8000000],UNIT["Meter",1]]&BBOX=1662867.0162,-1442055.790776781,2502867.0162,-1022055.790776781&WIDTH=600&HEIGHT=300&LAYERS=RELIEF%3AFoundation,GTOPO30%3AFoundation,POLBNDL_1M%3AFoundation,COASTL_1M%3AFoundation&STYLES=,,,&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage We will also accept proj4 strings, though we don't handle them as well. > Daniel Morissette wrote: > > Question to Frank W: Do you think the 42100-42399 custom EPSG codes > > could be added to the official "epsg" file distributed with PROJ4? My understanding is that codes 32768+ are reserved for private use, so officially approved EPSG codes would need to be remapped. The ones that we define ourselves tend to be quite ad-hoc. Rob Atkinson wrote: > IMHO - and I've been involved with both mapserver and WMS since inception, the > use of codes allows a greater degree of discovery through service registries, > and ability of client to discover how to negotiate a binding with the service. > WMS is all about interoperability after all. The lack of a better taxonomy is > a broader issue - the solution would be to have an active engagement with an > ISO process so that each country has a simple means to register its WKT > (actually the model for the projection) and get a code assigned as required. Personally, I tend to think that the whole registry craze is a bit over-rated. Basically, it adds a level of indirection without any actual additional functionality. (Well, in this context... it does add the ability to search for things that are worth searching for, like data sets, but that's not really relevant for coordinate systems.) Both the client and the server need to understand the representation that is used to describe the coordinate system inside of the registry in addition to how to use the registry. This same information could be easily passed in-line in requests and capabilities, without the need for registry lookups. An advantage of the registry approach is that lists of coordinate systems can be more compact since only code values are used. A disadvantage is that, like the EPSG approach, only a finite set of projections can be described, so a dynamic approach is still needed to handle arbitrary projection parameterizations. "Martin Daly" wrote: > My understanding was that using "EPSG:xxxx" was a pragmatic solution to a > complex problem. GML 3.0 will have XML encoding of co-ordinate reference > systems (much more powerful than existing WKT), and support for CRS > dictionaries, e.g. for on-line repositories containng CRS definitions that > can be referenced with a URI. Does it provide a mechanism for a server to describe what datums and projections are available so that a client can construct arbitrary parameterizations? --------------------------+------------------------+-------------------------- Dr. Craig S. Bruce | Tel: 819-771-8303 x205 | CubeWerx Inc. Senior Software Developer | Home: 613-565-1344 | Hull, Qu?bec, Canada csbruce at cubewerx.com | http://www.csbruce.com | http://www.cubewerx.com/ --------------------------+------------------------+-------------------------- "Halting problem, Schmalting problem!" From martin at cadcorpdev.co.uk Thu Nov 22 07:54:54 2001 From: martin at cadcorpdev.co.uk (Martin Daly) Date: Thu, 22 Nov 2001 15:54:54 -0000 Subject: [wms-dev] Re: [mapserver-users] Projection EPSG code for LCC in mapserv 3.5 References: <200111221532.KAA08019@tux.cubewerx.com> Message-ID: <012501c1736e$0a1db380$c49e28c3@VICTORIA> > "Martin Daly" wrote: > > > My understanding was that using "EPSG:xxxx" was a pragmatic solution to a > > complex problem. GML 3.0 will have XML encoding of co-ordinate reference > > systems (much more powerful than existing WKT), and support for CRS > > dictionaries, e.g. for on-line repositories containng CRS definitions that > > can be referenced with a URI. > > Does it provide a mechanism for a server to describe what datums and > projections are available so that a client can construct arbitrary > parameterizations? The last GML 3.0 schemas that I looked at had support for dictionaries of Datums, Ellipsoids, Prime Meridians, and CRS-s, but not for the other building-blocks that you would need, e.g. Transformations. I have no idea why this particular subset was chosen, but I'm sure that someone will. Regards, Martin Daly, Technical Director, Cadcorp Ltd e: martin at cadcorpdev.co.uk w: www.cadcorp.com t: +44 (0) 20 7383 0014 f: +44 (0) 20 7388 6313 From teb at mallit.fr.umn.edu Thu Nov 22 08:43:59 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Thu, 22 Nov 2001 10:43:59 -0600 (CST) Subject: [mapserver-users] map from ms_demo don't appear (fwd) Message-ID: <200111221643.KAA09603@mallit.fr.umn.edu> From root at PC_SIG Thu Nov 22 06:45:38 2001 From: root at PC_SIG (root) Date: Thu, 22 Nov 2001 11:45:38 -0300 Subject: map from ms_demo don't appear Message-ID: <01112211364100.01699@PC_SIG> hello: At first one, sorry for my english I have RedHat 7.1 with Apache and PHP4.0 I download ms_3.3.011.tar.gz and ms_demo.tar.gz, I installed mapserver followed the step indicated in MapServer Demo Application Installation Instructions. I commented: #MARKERSET symbols/marker.sym ... #LAYER # NAME roads # MAXSCALE 300000 # STATUS ON # DATA ctyrdln3 # TYPE ANNOTATION # LABELITEM "road_name" # CLASS # COLOR 255 255 255 # SYMBOL 'county_highway_shield' # <= the 'bad' line # LABEL # MINFEATURESIZE 40 # MINDISTANCE 150 # POSITION CC # SIZE TINY # COLOR 0 0 0 # END # END #END # county road annotation the next error was msLoadMap(): Premature End-of-File. Undefined symbol. I added END stament befor: LAYER NAME roads MAXSCALE 600000 STATUS ON DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END END # highways END ######################## My END The next error was sDrawReferenceMap(): GD library error. Unable to initialize image. Then I commented # # Start of reference map # #REFERENCE # IMAGE graphics/reference.gif # EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 # SIZE 120 120 # STATUS ON # COLOR -1 -1 -1 # OUTLINECOLOR 255 0 0 #END After i saw the page but the map image didn't appear what do you sugest to me about it? Thank you in advance Patricio Gigoux From clip at idirect.com Thu Nov 22 17:28:00 2001 From: clip at idirect.com (clip) Date: Thu, 22 Nov 2001 20:28:00 -0500 Subject: [mapserver-users] MapSurfer site at caltech.edu, in Gallery Message-ID: <3BFDA620.64AABE3E@idirect.com> Hello, is Anyone there at the MapSurfer site at Caltech.... your link is dead... http://tailings.gps.caltech.edu/mapsurfer/ I'd like to access the site or talk to you Tom Cadman From nwerneck at yahoo.com.br Fri Nov 23 11:29:58 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Fri, 23 Nov 2001 16:29:58 -0300 (ART) Subject: [mapserver-users] creating features in PHP mapscript Message-ID: <20011123192958.65161.qmail@web20003.mail.yahoo.com> Hi. The following program: getLayer(0); ?> makes PHP execute an illegal operation, e get closed. Then I got a "this program didn't returned a valid full set of HTTP headers", or something like that. The problem seems to reside on the getLayer function... It also happens when I try to create a new layer ($lyr = ms_newLayerObj($map) ) Can this be due an incorrect installation? I have already successfully used a program I made just to pan by the map. Now I'm trying to define new point features on the map... thanks!... ++nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From m.spring at gmx.de Fri Nov 23 23:59:33 2001 From: m.spring at gmx.de (Markus Spring) Date: 24 Nov 2001 08:59:33 +0100 Subject: [mapserver-users] mapserver 3.5 symbol problem Message-ID: Hello list, doing my first steps with 3.5's nightly build from yesterday, I get error messages when trying compound symbols like those having been proposed on this list (I put it as the first symbol in symbol.sym): SYMBOL NAME 'dashed1' TYPE ELLIPSE POINTS 1 1 END FILLED STYLE 10 5 5 10 END END mapserver then complains with: getSymbol(): Symbol definition error. (STYLE):(5) Is my nightly build broken, or am I missing somewhat else? Markus From joemayfair at usa.net Fri Nov 23 23:53:07 2001 From: joemayfair at usa.net (Walt Lin) Date: Sat, 24 Nov 2001 02:53:07 -0500 Subject: [mapserver-users] lat/lon boundaries Message-ID: <20011124025307.A13199@eggbert> Hi all, So I've got a worldwide mapserver up and running... my question is how mapserver deals (or if) with the eastern/western hemisphere division in the extent. Can I set a valid extent of 175,-175 latitudes? e.g., if someone is in Alaska, I want the data for Russia to show up as well, and let the user be able to seamlessly zoom across the line all the way around the globe. How do you deal with this in your worldwide app? Thanks! Walt From aalgera at ibama.gov.br Sat Nov 24 10:56:34 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Sat, 24 Nov 2001 16:56:34 -0200 (BRST) Subject: [mapserver-users] Re: Problem with apache+php as one binary In-Reply-To: <3BFFD414.A6B04107@dmsolutions.ca> Message-ID: Daniel, Thanks for the help. Over the last couple of days I've been reading through the apache-docs and found out that under Solaris you need to configure apache with --enable-rule=SHARED_CORE in order to be able to load any shared object (see dso.html in the apache docs). After doing this, I was able to load the mapserver module without any problem. I shouldn't forget that I still need the add the -shared option the mapscript LDFLAGS. Do you think it is possible for the configure script to detect this automatically. I noted that the apache+php+mapserver response has become much better after compiling an almost all-in-one web server. The only module I still have is the php/mapscript module. Do you think that in the future it might be possible to compile this module into php? Andries On Sat, 24 Nov 2001, Daniel Morissette wrote: > Andries Jan Algera wrote: > > > > I compiled apache and php as one binary. It's looks like that this reduces > > significantly the memory usage of the web server. However, after reconfiguring > > and recompiling mapserver/php-mapscript with the following configure options -- > > with-apache=../apache_1.3.22 --with-php=../php-4.0.6 --with-proj --with- > > oraclespatial=$ORACLE_HOME and installing the php_mapscript.so in the > > extensions directory, I get the following error when I am trying to load a page: > > > > Unable to load dynamic > > library '/opt/local/lib/php/extensions/php_mapscript.so' - > > ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: > > file /opt/local/lib/php/extensions/php_mapscript.so: symbol alloc_globals: > > referenced symbol not found > > > > Can anyone explain what may be happening here, and, perhaps, indicate what I > > might try to resolve this. OS=Solaris2.6 and gcc=2.95.3 > > > > You may have to add a switch to the link (ld) line of your 'httpd' > executable to enable loading of shared objects. On Linux it's > '-rdynamic', on *BSD it is '-export-dynamic', I don't know what it would > be on Solaris. There may even be an Apache configure option to do this > for you. If you had configured your Apache to support modules as shared > objects (instead of statically linked) then this link option would have > been automatically included for you. > > -- > ------------------------------------------------------------ > 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. > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From aalgera at ibama.gov.br Sat Nov 24 06:33:17 2001 From: aalgera at ibama.gov.br (Andries J. Algera) Date: Sat, 24 Nov 2001 12:33:17 -0200 (BRST) Subject: [mapserver-users] mapserver 3.5 symbol problem In-Reply-To: Message-ID: I was having problems with symbols as well, using the nightly of about two weeks ago. Commenting out FILLED in the symbol definition got things working. I'm still wondering how to get filled symbols. Andries On 24 Nov 2001, Markus Spring wrote: > Hello list, > > doing my first steps with 3.5's nightly build from yesterday, I get > error messages when trying compound symbols like those having been > proposed on this list (I put it as the first symbol in symbol.sym): > > SYMBOL > NAME 'dashed1' > TYPE ELLIPSE > POINTS 1 1 END > FILLED > STYLE 10 5 5 10 END > END > > mapserver then complains with: > > getSymbol(): Symbol definition error. (STYLE):(5) > > Is my nightly build broken, or am I missing somewhat else? > > Markus > > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From twan at twansoft.com Sat Nov 24 03:52:09 2001 From: twan at twansoft.com (Twan Kogels) Date: Sat, 24 Nov 2001 12:52:09 +0100 Subject: [mapserver-users] Nightly build doesn't compile? (solution) Message-ID: <5.0.0.25.2.20011124124724.02f57c38@pop3.wish.nl> Goodmorning, The solution was really simple, the -with--postgis parameter should be placed after all other parameters: ./configure --with-gd --with-postgis=/usr/local/pgsql/bin/ --with-php=../php-3.0.18 --with-apxs=/usr/local/apache/bin/apxs becomes: ./configure --with-gd --with-php=../php-3.0.18 --with-apxs=/usr/local/apache/bin/apxs --with-postgis=/usr/local/pgsql/bin/ Don't ask me why :-) But it works! Still got a little problem with mapserv, he can't find libpq.so.2, but i will search for a answer by myself first. Thanks, - twan -- http://www.twansoft.com From twan at twansoft.com Sat Nov 24 03:00:07 2001 From: twan at twansoft.com (Twan Kogels) Date: Sat, 24 Nov 2001 12:00:07 +0100 Subject: [mapserver-users] Nightly build doesn't compile? Message-ID: <5.0.0.25.2.20011124114622.00b07c70@pop3.wish.nl> Goodmorning, Finally i have installed apache/php3/postgresql/mapserver and mapscript on my Suse (v 7.3) linux system. It all works correctly, the examples supplied with mapserver and mapscript run without any problems. Tomorrow i installed postgis, no problems with it, compiled nicely. But then i came to the conclusion that i needed a newer version of mapserver, so i downloaded the nightly build (which has postgis support build in). But there is a problem with the nightly build, i can't compile it. First i configure mapserver with the following command: ./configure --with-gd --with-postgis=/usr/local/pgsql/bin/ --with-php=../php-3.0.18 --with-apxs=/usr/local/apache/bin/apxs Configure runs correctly and generates a makefile. But when i try the command: make GCC gives me a error: linux:/usr/src/packages/SOURCES/mapserver # make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_POSTGIS -I/usr/include -I/usr/src/packages/SOURCES/mapserver/../php-3.0.18/regex -I mapbits.c -o mapbits.o gcc: No input files make: *** [mapbits.o] Error 1 Does anybody know what i'm doing wrong? For the experts below is the complete output of the configure and make commands: =========================== linux:/usr/src/packages/SOURCES/mapserver # ./configure --with-gd --with-postgis=/usr/local/pgsql/bin/ --with-php=../php-3.0.18 --with-apxs=/usr/local/apache/bin/apxs loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... (cached) c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... (cached) yes checking whether c++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for exp in -lm... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. checking which version of GD to use... using libgd from system libs. checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. ./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier checking where Zlib is installed... checking for zlibVersion in -lz... (cached) yes using libz from system libs. checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageString16 in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... (cached) no libpdf not found... PDF support not included. checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... yes using libtiff from system libs. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... PROJ.4 support not requested. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... MPATROL support not requested. checking whether we should include OGR support... OGR support not requested. checking if GDAL support requested... no checking if PostGIS support requested... yes, user supplied pg_config ./configure: /usr/local/pgsql/bin/: is a directory ./configure: /usr/local/pgsql/bin/: is a directory checking if OracleSpatial support requested... no checking whether we should include WMS support... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). checking whether we should include WMS Client Connections support... OGC WMS Client Connections not enabled (PROJ.4 and libwww required). Compiling with -DIGNORE_MISSING_DATA. checking for PHP/MapScript module options... checking whether 'perl -V' works... yes checking for location of config.h or php_config.h... /usr/src/packages/SOURCES/mapserver/../php-3.0.18/config.h checking whether we have PHP3 or PHP4... -DPHP3 checking whether we should use PHP's regex... yes PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/local/apache/include creating ./config.status creating Makefile creating mapscript/php3/Makefile linux:/usr/src/packages/SOURCES/mapserver # make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_POSTGIS -I/usr/include -I/usr/src/packages/SOURCES/mapserver/../php-3.0.18/regex -I mapbits.c -o mapbits.o gcc: No input files make: *** [mapbits.o] Error 1 linux:/usr/src/packages/SOURCES/mapserver # =========================== Thanks, - twan -- http://www.twansoft.com From cabral at yadata.net Sun Nov 25 07:08:08 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Sun, 25 Nov 2001 13:08:08 -0200 Subject: [mapserver-users] mapserver 3.5 symbol problem References: Message-ID: <001101c175c2$fe5568c0$0207a8c0@naumaki> FILLED, as well as ANTIALIAS (and perhaps a few other commands) now need a [true|false] argument. You can check http://mapserver.gis.umn.edu/doc/mapfile-reference.html for further details. Cheers, Rod. ----- Original Message ----- From: "Andries J. Algera" To: "Markus Spring" Cc: Sent: Saturday, November 24, 2001 12:33 PM Subject: Re: [mapserver-users] mapserver 3.5 symbol problem I was having problems with symbols as well, using the nightly of about two weeks ago. Commenting out FILLED in the symbol definition got things working. I'm still wondering how to get filled symbols. Andries On 24 Nov 2001, Markus Spring wrote: > Hello list, > > doing my first steps with 3.5's nightly build from yesterday, I get > error messages when trying compound symbols like those having been > proposed on this list (I put it as the first symbol in symbol.sym): > > SYMBOL > NAME 'dashed1' > TYPE ELLIPSE > POINTS 1 1 END > FILLED > STYLE 10 5 5 10 END > END > > mapserver then complains with: > > getSymbol(): Symbol definition error. (STYLE):(5) > > Is my nightly build broken, or am I missing somewhat else? > > Markus > > -------------------------------------------------------------------- Andries Algera CSR - IBAMA SAIN L4, Lote 4, Ed. IBAMA Sede 70800.200 Brasilia / DF BRASIL ph: +5561 316-1326 316-1453 fax:+5561 223-7108 -------------------------------------------------------------------- From teb at mallit.fr.umn.edu Sun Nov 25 07:13:09 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Sun, 25 Nov 2001 09:13:09 -0600 (CST) Subject: [mapserver-users] Mapserver ArcView Utility (fwd) Message-ID: <200111251513.JAA10483@mallit.fr.umn.edu> From brimacombep at em.agr.ca Sat Nov 24 11:58:54 2001 From: brimacombep at em.agr.ca (Peter Brimacombe) Date: Sat, 24 Nov 2001 14:58:54 -0500 Subject: Mapserver ArcView Utility Message-ID: <3BFFFBFD.2EB810CB@em.agr.ca> I have a demo up and running on NT but I need help setting up an application named stoniness. Apache is installed on NT at D:\program files\apache group\apache which contains the directories bin, cgi-bin, conf and htdocs htdocs in turn contains ms_demo and stoniness On unix there are two coverages at /home/peter/mapserver/nsd005, they are stoniness and hydroutm, Samba is running on unix, /home/peter on unix is mapped to H: on NT. I need help with setting the default file, here is what I have tried thedefservername=cansis1nt.gis.agr.ca thedefwebroot=d:/program files/apache group/apache (which is what is in the apache config) thedefimagepath=d:/program files/apache group/apache/htdocs/tmp (the demo is writting files to this directory) thedefmapserverexe=d:/program files/apache group/apache/cgi-bin/mapserv thedefsambapath=H:/mapserver/nsd005 thedefpagetitle=Stoniness are forward slashes okay? From Ross.Searle at dnr.qld.gov.au Sun Nov 25 18:25:00 2001 From: Ross.Searle at dnr.qld.gov.au (Searle Ross) Date: Mon, 26 Nov 2001 12:25:00 +1000 Subject: [mapserver-users] How do they do that??? Message-ID: We have developed some frames/DHTML approaches to this. DHTML is used to give you the box drawing capabilities while the frames take care of image updates. We originally used the applet based approach but ran into troubles when some of our target audiences worked in organisations that didn't permit the downloading of applets. Also the frames based stuff seems to be a bit more robust. The URL for an example of this approach is http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/maps/mapf rame.html Regards Ross -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, 22 November 2001 5:23 AM To: Chip.Hankley at GASAI.Com; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] How do they do that??? Well I can speak to landview since I wrote it. In short it uses a small applet to do the display and mouse event handling and manages all of the coordinate information using a javascript library. Then I use a public method of the applet to swap the image being displayed. The image urls are actually calls to the MapServer (mode=map). This could also be done using DHTML (i.e. layers) IF you use frames or a single page design with absolute positioning of layers. Absolute positioning is fine in a frame with nothing else or if you have a design with nothing that will change size to the left and above your map. Personally I like the freedom the applet gives you. All of my code is available on request, but it really needs more documentation (like everything else). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 11/21/01 10:33AM >>> I've seen a few MapServer apps where, after a navigation event, the entire page doesn't reload... only the map window. for example: http://maps.dnr.state.mn.us/landview/ http://144.92.235.164/orthofinder/ How do they do that? Is this using Java? One site uses frames and the other doesn't... TIA Chip Hankley ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From ed at topozone.com Sun Nov 25 19:03:39 2001 From: ed at topozone.com (Ed McNierney) Date: Sun, 25 Nov 2001 22:03:39 -0500 Subject: [mapserver-users] How do they do that??? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E787E@mercator.topozone.com> Ross et al. - Good luck with the DHTML approach. I have learned the hard way that, in my case, that actually wasn't a good solution. I added some features to TopoZone (interactive coordinate display on mouseover, symbol overlay, etc.) and I decided NOT to use Java because users had "security concerns" and didn't allow the use of applets. I instead implemented everything in DHTML/JavaScript to avoid that. I learned two things. First, most users or organizations that prohibited Java for "security reasons" felt the same way about JavaScript. An amazing number of groups lumped them all together as "that Java stuff" and I didn't really gain very much. Second, DHTML/JavaScript cross-browser compatibility is pure hell. If you can constrain your list of supported browsers VERY tightly, and if you're ready to do more work every time your supported vendors issues a new release and breaks things, you'll be OK. But it can be a very painful process. As soon as I get around to it, I'm going back to Java and reimplementing those features (and more) in a Java applet. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Searle Ross [mailto:Ross.Searle at dnr.qld.gov.au] Sent: Sunday, November 25, 2001 9:25 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] How do they do that??? We have developed some frames/DHTML approaches to this. DHTML is used to give you the box drawing capabilities while the frames take care of image updates. We originally used the applet based approach but ran into troubles when some of our target audiences worked in organisations that didn't permit the downloading of applets. Also the frames based stuff seems to be a bit more robust. The URL for an example of this approach is http://www.dnr.qld.gov.au/resourcenet/land/lris/webgis/burnett/maps/mapf rame.html Regards Ross -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, 22 November 2001 5:23 AM To: Chip.Hankley at GASAI.Com; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] How do they do that??? Well I can speak to landview since I wrote it. In short it uses a small applet to do the display and mouse event handling and manages all of the coordinate information using a javascript library. Then I use a public method of the applet to swap the image being displayed. The image urls are actually calls to the MapServer (mode=map). This could also be done using DHTML (i.e. layers) IF you use frames or a single page design with absolute positioning of layers. Absolute positioning is fine in a frame with nothing else or if you have a design with nothing that will change size to the left and above your map. Personally I like the freedom the applet gives you. All of my code is available on request, but it really needs more documentation (like everything else). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 11/21/01 10:33AM >>> I've seen a few MapServer apps where, after a navigation event, the entire page doesn't reload... only the map window. for example: http://maps.dnr.state.mn.us/landview/ http://144.92.235.164/orthofinder/ How do they do that? Is this using Java? One site uses frames and the other doesn't... TIA Chip Hankley ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From debasish_sahu at hotmail.com Sun Nov 25 21:32:58 2001 From: debasish_sahu at hotmail.com (debasish sahu) Date: Mon, 26 Nov 2001 11:02:58 +0530 Subject: [mapserver-users] Convert Image Coordinates to Map Coordinates Message-ID: Hi All, How do i convert the image coordinates from the mapserver image to map coordinates . thanks Debasish. From teb at mallit.fr.umn.edu Mon Nov 26 05:33:24 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Mon, 26 Nov 2001 07:33:24 -0600 (CST) Subject: [mapserver-users] Draw a Querybyfeature with 'hilite' style (php, mapscript) (fwd) Message-ID: <200111261333.HAA10716@mallit.fr.umn.edu> From Frederic.CATHIGNOL at astrium-space.com Mon Nov 26 01:21:41 2001 From: Frederic.CATHIGNOL at astrium-space.com (CATHIGNOL, Frederic) Date: Mon, 26 Nov 2001 10:21:41 +0100 Subject: Draw a Querybyfeature with 'hilite' style (php, mapscript) Message-ID: Hello from France; I do query and then a querybyfeature and I would like to draw (with 'hilite' style) only the queried shapes and not the shapes which have been used to do the query by feature. For the moment, if I use a $img = $Map->drawQuery, It is drawing all the queried shapes + the shapes used to do the query. I tried $layer->drawQuery($img) but it is exactly like the $layer->draw($img). It does not drawing the queried shapes in hilite. So my questions are : 1) Do you know a method, after the querybyfeature to suppress the shapes which have been used to do the query by feature. So there are not drawn with 'hilite' style. OR 2) Do you know how to use $layer->drawQuery to draw the Query of the layer with 'hilite' style and not like $layer->draw. Many thanks... Thanks Guys for your help to a french developper ! (frederic.cathignol at bigfoot.com) Best regards, F.CATHIGNOL From Regina.Obe.PFD at ci.boston.ma.us Mon Nov 26 06:12:23 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 26 Nov 2001 09:12:23 -0500 Subject: [mapserver-users] QUERYONLY? Message-ID: David, I tried your suggestion - using the latest win32 PNG build of mapserv on the site and changing the lines to read SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED = TRUE END now I get the following error. loadSymbol(): Unknown identifier. (TRUE):(95) -----Original Message----- From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] Sent: Wednesday, November 14, 2001 6:24 PM To: 'v at w.cl'; steve.lime at dnr.state.mn.us; 'Obe, Regina DND\MIS' Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] QUERYONLY? Regina, I don't believe that the getSymbol() error that you are receiving is related to Vinko's error below. You are getting an error because the syntax for the SYMBOL object has changed. Look at line 96 of your map file: #This is the old syntax SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END #This is the new syntax SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED = TRUE #You need to add '= TRUE' to this line END Once you make this change, you will most likely get an error in line 137 related to the layer type polyline. You can find a previous post from Steve Lime regarding these changes at: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 10/msg00374.html I was just in the process of writing up a list of needed revisions for the 3.5 Demo for Steve. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 > ---------- > From: Obe, Regina DND\MIS[SMTP:Regina.Obe.PFD at ci.boston.ma.us] > Sent: Wednesday, November 14, 2001 4:27 PM > To: 'v at w.cl'; steve.lime at dnr.state.mn.us > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] QUERYONLY? > > I got a similar error too (not sure if these two are related) - using the > mapserv35_png_ogr for win32 build 11/7/2001. This was using the itasca demo > app for 3.5 (I downloaded 10/17/2001) (and my other apps which worked with > prior version of the mapserv 3.5 exe also give similar behavior. So I was > wondering if an interim change to specs had taken place during the 3.5 > between 10/19 and now. > > > The prior version I was using was a build around 10/19/2001. > > I get an error > > getSymbol(): Symbol definition error. (END):(96) > (I did modify it a bit to work with my configuration so not the exact demo - > but just minor changes to paths) > > When trying to use the itasca demo app - dated around 10/17/2001 > > From morissette at dmsolutions.ca Mon Nov 26 07:12:25 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 26 Nov 2001 10:12:25 -0500 Subject: [mapserver-users] QUERYONLY? References: Message-ID: <3C025BD9.EAA3BDD2@dmsolutions.ca> "Obe, Regina DND\\MIS" wrote: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED = TRUE > END > > now I get the following error. > > loadSymbol(): Unknown identifier. (TRUE):(95) > You should use "FILLED TRUE" and not "FILLED = TRUE": SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END -- ------------------------------------------------------------ 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 Chip.Hankley at GASAI.Com Mon Nov 26 07:29:06 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 26 Nov 2001 09:29:06 -0600 Subject: [mapserver-users] Symbol Examples... Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E4029@postoffice.GASAI.Com> I'm having a hard time finding some examples of how to create typical line symbols (e.g. different types of dashed lines, double lines, or more custom lines... like a railroad) Anyone out there willing to share some of theirs for reference? Thanks! Chip Hankley From Regina.Obe.PFD at ci.boston.ma.us Mon Nov 26 08:12:08 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 26 Nov 2001 11:12:08 -0500 Subject: [mapserver-users] QUERYONLY? Message-ID: Thanks that seemed to do the trick. -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Monday, November 26, 2001 10:12 AM To: Obe, Regina DND\MIS Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] QUERYONLY? "Obe, Regina DND\\MIS" wrote: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED = TRUE > END > > now I get the following error. > > loadSymbol(): Unknown identifier. (TRUE):(95) > You should use "FILLED TRUE" and not "FILLED = TRUE": SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END -- ------------------------------------------------------------ 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 nwerneck at yahoo.com.br Mon Nov 26 11:06:44 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Mon, 26 Nov 2001 16:06:44 -0300 (ART) Subject: [mapserver-users] defining classes with PHP/MapScript Message-ID: <20011126190644.82598.qmail@web20010.mail.yahoo.com> Hello. I'm trying to define a class with PHP/MapScript But it's not working. I Can color Camboja from the Map file, but Brasil doesn't get to it... What can it be!? thanks... ++Nicolau ---PHP $map = ms_newMapObj("tmapa.map"); $cla = ms_newClassObj($map->getLayer(2)); $cla->setexpression("Brasil"); $cla->set("color", "255 255 255"); $mapimg = $map->draw(); ---MAP LAYER NAME empresas DATA MapaMundi TYPE polygon STATUS default CLASSITEM 'NOMEPAIS' CLASS EXPRESSION 'Camboja' COLOR 255 255 255 END END _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From teb at mallit.fr.umn.edu Mon Nov 26 12:14:15 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 26 Nov 2001 14:14:15 -0600 (CST) Subject: [mapserver-users] Fonts (fwd) Message-ID: <200111262014.OAA11172@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "gabriel" To: Subject: Fonts Date: Mon, 26 Nov 2001 18:15:32 -0600 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Somebody could help me? I am trying to use fonts different? ? I used the following commands: NAME DEMO STATUS ON SIZE 600 600 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym #EXTENT 388107.634400379 5203120.88405952 900896.339019834 5310243.30613897 #EXTENT 407.634400379 7153120.88405952 900896.339019834 7250243.30613897 EXTENT 218917 6752635 761146 7127124 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 FONTSET "/usr/local/apache/htdocs/ms_demo/fonts" ... ... ... LAYER NAME rodoviapavnome TYPE ANNOTATION LABELITEM "cd_rodovia" CLASSITEM "cd_rodovia" DATA rodovia_pav_polyline STATUS ON CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE truetype FONT arial # (or "arial") POSITION CC PARTIALS FALSE BUFFER 2 END END END ... ... ... The result is "msGetLabelSize(): TrueType Font error. Requested font (arial) not found. " I put the fonts and the "font.list" in the same directory (FONTSET "/usr/local/apache/htdocs/ms_demo/fonts"). Tanks. Gabriel Fpolis, SC, Brazil ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpalma at donahue.umassp.edu Mon Nov 26 12:46:51 2001 From: jpalma at donahue.umassp.edu (Jim Palma) Date: Mon, 26 Nov 2001 15:46:51 -0500 Subject: [mapserver-users] Can't compile TCL Mapscript Message-ID: <3C02AA3B.39CBD94A@donahue.umassp.edu> Help. I am trying to compile the tcl interface for Mapscript so I can use msworkbench. This is the output that I get: [root at donahuemaps tcl]# make gcc -pipe -c -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -fPIC \ -I/usr/include \ -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_8 -I. -I/usr/local/src/mapserver/gdft -I/usr/include/freetype \ -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ mapscript_wrap.c mapscript_wrap.c: In function `_wrap_mapscript_msSaveImage': mapscript_wrap.c:555: too few arguments to function `msSaveImage' make: *** [stublib] Error 1 I am using Mapserver 3.4 and do not have SWIG installed. Anyone know what's going on? Thanks, Jim From nwerneck at yahoo.com.br Mon Nov 26 13:25:10 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Mon, 26 Nov 2001 18:25:10 -0300 (ART) Subject: [mapserver-users] getting coordinates from pixel Message-ID: <20011126212510.16692.qmail@web20003.mail.yahoo.com> Hi... How do I get the geographical coordinates from a pixel? I want to make a query using Mapscript... I think I saw some info about it somewhere, but couldn't find it again :/ thnx --nicolau From vatsavai at cs.umn.edu Mon Nov 26 15:48:21 2001 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Mon, 26 Nov 2001 17:48:21 -0600 (CST) Subject: [mapserver-users] spam mails Message-ID: <200111262348.RAA26071@pluto.cs.umn.edu> Dear Mapserver-users We have taken every precaution to avoid spam mails on this list, but it seems we have an unwanted posting today on this list. We restricted the list to only subscribed users, and configured it as private, and subscription is open to all with proper confirmation. We have expunged this mail from archival. We are looking into more stricter mechanisms without any inconvenience to genuine users. Thanks Raju ---- From tpoindex at nyx.net Mon Nov 26 18:53:23 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 26 Nov 2001 19:53:23 -0700 Subject: [mapserver-users] Can't compile TCL Mapscript In-Reply-To: <3C02AA3B.39CBD94A@donahue.umassp.edu>; from jpalma@donahue.umassp.edu on Mon, Nov 26, 2001 at 03:46:51PM -0500 References: <3C02AA3B.39CBD94A@donahue.umassp.edu> Message-ID: <20011126195323.A24166@nyx10.nyx.net> I suspect this has to do with the GD 1.8 version, which uses an extra parameter for image quality. I recommend building Mapserver 3.4 with the included GD 1.2 version for now. Alternatively, you can install SWIG to generate a new mapscript_wrap.c (and then change all of the Tcl calls to mapscript::msSaveImage to include a quality parameter also.) I'm working on an upgraded Mapscript/Tcl for MapServer 3.5, which will support GD 1.8+. The latest CVS version of MapServer should have the updated files. On Mon, Nov 26, 2001 at 03:46:51PM -0500, Jim Palma wrote: > Help. > > I am trying to compile the tcl interface for Mapscript so I can use > msworkbench. This is the output that I get: > > [root at donahuemaps tcl]# make > gcc -pipe -c -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 > -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 > -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 > -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 > -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 > -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 > -DHAVE_SYS_IOCTL_H=1 -fPIC \ > -I/usr/include \ > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_1_8 -I. -I/usr/local/src/mapserver/gdft -I/usr/include/freetype > \ > -DUSE_TCL_STUBS -DITCL_NAMESPACES -DItcl_Namespace=int > -D"spaceId=spcid;Tcl_InitStubs(interp,\"8.1\",0)" \ > mapscript_wrap.c > mapscript_wrap.c: In function `_wrap_mapscript_msSaveImage': > mapscript_wrap.c:555: too few arguments to function `msSaveImage' > make: *** [stublib] Error 1 > > I am using Mapserver 3.4 and do not have SWIG installed. Anyone know > what's going on? > > Thanks, > > Jim > -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From Frederic.CATHIGNOL at astrium-space.com Mon Nov 26 23:21:42 2001 From: Frederic.CATHIGNOL at astrium-space.com (CATHIGNOL, Frederic) Date: Tue, 27 Nov 2001 08:21:42 +0100 Subject: [mapserver-users] getting coordinates from pixel Message-ID: Hello; If I understand your problem, there is a function in the example gmap75 : /************************************************************************/ /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, dfGeoMax,*/ /* $nInversePix) */ /* */ /* Utility function to convert a pixel position to geocoded */ /* position. */ /* */ /* The parameter $nInversePix could be set to 1 for Y pixel */ /* coordinates where the UL > LR. Else set to 0. */ /************************************************************************/ function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { // $nPixPos : pixel position (X or Y) // $dfPixMin, $dfPixMax : Pixel minimum and maximum (X or Y) of your map on the screen (should be 0 to xxx) // $dfGeoMin, $dfGeoMax : Geographic coordinate min max (X or Y) of your map on the screen $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } Regards, F.CATHIGNOL -------------- next part -------------- An embedded message was scrubbed... From: Nicolau Werneck Subject: [mapserver-users] getting coordinates from pixel Date: Mon, 26 Nov 2001 22:25:10 +0100 Size: 887 URL: From informcal at tin.it Tue Nov 27 01:00:48 2001 From: informcal at tin.it (Migliorisi Angelo (Inform Caltagirone)) Date: Tue, 27 Nov 2001 10:00:48 +0100 Subject: [mapserver-users] unsubscribe Message-ID: <005501c17722$01fdfae0$66026b83@clubnet.tin.it> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From nwerneck at yahoo.com.br Tue Nov 27 02:42:23 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Tue, 27 Nov 2001 07:42:23 -0300 (ART) Subject: [mapserver-users] getting coordinates from pixel In-Reply-To: Message-ID: <20011127104223.31202.qmail@web20010.mail.yahoo.com> > If I understand your problem, there is a function in > the example gmap75 : OK, thanks... this solves my problem :) BUT!... It's a linear relation! It will work while I'm in lon/lat projection... How do I solve the problem when I use more sophisticated projections?? Using the PROJ 4 library? bye --nicolau _______________________________________________________________________________________________ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. ? f?cil e gr?tis! http://br.geocities.yahoo.com/ From castro at recife.pe.gov.br Tue Nov 27 03:06:06 2001 From: castro at recife.pe.gov.br (ronaldo castro) Date: Tue, 27 Nov 2001 09:06:06 -0200 Subject: [mapserver-users] unsubscribe Message-ID: <3C03739E.E1E53626@recife.pe.gov.br> unsubscribe From stepan.kafka at centrum.cz Tue Nov 27 04:03:04 2001 From: stepan.kafka at centrum.cz (stepan.kafka at centrum.cz) Date: Tue, 27 Nov 2001 13:03:04 +0100 Subject: [mapserver-users] mapscript TEMPLATE access Message-ID: <20011127120304Z327748-26181+399@mail.centrum.cz> Hi all, do you know, how can I access the TEMPLATE property in PHP Mapscript 3.5? There is no documentation for access functions like $myclass- >template or $mylyr->template. I have similar problems with class->expression. Thanks Stepan Kafka ----- U?ite?n? informace pro v?no?n? pohodu http://vanoce.centrum.cz From vatsavai at cs.umn.edu Tue Nov 27 08:03:51 2001 From: vatsavai at cs.umn.edu (Ranga Raju Vatsavai) Date: Tue, 27 Nov 2001 10:03:51 -0600 (CST) Subject: [mapserver-users] notice Message-ID: <200111271603.KAA26705@pluto.cs.umn.edu> Dear Mapserver-users Posting to this list by non members is disabled, as a result I have few bounces yesterday and today. I request these members to subscribe to the list, or we have to come up with some other alternative. We disabled non member postings to control spam mails. Thanks Raju ---- From teb at mallit.fr.umn.edu Tue Nov 27 10:06:48 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 27 Nov 2001 12:06:48 -0600 (CST) Subject: [mapserver-users] inline feature is image (FWD) Message-ID: <200111271806.MAA11847@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: mapserver-info at lists.gis.umn.edu Subject: inline feature is image Date: Tue, 27 Nov 2001 09:15:38 -0500 MIME-Version: 1.0 Is there any way to have an image (i.e. logo or watermark) as an inline feature? i have: LAYER NAME credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 399 399 END TEXT '2001 MyCompany' END CLASS LABEL TYPE TRUETYPE FONT "arial" SIZE 8 ANTIALIAS true COLOR 100 100 100 POSITION ul END END END As far as I can tell, the FEATURE object only uses "POINTS" and "TEXT". I tried defining the image within the CLASS, like: SYMBOL "/file/file/file/watermark.gif", but that didn't work. In fact, I'd like to have a static little image AND text following it: {logo} 2001 MyCompany. Any help...? Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil ------------- End Forwarded Message ------------- From jshields at nextbus.com Tue Nov 27 11:03:03 2001 From: jshields at nextbus.com (Jason Shields) Date: Tue, 27 Nov 2001 11:03:03 -0800 Subject: [mapserver-users] (no subject) Message-ID: <3C03E367.DBF86777@nextbus.com> unsubscribe From jimburnett at ntelos.net Wed Nov 28 11:59:04 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 28 Nov 2001 14:59:04 -0500 Subject: [mapserver-users] compile problem Message-ID: <045101c17847$27991700$6801a8c0@jburnett> I setup a new server a few days ago and now I am trying to install mapserver, and mapscript. Same setup, using same downloaded file that were on my other web server. The only dif is I am using Slackware8, instead of 7.1. Apache1.3 Php4.0.5 GD1.8 Nightly source that works on other server I get this error: cc: cannot specify -o with -c or -S and multiple compilations -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Nov 27 12:05:03 2001 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 27 Nov 2001 13:05:03 -0700 Subject: [mapserver-users] ArcSDE and raster Message-ID: <05f901c1777e$cd18be20$390002c0@servo> Hello all, This is a little off-topic with respect to mapserver, but does anyone have any experience or opinions regarding loading raster into ArcSDE ? Specifically problems loading DRGs, likely related to non-integer pixel sizes (eg. 10.12 meters) and registration coordinates not on multiples of the pixel size? Any info would be apprecated. Thanks! Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Nov 27 12:55:15 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 27 Nov 2001 15:55:15 -0500 Subject: [mapserver-users] problems with the reference map Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD41@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm having problems with the drawing of the box on the reference map ... It draws a bit "off" of where it should be, and the more I zoom in, the worst it gets! I checked other tools I've built, and it works fine there. The map and reference map share the same inital extent, and the image size is a perfect fraction of the main map, so everything should fit ok ... The only thing that comes to mind would be differences in the underlying data ... has anybody experienced this before? Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Nov 27 12:58:26 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 27 Nov 2001 15:58:26 -0500 Subject: [mapserver-users] compile problem Message-ID: <7CDD7B94357FD5119E800002A537C46E22FD42@s5-ccr-r1.ccrs.nrcan.gc.ca> Jim, Ah yes, a common re-occuring problem ... If I remember correctly, go into the Makefile and look for the line CC= ... you'll find that the "cc" command appears twice ... remove one of them ... or was it configure? I forget, anyways there's a duplicate "cc" in onoe of the files used to either configure or build ... You'll find the exact solution probably in the archives as this has been mentionned before. Cheers, J.F. -----Original Message----- From: Jim Burnett [mailto:jimburnett at ntelos.net] Sent: Wednesday, November 28, 2001 2:59 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] compile problem I setup a new server a few days ago and now I am trying to install mapserver, and mapscript. Same setup, using same downloaded file that were on my other web server. The only dif is I am using Slackware8, instead of 7.1. Apache1.3 Php4.0.5 GD1.8 Nightly source that works on other server I get this error: cc: cannot specify -o with -c or -S and multiple compilations -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sutton_t at giug.net Wed Nov 28 02:01:52 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 28 Nov 2001 10:01:52 +0000 (GMT) Subject: [mapserver-users] Webserver Wierdness Message-ID: Hi all I am running apache and php and am having some strange problems. The server runs fine most of the time, but randomly page requests return 'page not found' errors on $IE, 'connection to host www.wrcgis.co.uk broken' and under mozilla the page just locks. I am running the site as a virtual host on a trimmed down RH7.2 server. Ialso have bastille installed on the box using mostly default settings from the latter. To see the problem (and some funky stuff I bet you never thought you could do under linux) visit the site at: http://www.wrcgis.co.uk/webmap/ms_europe/ Zoom in and pan around the map a while and sooner or later the problem occurs. I have looked in the error logs for the site and nothing shows up there (I have separate error logs for each virt domain). My config for the virt domain looks like this: ServerAdmin sutton_t at giug.net DocumentRoot /var/www/wrcgis_root ServerName wrcgis.co.uk ErrorLog logs/wrcgis-error_log CustomLog logs/wrcgis-access_log combined AccessFileName .htaccess Any pearls of wisdom on how to track down and dispose of this error will be greatly appreciated. Cheers -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From twan at twansoft.com Wed Nov 28 04:44:31 2001 From: twan at twansoft.com (Twan Kogels) Date: Wed, 28 Nov 2001 13:44:31 +0100 Subject: [mapserver-users] Draw a map of a building? Message-ID: <5.0.0.25.2.20011128133046.00b295f0@pop3.wish.nl> Hello, For demonstration i need to draw a map which displays a couple of places in a building. Therefore i need to make a map of the building first. Is there a program available which let me draw a simple map and save it to a format (shp) which mapserver can read? Yesterday i visited the GRASS website, but did not yet download the package, cause im behind a slow connection and did not know if the GRASS package would be usefull. Thanks, - twan -- http://www.twansoft.com From vguzman at bigfoot.com Tue Nov 27 22:54:15 2001 From: vguzman at bigfoot.com (Vladimir =?ISO-8859-1?Q?Guzm=E1n?=) Date: Wed, 28 Nov 2001 07:54:15 +0100 Subject: [mapserver-users] transparent shapes? Message-ID: <3C048A17.3010602@bigfoot.com> Hi all. I want to know if there is a way to draw a layer with transparency in mapserver. Something like an alpha channel or something. Should I define it in the .map file? Thanks in advance, -- Vladimir Guzm?n R. ----------------- www.main-task.com From jimburnett at ntelos.net Thu Nov 29 05:41:11 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Thu, 29 Nov 2001 08:41:11 -0500 Subject: [mapserver-users] unsubscribe Message-ID: <04f701c178db$81bd91e0$6801a8c0@jburnett> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Nov 28 06:15:29 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 28 Nov 2001 09:15:29 -0500 Subject: [mapserver-users] transparent shapes? References: <3C048A17.3010602@bigfoot.com> Message-ID: <3C04F181.90805@pobox.com> Vladimir Guzm?n wrote: > Hi all. > I want to know if there is a way to draw a layer with transparency in > mapserver. > Something like an alpha channel or something. Should I define it in the > .map file? Vladimir, I think I can safely state that this does not exist at this time. Are you wanting transparency for layers within the map, or do you want to produce a PNG file with transparency so that you can see an image under the png through it? In theory, it should be possible for MapServer to be jimmied to produce PNG files where some color entries have transparency, but I am not convinced this would work with many browsers. If (as is more likely) you want transparency within the map between different layers, that would be somewhat harder. Part of the problem is that map images are not composed in 24 (or 32) bit color, but rather as eight bit paletted images. This makes fancy effects like alpha blending very difficult. Perhaps after a future upgrade to gd2.x some options like this could be considered. 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 morissette at dmsolutions.ca Wed Nov 28 07:26:18 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 28 Nov 2001 10:26:18 -0500 Subject: [mapserver-users] Webserver Wierdness References: Message-ID: <3C05021A.D82B68D@dmsolutions.ca> Tim, We have experienced similar problems on one of our servers, and others have as well, see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=66 If you use 'top' at the Linux prompt, you might notice a number of httpd processes at the top of the list which are using all the CPU time. The "document contains no data" errors that you get in your browsers are likely coming from httpd threads that crashed (are you sure you didn't notice any segmentation fault in your error_log?). It seems that recent versions of PHP MapScript get into an infinite loop or something when PHP is used as an Apache module on RH7.x. Quite possibly a memory corruption problem in MapScript that appears only after the same httpd process has been used for several hits. The only way around the problem that I know for now is to configure your PHP as a CGI, and then a new PHP process will be started for each request and you won't notice this problem any more. Daniel Tim Sutton wrote: > > Hi all > > I am running apache and php and am having some strange problems. The > server runs fine most of the time, but randomly page requests return > 'page not found' errors on $IE, 'connection to host www.wrcgis.co.uk > broken' and under mozilla the page just locks. > > I am running the site as a virtual host on a trimmed down RH7.2 > server. Ialso have bastille installed on the box using mostly default > settings from the latter. > > To see the problem (and some funky stuff I bet you never thought you > could do under linux) visit the site at: > > http://www.wrcgis.co.uk/webmap/ms_europe/ > > Zoom in and pan around the map a while and sooner or later the problem > occurs. I have looked in the error logs for the site and nothing shows > up there (I have separate error logs for each virt domain). > > My config for the virt domain looks like this: > > > ServerAdmin sutton_t at giug.net > DocumentRoot /var/www/wrcgis_root > ServerName wrcgis.co.uk > ErrorLog logs/wrcgis-error_log > CustomLog logs/wrcgis-access_log combined > AccessFileName .htaccess > > > Any pearls of wisdom on how to track down and dispose of this error > will be greatly appreciated. > > Cheers > > -- > ----------------------------------------------------- > Tim Sutton WRc plc > Consultant, GIS Solutions Group Frankland Road > Direct line: +44 (0) 1793 865056 Blagrove > Switchboard: +44 (0) 1793 865000 Swindon > Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF > United Kingdom > > WRc - Solutions for Water, Waste and the Environment > ----------------------------------------------------- From Chip.Hankley at GASAI.Com Wed Nov 28 07:42:22 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 28 Nov 2001 09:42:22 -0600 Subject: [mapserver-users] PHP<->ShpTree...weird problem Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E4030@postoffice.GASAI.Com> I'm running Win2K, IIS, PHP 4.06 and MS3.5. I have a mapfile that has a large shapefile as one of it's layers. Originally, I was using several (about 20) tiled shapefiles... then decided to try to combine them into one large file and use shptree to create a spatial index. After replacing the 20 different layers in the mapfile with the one layer, may application started bombing whenever I tried to display this layer. I'm getting a Windows (Dr. Watson) error (access violations). What's really wierd is if I read the same map file using CGI MapServer OR even a different PHP interface (same version, just a different page), it works (ie no error and it displays). I know this is a long shot, but anyone have any ideas about what could cause behavior like this? I've spent some time error checking to no avail... Chip Hankley From jga at scot.cnes.fr Wed Nov 28 05:23:59 2001 From: jga at scot.cnes.fr (jrom) Date: Wed, 28 Nov 2001 14:23:59 +0100 Subject: [mapserver-users] transparent shapes? In-Reply-To: <3C048A17.3010602@bigfoot.com>; from vguzman@bigfoot.com on Wed, Nov 28, 2001 at 07:54:15 +0100 References: <3C048A17.3010602@bigfoot.com> Message-ID: <200111281659.fASGxVv13332@cnes.fr> > Hi all. > I want to know if there is a way to draw a layer with transparency in > mapserver. > Something like an alpha channel or something. Should I define it in the > .map file? > > Thanks in advance, There is no alpha channel support in mapserver but you can use a symbol like a diagonal hash to fill your layer and simulates transparency For example: LAYER CLASS COLOR 60 138 238 SYMBOL "diagonal_hash" END DATA "polygons" NAME "trans_polygons" STATUS ON TYPE POLYGON END SYMBOL NAME "diagonal_hash" TYPE VECTOR POINTS 0 0 1 1 END END jrom From woodbri at swoodbridge.com Wed Nov 28 11:41:09 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 28 Nov 2001 14:41:09 -0500 Subject: [mapserver-users] Yet another interesting web map site Message-ID: <3C053DD5.91EAECCA@swoodbridge.com> Yet another interesting web map site http://maporama.com/share/ It has an interactive map mode that appears to download an image and then let you pan and zoom it within the client. Cute idea, YMMV. -Steve From jshields at nextbus.com Wed Nov 28 11:48:11 2001 From: jshields at nextbus.com (Jason Shields) Date: Wed, 28 Nov 2001 11:48:11 -0800 Subject: [mapserver-users] unsubscribe References: <04f701c178db$81bd91e0$6801a8c0@jburnett> Message-ID: <3C053F7B.C7E80A94@nextbus.com> unsubscribe From chuck.bokath at air2web.com Wed Nov 28 13:08:27 2001 From: chuck.bokath at air2web.com (Chuck Bokath) Date: Wed, 28 Nov 2001 16:08:27 -0500 Subject: [mapserver-users] Blank Map Image/Reference Image OK Message-ID: Hi, I have mapserver 3.5, and PHP/Mapscript installed with Apache1.3.12 as the webserver. The problem I am having is that I can display my Image.gif during mode=reference, but when I use mode=map, I get a blank Image. I have been trying to figure this one out for a good long time, going through the listserv, and the such, but I am completely stumped. Could it be my extent is incorrect? Do I need a shapefile for the MapObject? Here is a snippet of my php app ====================================== $map = ms_newMapObj("MetroAtl.map"); //print $map->numlayers; // phpinfo(); $img = $map->drawReferenceMap(); <<=== Renders a .gif Image Correctly [ snip $img = $map->draw(); <<== when this is uncommented, it does not render an Image ] $url = $img->saveWebImage(0, 0); printf("\n", $url, $map->width, $map->height); ======================================= Any ideas would be greatly appreciated. Here is my .map file MAP NAME METROATL STATUS ON SIZE 250 250 UNITS DD EXTENT -82.000 26.000 -82.500 26.000 TRANSPARENT ON REFERENCE IMAGE /lbsimages/Maps/gif/MetroAtl.gif SIZE 600 600 STATUS ON EXTENT -82.000 26.000 -82.500 26.000 OUTLINECOLOR 255 0 0 END WEB TEMPLATE atltemplate.html IMAGEPATH "d:/lbsimages/tmp/" IMAGEURL "d:/lbsimages/tmp/" LOG "d:/lbsimages/atl.log" END PROJECTION GEOGRAPHIC END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 12 ANTIALIAS END END LAYER NAME "GENERAL" #DESCRIPTION TEST TYPE RASTER DATA /lbsimages/Maps/gif/Atlanta.gif #SIZE 250 250 END END Chuck Bokath Sr Engineer Wireless R & D Air2Web, Inc. Promenade II 1230 Peachtree Rd Atlanta, Georgia +1 404 942 5311 From steve.lime at dnr.state.mn.us Wed Nov 28 10:56:00 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Nov 2001 12:56:00 -0600 Subject: [mapserver-users] problems with the reference map Message-ID: That almost implies problems with the reference map defiinition. That is, the extent is wrong or perhaps the size values don't actually match the image you're using. Those are certainly the first places to check. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 11/27/01 02:55PM >>> Hello, I'm having problems with the drawing of the box on the reference map ... It draws a bit "off" of where it should be, and the more I zoom in, the worst it gets! I checked other tools I've built, and it works fine there. The map and reference map share the same inital extent, and the image size is a perfect fraction of the main map, so everything should fit ok ... The only thing that comes to mind would be differences in the underlying data ... has anybody experienced this before? Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From jqu at eosdata.gsfc.nasa.gov Wed Nov 28 13:21:20 2001 From: jqu at eosdata.gsfc.nasa.gov (John Qu) Date: Wed, 28 Nov 2001 16:21:20 -0500 Subject: [mapserver-users] unsubscribe Message-ID: <4.2.0.58.20011128162050.00b065b0@localhost> unsubscribe From steve.lime at dnr.state.mn.us Wed Nov 28 12:29:01 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Nov 2001 14:29:01 -0600 Subject: [mapserver-users] Yet another interesting web map site Message-ID: Very cool, flash on the fly. We have PDF on the fly (check out the shp2pdf program) so based on that flash output shouldn't be that hard. Ok, who wants a shot at it... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 11/28/01 01:41PM >>> Yet another interesting web map site http://maporama.com/share/ It has an interactive map mode that appears to download an image and then let you pan and zoom it within the client. Cute idea, YMMV. -Steve From steve.lime at dnr.state.mn.us Wed Nov 28 12:37:26 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Nov 2001 14:37:26 -0600 Subject: [mapserver-users] Draw a map of a building? Message-ID: Check out manifold. It's cheap and probably will do what you want... www.manifold.net Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Twan Kogels 11/28/01 06:44AM >>> Hello, For demonstration i need to draw a map which displays a couple of places in a building. Therefore i need to make a map of the building first. Is there a program available which let me draw a simple map and save it to a format (shp) which mapserver can read? Yesterday i visited the GRASS website, but did not yet download the package, cause im behind a slow connection and did not know if the GRASS package would be usefull. Thanks, - twan -- http://www.twansoft.com From steve.lime at dnr.state.mn.us Wed Nov 28 12:43:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 28 Nov 2001 14:43:18 -0600 Subject: [mapserver-users] Fwd: Mapserver install and demo Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "ANGELA G HOLDER-PEARMAN" Subject: Mapserver install and demo Date: Tue, 27 Nov 2001 14:31:14 -0500 Size: 2288 URL: From pushkar at ERC.MsState.Edu Wed Nov 28 15:21:01 2001 From: pushkar at ERC.MsState.Edu (Pushkar Pradhan) Date: Wed, 28 Nov 2001 17:21:01 -0600 (CST) Subject: [mapserver-users] Fwd: Mapserver install and demo In-Reply-To: Message-ID: Since you are working on windows, you will need to use a \ not / in the line: demo_init.html document has the line:
Probably this should be sufficient. On Wed, 28 Nov 2001, Stephen Lime wrote: [ Part 2: "Included Message" ] Date: Tue, 27 Nov 2001 14:31:14 -0500 From: ANGELA G HOLDER-PEARMAN To: mapserver-info at lists.gis.umn.edu Subject: Mapserver install and demo Hi, I've downloaded the Win32 binaries and have installed Mapserver on a Win2K machine. I downloaded the demo and went through all the steps from the readme.html document. When I open my browser and use this url: http://localhost/ms_demo/demo_init.html I get the MapServer Demo Interface page. When I click on the Initialize button, I get the MS File Download Dialog box saying that I have chosen to download a file from this location: mapserv from localhost. And asking to 'Open...' or 'Save....' I've confirmed that the mapserv.exe is in the C:\inetpub\wwwroot\cgi-bin folder. The demo_init.html document has the line: The first input line in demo_init.html is: Any help would be appreciated. Thanks, > > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > ------------------------------------------------------------------------------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------------ From marin at here.is Wed Nov 28 17:19:59 2001 From: marin at here.is (Ma) Date: Thu, 29 Nov 2001 01:19:59 +0000 Subject: [mapserver-users] GIS World's Web Mapping Guide Message-ID: <3C058D3F.1B72D7D8@here.is> GIS World's Web Mapping Guide: http://www.geoplace.com/gr/webmapping/ the functionality charts are quite interesting: http://www.geoplace.com/gr/webmapping/Final%20Web%20Charts.pdf :> -- Ma From cabral at yadata.net Wed Nov 28 17:57:55 2001 From: cabral at yadata.net (Rodrigo Cabral) Date: Wed, 28 Nov 2001 23:57:55 -0200 Subject: [mapserver-users] problems with the reference map References: Message-ID: <003e01c17879$44a49fe0$0207a8c0@naumaki> I guess here it's your solution... Maybe we should do a HOWTO on this: http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 11/msg00078.html and http://mapserver.gis.umn.edu/majordom_lists/archives/mapserver-users/html/01 11/bin00001.bin The PHP reference map generator needs a fix though, need to put 'set width & height' before 'setextent', like this: $map->setextent( $minx, $miny, $maxx, $maxy ); $map->set( 'width' , $width ); $map->set( 'height' , $height ); changes to: $map->set( 'width' , $width ); $map->set( 'height' , $height ); $map->setextent( $minx, $miny, $maxx, $maxy ); Rod. ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, November 28, 2001 4:56 PM Subject: Re: [mapserver-users] problems with the reference map That almost implies problems with the reference map defiinition. That is, the extent is wrong or perhaps the size values don't actually match the image you're using. Those are certainly the first places to check. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Doyon, Jean-Francois" 11/27/01 02:55PM >>> Hello, I'm having problems with the drawing of the box on the reference map ... It draws a bit "off" of where it should be, and the more I zoom in, the worst it gets! I checked other tools I've built, and it works fine there. The map and reference map share the same inital extent, and the image size is a perfect fraction of the main map, so everything should fit ok ... The only thing that comes to mind would be differences in the underlying data ... has anybody experienced this before? Thank you, Jean-Fran?ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pucher at atlas.gis.univie.ac.at Wed Nov 28 23:58:59 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 29 Nov 2001 08:58:59 +0100 Subject: [mapserver-users] label lines along path Message-ID: <3C05EAC3.3090406@atlas.gis.univie.ac.at> Hi, after solving some problems with labeling lines using a hierachy based on importance (e.g. city streets), I have yet another question left. Is there a way to label lines not only horizontal or by a given angle, but along a path. In a PostScript book I have, they call this method "placing text along an arbitrary path". Consider labeling roads or even rivers that curve a lot. This might be not so important when I think of city street systems in the US, but it is when mapping cities in Europe, like Vienna,Austria, in my case. Stephen Woodbridge sent a link to http://maporama.com/share yesterday, where you can clearly see that the street labels sometimes follow a path. Is this a MapServer app, and if so, how is the labeling done? mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon From sutton_t at giug.net Fri Nov 30 01:41:16 2001 From: sutton_t at giug.net (Tim Sutton) Date: Fri, 30 Nov 2001 09:41:16 +0000 (GMT) Subject: [mapserver-users] Webserver Wierdness In-Reply-To: <3C05021A.D82B68D@dmsolutions.ca> Message-ID: Hi Many thanks Daniel & others who contributed suggestions. I finally worked out how to run php as a cgi (it was stupidly simple actually). My mapserver now runs beautifully. I am really impressed by its performance. As a casual benchmark, ms renders on a p200, 128mb rh7.2 approximately twice as fast as arcview can render the same scene on a dual p400 with 256mb ram !!!!! It really flies! Also, a quick apology...in my original post I wrote: > > To see the problem (and some funky stuff I bet you never thought you > > could do under linux) visit the site at: Obviously I was referring to mapserver here, and the above bit of text was a cut 'n paste error not intended for this list (I had posted the same query to the lunix users group I belong to). I am sure mapserver users need no telling how brilliant this software is.... Tim On Wed, 28 Nov 2001, Daniel Morissette wrote: > Tim, > > We have experienced similar problems on one of our servers, and others > have as well, see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=66 > > If you use 'top' at the Linux prompt, you might notice a number of httpd > processes at the top of the list which are using all the CPU time. The > "document contains no data" errors that you get in your browsers are > likely coming from httpd threads that crashed (are you sure you didn't > notice any segmentation fault in your error_log?). It seems that recent > versions of PHP MapScript get into an infinite loop or something when > PHP is used as an Apache module on RH7.x. Quite possibly a memory > corruption problem in MapScript that appears only after the same httpd > process has been used for several hits. > > The only way around the problem that I know for now is to configure your > PHP as a CGI, and then a new PHP process will be started for each > request and you won't notice this problem any more. > > Daniel > > > Tim Sutton wrote: > > > > Hi all > > > > I am running apache and php and am having some strange problems. The > > server runs fine most of the time, but randomly page requests return > > 'page not found' errors on $IE, 'connection to host www.wrcgis.co.uk > > broken' and under mozilla the page just locks. > > > > I am running the site as a virtual host on a trimmed down RH7.2 > > server. Ialso have bastille installed on the box using mostly default > > settings from the latter. > > > > To see the problem (and some funky stuff I bet you never thought you > > could do under linux) visit the site at: > > > > http://www.wrcgis.co.uk/webmap/ms_europe/ > > > > Zoom in and pan around the map a while and sooner or later the problem > > occurs. I have looked in the error logs for the site and nothing shows > > up there (I have separate error logs for each virt domain). > > > > My config for the virt domain looks like this: > > > > > > ServerAdmin sutton_t at giug.net > > DocumentRoot /var/www/wrcgis_root > > ServerName wrcgis.co.uk > > ErrorLog logs/wrcgis-error_log > > CustomLog logs/wrcgis-access_log combined > > AccessFileName .htaccess > > > > > > Any pearls of wisdom on how to track down and dispose of this error > > will be greatly appreciated. > > > > Cheers > > > > -- > > ----------------------------------------------------- > > Tim Sutton WRc plc > > Consultant, GIS Solutions Group Frankland Road > > Direct line: +44 (0) 1793 865056 Blagrove > > Switchboard: +44 (0) 1793 865000 Swindon > > Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF > > United Kingdom > > > > WRc - Solutions for Water, Waste and the Environment > > ----------------------------------------------------- > -- ----------------------------------------------------- Tim Sutton WRc plc Consultant, GIS Solutions Group Frankland Road Direct line: +44 (0) 1793 865056 Blagrove Switchboard: +44 (0) 1793 865000 Swindon Fax: +44 (0) 1793 865001 Wiltshire SN5 8YF United Kingdom WRc - Solutions for Water, Waste and the Environment ----------------------------------------------------- From ed at topozone.com Thu Nov 29 05:45:00 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 29 Nov 2001 08:45:00 -0500 Subject: [mapserver-users] Fwd: Mapserver install and demo Message-ID: <13858AA1A74F30419F319ACB66A9D122019254@mercator.topozone.com> Pushkar - No, I don't think that's correct. Windows (in most cases) will handle slashes in either direction, and in any event, the string "/cgi-bin/mapserv.exe" is not a file path but a URL, and the forward slashes are just fine. Did you set the /cgi-bin virtual directory to have EXECUTE permission? If that's not the problem, look to see (in the download dialog box) whether you're trying to download the file "mapserv" or "mapserv.exe". If the filename is "mapserv" but the file type below it is "Application", that's OK. If it's not, then double-check that you've changed all references to "/cgi-bin/mapserv" to "/cgi-bin/mapserv.exe". - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Pushkar Pradhan [mailto:pushkar at ERC.MsState.Edu] Sent: Wednesday, November 28, 2001 6:21 PM To: Stephen Lime Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Fwd: Mapserver install and demo Since you are working on windows, you will need to use a \ not / in the line: demo_init.html document has the line: Probably this should be sufficient. On Wed, 28 Nov 2001, Stephen Lime wrote: [ Part 2: "Included Message" ] Date: Tue, 27 Nov 2001 14:31:14 -0500 From: ANGELA G HOLDER-PEARMAN To: mapserver-info at lists.gis.umn.edu Subject: Mapserver install and demo Hi, I've downloaded the Win32 binaries and have installed Mapserver on a Win2K machine. I downloaded the demo and went through all the steps from the readme.html document. When I open my browser and use this url: http://localhost/ms_demo/demo_init.html I get the MapServer Demo Interface page. When I click on the Initialize button, I get the MS File Download Dialog box saying that I have chosen to download a file from this location: mapserv from localhost. And asking to 'Open...' or 'Save....' I've confirmed that the mapserv.exe is in the C:\inetpub\wwwroot\cgi-bin folder. The demo_init.html document has the line: The first input line in demo_init.html is: Any help would be appreciated. Thanks, > > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > ------------------------------------------------------------------------ ------ PUSHKAR S. PRADHAN Master's Candidate in ELECTRICAL ENGINEERING, MISSISSIPPI STATE UNIVERSITY, STARKVILLE, MS 39759. Engineering Research Center Box 9627 Mississippi State, MS 39762-9627 ------------------------------------------------------------------------ ------ From pnaciona at gis.umn.edu Thu Nov 29 21:25:45 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 29 Nov 2001 23:25:45 -0600 Subject: [mapserver-users] MapServer and PostGIS compile Message-ID: Hi there! While compiling MapServer with PostGIS support on Cygwin, I ran into this error message: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_AP I_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_ FT - DGD_HAS_GDIMAGEGIFPTR -DUSE_GDAL -DUSE_POSTGIS -I/cygdrive/d/projects/gn u/ma pserver/gd-1.8.4 -I/usr/local/include -I./regex-0.12 -I/usr/local/inc lude -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-li bwww -DHAVE_CONFIG_H mappostgis.c -o mappostgis.o mappostgis.c: In function `msPOSTGISLayerOpen': mappostgis.c:112: `LITTLE_ENDIAN' undeclared (first use in this function) mappostgis.c:112: (Each undeclared identifier is reported only once mappostgis.c:112: for each function it appears in.) mappostgis.c:114: `BIG_ENDIAN' undeclared (first use in this function) mappostgis.c: In function `prep_DB': mappostgis.c:191: `LITTLE_ENDIAN' undeclared (first use in this function) mappostgis.c: In function `msPOSTGISLayerGetShape': mappostgis.c:926: `LITTLE_ENDIAN' undeclared (first use in this function) make: *** [mappostgis.o] Error 1 I get a similar message when compiling PostGIS support on Sun Solaris 8. The very same MapServer configuration compiles and runs perfectly on my Linux (Red Hat 7.2) box. If this matters at all, I'm running gcc version 2.95.3 on both Cygwin and Solaris,and version 2.96 on Linux. Perhaps I should report this as a bug? Anyway thanks in advance for any help. -Perry N. From davehowlett at sympatico.ca Thu Nov 29 09:30:28 2001 From: davehowlett at sympatico.ca (Dave Howlett) Date: Thu, 29 Nov 2001 11:30:28 -0600 Subject: [mapserver-users] label lines along path References: <3C05EAC3.3090406@atlas.gis.univie.ac.at> Message-ID: <3C0670B4.3B8BF341@sympatico.ca> Alex, I was looking at a good example of MapServer doing this on their test suite site just a few days ago. I see that at this moments, some of the links from this site are not behaving. The .map file for performing this task is currently available there. When the actual map is available I must say that it looks very good! Dave Alexander Pucher wrote: > Hi, > > after solving some problems with labeling lines using a hierachy based on importance (e.g. city streets), I have yet another question left. > > Is there a way to label lines not only horizontal or by a given angle, but along a path. In a PostScript book I have, they call this method "placing text along an arbitrary path". > > Consider labeling roads or even rivers that curve a lot. This might be not so important when I think of city street systems in the US, but it is when mapping cities in Europe, like Vienna,Austria, in my case. > > Stephen Woodbridge sent a link to http://maporama.com/share yesterday, where you can clearly see that the street labels sometimes follow a path. > Is this a MapServer app, and if so, how is the labeling done? > > mfg > ALEX > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Nov 29 10:33:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 29 Nov 2001 12:33:29 -0600 Subject: [mapserver-users] GIS World's Web Mapping Guide Message-ID: Nice to see our little OpenSource product so prominently discussed- *sheesh*. Wonder who's butt you gotta kiss to make their article. Strangely the first MapServer site I ever did, like 6 years ago, is still listed in their resources section even though it no longer exists. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ma 11/28/01 07:19PM >>> GIS World's Web Mapping Guide: http://www.geoplace.com/gr/webmapping/ the functionality charts are quite interesting: http://www.geoplace.com/gr/webmapping/Final%20Web%20Charts.pdf :> -- Ma From steve.lime at dnr.state.mn.us Thu Nov 29 10:57:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 29 Nov 2001 12:57:47 -0600 Subject: [mapserver-users] label lines along path Message-ID: The maporama site is not MapServer, too bad cause it's *very* slick. Aligning a label to a spline or curve is not available. I've looked before for algorithms but have never found one. It's not clear whether that is better accomplished beforehand rather than on-the-fly. I definitely would be slower than the way things work now. GD and it's TTF extension are not equipted to deal with this. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alexander Pucher 11/29/01 01:58AM >>> Hi, after solving some problems with labeling lines using a hierachy based on importance (e.g. city streets), I have yet another question left. Is there a way to label lines not only horizontal or by a given angle, but along a path. In a PostScript book I have, they call this method "placing text along an arbitrary path". Consider labeling roads or even rivers that curve a lot. This might be not so important when I think of city street systems in the US, but it is when mapping cities in Europe, like Vienna,Austria, in my case. Stephen Woodbridge sent a link to http://maporama.com/share yesterday, where you can clearly see that the street labels sometimes follow a path. Is this a MapServer app, and if so, how is the labeling done? mfg ALEX -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon From rsmith at talos.com Fri Nov 30 09:22:14 2001 From: rsmith at talos.com (rsmith at talos.com) Date: Fri, 30 Nov 2001 12:22:14 -0500 Subject: Access file error on demo Message-ID: <200111301722.MAA07196@mail.wdn.net> I just installed the version 3.3 mapserv for the first time. I followed the instlattion instructions closely, but can't seem to get around the error below. Has anyone come across this? msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10071408313056.gif) Thanks Rob rsmith at talos.com From Amy.Stender at erdc.usace.army.mil Thu Nov 29 10:35:14 2001 From: Amy.Stender at erdc.usace.army.mil (Stender, Amy ERDC-CRREL-NH) Date: Thu, 29 Nov 2001 13:35:14 -0500 Subject: zoom to fixed scale Message-ID: <048FBD219330D211B47000A0C9B3BAFD02E757C8@crl02.crrel.usace.army.mil> i'm trying to have a "Zoom to Fixed Scale" on my webpage, but am unsure about my javascript. the pulldown in my html looks like: Zoom to Fixed Scale: and my javascript is: function fixedScale() { document.mapserv.imgbox.value = 0 + " " + 0 + " " + [mapwidth] + " " + [mapheight]; document.mapserv.imgxy.value = ([mapwidth]-1)/2.0 + " " + ([mapheight]-1)/2.0; document.mapserv.scale = document.mapserv.fixscale.options[document.mapserv.fixscale.selectedIndex].v alue; document.mapserv.submit(); } looks okay to me, i can't figure out what the problem is. any help? thanks. Amy L. Stender Remote Sensing/GIS Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, NH 03755-1290 Tel: (603) 646-4733 Fax: (603) 646-4730 astender at crrel.usace.army.mil From woodbri at swoodbridge.com Thu Nov 29 05:41:53 2001 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Nov 2001 08:41:53 -0500 Subject: [mapserver-users] label lines along path References: <3C05EAC3.3090406@atlas.gis.univie.ac.at> Message-ID: <3C063B21.D698159F@swoodbridge.com> Alexander, The maporama site I don't think is using MapServer. Ideally it would be preferable if GD lib or TTF lib libraries support labeling along a spline or a path. Steve Lime - have you asked them about support for such a feature? -Steve Woodbridge Alexander Pucher wrote: > > Hi, > > after solving some problems with labeling lines using a hierachy based on importance (e.g. city streets), I have yet another question left. > > Is there a way to label lines not only horizontal or by a given angle, but along a path. In a PostScript book I have, they call this method "placing text along an arbitrary path". > > Consider labeling roads or even rivers that curve a lot. This might be not so important when I think of city street systems in the US, but it is when mapping cities in Europe, like Vienna,Austria, in my case. > > Stephen Woodbridge sent a link to http://maporama.com/share yesterday, where you can clearly see that the street labels sometimes follow a path. > Is this a MapServer app, and if so, how is the labeling done? > > mfg > ALEX > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universit?t Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartographie and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: pucher at atlas.gis.univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > ________________________________________________________ > > "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon > >