From Simon.Kirkness at fisheries.nsw.gov.au Thu Aug 1 00:10:58 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Thu, 01 Aug 2002 17:10:58 +1000 Subject: [mapserver-users] PHP 4.2.2 and mapserver-3.6.2-win32-php4.2.1-libwww Message-ID: Hi All, I have installed php 4.2.2 and am using the binaries mapserver-3.6.2-win32-php4.2.1-libwww from the DM solutions web site. Will this combination cause any problems or should I use php 4.2.1 TIA <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From fw at urbanix.de Thu Aug 1 02:33:15 2002 From: fw at urbanix.de (Franziska Wenzel) Date: Thu, 01 Aug 2002 11:33:15 +0200 Subject: [mapserver-users] Installation problem on FreeBSD Message-ID: Hi there, I successfully compiled mapserver on my own MacOS X System, no problems and everything works fine. But I have problems on our hosted webserver. Its running FreeBSD 4.1.1. and compiling mapserver 3.6 seemed to work fine. But when I try to run the demo, mapserver shows an Internal Server Error When I look at apaches error log it says Premature end of script headers: /home/www/cgi-bin/mapserv Any idea what I could do to get mapserver running? BTW: during compilation I had to set the LibJPEG directory though the libary is at a standard location Thanks for any help Franziska From fw at urbanix.de Thu Aug 1 02:39:39 2002 From: fw at urbanix.de (Franziska Wenzel) Date: Thu, 01 Aug 2002 11:39:39 +0200 Subject: [mapserver-users] Installation problem on FreeBSD Message-ID: Hi there, I successfully compiled mapserver on my own MacOS X System, no problems and everything works fine. But I have problems on our hosted webserver. Its running FreeBSD 4.1.1. and compiling mapserver 3.6 seemed to work fine. But when I try to run the demo, mapserver shows an Internal Server Error When I look at apaches error log it says Premature end of script headers: /home/www/cgi-bin/mapserv Any idea what I could do to get mapserver running? BTW: during compilation I had to set the LibJPEG directory though the libary is at a standard location Thanks for any help Franziska From jhart at frw.uva.nl Thu Aug 1 03:30:39 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 1 Aug 2002 12:30:39 +0200 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: Message-ID: Steve Lime wrote: > You can use a point query against the mapinfo data using the normal > query or nquery modes. One thing to be aware of it that MapServer's > point in polygon routine works fine if the point in question is strictly > in/out of the polygon. It's indeterminate if the point is exactly on the > edge. Any reason why this should be so? I saw a function msPointInPolygon() in mapsearch.c, which looked like an optimized version of the classical point-in-polygon algorithm (draw a horizontal line from the point and count the intersections with the polygon. If odd, point is within polygon). Why should the result be indeterminate if the point lies on an edge? Jan Hartmann From MJHatcher at space.qinetiq.com Thu Aug 1 03:47:06 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Thu, 1 Aug 2002 11:47:06 +0100 Subject: [mapserver-users] Itemquery problem Message-ID: Hi all, I'm having problems using the itemquery mode of Mapserver 3.6.1. I'm wanting to have a text box which the user enters a postcode, which then queries a shapefile containing postcode points. This then returns a query map of that area. At least to start anyway. Whatever I do and whatever is entered, itemquery returns the first record, and itemnquery returns all the records. What am I doing wrong? Any help would be appreciated, especially if it includes examples of how to do it right!! Matt Hatcher <-- test.html --> Enter postcode:
<-- test.map (the relevant bits!) --> QUERYMAP SIZE 300 300 STATUS ON STYLE HILITE COLOR 255 0 0 END LAYER NAME "postcodes" TYPE POINT STATUS OFF DATA postcodes TEMPLATE "query.html" FILTER "PCODE<>''" CLASS COLOR 192 192 192 SYMBOL "circle" SIZE 3 END END <-- end --> ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From pucher at atlas.gis.univie.ac.at Thu Aug 1 03:49:26 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 01 Aug 2002 12:49:26 +0200 Subject: [mapserver-users] [Fwd: [Freegis-list] UMN MapServer manual] Message-ID: <3D491236.5020600@atlas.gis.univie.ac.at> -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 38 URL: From cjkeuck at mapmedia.de Thu Aug 1 01:05:59 2002 From: cjkeuck at mapmedia.de (Keuck, Carl Jan) Date: Thu, 01 Aug 2002 10:05:59 +0200 Subject: [Freegis-list] UMN MapServer manual Message-ID: <5.1.0.14.0.20020801100343.01a1faf8@pop.gmx.de> Hello everybody on this list, MapMedia (Berlin, Germany) has published the first german manual for the UMN MapServer (v3.6). The manual's title is "UMN MapServer, Handbuch und Referenz" and was written by Thorsten Fischer. It covers the multiple installation and configuration possibilities of MapServer, including the integration of the PostgreSQL-based spatial extension PostGIS. Special attention was given to the MapScript library to include MapServer services into websites with e.g. PHP. The manual is completed by a MapScript reference. The manual's audience is intended to contain developers of MapServer-based webmapping solutions and system administrators who want to integrate MapServer into their webservers. More information and purchase at: MapMedia, Am Borsigturm 42, 13507 Berlin, Tel: +49.30.4303 2100, info at mapmedia.de, http://www.mapmedia.de _______________________________________________ Freegis-list mailing list Freegis-list at intevation.de https://intevation.de/mailman/listinfo/freegis-list --------------030707070404070105010402-- From havard.tveite at ikf.nlh.no Thu Aug 1 04:25:15 2002 From: havard.tveite at ikf.nlh.no (Havard Tveite) Date: Thu, 01 Aug 2002 13:25:15 +0200 Subject: [mapserver-users] Wanted: Projection for the reference map Message-ID: <3D491A9B.FC8F7451@ikf.nlh.no> I can not find a possibility to describe a projection for the Reference Map Object in the Mapserver documentation. Have I overlooked something? In my opinion it would be very useful and practical to be able to use different projections for the reference map and the main map. This would, of course, in many cases lead to non-rectangular outlines on the reference map, so one would have to determine an appropriate level of detail for the outlines (from linear interpolation between the four corner points to a smooth rendering of the exact boundary curves). The lowest level of detail would imply four coordinate transformations while a high level of detail would lead to lots of coordinate transformations. The only effect I believe this would have on other elements is that "EXTENT" in the reference map object would have to be specified in the reference map coordinate system. -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From nhv at cape.com Thu Aug 1 04:32:39 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 1 Aug 2002 07:32:39 -0400 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: Message-ID: <000e01c2394f$24e237c0$a300a8c0@nhv> Jan Hartmann writes: > >Steve Lime wrote: >> You can use a point query against the mapinfo data using the normal >> query or nquery modes. One thing to be aware of it that MapServer's >> point in polygon routine works fine if the point in question is strictly >> in/out of the polygon. It's indeterminate if the point is exactly on the >> edge. > >Why should the result be indeterminate if the point lies on an edge? Without considering the 'numerical issues' of what it means to be 'exactly on the edge', If you have neigboring polygons which poly would the point be in if it was on the edge :-) Cheers Norman From lfilak at medinaco.org Thu Aug 1 05:27:36 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 01 Aug 2002 08:27:36 -0400 Subject: [mapserver-users] Installation problem on FreeBSD Message-ID: <200208011215.g71CFZ830986@yogi.medinaco.net> If you can set the environment variable 'MS_ERRORFILE' in the webserver to a file name that can be written to by the userid the process is running as the file should show additional information regarding what the actual error is. Lowell F. The following message was sent by Franziska Wenzel on Thu, 01 Aug 2002 11:39:39 +0200. > Hi there, > > I successfully compiled mapserver on my own MacOS X > System, no problems and everything works fine. > > But I have problems on our hosted webserver. > Its running FreeBSD 4.1.1. and compiling mapserver 3.6 seemed to work fine. > But when I try to run the demo, mapserver shows an Internal Server Error > > When I look at apaches error log it says > Premature end of script headers: /home/www/cgi-bin/mapserv > > > Any idea what I could do to get mapserver running? > > BTW: during compilation I had to set the LibJPEG > directory though the libary is at a standard location > > Thanks for any help > > Franziska From lfilak at medinaco.org Thu Aug 1 05:58:19 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 01 Aug 2002 08:58:19 -0400 Subject: [mapserver-users] hoping for more verbose debug messages Message-ID: <200208011246.g71CkI832173@yogi.medinaco.net> It appears your first error is coming from mapsymbol.c where it is trying to open a symbolset. The second error looks like it is coming from maptree.c where it is trying to open the index file on a shapefile. Why the filenames aren't shown, I don't know, usually the messages are pretty good about displaying the filename but in this case it appears the filename is never passed to msSetError. However being able to check the source is the best part of OpenSource... HTH Lowell F. The following message was sent by Joe Bussell on Wed, 31 Jul 2002 16:43:39 -0700. > I am getting errors which do not provide enough info for me to debug. > The specific messages are as follows: > > Wed Jul 31 16:25:24 2002 - msAddImageSymbol(): Unable to access file. > Wed Jul 31 16:25:26 2002 - msSearchDiskTree(): Unable to access file. > > It would be nice it the error message indicated the missing file name. > I have not been able to track this one down as my maps all work great. > I am accessing mapserver through the PERL interface. I did not see any > direct connection in the mapscript.pm to these functions. > > Any help would be appreciated. > > Cordially, > > Joe Bussell > On Time Systems From hi-ono at mn.xdsl.ne.jp Thu Aug 1 06:09:07 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Thu, 1 Aug 2002 22:09:07 +0900 Subject: [mapserver-users] How to clean MapServer's map output images in temporary folder automatically? References: <3DFF131E4E6D2D4198CDD758F35A5353010ABC42@postoffice.GASAI.Com> Message-ID: <008301c2395c$9e761b30$650202c0@vip> Thank you for good information's, everyone. From jhart at frw.uva.nl Thu Aug 1 06:12:04 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 1 Aug 2002 15:12:04 +0200 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: <000e01c2394f$24e237c0$a300a8c0@nhv> Message-ID: Both or none, I would guess. I should vote for both, unless there is a reason for a point query to exactly return one polygon. Jan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Norman Vine Sent: Thursday, August 01, 2002 1:33 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan Hartmann writes: > >Steve Lime wrote: >> You can use a point query against the mapinfo data using the normal >> query or nquery modes. One thing to be aware of it that MapServer's >> point in polygon routine works fine if the point in question is strictly >> in/out of the polygon. It's indeterminate if the point is exactly on the >> edge. > >Why should the result be indeterminate if the point lies on an edge? Without considering the 'numerical issues' of what it means to be 'exactly on the edge', If you have neigboring polygons which poly would the point be in if it was on the edge :-) Cheers Norman From eduardo at scopotecnologia.com.br Thu Aug 1 10:17:00 2002 From: eduardo at scopotecnologia.com.br (Eduardo Patto Kanegae) Date: Thu, 1 Aug 2002 10:17:00 Subject: [mapserver-users] shptree e sortshp Message-ID: <20020801131700.20769.qmail@hm47.locaweb.com.br> I?ve read the descriptions of the shptree ?n? sortshp utils...at the utils page from mapserver site. but i din?t undestand what really does theses programs. 1.what is the real purpose of indexing a shape with sortshp? does the program index also the .shp file ? 2.what is the purpose of the .qix file that is generated with the shptree command? how this is file is read? regards Eduardo Patto Kanegae eduardo at scopotecnologia.com.br ICQ: 71431064 http://www.scopotecnologia.com.br From Chip.Hankley at GASAI.Com Thu Aug 1 06:32:07 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 1 Aug 2002 08:32:07 -0500 Subject: [mapserver-users] RE: PHP Map Server - reg Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABC5C@postoffice.GASAI.Com> As a general rule, you need to use a version of the dll that matches the version of PHP that you have installed. There are a number of dlls on the DMSolutions web site. I think that there is one for 4.2.1... it usually says something to that effect in the name of the file. If you're just getting started, look at the gmap demo on the DMSolutions site. That really has just about everything you need to get started. You can also download a copy of the demo from their site. Cheers! Chip Hankley -----Original Message----- From: Mahalakshmi Narayanan [mailto:mhln at tn.nic.in] Sent: Thursday, August 01, 2002 1:10 AM To: Hankley, Chip Subject: PHP Map Server - reg Hi! We have started working on Mapserver very recently. we would like to start working on php/mapscript combinations.. however we are having problems in starting. we had installed php 4.2.1 but when we tried to include the extension of php_mapscript_35.dll we are getting problems however, for other php extensions, no issues at all. Can u kindly tell us what is the version of the mapserver mapscript dll that we need to take from dmsolutions website so that if any version incompatibilities are there, it could be taken care of.. also, if u could share ur experience of php/mapscript with mapserver, we would be very grateful. thanks a lot in anticipation. With Kind Regards, Mahalakshmi Narayanan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ || Mahalakshmi Narayanan || email : mhln at tn.nic.in E2A, NIC, Rajaji Bhavan || Besant Nagar, Chennai || Phones:4917850,4902580 || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ From nhv at cape.com Thu Aug 1 07:01:46 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 1 Aug 2002 10:01:46 -0400 Subject: [mapserver-users] Re: Transparent outline Message-ID: <001601c23963$fa6a2100$a300a8c0@nhv> Sidnei de Souza writes: > >YES! It worked! Thanks a lot! It seems that the outline color now works as expected. >Just to let you know that this will mean a very important improvement in our system! glad to have helped :-) FYI The code change I suggested only considers the poly border in the X direction and needs to also not draw the border in Y direction. But this requires bit more more thought to implement Note that there is a also a performance hit to get the original polygon fill result in that one will have to call both the fill and the outline routines to get the same thing as before. I guess this means mapserver should probably have a two polygon fill routines. One which fills to the border extremities and one which only fills the interior but this would be a 'significant' change in and should be discussed However hopefully my 'hack' will suit your purposes well enough for now but ... be advised that all of your other 'filled symbols' will probably be shrunk also Cheers Norman >>Norman Vine wrote: >> Sidnei de Souza writes: >>>I think what is really happening is that MapServer is drawing the polygons always with outline. >>>If I specify "outlinecolor -1 -1 -1" or don't specify outlinecolor at all, it draws the outline with the same color used to fill the polygon. >>>We tested the same layer on ArcView and if we ask ArcView to use outlinecolor = fill color, the result is the same as MapServer. If we ask >>>ArcView not to use outline, the result is equal to MapObjects. >>>Any new ideas on this? Please! >>You could test your hypothesis by changing the 'C" code in mapprimitive.c >>FROM void msImageScanline(gdImagePtr im, int x1, int x2, int y, int c) { int x; for(x=x1; x<=x2; x++) gdImageSetPixel(im, x, y, c); } >>TO void msImageScanline(gdImagePtr im, int x1, int x2, int y, int c) { int x; for(x=x1+1; x>Note I am not really sure of all of the ramifications of doing this but ... >>it should make a good test and if this gives the results that you want >>I will look further into this :-) >>Cheers >>Norman From marichalperez at yahoo.es Thu Aug 1 07:01:19 2002 From: marichalperez at yahoo.es (=?iso-8859-1?Q?Manuel_Marichal_P=E9rez?=) Date: Thu, 1 Aug 2002 15:01:19 +0100 Subject: [mapserver-users] Image Maps Message-ID: Hi, all. Image maps are a commonly question treated in Mapserver list. The solution suggested by MapServer experts is to use Mapscript to read the shapes and then build up a image map. If your application uses a java viewer (such us ROSA or other) you can build the map using XML (for example) and then read it from Java. Ok. I wrote a PHP/Mapscript function that read the DBF file and extract the polygons. Each polygon is assigned a label which is extracted from a column of the DBF itself. With this, I make an XML file including the map and ROSA read it to manage the "MouseOver" method. This idea works fine: http://www.buscamap.com/simpletest/index.html The problem here is the layer which the image map is build for. If the layer contains very much polygons, this method take a long time to build the image map. My question is: it is possible to reduce this time?. - MapServer is unable to make image maps itself (correct me if not, please) - If I include a clipping method in the function, I will obtain smaller XML files, but the time is not reduced because if I want to know which polygons fall in the view and which fall out of it I still have to read its coordinates to know it. - I suppose indexes (shptree) don't help at all because the polygons are read in order to be treated and then, index are unuseful here. :( What can I do if I need image maps in my application and the layer which I need for contains several polygons?. Any ideas?. Thanks in advance, Manuel Marichal P?rez marichalperez at yahoo.es _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From ed at topozone.com Thu Aug 1 07:18:40 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 1 Aug 2002 10:18:40 -0400 Subject: [mapserver-users] Point inside or outside polygon??? Message-ID: <13858AA1A74F30419F319ACB66A9D1220193D4@mercator.topozone.com> Jan - The reason this problem is different from the pure mathematical example is that pixels are NOT points in that they have an area. That's why it's best to leave the answer as "indeterminate". If I have two polygons sharing an edge, which pixels are drawn in which polygon will depend upon (among other things) the algorithm used, error term initialization, etc. - Ed -----Original Message----- From: Jan Hartmann [mailto:jhart at frw.uva.nl] Sent: Thursday, August 01, 2002 9:12 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Both or none, I would guess. I should vote for both, unless there is a reason for a point query to exactly return one polygon. Jan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Norman Vine Sent: Thursday, August 01, 2002 1:33 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan Hartmann writes: > >Steve Lime wrote: >> You can use a point query against the mapinfo data using the normal >> query or nquery modes. One thing to be aware of it that MapServer's >> point in polygon routine works fine if the point in question is strictly >> in/out of the polygon. It's indeterminate if the point is exactly on the >> edge. > >Why should the result be indeterminate if the point lies on an edge? Without considering the 'numerical issues' of what it means to be 'exactly on the edge', If you have neigboring polygons which poly would the point be in if it was on the edge :-) Cheers Norman From assefa at dmsolutions.ca Thu Aug 1 07:25:47 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 01 Aug 2002 10:25:47 -0400 Subject: [mapserver-users] php4.2.2 dll Message-ID: <3D4944EB.9EE39B8B@dmsolutions.ca> Hi There, There is php/mapsscript dll compiled for php4.2.2 on the download site : http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.2-win32-php4.2.2-libwww.zip I have also updated the php4.2.1 dll to correct a problem reported few days ago (by Gerhard Schimon) concerning the saveImage. Best Regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sidnei at cria.org.br Thu Aug 1 06:35:30 2002 From: sidnei at cria.org.br (Sidnei de Souza) Date: Thu, 01 Aug 2002 10:35:30 -0300 Subject: [mapserver-users] Label Path Message-ID: <3D493922.B7FD2CF@cria.org.br> Thanks to Norman Vine the outline problem we reported was solved (thanks Norman!) There is another question I would like to have your help on. With MapObjects we could label rivers (for example) with the label following the path (see http://sinbiota.cria.org.br/demo/rios.html) We could not manage having the same effect with MapServer. Does anyone know if it is possible? thanks sidnei -- Sidnei de Souza sidnei at cria.org.br Centro de Refer?ncia em Informa??o Ambiental -- "How beautiful could a being be..." -- This message has been scanned for viruses and dangerous content and is believed to be clean. From lfilak at medinaco.org Thu Aug 1 07:46:56 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 01 Aug 2002 10:46:56 -0400 Subject: [mapserver-users] shptree e sortshp Message-ID: <200208011434.g71EYs801746@yogi.medinaco.net> You may want to look at: http://mapserver.gis.umn.edu/wilma/mapserver-users/0005/msg00098.html http://mapserver.gis.umn.edu/wilma/mapserver-users/0107/msg00143.html HTH Lowell F. The following message was sent by "Eduardo Patto Kanegae" on Thu, 1 Aug 2002 10:17:00. > I?ve read the descriptions of the shptree ?n? sortshp utils...at the utils > page from mapserver site. > > but i din?t undestand what really does theses programs. > > 1.what is the real purpose of indexing a shape with sortshp? does the > program index also the .shp file ? > > 2.what is the purpose of the .qix file that is generated with the shptree > command? how this is file is read? > > regards > > > Eduardo Patto Kanegae > eduardo at scopotecnologia.com.br > ICQ: 71431064 > http://www.scopotecnologia.com.br From jhart at frw.uva.nl Thu Aug 1 07:58:05 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 1 Aug 2002 16:58:05 +0200 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220193D4@mercator.topozone.com> Message-ID: Yes, I understand that it can be impossible to identify a unique polygon for a point query, both in practice and theory. In that case, however, I would prefer to have both polygons returned to me, instead of just one chosen at random. At least I know that something IS indeterminate then. Jan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, August 01, 2002 4:19 PM To: Jan Hartmann; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan - The reason this problem is different from the pure mathematical example is that pixels are NOT points in that they have an area. That's why it's best to leave the answer as "indeterminate". If I have two polygons sharing an edge, which pixels are drawn in which polygon will depend upon (among other things) the algorithm used, error term initialization, etc. - Ed -----Original Message----- From: Jan Hartmann [mailto:jhart at frw.uva.nl] Sent: Thursday, August 01, 2002 9:12 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Both or none, I would guess. I should vote for both, unless there is a reason for a point query to exactly return one polygon. Jan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Norman Vine Sent: Thursday, August 01, 2002 1:33 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan Hartmann writes: > >Steve Lime wrote: >> You can use a point query against the mapinfo data using the normal >> query or nquery modes. One thing to be aware of it that MapServer's >> point in polygon routine works fine if the point in question is strictly >> in/out of the polygon. It's indeterminate if the point is exactly on the >> edge. > >Why should the result be indeterminate if the point lies on an edge? Without considering the 'numerical issues' of what it means to be 'exactly on the edge', If you have neigboring polygons which poly would the point be in if it was on the edge :-) Cheers Norman From TMitchell at lignum.com Thu Aug 1 08:21:29 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 1 Aug 2002 08:21:29 -0700 Subject: [mapserver-users] shptree e sortshp Message-ID: Did you see the page: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ShpTree Shptree creates an index for the .shp file, storing the info in the .qix file. Mapserver uses the .qix file as an index for the associated .shp file when it loads data. "Eduardo Patto Kanegae" cc: Sent by: Fax to: owner-mapserver-users at lists. Subject: [mapserver-users] shptree e sortshp gis.umn.edu 08/01/2002 03:17 AM I?ve read the descriptions of the shptree ?n? sortshp utils...at the utils page from mapserver site. but i din?t undestand what really does theses programs. 1.what is the real purpose of indexing a shape with sortshp? does the program index also the .shp file ? 2.what is the purpose of the .qix file that is generated with the shptree command? how this is file is read? regards Eduardo Patto Kanegae eduardo at scopotecnologia.com.br ICQ: 71431064 http://www.scopotecnologia.com.br From nhv at cape.com Thu Aug 1 08:29:43 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 1 Aug 2002 11:29:43 -0400 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: Message-ID: <001701c23970$43a36fa0$a300a8c0@nhv> Jan Hartmann writes: > >Yes, I understand that it can be impossible to identify a >unique polygon for >a point query, both in practice and theory. In that case, >however, I would >prefer to have both polygons returned to me, instead of just >one chosen at >random. At least I know that something IS indeterminate then. Jan I think that this is one of those attributes of a GIS that Mapserver doesn't necessarily try to do for 'performance' reasons, also there may be more then 2 poylgons sharing a point further complicating the solution. AFAIK many GIS applications will not give a determinate answer for a simple point in poly request either, however they will return a list of polygons intersected by another polygon. i.e. a point with area FYI I believe that there is work underway to include 'polygon algebra' functionality in PostGIS which will allow you todo this kind of query see http://www.vividsolutions.con/jts/jtshome.htm Cheers Norman From pramsey at refractions.net Thu Aug 1 08:57:35 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 01 Aug 2002 08:57:35 -0700 Subject: [mapserver-users] August 2002 GeoWorld Message-ID: <3D495A6F.F855348F@refractions.net> http://www.geoplace.com/gw/2002/0208%5Fgw/0208gis.asp From ed at topozone.com Thu Aug 1 08:57:56 2002 From: ed at topozone.com (Ed McNierney) Date: Thu, 1 Aug 2002 11:57:56 -0400 Subject: [mapserver-users] Point inside or outside polygon??? Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8490@mercator.topozone.com> Jan - Actually, you could also get two polygons returned if the point lay cleanly inside each of two overlapping polygons, so you would still not know whether the result was indeterminate. - Ed -----Original Message----- From: Jan Hartmann [mailto:jhart at frw.uva.nl] Sent: Thursday, August 01, 2002 10:58 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Yes, I understand that it can be impossible to identify a unique polygon for a point query, both in practice and theory. In that case, however, I would prefer to have both polygons returned to me, instead of just one chosen at random. At least I know that something IS indeterminate then. Jan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, August 01, 2002 4:19 PM To: Jan Hartmann; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan - The reason this problem is different from the pure mathematical example is that pixels are NOT points in that they have an area. That's why it's best to leave the answer as "indeterminate". If I have two polygons sharing an edge, which pixels are drawn in which polygon will depend upon (among other things) the algorithm used, error term initialization, etc. - Ed -----Original Message----- From: Jan Hartmann [mailto:jhart at frw.uva.nl] Sent: Thursday, August 01, 2002 9:12 AM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Both or none, I would guess. I should vote for both, unless there is a reason for a point query to exactly return one polygon. Jan -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Norman Vine Sent: Thursday, August 01, 2002 1:33 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Point inside or outside polygon??? Jan Hartmann writes: > >Steve Lime wrote: >> You can use a point query against the mapinfo data using the normal >> query or nquery modes. One thing to be aware of it that MapServer's >> point in polygon routine works fine if the point in question is strictly >> in/out of the polygon. It's indeterminate if the point is exactly on the >> edge. > >Why should the result be indeterminate if the point lies on an edge? Without considering the 'numerical issues' of what it means to be 'exactly on the edge', If you have neigboring polygons which poly would the point be in if it was on the edge :-) Cheers Norman From pramsey at refractions.net Thu Aug 1 09:29:44 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 01 Aug 2002 09:29:44 -0700 Subject: [mapserver-users] Point inside or outside polygon??? References: <001701c23970$43a36fa0$a300a8c0@nhv> Message-ID: <3D4961F8.2FF9A807@refractions.net> Yes, if things go according to schedule, you should be able to do exact topological operations inside PostGIS before the end of the year, maybe even as early as the fall. Combining PHP with mapscript with postgis should allow some very complex web apps to be built with functionality which was previous considered desktop-GIS-only. P. Norman Vine wrote: > > Jan Hartmann writes: > > > >Yes, I understand that it can be impossible to identify a > >unique polygon for > >a point query, both in practice and theory. In that case, > >however, I would > >prefer to have both polygons returned to me, instead of just > >one chosen at > >random. At least I know that something IS indeterminate then. > > Jan > > I think that this is one of those attributes of a GIS that Mapserver > doesn't necessarily try to do for 'performance' reasons, also there > may be more then 2 poylgons sharing a point further complicating > the solution. > > AFAIK many GIS applications will not give a determinate answer > for a simple point in poly request either, however they will return > a list of polygons intersected by another polygon. > i.e. a point with area > > FYI > I believe that there is work underway to include 'polygon algebra' > functionality in PostGIS which will allow you todo this kind of query > see > http://www.vividsolutions.con/jts/jtshome.htm > > Cheers > > Norman -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Thu Aug 1 10:10:39 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Aug 2002 12:10:39 -0500 Subject: [mapserver-users] Label Path Message-ID: Nope, MapServer doesn't support splined text. Now if anyone would like to try it... >>> Sidnei de Souza 08/01/02 08:35AM >>> Thanks to Norman Vine the outline problem we reported was solved (thanks Norman!) There is another question I would like to have your help on. With MapObjects we could label rivers (for example) with the label following the path (see http://sinbiota.cria.org.br/demo/rios.html) We could not manage having the same effect with MapServer. Does anyone know if it is possible? thanks sidnei -- Sidnei de Souza sidnei at cria.org.br Centro de Refer?ncia em Informa??o Ambiental -- "How beautiful could a being be..." -- This message has been scanned for viruses and dangerous content and is believed to be clean. From steve.lime at dnr.state.mn.us Thu Aug 1 12:06:26 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 01 Aug 2002 14:06:26 -0500 Subject: [mapserver-users] Point inside or outside polygon??? Message-ID: And MapServer can do this to. Just use mode=nquery and give your polygon layer a non-zero tolerance. The point query capability was originally built for web apps where a user clicks on a feature (imagine that) and this is really a non-issue. If you think about how hard it is to actually come up with a point exactly on a line segment for most purposes the current setup it fine, but not foolproof but as mentioned about there are workarounds. For a discussion of the current algorithm and alternatives check out subject 2.03 in the comp.graphics.algorithms FAQ at www.faqs.org. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Norman Vine" 08/01/02 10:29AM >>> Jan Hartmann writes: > >Yes, I understand that it can be impossible to identify a >unique polygon for >a point query, both in practice and theory. In that case, >however, I would >prefer to have both polygons returned to me, instead of just >one chosen at >random. At least I know that something IS indeterminate then. Jan I think that this is one of those attributes of a GIS that Mapserver doesn't necessarily try to do for 'performance' reasons, also there may be more then 2 poylgons sharing a point further complicating the solution. AFAIK many GIS applications will not give a determinate answer for a simple point in poly request either, however they will return a list of polygons intersected by another polygon. i.e. a point with area FYI I believe that there is work underway to include 'polygon algebra' functionality in PostGIS which will allow you todo this kind of query see http://www.vividsolutions.con/jts/jtshome.htm Cheers Norman From nhv at cape.com Thu Aug 1 12:28:30 2002 From: nhv at cape.com (Norman Vine) Date: Thu, 1 Aug 2002 15:28:30 -0400 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: Message-ID: <000001c23991$9fc627c0$a300a8c0@nhv> Steve Lime writes: > >And MapServer can do this to. Just use mode=nquery and give your polygon >layer a non-zero tolerance. Love that time machine you use when writing code !! Cheers Norman >>>> "Norman Vine" wrote: >Jan Hartmann writes: >> >>Yes, I understand that it can be impossible to identify a unique polygon for >>a point query, both in practice and theory. In that case, however, I would >>prefer to have both polygons returned to me, instead of just one chosen at >>random. At least I know that something IS indeterminate then. > >> >AFAIK many GIS applications will not give a determinate answer >for a simple point in poly request either, however they will return >a list of polygons intersected by another polygon. > i.e. a point with area From blewis at atsincorp.com Thu Aug 1 13:48:29 2002 From: blewis at atsincorp.com (Ben Lewis) Date: Thu, 1 Aug 2002 16:48:29 -0400 Subject: [mapserver-users] Re: ROMap download fixed Message-ID: <4D25CDA67110D3119FFB0008C707D7A706DE4D@deathstar> oops the url is http://romap.net - Ben what's the url? nyon ----- Original Message ----- From: "Ben Lewis" To: "MAPSERVER" Sent: Thursday, August 01, 2002 3:25 AM Subject: [mapserver-users] ROMap download fixed > Apologies to those who had problems downloading the ROMap application. It > should now be fixed. > - Ben > > > Benjamin Lewis > Advanced Technology Solutions, Inc. > Lancaster, PA 17601-6799 > (717)399-7007 > blewis at atsincorp.com > > From j.hart at city.brandon.mb.ca Thu Aug 1 14:28:51 2002 From: j.hart at city.brandon.mb.ca (j.hart at city.brandon.mb.ca) Date: Thu, 1 Aug 2002 16:28:51 -0500 Subject: [mapserver-users] Domino server Message-ID: Hi, I am trying to install Map Server on a Domino server, but am not sure how to do so. If anyone has compiled and installed Map Server on a Domino server, I would appreciate any help you can give me. Thanks, Jamie Hart GIS Technician City Of Brandon From TCHaddad at cshore.com Thu Aug 1 15:36:23 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Thu, 1 Aug 2002 18:36:23 -0400 Subject: [mapserver-users] acetate logo? Message-ID: <200208011836.AA653394116@cshore.com> In browsing the archive we see how to add an acetate layer that contains a TRUETYPE string (below) ... but what if we want to add a logo from a GIF file as an acetate? We tried adding it to the SYMBOLSET file, and then drawing it as an annotation layer.. but it didn't seem to work, and we're wondering if that is the right approach. TH --------------------snip----------------------- It can be done at the map file level. Here's an example layer definition: LAYER NAME credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 396 END TEXT '© 2000 Minnesota DNR' END CLASS LABEL TYPE TRUETYPE FONT myriad_web_bold SIZE 8 ANTIALIAS COLOR 255 255 255 POSITION UR END END END It's done with inline features. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "GIS Malaysia" 03/04/01 07:38AM >>> Hi, How does one 'stamp' a Copyright notice at the lower left of the map image such as "Data by XYZ Pte Ltd" ? I could use PHP image manipulation methods but I think it can be done in Mapscript. Thanks Nyon From Antti.Roppola at brs.gov.au Thu Aug 1 20:00:23 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Fri, 2 Aug 2002 13:00:23 +1000 Subject: [mapserver-users] Image Maps Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D995295@ACTMAIL2> How about rendering a view of the Shapefile and using the RGB values as a key to generate the Image map? Use something like imlib inside PHP to create an interim image using your region as a class-item... This would probably hit the filesystem less than the approach you are currently using, plus the rendered image would never have more cases to consider than the number of pixels in it. Basically sample down the detailed data before you start processing. Antti -----Original Message----- From: Manuel Marichal P?rez [mailto:marichalperez at yahoo.es] Sent: Friday, 2 August 2002 12:01 AM To: Lista (MapServer) Subject: [mapserver-users] Image Maps Hi, all. Image maps are a commonly question treated in Mapserver list. The solution suggested by MapServer experts is to use Mapscript to read the shapes and then build up a image map. If your application uses a java viewer (such us ROSA or other) you can build the map using XML (for example) and then read it from Java. Ok. I wrote a PHP/Mapscript function that read the DBF file and extract the polygons. Each polygon is assigned a label which is extracted from a column of the DBF itself. With this, I make an XML file including the map and ROSA read it to manage the "MouseOver" method. This idea works fine: http://www.buscamap.com/simpletest/index.html The problem here is the layer which the image map is build for. If the layer contains very much polygons, this method take a long time to build the image map. My question is: it is possible to reduce this time?. - MapServer is unable to make image maps itself (correct me if not, please) - If I include a clipping method in the function, I will obtain smaller XML files, but the time is not reduced because if I want to know which polygons fall in the view and which fall out of it I still have to read its coordinates to know it. - I suppose indexes (shptree) don't help at all because the polygons are read in order to be treated and then, index are unuseful here. :( What can I do if I need image maps in my application and the layer which I need for contains several polygons?. Any ideas?. Thanks in advance, Manuel Marichal P?rez marichalperez at yahoo.es _______________________________________________________________ Yahoo! Messenger Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! Desc?rgalo ya desde http://messenger.yahoo.es From jhart at frw.uva.nl Fri Aug 2 02:51:37 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 2 Aug 2002 11:51:37 +0200 Subject: [mapserver-users] Point inside or outside polygon??? In-Reply-To: Message-ID: Steve Lime wrote: > And MapServer can do this to. Just use mode=nquery and give your polygon > layer a non-zero tolerance. The point query capability was originally > built for web apps where a user clicks on a feature (imagine that) and > this is really a non-issue. If you think about how hard it is to > actually come up with a point exactly on a line segment for most > purposes the current setup it fine, but not foolproof but as mentioned > about there are workarounds. For a discussion of the current algorithm > and alternatives check out subject 2.03 in the comp.graphics.algorithms > FAQ at www.faqs.org. OK Steve, this solves most of my problem. And yes, I was thinking of a non-interactive MapServer application. I'm working on a project to compute maps and statistics for regions around the Dutch railroad and roads networks, using buffers of different size (1, 2, 5, 10, 25 km etc). Ultimately these should be rendered not only as static maps, but also as Flash movies, showing what happens when a parameter changes. I can use his University's Beowulf cluster, so lots of intermediate maps can be produced to get flowing maps. I'm using MapScript and PostGis for this (it already has a - non documented - distance function), and I was afraid of the kind of instabilities in the algorithms mentioned by Norman Vine and Ed McNierny. For interactive use this doesn't matter much, but with the repeated computations required for a movie you can very easily get flip-flop behavior. Of course I am very much interested in the topological extensions to PostGis. As for Paul Ramsey's words: > Combining PHP with mapscript with postgis > should allow some very complex web apps to be built with functionality > which was previous considered desktop-GIS-only I'd rather say the MapServer3.7/MapScript/PostGis-JTS combination will be in the ArcInfo/ArcIMS/OracleSpatial range, while also offering the accessibility of a desktop GIS. Not to mention the possibilities of linking in with other Open Source projects like Beowulf, Grass and R for multiprocessing, raster mapping and statistics. You already can combine PostGis with Grass and R and use GDAL image files with R. This gives some very interesting prospects for the near future! Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From ycnyon at pd.jaring.my Thu Aug 1 18:00:37 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Fri, 2 Aug 2002 09:00:37 +0800 Subject: [mapserver-users] WMS capability Message-ID: <000201c23a14$14f8c5c0$0b0b0b0b@domain> Hi, I don't know too much of Opengis, WMS happening around this part of the world (Asia). Try to read up in opengis.org but seems to be a lot of guidelines. Therefore, i have a couple of 'basic' questions. 1. I am running PHP-MS 3.6 with WMS support. does that mean other mapping servers like ArcIMS can call the layers? 2. Is there any desktop software (Arcview, Mapinfo, etc) that can call a layer from a WMS-compliant Mapserver ? and if yes, will the layer be raster or vector ? how about security issues. TIA. Nyon From lfilak at medinaco.org Fri Aug 2 05:48:25 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 02 Aug 2002 08:48:25 -0400 Subject: [mapserver-users] Image Maps Message-ID: <200208021236.g72CaM811985@yogi.medinaco.net> Is the root problem the number of vertices that exist when working on a layer with a lot of polygons? By 'clipping method' do you mean weeding out vertices? If not, something like weeding would help reduce the number of vertices in the image map which will be weeded anyhow when the image is rendered. You really shouldn't need high detail for a zoomed-out view.? As for reading the initial data in it should be relatively quick to read the polys->lines->points in for a given shape if everything is retrieved by the index value. As for the dbf information you only need a single read from the disk for the values. I don't know what the direct PHP XBase access is called but it should allow something similar to 'SELECT label FROM polygons' and will return a pointer in memory to ALL the values in the dbf column in the order they occur which aligns with the shape index value. HTH Lowell F. The following message was sent by Antti.Roppola at brs.gov.au on Fri, 2 Aug 2002 13:00:23 +1000 . > How about rendering a view of the Shapefile and using the RGB values > as a key to generate the Image map? > > Use something like imlib inside PHP to create an interim image using > your region as a class-item... This would probably hit the filesystem > less than the approach you are currently using, plus the rendered image > would never have more cases to consider than the number of pixels in it. > > Basically sample down the detailed data before you start processing. > > Antti > > -----Original Message----- > From: Manuel Marichal P?rez [mailto:marichalperez at yahoo.es] > Sent: Friday, 2 August 2002 12:01 AM > To: Lista (MapServer) > Subject: [mapserver-users] Image Maps > > > > Hi, all. Image maps are a commonly question treated in Mapserver list. > The solution suggested by MapServer experts is to use Mapscript to read > the shapes and then build up a image map. If your application uses a > java viewer (such us ROSA or other) you can build the map using XML (for > example) and then read it from Java. > > Ok. I wrote a PHP/Mapscript function that read the DBF file and extract > the polygons. Each polygon is assigned a label which is extracted from a > column of the DBF itself. With this, I make an XML file including the > map and ROSA read it to manage the "MouseOver" method. This idea works > fine: > > http://www.buscamap.com/simpletest/index.html > > The problem here is the layer which the image map is build for. If the > layer contains very much polygons, this method take a long time to build > the image map. My question is: it is possible to reduce this time?. > > - MapServer is unable to make image maps itself (correct me if not, please) > > - If I include a clipping method in the function, I will obtain smaller > XML files, but the time is not reduced because if I want to know which > polygons fall in the view and which fall out of it I still have to read > its coordinates to know it. > > - I suppose indexes (shptree) don't help at all because the polygons are > read in order to be treated and then, index are unuseful here. > > :( > > What can I do if I need image maps in my application and the layer which I > need for contains several polygons?. Any ideas?. > > Thanks in advance, > Manuel Marichal P?rez > marichalperez at yahoo.es > > > > > > > _______________________________________________________________ > Yahoo! Messenger > Nueva versi?n: Webcam, voz, y mucho m?s ?Gratis! > Desc?rgalo ya desde http://messenger.yahoo.es > From Tom.Kralidis at ccrs.nrcan.gc.ca Fri Aug 2 06:34:10 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Fri, 2 Aug 2002 09:34:10 -0400 Subject: [mapserver-users] WMS capability Message-ID: <7CDD7B94357FD5119E800002A537C46E226C7B@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: YC Nyon [mailto:ycnyon at pd.jaring.my] > Sent: Thursday, August 01, 2002 9:01 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] WMS capability > > > Hi, > > I don't know too much of Opengis, WMS happening around this > part of the > world (Asia). Try to read up in opengis.org but seems to be a lot of > guidelines. > > Therefore, i have a couple of 'basic' questions. > 1. I am running PHP-MS 3.6 with WMS support. does that mean > other mapping > servers like ArcIMS can call the layers? > Any client which understands and obeys the OGC WMS specification can make HTTP requests to any OGC compliant WMS, of which UMN MapServer is one. > 2. Is there any desktop software (Arcview, Mapinfo, etc) > that can call a > layer from a WMS-compliant Mapserver ? and if yes, will the > layer be raster > or vector ? > how about security issues. > There may be others, but I am aware of the MIT Ortho Tools Avenue extension which can do this. Unfortunately, the link does not work. http://tull.mit.edu/mitortho2/ Hope this helps ..Tom > TIA. > > Nyon > From hi-ono at mn.xdsl.ne.jp Fri Aug 2 07:59:23 2002 From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO) Date: Fri, 2 Aug 2002 23:59:23 +0900 Subject: [mapserver-users] MapServer on Zope References: Message-ID: <004501c23a35$3078dc60$650202c0@vip> Hello. Does anyone know whether any example of MapServr used on Zope? Best Regards From Peter.Bruton at ccrs.nrcan.gc.ca Fri Aug 2 09:20:57 2002 From: Peter.Bruton at ccrs.nrcan.gc.ca (Bruton, Peter) Date: Fri, 2 Aug 2002 12:20:57 -0400 Subject: [mapserver-users] MapServer on Zope Message-ID: <7CDD7B94357FD5119E800002A537C46EB0FCF5@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello; The Atlas of Canada uses a ZOPE/MapServer configuration to mange and publish on-line maps. Try the following URL: http://atlas.gc.ca/site/index.html Have a good day. Peter Bruton Natural Resources Canada -----Original Message----- From: Hisaji ONO [mailto:hi-ono at mn.xdsl.ne.jp] Sent: Friday, August 02, 2002 10:59 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] MapServer on Zope Hello. Does anyone know whether any example of MapServr used on Zope? Best Regards From alex_rice at arc.to Fri Aug 2 22:09:15 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 2 Aug 2002 23:09:15 -0600 Subject: [mapserver-users] MapServer on Zope In-Reply-To: <7CDD7B94357FD5119E800002A537C46EB0FCF5@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <2806CF1F-A69F-11D6-977A-000393529642@arc.to> On Friday, August 2, 2002, at 10:20 AM, Bruton, Peter wrote: > Hello; > > The Atlas of Canada uses a ZOPE/MapServer configuration to mange > and publish > on-line maps. Try the following URL: > > http://atlas.gc.ca/site/index.html Peter, very nice site! I haven't used Zope for a couple of years. I am wondering if you are using the CGI mapserver? Or is there a Python mapscript? Thanks, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From andrew at elwell.org.uk Sat Aug 3 09:36:21 2002 From: andrew at elwell.org.uk (Andrew Elwell) Date: Sat, 3 Aug 2002 17:36:21 +0100 Subject: [mapserver-users] Developer Wanted Message-ID: <20020803163621.GA29047@elwell.org.uk> Folks, I have had a quick look at mapserver, but I'm not from a GIS background and can't spare the time to learn it just now. I want to develop a fairly simple (by the standard of examples I've seen) mapserver style interfave for a charity i'm involved in. Ocean Youth Trust Scotland (http://www.oytscotland.org.uk) run a sail training vessel and we log the position from the SatC to the website. It's currently possible to do a SQL Query and bring back the fixes (points?) for each trip, but I'd like a grraphical map instead. If there's anyone on this mail list who fancies a little freelance work, please can the mail me off the list for more details before submitting a quote to do this for us. Datasets: We have our own WGS84 data for the vessel log, but no coastline info. The level of detail we need is NOT great, so a simple UK / Ireland / N. Europe outline woiuld be sufficient Sadly [yeah right, :-)] I'm off sailing for a fortnight with the boat on the Tall Ships races, but I'll answer your mails when I return Many thanks in advance, and apologies if this appears as spam to the list. However, I figured I'd target people who knew what they were doing :-) Andrew (IT Support for OYT Scotland) From yecarrillo at hotmail.com Sat Aug 3 10:23:40 2002 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Sat, 03 Aug 2002 12:23:40 -0500 Subject: [mapserver-users] Changing layer parameters from url in Mapscript Message-ID: Hi all folks. I'm here again.... This time I have this question: mapserver.exe supports changing parameters from url Sample: map_layer_1_filterItem=CODDIVI&map_layer_1_filter=0 Do mapscript works similary? Thank you ---------------------------- Eduin Yesid Carrillo Ingeniero Civil Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________ ?nase al mayor servicio mundial de correo electr?nico: http://www.hotmail.com/es From imap at chesapeake.net Sat Aug 3 10:37:16 2002 From: imap at chesapeake.net (Chris Stuber) Date: Sat, 3 Aug 2002 13:37:16 -0400 (EDT) Subject: [mapserver-users] 3.6 perl mapscript saveImage function Message-ID: <20020803133040.C35770-100000@mail.chesapeake.net> Guys, I am having a hard time getting 3.6 perl mapscript saveImage to work for me... In version 3.5 this worked #mapscript::msSaveImage($img,undef,"png",$map->{transparent},$map->{interlace},u ndef); but in 3.6, it errors... and from the new docs, I see the ImageObj saveImage method $img->saveImage(undef,"png",$map->{transparent},$map->{interlace},undef); but when I try that... I get no image/error. Does anyone have this working?? Regards, Chris Stuber From Antti.Roppola at brs.gov.au Sun Aug 4 17:02:57 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Mon, 5 Aug 2002 10:02:57 +1000 Subject: [mapserver-users] plotting GPS tracks Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9952A2@ACTMAIL2> Hi Andrew, Before you get something written, do have a look around as I think there are a number of projects that may already do exactly what you are looking for, I can't recall the original link I saw, but here's a few examples: http://rideplot.sourceforge.net/ http://www.gpsdrawing.com/ http://www.freemap.nett.org/english/index.html At the very least, they may give you examples that you can show your developer. Cheers, Antti -----Original Message----- From: Andrew Elwell [mailto:andrew at elwell.org.uk] Ocean Youth Trust Scotland (http://www.oytscotland.org.uk) run a sail training vessel and we log the position from the SatC to the website. It's currently possible to do a SQL Query and bring back the fixes (points?) for each trip, but I'd like a grraphical map instead. From mschulz at webgis.de Mon Aug 5 03:06:01 2002 From: mschulz at webgis.de (Michael Schulz) Date: Mon, 05 Aug 2002 12:06:01 +0200 Subject: [mapserver-users] MapServer on Zope References: <2806CF1F-A69F-11D6-977A-000393529642@arc.to> Message-ID: <3D4E4E09.552C03AF@webgis.de> Hello, yes there is a Python MapScript. In the last months there were several threads on the list giving information on how to build python mapscript. Additionally, there is a MapScriptPythonWiki, where this information is summarized. A how-to is also on the way ... For usage of PythonMapscript look through the perl/mapscript documentation, most of the things work very similiar. But, I would also be interested on how the Atlas of Canada uses mapserver-resources. We have Zope and Mapserver communicating via python/mapscript, but it is not stable yet. Cheers, Michael Alex Rice schrieb: > On Friday, August 2, 2002, at 10:20 AM, Bruton, Peter wrote: > > > Hello; > > > > The Atlas of Canada uses a ZOPE/MapServer configuration to mange > > and publish > > on-line maps. Try the following URL: > > > > http://atlas.gc.ca/site/index.html > > Peter, very nice site! I haven't used Zope for a couple of years. > I am wondering if you are using the CGI mapserver? Or is there a > Python mapscript? Thanks, > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From thj at le34.dk Mon Aug 5 04:29:42 2002 From: thj at le34.dk (Thomas H. Jensen LE34 MapInfo Center) Date: Mon, 5 Aug 2002 13:29:42 +0200 Subject: [mapserver-users] Styleitem "auto" and MapInfo. Message-ID: Hi. In simple terms I am trying to build a MapBasic application to let a user specify a MapInfo .Wor file (containing layer information), open the .wor file as a txt file and then building a MapServer file around the specifications in the .Wor file. As MapInfo stores symbology on the object level (rather than the layer level), I have two options to pursue: I can either use the styleitem "auto" or add a column to my MapInfo tables, store style info in this column and then match it using a classitem approach. I'm not particularly happy with either approach. When using styleitem "auto" the following happens to my various MapInfo styles: Point Objects: symbol : not tested, but I should be able to match using the symbology files size : not tested color : not tested but should be ok. Line Objects: Pen Style : Doesn't work. All lines are drawn as full lines Pen Width : Doesn't work. All lines are drawn width a width of 1 Pen Color : Works just fine. Region Objects: Outline Style : Doesn't work. All lines are drawn as full lines Ourline Width : Doesn't work. All lines are drawn width a width of 1 Outline Color : Works just fine. Brush ForeColor : Doesn't work. All brush styles are drawn fully and opaque. Brush BackColor: Doesn't work. Not shown as forecolor fills all Brush Style : Doesn't work. Drawn as opague. My main argument against having my application build a mapfile "manually" is that this (as far as I can tell) would require me to add a column to each of my various tables - And I have no idea of wether or not the tabfiles in my .wor files are write enabled. I would, of course, like to get the MapServer display as close as possible to the original .wor display. I would greatly appreciate, if you can give me some input as to have I can go on. For example: I it possible to use a classitem other than a MapInfo column (e.g. some sort of obejctstyle attribute)? Can I get anything further out of my styleitem "auto" display? Realizing that the styleitem is experimental, when can I expect the next release of a (hopefully) more complete version? Am I missing out something completely here (It wouldn't be the first time)? Thanks for your time. Med venlig hilsen /Best regards Thomas H?jstrand Jensen Landinspekt?r og GIS-udvikler LE34 MapInfo Center Energivej 34 2750 Ballerup Telefon +45 7733 2222 Direkte +45 7733 2217 Fax +45 7733 2299 E-mail: thj at le34.dk http://www.mapInfo.le34.dk http://www.le34.dk http://www.GPSnet.dk - Danmarks Elektroniske Referencenet From lfilak at medinaco.org Mon Aug 5 05:58:56 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 05 Aug 2002 08:58:56 -0400 Subject: [mapserver-users] 3.6 perl mapscript saveImage function Message-ID: <200208051246.g75Ckl818888@yogi.medinaco.net> You may need to use $mapscript::MS_PNG instead of "png". I can verify that msSaveImage does work in 3.6.1. HTH Lowell F. The following message was sent by Chris Stuber on Sat, 3 Aug 2002 13:37:16 -0400 (EDT). > > > Guys, I am having a hard time getting 3.6 perl mapscript saveImage > to work for me... > > In version 3.5 this worked > > #mapscript::msSaveImage($img,undef,"png",$map->{transparent},$map->{interlace},u > ndef); > > but in 3.6, it errors... and from the new docs, > I see the ImageObj saveImage method > > $img->saveImage(undef,"png",$map->{transparent},$map->{interlace},undef); > > but when I try that... I get no image/error. > Does anyone have this working?? > > Regards, > > Chris Stuber From agnieszka_zak at interia.pl Mon Aug 5 06:14:38 2002 From: agnieszka_zak at interia.pl (=?iso-8859-2?Q?Agnieszka_=AFak?=) Date: Mon, 5 Aug 2002 15:14:38 +0200 Subject: [mapserver-users] MS 3.6.1 - ogr and MapInfo files Message-ID: <000b01c23c82$0daa39f0$0200a8c0@Agnieszka> Hi, I get error (Unhandled exception in php.exe (PHP_MAPSCRIPT_36.dll): 0xC000005: Access Violation) when I try to read MapInfo files. But when I change projection for example to WGS84 in MapInfo program everything is ok. In .map file I have: PROJECTION "init=epsg:4326" END (for map) and PROJECTION "auto" END in all MapInfo layers. OGRINFO: Layer name: Ciepl Geometry: Unknown (any) Feature Count: 3395 Extent: (209405.389158, 869549.161715) - (222399.461459, 879999.984044) Layer SRS WKT: PROJCS["unnamed",GEOGCS["unnamed",DATUM["MIF 101",SPHEROID["WGS 60",6378165,298.3],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degre e",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitud e_of_origin",50],PARAMETER["central_meridian",19],PARAMETER["scale_factor",1 ],PARAMETER["false_easting",239910],PARAMETER["false_northing",840880],UNIT[ "Meter",1.0]] Pole1: String (20.0) I use: MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 $) MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks for any help. Regards, Agnieszka ?ak ---------------------------------------------------------------------- Zrodlo rzetelnych informacji... >>> http://link.interia.pl/f1632 From lfilak at medinaco.org Mon Aug 5 06:36:47 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 05 Aug 2002 09:36:47 -0400 Subject: [mapserver-users] Changing layer parameters from url in Mapscript Message-ID: <200208051324.g75DOe819427@yogi.medinaco.net> Yes, through $layer->filteritem and $layer->setFilter() . Lowell F. The following message was sent by "Eduin Yesid Carrillo" on Sat, 03 Aug 2002 12:23:40 -0500. > Hi all folks. I'm here again.... > > This time I have this question: mapserver.exe supports changing parameters > from url > Sample: > map_layer_1_filterItem=CODDIVI&map_layer_1_filter=0 > > Do mapscript works similary? > > Thank you > > > > ---------------------------- > Eduin Yesid Carrillo > Ingeniero Civil > Bucaramanga - Colombia > yecarrillo at hotmail.com > yecarrillo at condorito.uis.edu.co > #ICQ 14323531 > > > _________________________________________________________________ > ?nase al mayor servicio mundial de correo electr?nico: > http://www.hotmail.com/es From ed at topozone.com Mon Aug 5 10:57:30 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 5 Aug 2002 13:57:30 -0400 Subject: [mapserver-users] Layer manipulation via CGI URL parameters Message-ID: <13858AA1A74F30419F319ACB66A9D1220E84BC@mercator.topozone.com> Folks - Last week, with help from Steve Lime and Steve Woodbridge, I figured out why I was unable to add features to an annotation layer via URL parameters (i.e. with a URL like ...&map_annolayer_feature=new&map_annolayer_feature_points=20+20...) The problem was that the NAME string for the feature in my map file was not defined in all lowercase! I promised I'd post the explanation, so here it is. When I have a chance I'll look at the code for a fix, but in the meantime just define layers which are to be manipulated with CGI parameters by using lowercase names only. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 From albin.blaschka at sbg.ac.at Mon Aug 5 11:23:02 2002 From: albin.blaschka at sbg.ac.at (Albin Blaschka) Date: Mon, 05 Aug 2002 20:23:02 +0200 Subject: [mapserver-users] libpdf.so.1: cannot open shared object file Message-ID: <5.1.0.14.2.20020805202218.00a8ba28@mh.sbg.ac.at> Hello out there! I compiled Mapserver 3.6, with following configure-options: --with-gd --with-proj --with-pdf 'configure' and 'make' brought *no* errors. The binary 'mapserv' *is* created. But when I want to test it with ./mapserv (like it is said in the documentation) I get the following error: 'error while loading shared libraries: libpdf.so.1: cannot open shared object file: No such file or directory' The files lay in /usr/local/lib/libpdf.a, libpdf.la, libpdf.so My box: Debian 3.0 Woody MapServer 3.6.1 Is there help possible ? Albin ///////////////////////////////////////////////////////////////////// // Albin Blaschka, Mag. rer. nat. // Etrichstra?e 26 // A - 5020 Salzburg // It?s hard to live in the mountains, // hard, but not hopeless! //////////////////////////////////////////////////////////////////// From steve.lime at dnr.state.mn.us Mon Aug 5 11:55:21 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 05 Aug 2002 13:55:21 -0500 Subject: [mapserver-users] Changing layer parameters from url in Mapscript Message-ID: No, but that's a good thing (in my opinion). Since you have full access to the map server internal structures you're not bound by the "map_layername_parameter=value" syntax. You can do whatever you'd like. Note that I can add a method easily to process variable/value pairs if there's enough interest. MapScript scripts tend to be specific enough that it's not worth it though. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Eduin Yesid Carrillo" 08/03/02 12:23PM >>> Hi all folks. I'm here again.... This time I have this question: mapserver.exe supports changing parameters from url Sample: map_layer_1_filterItem=CODDIVI&map_layer_1_filter=0 Do mapscript works similary? Thank you ---------------------------- Eduin Yesid Carrillo Ingeniero Civil Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________ ?nase al mayor servicio mundial de correo electr?nico: http://www.hotmail.com/es From pgigoux at munistgo.cl Mon Aug 5 17:55:22 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Mon, 5 Aug 2002 20:55:22 -0400 Subject: [mapserver-users] combinations for ms3.6.1 Message-ID: <00ed01c23ce3$f5901b20$4459fea9@munistgo.cl> what is the best combination betwen ms3.6.1, php, gd, freetype, gdal, proj, perl, postgresql, posgis? thank you in advance Patricio From alex_rice at arc.to Mon Aug 5 17:56:57 2002 From: alex_rice at arc.to (Alex Rice) Date: Mon, 5 Aug 2002 18:56:57 -0600 Subject: [mapserver-users] map scale questions Message-ID: <681E3E84-A8D7-11D6-8A37-000393529642@arc.to> Hi, I think my mapserver scale output is wrong, and my scalebar graphic is definitely skewed. I am stumped after looking at the docs, tutorials and the mailing list archive. I have a map table which viewed in MapInfo Pro tells me, the Scale: 1 in = 3 mi (for this particular extent I am looking at). So, in my mapfile MAP section I put UNITS miles and in my mapfile SCALEBAR section I put UNITS miles Then I view the same map & approx same extent in mapserver (OGR reading mapinfo .tab), I get from mapserver scale = 1 : 5015 and the scalebar renders as 1 bar = 0.16 mi. Clearly this is way off from the 1 in = 3 mi which Mapinfo was saying. But also mapserver scale 1:5015 does not equal the scalebar 1 bar = 0.16 mi ! If the scalebar is 1 inch, then 1 inch = 5015 inches = 418 feet = 0.079 mi. So it's as if Mapinfo, the mapserver [scale] and the mapserver scalebar image all are using different scales? I am using no projections in my mapfile. I have saved all my Mapinfo files with a common projection so I can avoid reprojecting in mapserver. Do I need projections defined to make the scale come out correctly? I am just really confused about how to get mapserver to display the same scale as Mapinfo Pro. Any suggestions would be appreciated. TIA Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Mon Aug 5 18:08:34 2002 From: alex_rice at arc.to (Alex Rice) Date: Mon, 5 Aug 2002 19:08:34 -0600 Subject: [mapserver-users] combinations for ms3.6.1 In-Reply-To: <00ed01c23ce3$f5901b20$4459fea9@munistgo.cl> Message-ID: <07A91F0A-A8D9-11D6-8A37-000393529642@arc.to> On Monday, August 5, 2002, at 06:55 PM, Patricio Gigoux wrote: > what is the best combination betwen ms3.6.1, php, gd, freetype, > gdal, proj, > perl, postgresql, posgis? > > thank you in advance > Patricio Hi, your question is not clear. The only items on that list one could choose between are PHP Mapscript or Perl Mapscript. Everything else has specific purpose and should be used or not depending on your requirements: Use ms3.6.1 is if you need mapserver :-) Use PHP if you want PHP Mapscript. Use Perl if you want Perl Mapscript. Use GD, mapserver requires it, I think. Use Freetype if you want True Type labels. Use GDAL if you want support for reading in more raster formats. Use OGR (part of GDAL) if you want support for reading in more vector formats, e.g. Mapinfo TAB. Use PROJ if you want to use different coord systems and want mapserver to be able to reproject layers. I hope this helps, if not maybe you can rephrase the question. Regards, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From ed at topozone.com Mon Aug 5 18:56:50 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 5 Aug 2002 21:56:50 -0400 Subject: [mapserver-users] map scale questions Message-ID: <13858AA1A74F30419F319ACB66A9D1220193E2@mercator.topozone.com> Alex - The fundamental problem is that using scale ratios (e.g. 1:5015) to express the scale of digital maps is meaningless unless you also specify and/or control the resolution of the output device (screen or printer). Let me give you a raster example that might help. The standard USGS printed topographic maps are usually at a scale of 1:24,000 or 1 inch = 200 feet. These maps are then scanned at 250dpi to create digital maps. The digital maps therefore have a true spatial resolution of 2.4384 meters per pixel. IF (and only if) you display or print that image at 250dpi, you will get a 1:24,000 scale map. If you display the scanned image on the screen at 1 pixel = 1 pixel (i.e. 100% scale) then you WON'T be viewing a 1:24,000 scale image because your monitor's resolution is not 250dpi. MapServer by default uses a 72dpi output device for scale ratio calculations. That means that when MapServer generates an image, one inch on that image will equal 5015 inches on the ground IF the map is displayed at 72dpi exactly. Your monitor probably does NOT display at exactly 72dpi. I'm not a MapInfo user, but what projection is your data stored in? I know you're not reprojecting the data, but are you correctly expressing the measurements of your data files? That is, an ESRI shapefile does not store units - coordinates are dimensionless numbers and you need to tell MapServer what units they are in order to get things right. If everything's the same, then by telling MapServer (in your MAP section of the map file) that all source data units (and output data units) are in miles. Is this correct? MapInfo may also be misleading you when reporting that "1 in = 3 mi" - one inch on what? On the screen? Sorry to have more questions than answers, and I feel like I'm not being very clear here. It's likely that several things are happening at once. Can you describe your source data in as much detail as possible (projection and units) and describe the MapInfo display you're trying to replicate? If there's anything we could look at online that would help, as would some input from a MapInfo user! - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Alex Rice [mailto:alex_rice at arc.to] Sent: Monday, August 05, 2002 8:57 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] map scale questions Hi, I think my mapserver scale output is wrong, and my scalebar graphic is definitely skewed. I am stumped after looking at the docs, tutorials and the mailing list archive. I have a map table which viewed in MapInfo Pro tells me, the Scale: 1 in = 3 mi (for this particular extent I am looking at). So, in my mapfile MAP section I put UNITS miles and in my mapfile SCALEBAR section I put UNITS miles Then I view the same map & approx same extent in mapserver (OGR reading mapinfo .tab), I get from mapserver scale = 1 : 5015 and the scalebar renders as 1 bar = 0.16 mi. Clearly this is way off from the 1 in = 3 mi which Mapinfo was saying. But also mapserver scale 1:5015 does not equal the scalebar 1 bar = 0.16 mi ! If the scalebar is 1 inch, then 1 inch = 5015 inches = 418 feet = 0.079 mi. So it's as if Mapinfo, the mapserver [scale] and the mapserver scalebar image all are using different scales? I am using no projections in my mapfile. I have saved all my Mapinfo files with a common projection so I can avoid reprojecting in mapserver. Do I need projections defined to make the scale come out correctly? I am just really confused about how to get mapserver to display the same scale as Mapinfo Pro. Any suggestions would be appreciated. TIA Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From Antti.Roppola at brs.gov.au Mon Aug 5 19:03:11 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 6 Aug 2002 12:03:11 +1000 Subject: [mapserver-users] libpdf.so.1: cannot open shared object file Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9952B2@ACTMAIL2> Albin, Have you tried running ldd against ./mapserv to see where the compiled object thinks libpdf is located? ldd ./mapserv Also, have a look at the Wiki where there is a set of instructions for Debian Woody including PDFlib support: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebianLinux If you are not interested in PHP Mapscript, you can probably ignore all the stuff involving Apache and PHP. You may also want to try the packages Paul Baker has built. :o) Cheers, Antti -----Original Message----- From: Albin Blaschka [mailto:albin.blaschka at sbg.ac.at] Subject: [mapserver-users] libpdf.so.1: cannot open shared object file Hello out there! I compiled Mapserver 3.6, with following configure-options: --with-gd --with-proj --with-pdf 'configure' and 'make' brought *no* errors. The binary 'mapserv' *is* created. But when I want to test it with ./mapserv (like it is said in the documentation) I get the following error: 'error while loading shared libraries: libpdf.so.1: cannot open shared object file: No such file or directory' The files lay in /usr/local/lib/libpdf.a, libpdf.la, libpdf.so My box: Debian 3.0 Woody MapServer 3.6.1 Is there help possible ? Albin From alex_rice at arc.to Tue Aug 6 00:24:03 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 6 Aug 2002 01:24:03 -0600 Subject: [mapserver-users] map scale questions In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220193E2@mercator.topozone.com> Message-ID: <7BE7ABCC-A90D-11D6-B820-000393529642@arc.to> Ed, thanks for your response. I've now got a Mapinfo layer generating a correct scalebar. Let me explain what I did. I'm still very much puzzled why the scale was getting broken in this particular case. Let me preface this with: I've only been using MapInfo for a few months and have no GIS experience before that. On Monday, August 5, 2002, at 07:56 PM, Ed McNierney wrote: > > I'm not a MapInfo user, but what projection is your data stored in? I Some of the layers are from an unknown source, somewhere in the city government, and they are in US State Plane Coordinates (1983, Feet), New Mexico 3002, Central Zone. So I guess for these layers, the correct units are feet, actually "U.S Survey feet"? Most of my other layers are ones my coworkers created in MapInfo. The projection for these layers is kinda weird. Mapinfo says the projection is "Longitude / Latitude". However, when I crack the TAB files open with ogrinfo, it says: GEOGCS["unnamed", DATUM["MIF 0", SPHEROID["WGS 84 (MAPINFO Datum 0)",6378137.01,298.257223563], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] OK, again the above WKT is what MapInfo produces when the MapInfo app says the projection is "Longitude / Latitude". > know you're not reprojecting the data, but are you correctly expressing > the measurements of your data files? That is, an ESRI shapefile does > not store units - coordinates are dimensionless numbers and you need to > tell MapServer what units they are in order to get things right. If > everything's the same, then by telling MapServer (in your MAP > section of > the map file) that all source data units (and output data units) are in > miles. Is this correct? This is something I'm not clear on. Supposing one gets a shapefile or Mapinfo file from some unknown source. Does the projection information in the shapefile tell you what the "units" are? Supposing there is no WKT section, or it's not valid, then there is no way to know the units the features correspond to in the real world, and therefore the scale cannot be correctly calculated? > MapInfo may also be misleading you when reporting that "1 in = 3 mi" - > one inch on what? On the screen? I wish I knew :-) Somehow I ended up with printed manuals for ARC/Info instead of MapInfo. I need to find the full manuals for MapInfo. > Sorry to have more questions than answers, and I feel like I'm > not being > very clear here. It's likely that several things are happening > at once. Not at all. Thanks for talking me through this! > Can you describe your source data in as much detail as possible > (projection and units) and describe the MapInfo display you're > trying to > replicate? If there's anything we could look at online that > would help, > as would some input from a MapInfo user! Nothing online to view yet, however here is the situation: In my infinite wisdom, to avoid using projections in mapserver, I thought OK I'll reproject everything in MapInfo to the simplest projection. I decided that "Longitude / Latitude" sounded better than "US State Plane". So I saved everything out as "Longitude / Latitude", and mapserver was then exhibiting the strange strange scales and scalebar I described earlier. Just for kicks, just now I tried one of the original mapinfo TAB files, with the "US State Plane xxx" projection, and mapserver generates a good scale bar for that. Whew! Compounding my confusion, I was trying some shapefiles I generated with MapInfo's "Universal Translator" utility. I discovered that this utility will convert Mapinfo TAB to ESRI Shape, but apparently throws out the projection info along the way. And then ogrinfo says: Layer SRS WKT: (unknown) Anyways, I am sure I'm just missing some basic GIS concepts here, but why does mapserver break when I save the TAB files out as "Longitude / Latitude" instead of "US State Plane xxx"? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From man at map2b.com Tue Aug 6 00:51:31 2002 From: man at map2b.com (man at map2b.com) Date: Tue, 06 Aug 2002 14:51:31 +0700 (ICT) Subject: [mapserver-users] MS_MAXSYMBOLS and php_mapscript Message-ID: <1028620291.3d4f80032a6df@www.map2b.com> Hi all I try to increase ms_maxsymbol number form 64 to 65 or 128 in mapsymbol.h When I compile with pnp_mapscript every thing well done but When i test with MapLab Error Massage appear "Fatal error: MapServer Error in msCalculateScale(): Invalid image extent. in /home/httpd/html/maplab-2.0rc3-dev/common/wrapper/map_session.php on line 296" Has anyone have exprience about this case man ------------------------------------------------- This mail sent through IMP: From llionte at yahoo.com Tue Aug 6 02:55:57 2002 From: llionte at yahoo.com (laurentiu lionte) Date: Tue, 6 Aug 2002 02:55:57 -0700 (PDT) Subject: [mapserver-users] unsubscribe Message-ID: <20020806095557.3022.qmail@web9904.mail.yahoo.com> --------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bjarni.Pjetursson at tietoenator.com Tue Aug 6 04:08:13 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 6 Aug 2002 13:08:13 +0200 Subject: [mapserver-users] map scale questions Message-ID: <18E0CC75605BD411907800508B8BB8D00165EFCF@odin.enator.dk> Hi Alex, Quote from ftp://ftp.remotesensing.org/pub/proj/OF90-284.pdf >> Program proj (release 3) is a standard Unix filter function which converts geographic longitude and latitude coordinates into cartesian coordinates << if your data source is in lon/lat, your coordinates are stored in degrees. You should therefore set the Mapserver map file units to "DD" (decimal degrees). If your data is in any other projection, your coordinates are stored in cartesian coordinates (for example m, km, mi). Theese coordinates are much larger than decimal degrees. Most likely this is the reason you see the weird scale. You must set your map file units to the appropriate cartesian unit. You can use freeware viewing tools like Geographic Explorer (http://www.bluemarblegeo.com/products.asp?id=5) to display the actual values in your data files. Regards Bjarni Thor Pjetursson -----Original Message----- From: Alex Rice To: Ed McNierney Cc: mapserver-users at lists.gis.umn.edu Sent: 06-08-02 09:24 Subject: Re: [mapserver-users] map scale questions Ed, thanks for your response. I've now got a Mapinfo layer generating a correct scalebar. Let me explain what I did. I'm still very much puzzled why the scale was getting broken in this particular case. Let me preface this with: I've only been using MapInfo for a few months and have no GIS experience before that. On Monday, August 5, 2002, at 07:56 PM, Ed McNierney wrote: > > I'm not a MapInfo user, but what projection is your data stored in? I Some of the layers are from an unknown source, somewhere in the city government, and they are in US State Plane Coordinates (1983, Feet), New Mexico 3002, Central Zone. So I guess for these layers, the correct units are feet, actually "U.S Survey feet"? Most of my other layers are ones my coworkers created in MapInfo. The projection for these layers is kinda weird. Mapinfo says the projection is "Longitude / Latitude". However, when I crack the TAB files open with ogrinfo, it says: GEOGCS["unnamed", DATUM["MIF 0", SPHEROID["WGS 84 (MAPINFO Datum 0)",6378137.01,298.257223563], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] OK, again the above WKT is what MapInfo produces when the MapInfo app says the projection is "Longitude / Latitude". > know you're not reprojecting the data, but are you correctly expressing > the measurements of your data files? That is, an ESRI shapefile does > not store units - coordinates are dimensionless numbers and you need to > tell MapServer what units they are in order to get things right. If > everything's the same, then by telling MapServer (in your MAP > section of > the map file) that all source data units (and output data units) are in > miles. Is this correct? This is something I'm not clear on. Supposing one gets a shapefile or Mapinfo file from some unknown source. Does the projection information in the shapefile tell you what the "units" are? Supposing there is no WKT section, or it's not valid, then there is no way to know the units the features correspond to in the real world, and therefore the scale cannot be correctly calculated? > MapInfo may also be misleading you when reporting that "1 in = 3 mi" - > one inch on what? On the screen? I wish I knew :-) Somehow I ended up with printed manuals for ARC/Info instead of MapInfo. I need to find the full manuals for MapInfo. > Sorry to have more questions than answers, and I feel like I'm > not being > very clear here. It's likely that several things are happening > at once. Not at all. Thanks for talking me through this! > Can you describe your source data in as much detail as possible > (projection and units) and describe the MapInfo display you're > trying to > replicate? If there's anything we could look at online that > would help, > as would some input from a MapInfo user! Nothing online to view yet, however here is the situation: In my infinite wisdom, to avoid using projections in mapserver, I thought OK I'll reproject everything in MapInfo to the simplest projection. I decided that "Longitude / Latitude" sounded better than "US State Plane". So I saved everything out as "Longitude / Latitude", and mapserver was then exhibiting the strange strange scales and scalebar I described earlier. Just for kicks, just now I tried one of the original mapinfo TAB files, with the "US State Plane xxx" projection, and mapserver generates a good scale bar for that. Whew! Compounding my confusion, I was trying some shapefiles I generated with MapInfo's "Universal Translator" utility. I discovered that this utility will convert Mapinfo TAB to ESRI Shape, but apparently throws out the projection info along the way. And then ogrinfo says: Layer SRS WKT: (unknown) Anyways, I am sure I'm just missing some basic GIS concepts here, but why does mapserver break when I save the TAB files out as "Longitude / Latitude" instead of "US State Plane xxx"? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From oskhom at yahoo.com Tue Aug 6 05:09:26 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Tue, 6 Aug 2002 05:09:26 -0700 (PDT) Subject: [mapserver-users] Refresh Message-ID: <20020806120926.72145.qmail@web10408.mail.yahoo.com> Dear user, please answer my question if anybody knows it. How can I upload automatically my home page to client who is watching my page on his screen or how client can automatically download my modified new home page. Thanks, A-K-Oskue __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com From lfilak at medinaco.org Tue Aug 6 05:14:01 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 6 Aug 2002 08:14:01 -0400 (EDT) Subject: [mapserver-users] libpdf.so.1: cannot open shared object file In-Reply-To: <5.1.0.14.2.20020805202218.00a8ba28@mh.sbg.ac.at> Message-ID: Is /usr/local/lib in /etc/ld.so.conf, and if so does 'ldconfig -v | grep libpdf.so.1' show libpdf.so.1 or does it show libpdf.so.1.0.0? I think libpdf.so.1.0.0 can be mv'd to libpdf.so.1 (but that looks like an older prob). If libpdf.so.1 is shown then just running ldconfig should fix the problem. HTH Lowell F. On Mon, 5 Aug 2002, Albin Blaschka wrote: > > > Hello out there! > > I compiled Mapserver 3.6, with following configure-options: > > --with-gd --with-proj --with-pdf > > 'configure' and 'make' brought *no* errors. The binary 'mapserv' *is* > created. But when I want to test it with ./mapserv (like it is said in the > documentation) I get the following error: > > 'error while loading shared libraries: libpdf.so.1: cannot open shared > object file: No such file or directory' > > The files lay in /usr/local/lib/libpdf.a, libpdf.la, libpdf.so > > My box: > Debian 3.0 Woody > MapServer 3.6.1 > > Is there help possible ? > > Albin > > > > ///////////////////////////////////////////////////////////////////// > // Albin Blaschka, Mag. rer. nat. > // Etrichstra?e 26 > // A - 5020 Salzburg > // It?s hard to live in the mountains, > // hard, but not hopeless! > //////////////////////////////////////////////////////////////////// > From lfilak at medinaco.org Tue Aug 6 05:18:41 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 6 Aug 2002 08:18:41 -0400 (EDT) Subject: [mapserver-users] combinations for ms3.6.1 In-Reply-To: <00ed01c23ce3$f5901b20$4459fea9@munistgo.cl> Message-ID: I can say that both perl 5.6.0 & 5.6.1 (5.8 not tested here yet) run fine with ms3.6.1. Lowell F. On Mon, 5 Aug 2002, Patricio Gigoux wrote: > what is the best combination betwen ms3.6.1, php, gd, freetype, gdal, proj, > perl, postgresql, posgis? > > thank you in advance > Patricio > From pkishor at GeoAnalytics.com Tue Aug 6 06:16:00 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 6 Aug 2002 08:16:00 -0500 Subject: [mapserver-users] combinations for ms3.6.1 In-Reply-To: <00ed01c23ce3$f5901b20$4459fea9@munistgo.cl> Message-ID: there never is a clear answer. there is only help ;-) On Monday, August 5, 2002, at 07:55 PM, Patricio Gigoux wrote: > what is the best combination betwen > ms3.6.1 --> 3.6.1 * > php --> 4.2.x (methinks, although the DMS guys have the last word on > this) ** > gd --> 1.8.4 (only png, optionally jpeg, no gif) * > freetype --> 1.3.x (although presence of 2.x causes acidity always) > gdal --> 1.1.5 (Frank's the lord of the ring here) > proj --> 4.4.4 > perl --> 5.6.1 (ask SDL for 5.8 support) ** > postgresql, same as pos(t)gis --> ??? ask the refractions blokes * mandatory ** either do cgi, or choose between one or the other everything else is optional hth. pk/ e&oe From lfilak at medinaco.org Tue Aug 6 07:05:39 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 6 Aug 2002 10:05:39 -0400 (EDT) Subject: [mapserver-users] Refresh In-Reply-To: <20020806120926.72145.qmail@web10408.mail.yahoo.com> Message-ID: Do you mean: ? Lowell F. On Tue, 6 Aug 2002, ALI OSKUE wrote: > Dear user, > please answer my question if anybody knows it. > How can I upload automatically my home page to client > who is watching my page on his screen or > how client can automatically download my modified new > home page. > > Thanks, > > A-K-Oskue > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - Feel better, live better > http://health.yahoo.com > From pgigoux at munistgo.cl Tue Aug 6 11:13:53 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Tue, 6 Aug 2002 14:13:53 -0400 Subject: [mapserver-users] combinations for ms3.6.1 References: Message-ID: <006201c23d75$1c9092e0$4459fea9@munistgo.cl> thank you, cristal Patricio ----- Original Message ----- From: "Puneet Kishor" To: "Patricio Gigoux" Cc: Sent: Tuesday, August 06, 2002 9:16 AM Subject: Re: [mapserver-users] combinations for ms3.6.1 > there never is a clear answer. there is only help ;-) > > On Monday, August 5, 2002, at 07:55 PM, Patricio Gigoux wrote: > > > what is the best combination betwen > > > > ms3.6.1 --> 3.6.1 * > > php --> 4.2.x (methinks, although the DMS guys have the last word on > > this) ** > > gd --> 1.8.4 (only png, optionally jpeg, no gif) * > > freetype --> 1.3.x (although presence of 2.x causes acidity always) > > gdal --> 1.1.5 (Frank's the lord of the ring here) > > proj --> 4.4.4 > > perl --> 5.6.1 (ask SDL for 5.8 support) ** > > postgresql, same as pos(t)gis --> ??? ask the refractions blokes > > * mandatory > ** either do cgi, or choose between one or the other > everything else is optional > > hth. > > pk/ > > e&oe From woodbri at swoodbridge.com Tue Aug 6 08:00:27 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 6 Aug 2002 11:00:27 -0400 Subject: [mapserver-users] Refresh In-Reply-To: References: <20020806120926.72145.qmail@web10408.mail.yahoo.com> Message-ID: <3D4FAC4B.28895.9B592A3@localhost> Or if the user hits refresh and does not get the new page, it is probably getting it from a cache, you can have him hold down the SHIFT key while clicking Refresh to get a new page from the server. On some browsers, you might have to delete the cache or temporary internet files from disk and memory, via the appropriate browser menu item. -Steve On 6 Aug 2002 at 10:05, Lowell.Filak wrote: > Do you mean: > > ? > Lowell F. > > On Tue, 6 Aug 2002, ALI OSKUE wrote: > > > Dear user, > > please answer my question if anybody knows it. > > How can I upload automatically my home page to client > > who is watching my page on his screen or > > how client can automatically download my modified new > > home page. > > > > Thanks, > > > > A-K-Oskue > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Health - Feel better, live better > > http://health.yahoo.com > > > > From TMitchell at lignum.com Tue Aug 6 08:15:36 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 6 Aug 2002 08:15:36 -0700 Subject: [mapserver-users] Platforms and Processors survey Message-ID: Well, after a few days of responses, I compiled the list and sorted it based on speed and memory. See it at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?Platforms_And_Processors I tried to keep it to currently used servers, but had to throw in a couple of the slower ones that people used to use, to encourage those of you who may be wondering just how slow you can go. The only disappointing thing was no one told me that they are using any 486 processors :( If anyone has any experience (current or past) doing this, I'd be interested to hear. Now I guess I'll have to try it out myself :) Thanks for participating. Tyler From albin.blaschka at sbg.ac.at Tue Aug 6 07:56:46 2002 From: albin.blaschka at sbg.ac.at (Albin Blaschka) Date: Tue, 06 Aug 2002 16:56:46 +0200 Subject: [mapserver-users] mapserver shows only background Message-ID: <5.1.0.14.2.20020806162700.00a8aa70@mh.sbg.ac.at> Hello out there, I am a complete newbie to mapserver, so I tried to study the tutorial from the documentation and tried to do example 1 ? A Single Layer - with my own data on my own server. (the demo-application is up and running, thanks to the list...) But when i call the page, all i get is an rectangle filled with the background-color, but no shapes... I have following directories on my Linux-box (Debian Woody, Apache 1.3.26): document root (apache): /opt/htdocs cgi with mapserv: /opt/htdocs/cgi-bin my directory: /opt/htdocs/mydir the shapes:/opt/htdocs/mydir/data Apache has all rights (read, write, execute in the document root downwards...) I call the page: http://myserver.at/mydir/one.htm the biotope.map file looks like this: ## Map-File name marzoll size 800 800 units meters extent 417000 289000 420000 293000 # Ausrian National Grid, Unit is meters imagecolor 100 100 100 status on imagetype png # GD without gif shapepath "/opt/htdocs/mydir/data/" layer # start the layer object name test data biotope # in the dir /opt/htdocs/mydir/data are biotope.shp biotope.dbf etc... type polygon class color 220 220 220 outlinecolor 0 0 0 end # end of class object end # end of layer object end # end of map file I took the example from the tutorial, and modified it by myself, and i got it not working... All I get is a rectancle filled with the specified color, the shapes are o.k., i tested them in Esri ArcView 3.2 Please heeeelp, Albin ///////////////////////////////////////////////////////////////////// // Albin Blaschka, Mag. rer. nat. // Etrichstra?e 26 // A - 5020 Salzburg // It?s hard to live in the mountains, // hard, but not hopeless! //////////////////////////////////////////////////////////////////// From mberman at fas.harvard.edu Tue Aug 6 08:36:31 2002 From: mberman at fas.harvard.edu (Merrick Lex Berman) Date: Tue, 06 Aug 2002 11:36:31 -0400 Subject: [mapserver-users] Re:acetate logo & inline features / text string Message-ID: <5.0.0.25.2.20020806113149.02aab7d0@imap.fas.harvard.edu> Hi, I would also like to know about use of logos on the output image, mentioned in Haddad's recent request (below). Also, regarding the use of the inline features, I find that it outputs on the first saved map image, but not on subsequest queries... Anyone know how to make the TRUETYPE string persist? thanks, Lex >>In browsing the archive we see how to add an acetate layer that contains >>a TRUETYPE string (below) ... but what if we want to add a logo from a >>GIF file as an acetate? >> >> >>We tried adding it to the SYMBOLSET file, and then drawing it as an >>annotation layer.. but it didn't seem to work, and we're wondering if >>that is the right approach. >> >> >>TH >> LAYER >> NAME credits >> STATUS DEFAULT >> TRANSFORM FALSE >> TYPE ANNOTATION >> FEATURE >> POINTS 4 396 END >> TEXT '© 2000 Minnesota DNR' >> END >> CLASS >> LABEL >> TYPE TRUETYPE >> FONT myriad_web_bold >> SIZE 8 >> ANTIALIAS >> COLOR 255 255 255 >> POSITION UR >> END >> END >> END Lex Berman China Historical Geographic Information System Harvard Yenching Institute http://www.fas.harvard.edu/~chgis From thaechl at geo.unizh.ch Tue Aug 6 09:17:53 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: Tue, 06 Aug 2002 18:17:53 +0200 Subject: [mapserver-users] Problem with PostGIS layer Message-ID: <3D4FF6B1.366CE802@geo.unizh.ch> hello list, I just start to use postgis with mapserver and can't seem to make it work. I get a blank browser window and in the source code the following error message: MapServer Error in msPOSTGISLayerOpen(): Error parsing POSTGIS connection information. Can anyone please tell me what I am missing? Thank you in advance, Thomy P.S.: I am using php/mapscript version 3.6.1 and this is what I did: test=# \! createlang plpgsql test test=# \! psql -d test -f postgis.sql test=# \! shp2pgsql borderline.shp borderline test | psql test test=# CREATE INDEX gist_index test-# ON borderline test-# USING GIST ( the_geom GIST_GEOMETRY_OPS ); test=# CREATE INDEX oid_index ON borderline ( oid ); test=# VACUUM ANALYZE; Mapfile: # *********************************** # testlayer postgresql # *********************************** LAYER NAME "borderline2" CONNECTIONTYPE postgis CONNECTION "user=thaechl password=***** dbname=test host=localhost port=5432" DATA "the_geom from borderline" STATUS DEFAULT TYPE LINE METADATA "TITLE" "Grenze SNP" END #Metadata CLASS NAME 'Grenze SNP' COLOR 220 20 60 SYMBOL 13 SIZE 2 END #Class END #Layer -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From alex_rice at arc.to Tue Aug 6 09:38:58 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 6 Aug 2002 10:38:58 -0600 Subject: [mapserver-users] map scale questions In-Reply-To: <18E0CC75605BD411907800508B8BB8D00165EFCF@odin.enator.dk> Message-ID: <01A47F70-A95B-11D6-AC23-000393529642@arc.to> On Tuesday, August 6, 2002, at 05:08 AM, Bjarni Pjetursson wrote: > if your data source is in lon/lat, your coordinates are stored in > degrees. > You should therefore set the Mapserver map file units to "DD" (decimal > degrees). How embarrassing! I can't believe I over looked "dd" in the mapserver documentation! Also, I had printed out the proj user's manual last night, but haven't read much of it yet. > If your data is in any other projection, your coordinates are stored in > cartesian coordinates (for example m, km, mi). Theese coordinates > are much > larger than decimal degrees. Most likely this is the reason you see the > weird scale. You must set your map file units to the appropriate > cartesian > unit. > > You can use freeware viewing tools like Geographic Explorer > (http://www.bluemarblegeo.com/products.asp?id=5) to display the actual > values in your data files. Thanks for the tips. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From lfilak at medinaco.org Tue Aug 6 10:09:45 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 6 Aug 2002 13:09:45 -0400 (EDT) Subject: [mapserver-users] Re:acetate logo & inline features / text string In-Reply-To: <5.0.0.25.2.20020806113149.02aab7d0@imap.fas.harvard.edu> Message-ID: I think Haddad is currently looking into using a raster layer of a logo along with the transform option. Lowell F. On Tue, 6 Aug 2002, Merrick Lex Berman wrote: > Hi, > > I would also like to know about use of logos on the output image, mentioned > in Haddad's recent request (below). > > Also, regarding the use of the inline features, I find that it outputs on > the first saved map image, but not on subsequest queries... Anyone know > how to make the TRUETYPE string persist? > > thanks, > Lex > > > >>In browsing the archive we see how to add an acetate layer that contains > >>a TRUETYPE string (below) ... but what if we want to add a logo from a > >>GIF file as an acetate? > >> > >> > >>We tried adding it to the SYMBOLSET file, and then drawing it as an > >>annotation layer.. but it didn't seem to work, and we're wondering if > >>that is the right approach. > >> > >> > >>TH > >> LAYER > >> NAME credits > >> STATUS DEFAULT > >> TRANSFORM FALSE > >> TYPE ANNOTATION > >> FEATURE > >> POINTS 4 396 END > >> TEXT '© 2000 Minnesota DNR' > >> END > >> CLASS > >> LABEL > >> TYPE TRUETYPE > >> FONT myriad_web_bold > >> SIZE 8 > >> ANTIALIAS > >> COLOR 255 255 255 > >> POSITION UR > >> END > >> END > >> END > > Lex Berman > China Historical Geographic Information System > Harvard Yenching Institute > http://www.fas.harvard.edu/~chgis > From TMitchell at lignum.com Tue Aug 6 10:29:11 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 6 Aug 2002 10:29:11 -0700 Subject: [mapserver-users] Problem with PostGIS layer Message-ID: I'm not sure but I suspect your user: thaechl doesn't have permission? I would create a db user with the same name as the web server user, giving him read-only access. >createuser nobody (or apache) Then I'd make sure that this user can read the postgis tables >psql test #grant select on borderline to nobody; Maybe that will help. Doing it this way, you don't need to put in a real system user/password in your map file! Just plunk in "user=nobody" instead. Thomas Haechler To: mapserver-users Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] Problem with PostGIS layer 08/06/2002 09:17 AM hello list, I just start to use postgis with mapserver and can't seem to make it work. I get a blank browser window and in the source code the following error message: MapServer Error in msPOSTGISLayerOpen(): Error parsing POSTGIS connection information. Can anyone please tell me what I am missing? Thank you in advance, Thomy P.S.: I am using php/mapscript version 3.6.1 and this is what I did: test=# \! createlang plpgsql test test=# \! psql -d test -f postgis.sql test=# \! shp2pgsql borderline.shp borderline test | psql test test=# CREATE INDEX gist_index test-# ON borderline test-# USING GIST ( the_geom GIST_GEOMETRY_OPS ); test=# CREATE INDEX oid_index ON borderline ( oid ); test=# VACUUM ANALYZE; Mapfile: # *********************************** # testlayer postgresql # *********************************** LAYER NAME "borderline2" CONNECTIONTYPE postgis CONNECTION "user=thaechl password=***** dbname=test host=localhost port=5432" DATA "the_geom from borderline" STATUS DEFAULT TYPE LINE METADATA "TITLE" "Grenze SNP" END #Metadata CLASS NAME 'Grenze SNP' COLOR 220 20 60 SYMBOL 13 SIZE 2 END #Class END #Layer -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From Chip.Hankley at GASAI.Com Tue Aug 6 10:35:59 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 6 Aug 2002 12:35:59 -0500 Subject: [mapserver-users] Re:acetate logo & inline features / text st ring Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABC7F@postoffice.GASAI.Com> ...if you are using PHP-MapScript, something along the following lines will work. I have used this function to embed numerous images... north arrows, copyright information, etc. Basically, you need an image to embed, then play around with the $img_x and $img_y to get it to the right spot. Cheers! Chip Hankley ------------------------------------------------------- PHP-Mapscript example of using the embed_picture function ... //Embed the scalebar into the main image before it's drawn $sb_url=".." . draw_scalebar($map); embed_picture($map, $Cur_Extent, $img, "$sb_url", ($map->width / 2), 10); //Now embed the north arrow into the main map embed_picture($map, $Cur_Extent, $img, "../MapSymbols/NorthW.gif", 20, ($map->height - 20)); ... function embed_picture($map, $Cur_Extent, $img, $img_name, $img_x, $img_y) { // // Function Parameters: // $map - the map object // $Cur_Extent (array) - extent of current image, xmin, ymin, xmax, ymax // $img - image object generated by $map->draw // $img_name - the name (and path) of the image to embed // $img_x - x pixel coordinates of location in $img to embed $img_name // $img_y - y pixel coordinates of location in $img to embed $img_name // //Create a new Point Layer $layer = ms_newLayerObj($map); $layer->set("name", "legend"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", 1); //Create a new Class for the Layer $class = ms_newClassObj($layer); $class->set("name", "legendclass"); $symb = $map->getSymbolByName($img_name); $class->set("symbol", $symb); //symbols/legend.gif //Place the point so that it is 221 pixels IN and 301 // pixels UP from the lower left hand conrner of // the image. We are using an image that is 300 x 37 // pixels... this should put the image just inside // the rendered image. $ImgWidth = $map->width; $ImgHeight = $map->height; $Pixel_X = ($Cur_Extent[2] - $Cur_Extent[0]) / $ImgWidth; $Pixel_Y = ($Cur_Extent[3] - $Cur_Extent[1]) / $ImgHeight; $Spot_X = $Cur_Extent[0] + $img_x * $Pixel_X; $Spot_Y = $Cur_Extent[1] + $img_y * $Pixel_Y; $point = ms_newpointObj(); $point->setXY($Spot_X, $Spot_Y); $point->draw($map,$layer,$img,'legendclass',undef); $layer->draw($img); } From TMitchell at lignum.com Tue Aug 6 10:59:12 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 6 Aug 2002 10:59:12 -0700 Subject: [mapserver-users] Projecting like a sphere Message-ID: I have a world map layer and I'm displaying it in lat/long. I'd like to project it so that it looks like a sphere, so that when I keep panning west it doesn't come to "the end" of the map. I want it to be a continuous layer as you pan east/west and north/south. I noticed that Arcview has a function similar to this, is it just a matter of choosing a specific type of projection? Any suggestions on how to do this? Tyler From regina.ctr.niner at faa.gov Tue Aug 6 11:04:15 2002 From: regina.ctr.niner at faa.gov (regina.ctr.niner at faa.gov) Date: Tue, 6 Aug 2002 14:04:15 -0400 Subject: [mapserver-users] syntax for passing a perl variable to setexpression Message-ID: I'm using a perl script to map dynamic flight tracks against a map of the world. Would any of you know the correct syntax for using a perl variable to call setexpression() ? (I need to build layers based on a variable retrieved from the database, and have been unsuccessful at using a variable to set the expression for the applicable class - though I have gotten a literal to work.) Any hints would be appreciated. Thanks! From nhv at cape.com Tue Aug 6 11:13:06 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 6 Aug 2002 14:13:06 -0400 Subject: [mapserver-users] Projecting like a sphere In-Reply-To: Message-ID: <012c01c23d74$eb088520$a300a8c0@nhv> Tyler Mitchell writes: > >I have a world map layer and I'm displaying it in lat/long. I'd like to >project it so that it looks like a sphere, so that when I keep panning west >it doesn't come to "the end" of the map. I want it to be a continuous >layer as you pan east/west and north/south. I noticed that Arcview has a >function similar to this, is it just a matter of choosing a specific type >of projection? > >Any suggestions on how to do this? Sounds like you want to use an 'orthographic' projection Cheers Norman From nhv at cape.com Tue Aug 6 11:13:45 2002 From: nhv at cape.com (Norman Vine) Date: Tue, 6 Aug 2002 14:13:45 -0400 Subject: [mapserver-users] FW: [CYGWIN] Native Windows Port Message-ID: <012d01c23d75$016d3f40$a300a8c0@nhv> FYI -----Original Message----- From: pgsql-cygwin-owner at postgresql.org [mailto:pgsql-cygwin-owner at postgresql.org] On Behalf Of Michael Furgal Sent: Tuesday, August 06, 2002 2:01 PM To: pgsql-cygwin at postgresql.org Subject: [CYGWIN] Native Windows Port My company is actively working on a Native Windows Port of Postgres based on 7.2.1. This is the same group that Jan Wieck and Katie Ward work with. We are now at the stage that we need community involvement to help work out the bugs. We plan on contributing the code to the Postgres base, but we want to make sure that most of the bugs have been worked out before doing so. We are looking for people who have an application that currently runs on Postgres 7.2 and who also have a Windows environment. If you would like to get involved, please send me email at mailto:mikef at multera.com Thanks... ...MikeF -- ------------------------------------------------------------------ Mike Furgal - mailto:mikef at multera.com - http://www.multera.com ------------------------------------------------------------------ ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org From TMitchell at lignum.com Tue Aug 6 11:52:04 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Tue, 6 Aug 2002 11:52:04 -0700 Subject: [mapserver-users] Projecting like a sphere Message-ID: I should say that I think I'm looking to do an orthographic kind of projection. Is this possible with MapServer? >>> "TMitchell at lignum.com" 08/06/02 12:59 >>> >I have a world map layer and I'm displaying it in lat/long. I'd like to >project it so that it looks like a sphere, so that when I keep panning west >it doesn't come to "the end" of the map. I want it to be a continuous >layer as you pan east/west and north/south. I noticed that Arcview has a >function similar to this, is it just a matter of choosing a specific type >of projection? >Any suggestions on how to do this? >Tyler From pramsey at refractions.net Tue Aug 6 12:15:44 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 06 Aug 2002 12:15:44 -0700 Subject: [mapserver-users] Projecting like a sphere References: <012c01c23d74$eb088520$a300a8c0@nhv> Message-ID: <3D502060.6EA24C8B@refractions.net> That would be cool. If I am not mistaken, unlike a normal planar projection, you will implement panning not by altering the extents of the map, but by altering the origin of the projection. Fancy schmantzy. Norman Vine wrote: > > Tyler Mitchell writes: > > > >I have a world map layer and I'm displaying it in lat/long. I'd like to > >project it so that it looks like a sphere, so that when I keep panning west > >it doesn't come to "the end" of the map. I want it to be a continuous > >layer as you pan east/west and north/south. I noticed that Arcview has a > >function similar to this, is it just a matter of choosing a specific type > >of projection? > > > >Any suggestions on how to do this? > > Sounds like you want to use an 'orthographic' projection > > Cheers > > Norman -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From Bjarni.Pjetursson at tietoenator.com Tue Aug 6 12:26:51 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 6 Aug 2002 21:26:51 +0200 Subject: [mapserver-users] map scale questions Message-ID: <18E0CC75605BD411907800508B8BB8D00165EFD0@odin.enator.dk> I was facing the exactly same puzzle a month ago. Someone should emphasize this issue in the mapfile documentation. /Bjarni -----Original Message----- From: Alex Rice To: Bjarni Pjetursson Cc: mapserver-users at lists.gis.umn.edu Sent: 06-08-02 18:38 Subject: Re: [mapserver-users] map scale questions On Tuesday, August 6, 2002, at 05:08 AM, Bjarni Pjetursson wrote: > if your data source is in lon/lat, your coordinates are stored in > degrees. > You should therefore set the Mapserver map file units to "DD" (decimal > degrees). How embarrassing! I can't believe I over looked "dd" in the mapserver documentation! Also, I had printed out the proj user's manual last night, but haven't read much of it yet. > If your data is in any other projection, your coordinates are stored in > cartesian coordinates (for example m, km, mi). Theese coordinates > are much > larger than decimal degrees. Most likely this is the reason you see the > weird scale. You must set your map file units to the appropriate > cartesian > unit. > > You can use freeware viewing tools like Geographic Explorer > (http://www.bluemarblegeo.com/products.asp?id=5) to display the actual > values in your data files. Thanks for the tips. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From lfilak at medinaco.org Tue Aug 6 12:27:15 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 6 Aug 2002 15:27:15 -0400 (EDT) Subject: [mapserver-users] syntax for passing a perl variable to setexpression In-Reply-To: Message-ID: Which type of expression are you trying to use, string, regex, or logical? Lowell F. On Tue, 6 Aug 2002 regina.ctr.niner at faa.gov wrote: > I'm using a perl script to map dynamic > flight tracks against a map of the world. > > Would any of you know the correct syntax for using > a perl variable to call setexpression() ? > (I need to build layers based on a variable retrieved from > the database, and have been unsuccessful at using a variable > to set the expression for the applicable class - though > I have gotten a literal to work.) > > Any hints would be appreciated. > Thanks! > > From Bjarni.Pjetursson at tietoenator.com Tue Aug 6 12:30:33 2002 From: Bjarni.Pjetursson at tietoenator.com (Bjarni Pjetursson) Date: Tue, 6 Aug 2002 21:30:33 +0200 Subject: [mapserver-users] Refresh Message-ID: <18E0CC75605BD411907800508B8BB8D00165EFD1@odin.enator.dk> Or you could put the following in the header of the html-page: Regards Bjarni Thor Pjetursson -----Original Message----- From: woodbri at swoodbridge.com To: mapserver-users at lists.gis.umn.edu Sent: 06-08-02 17:00 Subject: Re: [mapserver-users] Refresh Or if the user hits refresh and does not get the new page, it is probably getting it from a cache, you can have him hold down the SHIFT key while clicking Refresh to get a new page from the server. On some browsers, you might have to delete the cache or temporary internet files from disk and memory, via the appropriate browser menu item. -Steve On 6 Aug 2002 at 10:05, Lowell.Filak wrote: > Do you mean: > > ? > Lowell F. > > On Tue, 6 Aug 2002, ALI OSKUE wrote: > > > Dear user, > > please answer my question if anybody knows it. > > How can I upload automatically my home page to client > > who is watching my page on his screen or > > how client can automatically download my modified new > > home page. > > > > Thanks, > > > > A-K-Oskue > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Health - Feel better, live better > > http://health.yahoo.com > > > > From ARyan at co.linn.or.us Tue Aug 6 17:00:30 2002 From: ARyan at co.linn.or.us (Ryan, Adam) Date: Tue, 6 Aug 2002 17:00:30 -0700 Subject: [mapserver-users] QUERYFILE and SAVEQUERY Message-ID: <614FCE5F14A6D41180C200010240D6A2C441A0@LINNMS> I've been experimenting with SaveQuery and QueryFile, and I'm not clear on what the .qy file is telling mapserver. Does the .qy file specify the qlayer? More specifically, if I originally queried with qlayer = "Taxlots1", could I then set my qlayer = "Taxlots2" and apply the queryfile to Taxlots2 (assuming that the data source was the same)? What I really want to do is set the data source (I've got that done) and the visible features (the results of my query) of my queried layer to a generic 'select' layer, and then browse around without calling the query template. Am I making any sense? Thanks for any ideas on this, Adam Ryan Linn County From mi.ro at iol.it Tue Aug 6 16:57:19 2002 From: mi.ro at iol.it (Roberto Micarelli) Date: Wed, 7 Aug 2002 01:57:19 +0200 Subject: [mapserver-users] Projecting like a sphere In-Reply-To: <3D502060.6EA24C8B@refractions.net> References: <012c01c23d74$eb088520$a300a8c0@nhv> <3D502060.6EA24C8B@refractions.net> Message-ID: <02080701571900.06453@imobile> On Tuesday 06 August 2002 21:15, Paul Ramsey wrote: > That would be cool. If I am not mistaken, unlike a normal planar > projection, you will implement panning not by altering the extents of > the map, but by altering the origin of the projection. Fancy schmantzy. > It's a ortographic projection with wrap-around capability. Is Mapserver able to do this? Wrap-around can apply to other projections too. It should be as always dividing longitude by 360.0 before to project it and be aware that west edge should be greater than east. From Antti.Roppola at brs.gov.au Tue Aug 6 18:03:42 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 7 Aug 2002 11:03:42 +1000 Subject: [mapserver-users] Projecting like a sphere Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9952C1@ACTMAIL2> This all makes a lot of sense. Why bother mangling spatial coordinates to fit on a 2D page when you can represent a view of the 3D object? Cool.... :o) Antti -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Wednesday, 7 August 2002 5:16 AM To: nhv at cape.com Cc: 'Tyler Mitchell'; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Projecting like a sphere That would be cool. If I am not mistaken, unlike a normal planar projection, you will implement panning not by altering the extents of the map, but by altering the origin of the projection. Fancy schmantzy. Norman Vine wrote: > > Tyler Mitchell writes: > > > >I have a world map layer and I'm displaying it in lat/long. I'd like to > >project it so that it looks like a sphere, so that when I keep panning west > >it doesn't come to "the end" of the map. I want it to be a continuous > >layer as you pan east/west and north/south. I noticed that Arcview has a > >function similar to this, is it just a matter of choosing a specific type > >of projection? > > > >Any suggestions on how to do this? > > Sounds like you want to use an 'orthographic' projection > > Cheers > > Norman -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From alex_rice at arc.to Tue Aug 6 22:34:49 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 6 Aug 2002 23:34:49 -0600 Subject: [mapserver-users] mapscript perl dependencies Message-ID: <640D8E78-A9C7-11D6-9EA4-000393529642@arc.to> Hi, I am missing a dependency building Perl mapscript and I can't see what it is. It looks like it's not finding the OGR libs at runtime, but AFAIK everything has been statically linked... Here are the symbols missing. Can anyone verify which library these symbols are in, and how to make perl makescript deal with it? Thanks --Alex % perl use mapscript; dyld: perl Undefined symbols: _CPLCalloc _CPLSPrintf _CPLStrdup _GetFieldAsString__10OGRFeaturei _GetFieldDefn__14OGRFeatureDefni _GetFieldIndex__14OGRFeatureDefnPCc _GetParamDbl__11OGRStylePen27ogr_style_tool_param_pen_idRi _GetParamDbl__13OGRStyleLabel29ogr_style_tool_param_label_idRi _GetParamDbl__14OGRStyleSymbol30ogr_style_tool_param_symbol_idRi _GetParamStr__11OGRStylePen27ogr_style_tool_param_pen_idRi _GetParamStr__12OGRStyleToolR15ogr_style_paramR15ogr_style_valueRi _GetParamStr__13OGRStyleBrush29ogr_style_tool_param_brush_idRi _GetParamStr__13OGRStyleLabel29ogr_style_tool_param_label_idRi _GetParamStr__14OGRStyleSymbol30ogr_style_tool_param_symbol_idRi _GetPartCount__11OGRStyleMgrPCc _GetPart__11OGRStyleMgriPCc _GetRGBFromString__12OGRStyleToolPCcRin3 _GetType__12OGRStyleTool _InitFromFeature__11OGRStyleMgrP10OGRFeature _IsLocal__19OGRSpatialReference _OGRRegisterAll _Open__20OGRSFDriverRegistrarPCciPP11OGRSFDriver _SetUnit__12OGRStyleTool23ogr_style_tool_units_idd _VSIFree (perl exits) perl mapscript compiles OK, and doesn't seem to depend on any shared libraries, except system ones. (On MacOS X, "otool -L" is equivalent to the "ldd" command on Linux) % otool -L /Library/Perl/darwin/auto/mapscript/mapscript.bundle /Library/Perl/darwin/auto/mapscript/mapscript.bundle: /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 55.1.0) % ../../mapserv -v MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=SHAPEFILE % otool -L ../../mapserv -v ../../mapserv: /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, current version 1.1.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 55.1.0) Here is the build output for perl mapscript: perl Makefile.PL -I/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/../port -L/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -lmap -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz -L/usr/local/lib -ltiff -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg -L/usr/local/pgsql/lib -lpq -lm Writing Makefile for mapscript % make mkdir blib mkdir blib/lib mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/mapscript mkdir blib/lib/auto mkdir blib/lib/auto/mapscript cp mapscript.pm blib/lib/mapscript.pm cc -c -I/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/../port -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR mapscript_wrap.c cc: -flat_namespace: linker input file unused since linking not done Running Mkbootstrap for mapscript () chmod 644 mapscript.bs LD_RUN_PATH="/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1:/usr/local/lib: /usr/lib:/usr/local/pgsql/lib" cc -o blib/arch/auto/mapscript/mapscript.bundle -bundle -flat_namespace -undefined suppress mapscript_wrap.o -L/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -lmap -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz -L/usr/local/lib -ltiff -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg -L/usr/local/pgsql/lib -lpq -lm chmod 755 blib/arch/auto/mapscript/mapscript.bundle cp mapscript.bs blib/arch/auto/mapscript/mapscript.bs chmod 644 blib/arch/auto/mapscript/mapscript.bs Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From sylvain_pasche at yahoo.fr Wed Aug 7 03:21:35 2002 From: sylvain_pasche at yahoo.fr (Sylvain Pasche) Date: Wed, 7 Aug 2002 12:21:35 +0200 Subject: [mapserver-users] generic way to access shape values from a query using phpmapscript Message-ID: <15696.62639.63744.12896@in3sun3.epfl.ch> Hi, I want to display query results using php mapscript. For the moment, when I perform a query with msQueryByPoint, I get back a list of shape id using the resultcache. Then, when I want to access the values from the shape, I directly access the dbf on the disk to read the fields values. This is ok for shapefile layers, but I would like to do the same with other kind of layer, such as opengis, ogr, and others. Is there a way to do it with phpmapscript (ie: a generic way to read layer item values) and if so, how could this be done ? Thanks Sylvain From thaechl at geo.unizh.ch Wed Aug 7 05:49:15 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: Wed, 07 Aug 2002 14:49:15 +0200 Subject: [mapserver-users] Problem with PostGIS layer References: Message-ID: <3D51174B.8E666EC5@geo.unizh.ch> Many thanks to Dave & Tyler for their help. I am posting this to the list since I got emails from people with the same problem. There was actually no problem with the user or permission because for testing purpose I used the db-admin account. The solution is much more simple: I started the postmaster without allowing TCP/IP connetions. This option is off by default, and since I run the webserver, mapserver and postgresql on the same machine, I thought it is not necessary. So for everyone with this problem: make sure to accept TCP/IP connections. You have 2 possibilities to do this: 1.) use the -i option when starting the postmaster, or 2.) edit the postgresql.conf: tcpip_socket = true Hope this helps someone else, Thomy -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From Michael.Smith at erdc.usace.army.mil Wed Aug 7 06:35:11 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 7 Aug 2002 09:35:11 -0400 Subject: [mapserver-users] SDE Direct Connect Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD17A9@crl02.crrel.usace.army.mil> Has anyone connected to an Oracle Spatial (or SDE) layer using the SDE direct connect feature? I'd like to be able to query Oracle Spatial and use the more developed SDE connection interface to do it, however I am having problems specifing the instance parameter (which for direct connect should be sde:oracle). I get msSDELayerOpen(): SDE error. SE_connection_create(): The file path does not exist, or is too long (> 512 chars), or has invalid characters.. (-269). Any ideas? Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From TMitchell at lignum.com Wed Aug 7 07:33:06 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 7 Aug 2002 07:33:06 -0700 Subject: [mapserver-users] Problem with PostGIS layer Message-ID: Glad to hear it was simple. As a side note, for Linux (and others?) that have Postgres start at boot up (i.e. via /etc/rc.d/init.d/postgres script), I noticed mine did not startup with the tcp/ip connections allowed. I guess I could have edit the postgresql.conf file, but instead I edit the startup script. You'll see in the section near the end of the script that there are some if type statements and then a command to either start, stop or restart postgres. I simply added the "-i" option at the end of these commands. However, since it uses the pg_ctl command (and not the postmaster command directly) I had to flag the "-i" as an option to pass to postmaster, you do this by preceding it with "-o" for option. Finally, for example, see the end of the 5th line here as an example. # Parse command line parameters. case $1 in start) $ECHO_N "Starting PostgreSQL: "$ECHO_C su - $PGUSER -c "$DAEMON start -D '$PGDATA' -s -l $PGLOG -o -i" echo "ok" |---------+---------------------------------------> | | Thomas Haechler | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 08/07/2002 05:49 AM | | | | |---------+---------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: mapserver-users | | cc: | | Fax to: | | Subject: Re: [mapserver-users] Problem with PostGIS layer | >------------------------------------------------------------------------------------------------------------------------------| Many thanks to Dave & Tyler for their help. I am posting this to the list since I got emails from people with the same problem. There was actually no problem with the user or permission because for testing purpose I used the db-admin account. The solution is much more simple: I started the postmaster without allowing TCP/IP connetions. This option is off by default, and since I run the webserver, mapserver and postgresql on the same machine, I thought it is not necessary. So for everyone with this problem: make sure to accept TCP/IP connections. You have 2 possibilities to do this: 1.) use the -i option when starting the postmaster, or 2.) edit the postgresql.conf: tcpip_socket = true Hope this helps someone else, Thomy -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From alexys_6 at yahoo.es Wed Aug 7 07:54:31 2002 From: alexys_6 at yahoo.es (=?iso-8859-1?Q?Alexys_Herleym_Rodr=EDguez_Avellaneda?=) Date: Wed, 7 Aug 2002 09:54:31 -0500 Subject: [mapserver-users] Fw: 3.5 build problem with wmsclient Message-ID: <006a01c23e22$5969a0a0$e1631ec8@NICOLLE> I ran into a problem with Mapserver 3.5. This problem occured when I added --with-wmsclient to ./configure Any ideas? I thought that the reason was the bug 82 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=82), but this don't work. Thanks. -Alexys ********** [root at nana mapserver_3.5]# ./configure --with-gd=/usr/local --with-tiff=/usr/local --with-jpeg=/usr --with-zlib=/usr/local --with-png=/usr/local --with-eppl --with-proj=/usr/local --with-mpatrol=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclient --with-php=/tmp1/php-4.0.6 --with-apxs=/usr/sbin/apxs --disable-rxposix-conflict-error creating cache ./config.cache checking for gcc... 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... yes checking whether gcc accepts -g... yes checking for c++... 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++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... using libjpeg from system -L/usr/lib -ljpeg checking which version of GD to use... using libgd from -L/usr/local/lib -lgd checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... using libz from -L/usr/local/lib -lz checking where PNG is installed... using libpng from -L/usr/local/lib -lpng checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from /usr/local. 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... no libpdf not found... PDF support not included. checking whether we should include TIFF support... using libtiff from -L/usr/local/lib -ltiff. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from /usr/local. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... using MPATROL from /usr/local. checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config checking for OGRRegisterAll in -lgdal.1.1... yes using OGR from system libs. checking if GDAL support requested... yes, user supplied gdal-config 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 enabled (-DUSE_WMS). checking whether we should include WMS Client Connections support... checking for libwww-config... /usr/local/bin/libwww-config found libwww version 5.3.2 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for potential conflict between system regex and rxposix... checking for regexec in -lrx... no 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... /tmp1/php-4.0.6/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache updating cache ./config.cache creating ./config.status creating Makefile creating mapscript/php3/Makefile [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplexer.c -o maplexer.o maplexer.c:3125: warning: `yyunput' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H 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_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapproject.c -o mapproject.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapraster.c -o mapraster.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsde.c -o mapsde.o c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwmslayer.c -o mapwmslayer.o In file included from /usr/local/include/w3c-libwww/WWWXML.h:57, from /usr/local/include/w3c-libwww/HTInit.h:144, from /usr/local/include/w3c-libwww/WWWInit.h:51, from mapwmslayer.c:115: /usr/local/include/w3c-libwww/HTXML.h:104:3: warning: "/*" within comment In file included from /usr/local/include/w3c-libwww/wwwsys.h:956, from /usr/local/include/w3c-libwww/WWWLib.h:50, from mapwmslayer.c:113: /usr/include/malloc.h:159: redefinition of `struct mallinfo' make: *** [mapwmslayer.o] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at medinaco.org Wed Aug 7 08:53:11 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Wed, 07 Aug 2002 11:53:11 -0400 Subject: [mapserver-users] mapscript perl dependencies Message-ID: <200208071540.g77Fex815780@yogi.medinaco.net> If you set DYLD_PRINT_LIBRARIES environment variable to 1 it should show which module is causing the problem. Lowell F. The following message was sent by Alex Rice on Tue, 6 Aug 2002 23:34:49 -0600. > Hi, I am missing a dependency building Perl mapscript and I can't > see what it is. It looks like it's not finding the OGR libs at > runtime, but AFAIK everything has been statically linked... Here > are the symbols missing. Can anyone verify which library these > symbols are in, and how to make perl makescript deal with it? > Thanks --Alex > > % perl > use mapscript; > dyld: perl Undefined symbols: > _CPLCalloc > _CPLSPrintf > _CPLStrdup > _GetFieldAsString__10OGRFeaturei > _GetFieldDefn__14OGRFeatureDefni > _GetFieldIndex__14OGRFeatureDefnPCc > _GetParamDbl__11OGRStylePen27ogr_style_tool_param_pen_idRi > _GetParamDbl__13OGRStyleLabel29ogr_style_tool_param_label_idRi > _GetParamDbl__14OGRStyleSymbol30ogr_style_tool_param_symbol_idRi > _GetParamStr__11OGRStylePen27ogr_style_tool_param_pen_idRi > _GetParamStr__12OGRStyleToolR15ogr_style_paramR15ogr_style_valueRi > _GetParamStr__13OGRStyleBrush29ogr_style_tool_param_brush_idRi > _GetParamStr__13OGRStyleLabel29ogr_style_tool_param_label_idRi > _GetParamStr__14OGRStyleSymbol30ogr_style_tool_param_symbol_idRi > _GetPartCount__11OGRStyleMgrPCc > _GetPart__11OGRStyleMgriPCc > _GetRGBFromString__12OGRStyleToolPCcRin3 > _GetType__12OGRStyleTool > _InitFromFeature__11OGRStyleMgrP10OGRFeature > _IsLocal__19OGRSpatialReference > _OGRRegisterAll > _Open__20OGRSFDriverRegistrarPCciPP11OGRSFDriver > _SetUnit__12OGRStyleTool23ogr_style_tool_units_idd > _VSIFree > (perl exits) > > perl mapscript compiles OK, and doesn't seem to depend on any > shared libraries, except system ones. (On MacOS X, "otool -L" is > equivalent to the "ldd" command on Linux) > > % otool -L > /Library/Perl/darwin/auto/mapscript/mapscript.bundle > /Library/Perl/darwin/auto/mapscript/mapscript.bundle: > /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, > current version 1.1.3) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, > current version 55.1.0) > > % ../../mapserv -v > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=SHAPEFILE > > % otool -L ../../mapserv -v > ../../mapserv: > /usr/lib/libz.1.1.3.dylib (compatibility version 1.0.0, > current version 1.1.3) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, > current version 55.1.0) > > Here is the build output for perl mapscript: > > perl Makefile.PL > -I/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 > -I/usr/local/include -I/usr/local/include -I/usr/local/include > -I/usr/local/include > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/../port > -L/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -lmap > -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -lttf > -L/usr/local/lib -lpng -lz -L/usr/local/lib -ltiff > -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz > -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg > -L/usr/local/pgsql/lib -lpq -lm > Writing Makefile for mapscript > > % make > mkdir blib > mkdir blib/lib > mkdir blib/arch > mkdir blib/arch/auto > mkdir blib/arch/auto/mapscript > mkdir blib/lib/auto > mkdir blib/lib/auto/mapscript > cp mapscript.pm blib/lib/mapscript.pm > cc -c -I/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 > -I/usr/local/include -I/usr/local/include -I/usr/local/include > -I/usr/local/include > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr > -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/../port -g -pipe > -pipe -fno-common -no-cpp-precomp -flat_namespace > -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3 > -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" > -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA > -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR > mapscript_wrap.c > cc: -flat_namespace: linker input file unused since linking not done > Running Mkbootstrap for mapscript () > chmod 644 mapscript.bs > LD_RUN_PATH="/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1:/usr/local/lib: > /usr/lib:/usr/local/pgsql/lib" cc -o > blib/arch/auto/mapscript/mapscript.bundle -bundle > -flat_namespace -undefined suppress mapscript_wrap.o > -L/Users/alex/ARC/gis/Mapserver/mapserver-3.6.1 -lmap > -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -lttf > -L/usr/local/lib -lpng -lz -L/usr/local/lib -ltiff > -L/usr/local/lib -ljpeg -lttf -L/usr/local/lib -lpng -lz > -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg > -L/usr/local/pgsql/lib -lpq -lm > chmod 755 blib/arch/auto/mapscript/mapscript.bundle > cp mapscript.bs blib/arch/auto/mapscript/mapscript.bs > chmod 644 blib/arch/auto/mapscript/mapscript.bs > > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > From Chip.Hankley at GASAI.Com Wed Aug 7 09:18:02 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 7 Aug 2002 11:18:02 -0500 Subject: [mapserver-users] Feedback on my App, and host of questions Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABC89@postoffice.GASAI.Com> I could use a little feedback / help on an app I just put up. http://www.gasai.com/GISApps/CMTViewer/ This should present you with a log on screen. Choose the "Anonymous" access button. Our web server's a dog, so be patient. The application uses PHP- MapScript and Rosa. A lot of the users of this app have relatively low screen res (800 x 600), so I'm using an "expandable legend" to save on screen real-estate. 1) I've only tested this under IE 6 and NS 6 on Win2K. The dynamic legend relies pretty heavilly on CSS stuff. I'm just curious how it works under other OS's and browsers (BTW, is there a URL somewhere that allows one to do this type of test... some type of "renderer" that will show you what your page looks like under various OS / browser combinations...that would be nice). 2) The behavior under Netscape 6 is weird. Netscape won't pass form variables for elements in a DIV that is hidden. For example, expand 'Base Data' by clicking the blue bullet, turn on 'General Labels', then contract 'Base Data' by clicking the red bullet, then hit the 'redraw the map' button. You'll see that everything that was checked under 'Base Data' is now NOT checked. Not suprisingly, this does NOT happen under IE. 3) The way I was going to get around the issue in #2 was to simply expand all of the items right before the form was submitted (for NS users), using the onSubmit event. However, the ROSA applet seems to ignore the onSubmit event for some reason. Anyone know why, or a way around this? 4) I'm using JPEG as the image format, and am not very happy with the way it looks (vector stuff seems to 'bleed'). I don't want to use GIF b/c of the Unisys thing (they want $3500 for us to license GIF). 4a) I thought I heard some rumblings about PNG support (using 'sixlegs?') in ROSA... what became of this? 4b) On my box, I have the Java 2 (v1.3.1_02) VM installed. When using this, ROSA works great with PNG images. I had this idea of a little JS that would detect what version of Java the user had, and respond accordingly (JPEG for less than Java 2, PNG for greater), but I can't find a way to detect WHICH version of Java the client has. Is there a way to do this? Thanks for the input! Chip Hankley From TMitchell at lignum.com Wed Aug 7 09:28:25 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 7 Aug 2002 09:28:25 -0700 Subject: [mapserver-users] Fw: 3.5 build problem with wmsclient Message-ID: Hi Alexys, I'm not sure if this is related, but had you already ran make on this before. I found (at least with using CVS versions), that I need to do a "make clean" before re-running make in some cases. I got pretty strange behaviour until I did this sometimes. Just a tip, but it may not help you. Tyler |---------+---------------------------------------> | | Alexys Herleym Rodr?guez | | | Avellaneda | | | | | | Sent by: | | | owner-mapserver-users at lists.| | | gis.umn.edu | | | | | | | | | 08/07/2002 07:54 AM | | | | |---------+---------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Fax to: | | Subject: [mapserver-users] Fw: 3.5 build problem with wmsclient | >------------------------------------------------------------------------------------------------------------------------------| I ran into a problem with Mapserver 3.5. This problem occured when I added --with-wmsclient to ./configure Any ideas? I thought that the reason was the bug 82 ( http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=82), but this don't work. Thanks. -Alexys ********** [root at nana mapserver_3.5]# ./configure --with-gd=/usr/local --with-tiff=/usr/local --with-jpeg=/usr --with-zlib=/usr/local --with-png=/usr/local --with-eppl --with-proj=/usr/local --with-mpatrol=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclient --with-php=/tmp1/php-4.0.6 --with-apxs=/usr/sbin/apxs --disable-rxposix-conflict-error creating cache ./config.cache checking for gcc... 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... yes checking whether gcc accepts -g... yes checking for c++... 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++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... using libjpeg from system -L/usr/lib -ljpeg checking which version of GD to use... using libgd from -L/usr/local/lib -lgd checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... using libz from -L/usr/local/lib -lz checking where PNG is installed... using libpng from -L/usr/local/lib -lpng checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from /usr/local. 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... no libpdf not found... PDF support not included. checking whether we should include TIFF support... using libtiff from -L/usr/local/lib -ltiff. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from /usr/local. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... using MPATROL from /usr/local. checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config checking for OGRRegisterAll in -lgdal.1.1... yes using OGR from system libs. checking if GDAL support requested... yes, user supplied gdal-config 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 enabled (-DUSE_WMS). checking whether we should include WMS Client Connections support... checking for libwww-config... /usr/local/bin/libwww-config found libwww version 5.3.2 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for potential conflict between system regex and rxposix... checking for regexec in -lrx... no 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... /tmp1/php-4.0.6/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache updating cache ./config.cache creating ./config.status creating Makefile creating mapscript/php3/Makefile [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplexer.c -o maplexer.o maplexer.c:3125: warning: `yyunput' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H 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_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapproject.c -o mapproject.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapraster.c -o mapraster.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsde.c -o mapsde.o c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwmslayer.c -o mapwmslayer.o In file included from /usr/local/include/w3c-libwww/WWWXML.h:57, from /usr/local/include/w3c-libwww/HTInit.h:144, from /usr/local/include/w3c-libwww/WWWInit.h:51, from mapwmslayer.c:115: /usr/local/include/w3c-libwww/HTXML.h:104:3: warning: "/*" within comment In file included from /usr/local/include/w3c-libwww/wwwsys.h:956, from /usr/local/include/w3c-libwww/WWWLib.h:50, from mapwmslayer.c:113: /usr/include/malloc.h:159: redefinition of `struct mallinfo' make: *** [mapwmslayer.o] Error 1 From alex_rice at arc.to Wed Aug 7 10:15:22 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 7 Aug 2002 11:15:22 -0600 Subject: [mapserver-users] mapscript perl dependencies In-Reply-To: <3D511461.3070903@pobox.com> Message-ID: <41563F2B-AA29-11D6-8BFD-000393529642@arc.to> On Wednesday, August 7, 2002, at 06:36 AM, Frank Warmerdam wrote: > > For whatever reason, the above link does not appear to include the OGR > libraries. If you look in the MapServer Makefile you should see the > stuff needed for OGR in the "OGR_LIB" variable. I don't know how you > would go about grafting it into perl module link though. Yep, that's what it was. My mapserver makefile has this OGR section. Note OGR_LIB is blank, i guess because it's statically linked. # Optional OGR Support. OGC Simple Feature inspired interface for vector # formats. See http://gdal.velocet.ca/projects/opengis/ OGR= -DUSE_OGR OGR_LIB= OGR_INC= -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts -I/Users/a\ lex/ARC/gis/Mapserver/gdal-1.1.7/ogr -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7\ /ogr/../port OGR_STATIC= /Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmt\ s.a /Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogr.a /Users/alex/ARC/gis/Maps\ erver/gdal-1.1.7/ogr/../port/cpl.a The problem is that perl mapscript's Makefile.PL is not copying the 5th line from the "perlvars" file. The 5th line has the OGR stuff. I appended the contents of OGR_STATIC in mapserver makefile to the EXTRALIBS and LDLOADLIBS in the perl mapscript makefile, compiled and re-installed. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From nathanh at broszengineering.com Wed Aug 7 10:33:58 2002 From: nathanh at broszengineering.com (Hopper) Date: Wed, 7 Aug 2002 12:33:58 -0500 Subject: [mapserver-users] Compilation issues with gdal...no solution found in archives. Message-ID: <002b01c23e38$a1b52850$0b6410ac@broszengineering.com> After running into what appears to be the usual problems: the duplicate cc with mapscript, and now the libgdal issues, I've reached a point where I cannot proceed any further. Looking over the archives, I don't see any clear solution to the problem that the CGI has with gdal. After what appears to be a successful compilation, I get the following problems when trying to test the CGI by running ./mapserv. I get an error of "error while loading shared libraries: libgdal.1.1.so: cannot open shared object file: No such file or directory" Compilation was done by root. In ./configure, I specified the location of libgdal thinking that more specificity might help. Neither the automatic detection or the manual method has worked thus far; both gave the same result. I ran /sbin/ldconfig -v | grep gdal and noticed the following errors: /sbin/ldconfig: Cannot stat /usr/lib/libdb_cxx.so: No such file or directory /sbin/ldconfig: Cannot stat /usr/lib/libgeotiff.so: No such file or directory I highly doubt it made any difference with respect to the above error, but I did change the CFLAGS for i686 optimization for both mapscript and mapserv. Can anyone offer a suggestion as to why this might be happening? Also, the duplicate cc in the mapscript Makefile seems like such a common problem that a modification to the configure script might assist a great many people. It seems to have been a problem for at least a year. The problems I've experienced don't seem to be mentioned anywhere in the documentation, but perhaps I missed it. If that's the case, I apologize. I'm trying to compile Mapserver 3.6.1 on Mandrake 8.2. Regards, Nathan From steve.lime at dnr.state.mn.us Wed Aug 7 11:02:14 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Aug 2002 13:02:14 -0500 Subject: [mapserver-users] mapscript perl dependencies Message-ID: I've not tried building perl mapscript with OGR but will investigate. Just for grins will you file this as a bug in Bugzilla (mapserver.gis.umn.edu/bugs). Steve >>> Alex Rice 08/07/02 12:15PM >>> On Wednesday, August 7, 2002, at 06:36 AM, Frank Warmerdam wrote: > > For whatever reason, the above link does not appear to include the OGR > libraries. If you look in the MapServer Makefile you should see the > stuff needed for OGR in the "OGR_LIB" variable. I don't know how you > would go about grafting it into perl module link though. Yep, that's what it was. My mapserver makefile has this OGR section. Note OGR_LIB is blank, i guess because it's statically linked. # Optional OGR Support. OGC Simple Feature inspired interface for vector # formats. See http://gdal.velocet.ca/projects/opengis/ OGR= -DUSE_OGR OGR_LIB= OGR_INC= -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts -I/Users/a\ lex/ARC/gis/Mapserver/gdal-1.1.7/ogr -I/Users/alex/ARC/gis/Mapserver/gdal-1.1.7\ /ogr/../port OGR_STATIC= /Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogrsf_frmts/ogrsf_frmt\ s.a /Users/alex/ARC/gis/Mapserver/gdal-1.1.7/ogr/ogr.a /Users/alex/ARC/gis/Maps\ erver/gdal-1.1.7/ogr/../port/cpl.a The problem is that perl mapscript's Makefile.PL is not copying the 5th line from the "perlvars" file. The 5th line has the OGR stuff. I appended the contents of OGR_STATIC in mapserver makefile to the EXTRALIBS and LDLOADLIBS in the perl mapscript makefile, compiled and re-installed. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From steve.lime at dnr.state.mn.us Wed Aug 7 11:05:56 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Aug 2002 13:05:56 -0500 Subject: [mapserver-users] QUERYFILE and SAVEQUERY Message-ID: A queryfile stores the RESULTS of a query, that is for each layer what layers have query results and what features are in that result set. The query file does not capture the nature of the original query (i.e. what mode, query point or whatever). It was designed to allow browsing of a query without having to redo it. Make sense? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ryan, Adam" 08/06/02 07:00PM >>> I've been experimenting with SaveQuery and QueryFile, and I'm not clear on what the .qy file is telling mapserver. Does the .qy file specify the qlayer? More specifically, if I originally queried with qlayer = "Taxlots1", could I then set my qlayer = "Taxlots2" and apply the queryfile to Taxlots2 (assuming that the data source was the same)? What I really want to do is set the data source (I've got that done) and the visible features (the results of my query) of my queried layer to a generic 'select' layer, and then browse around without calling the query template. Am I making any sense? Thanks for any ideas on this, Adam Ryan Linn County From steve.lime at dnr.state.mn.us Wed Aug 7 11:14:49 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Aug 2002 13:14:49 -0500 Subject: [mapserver-users] Projecting like a sphere Message-ID: You'd have to test it. Wrap around capability has been tried several different ways in the past with no luck. Turns out that the feature spitting id pretty involved. At first we were just trying to replicate some of the images that the author of Proj.4 has in his manuals but after talking with him and doing some test it was decided that was beyond the scope of the the software at that time. I think we're talking about the same thing. In my case we wanted to show a gobal map (planar projection though) with North America centered in the projection (changed central meridian). With straight lat/lon data that mean't you had to display portions of Asia on the left and right hand sides of the map. Not possible with the software as it sits. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Roberto Micarelli 08/06/02 06:57PM >>> On Tuesday 06 August 2002 21:15, Paul Ramsey wrote: > That would be cool. If I am not mistaken, unlike a normal planar > projection, you will implement panning not by altering the extents of > the map, but by altering the origin of the projection. Fancy schmantzy. > It's a ortographic projection with wrap-around capability. Is Mapserver able to do this? Wrap-around can apply to other projections too. It should be as always dividing longitude by 360.0 before to project it and be aware that west edge should be greater than east. From TMitchell at lignum.com Wed Aug 7 11:19:58 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 7 Aug 2002 11:19:58 -0700 Subject: [mapserver-users] Feedback on my App, and host of questions Message-ID: >1) I've only tested this under IE 6 and NS 6 on Win2K. The dynamic legend >relies pretty heavilly on CSS stuff. I'm just curious how it works under >other OS's and browsers (BTW, is there a URL somewhere that allows one to do >this type of test... some type of "renderer" that will show you what your >page looks like under various OS / browser combinations...that would be >nice). These guys might have some tools or service to help you with that part of it: http://www.netmechanic.com From lists.ahaigh at dsl.pipex.com Wed Aug 7 11:26:11 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Wed, 07 Aug 2002 19:26:11 +0100 Subject: [mapserver-users] Rosa Message-ID: <3D516643.10002@dsl.pipex.com> All, I've used MapServer over the last year or so and I think that its great. However, has anybody got an updated version of the Rosa applet, that doesn't refresh the entire browser frame when you perform a zoom / etc operation? I did have a stab at writing something for my final year project at uni. but its not very good or robust! I Keep thinking about a re-write, but then I think about writting something in flash (like http://www.geofactory.com). Any ideas? Regards, Andrew From bruno_gendron at yahoo.com Wed Aug 7 11:50:16 2002 From: bruno_gendron at yahoo.com (Bruno Gendron) Date: Wed, 7 Aug 2002 14:50:16 -0400 Subject: [mapserver-users] Rosa References: <3D516643.10002@dsl.pipex.com> Message-ID: <005b01c23e43$482747e0$0264a8c0@bruno> Hi Andrew, Now that the Flash Player is able to load movies in JPEG format, it could be fairly easy for you to write a Flash interface with a Mapserver backend: look at http://eops.travelcom.com/msdemos/mtq/ for an really simple example I created recently. In this example, the Flash "movie" communicates with my own PHP-Mapscript backend by using a modified version of ArcXML (from ESRI). I plan to enhance this demo with complete Flash output using the upcoming Mapserver 3.7 version. Enjoy... =============================================== Bruno Gendron Consultant en TI et en g?omatique / IT and GIS Consultant Lachine, Qu?bec, Canada T?l: 514-634-7024 "Quand on connait l'?quilibre, on ne se passionne pour rien, on ne s'attache meme pas ? la vie, car on est la vie." ?mile Cioran ----- Original Message ----- From: "Andrew Haigh" To: "MapServer Mailing List" Sent: Wednesday, August 07, 2002 2:26 PM Subject: [mapserver-users] Rosa > All, > > I've used MapServer over the last year or so and I think that its great. > However, has anybody got an updated version of the Rosa applet, that > doesn't refresh the entire browser frame when you perform a zoom / etc > operation? > > I did have a stab at writing something for my final year project at uni. > but its not very good or robust! I Keep thinking about a re-write, but > then I think about writting something in flash (like > http://www.geofactory.com). > > Any ideas? > > Regards, > > Andrew > From raanders at acm.org Wed Aug 7 11:56:14 2002 From: raanders at acm.org (Roderick A. Anderson) Date: Wed, 7 Aug 2002 11:56:14 -0700 (PDT) Subject: [mapserver-users] Feedback on my App, and host of questions In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABC89@postoffice.GASAI.Com> Message-ID: On Wed, 7 Aug 2002, Hankley, Chip wrote: > I could use a little feedback / help on an app I just put up. > > http://www.gasai.com/GISApps/CMTViewer/ Galeon 1.0.2 on Redhat Linux 7.2+ errors out with these two lines. Warning: MapServer Error in msOpenSHPFile(): (staged_const\sc_fy08) in D:\HTML\Gasai\GISApps\CMTViewer\new_mapcontrols.php on line 219 Fatal error: Call to a member function on a non-object in D:\HTML\Gasai\GISApps\CMTViewer\new_mapcontrols.php on line 221 Rod -- "Open Source Software - Sometimes you get more than you paid for..." From lists.ahaigh at dsl.pipex.com Wed Aug 7 11:59:24 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Wed, 07 Aug 2002 19:59:24 +0100 Subject: [mapserver-users] Rosa References: <3D516643.10002@dsl.pipex.com> <005b01c23e43$482747e0$0264a8c0@bruno> Message-ID: <3D516E0C.7040704@dsl.pipex.com> Bruno, Thanks for the link. A very nice site! I'll see what I can come up with. Does anybody know of any free tools for writing flash in? Thanks Andrew Bruno Gendron wrote: >Hi Andrew, > >Now that the Flash Player is able to load movies in JPEG format, it could be >fairly easy for you to write a Flash interface with a Mapserver backend: >look at http://eops.travelcom.com/msdemos/mtq/ for an really simple example >I created recently. > >In this example, the Flash "movie" communicates with my own PHP-Mapscript >backend by using a modified version of ArcXML (from ESRI). > >I plan to enhance this demo with complete Flash output using the upcoming >Mapserver 3.7 version. > >Enjoy... > >=============================================== >Bruno Gendron >Consultant en TI et en g?omatique / IT and GIS Consultant >Lachine, Qu?bec, Canada > >T?l: 514-634-7024 > >"Quand on connait l'?quilibre, on ne se passionne pour rien, > on ne s'attache meme pas ? la vie, car on est la vie." > ?mile Cioran > > >----- Original Message ----- >From: "Andrew Haigh" >To: "MapServer Mailing List" >Sent: Wednesday, August 07, 2002 2:26 PM >Subject: [mapserver-users] Rosa > > > > >>All, >> >>I've used MapServer over the last year or so and I think that its great. >>However, has anybody got an updated version of the Rosa applet, that >>doesn't refresh the entire browser frame when you perform a zoom / etc >>operation? >> >>I did have a stab at writing something for my final year project at uni. >>but its not very good or robust! I Keep thinking about a re-write, but >>then I think about writting something in flash (like >>http://www.geofactory.com). >> >>Any ideas? >> >>Regards, >> >>Andrew >> >> >> > > > > From assefa at dmsolutions.ca Wed Aug 7 12:12:45 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 07 Aug 2002 15:12:45 -0400 Subject: [mapserver-users] Rosa References: <3D516643.10002@dsl.pipex.com> Message-ID: <3D51712D.A1A2B554@dmsolutions.ca> Hi There, This concerns the first part of your e-mail. Nonthing to do with Flash output. There is a mecanisime in the ROSA applet where you can pass a url to the applet and let the applet download the image instead of submitting the page. This functionnalty was used a couple of years ago with one project but was not testesd since (although I beleive It should still work). Here is the mecanisme using ROSA ,Javascript, PHP/Mapscript : - user does his interactions (like zoom 2 etc) - build a URL corresponding to the action of the user using javascript. (It is basicaly the same URL that would be sent to the user if you do a submit on the page). Eg : url = '/msapps/my_phpscript.php3?OUTPUTTOJAVA=1&zoom=2 - call the applet's function SetMapInformations with this URL (assuming her that the name in the applet tag in your html file is RosaApplet): document.RosaApplet.SetMapInformations(url); - in your script my_script.php3 , you could have something like this : $img = $gpoMap->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, -1); $outputdata = printf("MAPURL=%s\n", $url); echo $outputdata; - the applet will use the output and extarct the MAPURL and replace it's image with the one generated. It realize that this is a little bit confusing, and in this in the wish list to be able to update not only the image for rosa but all other parameters (like pixel size dor mesuring, etc...). Hope It helps, Andrew Haigh wrote: > All, > > I've used MapServer over the last year or so and I think that its great. > However, has anybody got an updated version of the Rosa applet, that > doesn't refresh the entire browser frame when you perform a zoom / etc > operation? > > I did have a stab at writing something for my final year project at uni. > but its not very good or robust! I Keep thinking about a re-write, but > then I think about writting something in flash (like > http://www.geofactory.com). > > Any ideas? > > Regards, > > Andrew -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Wed Aug 7 12:32:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Aug 2002 14:32:29 -0500 Subject: [mapserver-users] Wanted: Projection for the reference map Message-ID: You've not missed anything, that support is not available. Nor do I see this being add in the near term due to the ton's of other work going on. This should be added as a feature request to Bugzilla so that the idea is not lost. That said, there are other possibilties: There is nothing that says that you can't use two different MapServer applications on the same page. In reality you can mimic a reference map using a second mapping application. If you look closely at our Recreation Compass (http://www.dnr.state.mn.us/maps/compass.html) application you'll see we have done just that. I wanted a reference map that would display a filled box sometimes, a marker symbol when the was too small, and nothing when the box was too large (eg. you didn't need the reference map). Prior to 3.6.1 you couldn't do this the the reference map object. The solution was to use a second little application. Worked like a charm and required on a small bit of javascript. I would imagine you could do the same thing with a reference map in a second projection. You'd just have to use lat/lon as a go between coordinate system. Worth a look if this is functionality you need ASAP. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Havard Tveite 08/01/02 06:25AM >>> I can not find a possibility to describe a projection for the Reference Map Object in the Mapserver documentation. Have I overlooked something? In my opinion it would be very useful and practical to be able to use different projections for the reference map and the main map. This would, of course, in many cases lead to non-rectangular outlines on the reference map, so one would have to determine an appropriate level of detail for the outlines (from linear interpolation between the four corner points to a smooth rendering of the exact boundary curves). The lowest level of detail would imply four coordinate transformations while a high level of detail would lead to lots of coordinate transformations. The only effect I believe this would have on other elements is that "EXTENT" in the reference map object would have to be specified in the reference map coordinate system. -- H?vard Tveite Phone: +47 64948857 Department of Mapping Sciences Fax: +47 64948856 Agricultural University of Norway POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ From morissette at dmsolutions.ca Wed Aug 7 12:32:12 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 07 Aug 2002 15:32:12 -0400 Subject: [mapserver-users] generic way to access shape values from a query using phpmapscript References: <15696.62639.63744.12896@in3sun3.epfl.ch> Message-ID: <3D5175BC.BA52BA7@dmsolutions.ca> Sylvain Pasche wrote: > > I want to display query results using php mapscript. For the moment, > when I perform a query with msQueryByPoint, I get back a list of shape > id using the resultcache. Then, when I want to access the values from > the shape, I directly access the dbf on the disk to read the fields > values. > > This is ok for shapefile layers, but I would like to do the same with > other kind of layer, such as opengis, ogr, and others. > > Is there a way to do it with phpmapscript (ie: a generic way to read > layer item values) and if so, how could this be done ? > In PHP MapScript, the attribute (item) values are returned via a shapeObj array property called values. For instance, if your OGR data source contains a field called "Population", then after a call to $shape = $layer->getShape() you can access the Population attribute using: $shape->values["Population"] Note that you can use print_r( $shape->values ) in PHP to dump the content of the array and see what the attribute names are. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From dblasby at refractions.net Wed Aug 7 13:12:31 2002 From: dblasby at refractions.net (Dave Blasby) Date: Wed, 07 Aug 2002 13:12:31 -0700 Subject: [mapserver-users] CVS compile error Message-ID: <3D517F2F.72725F0E@refractions.net> On the code straight out of 3.7 CVS I get the following compile error: maplegend.c: In function `msEmbedLegend': maplegend.c:325: too many arguments to function `msAddLabel' make: *** [maplegend.o] Error 1 Have I done something wrong? dave From woodbri at swoodbridge.com Wed Aug 7 13:35:44 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 7 Aug 2002 16:35:44 -0400 Subject: [mapserver-users] Wanted: Projection for the reference map In-Reply-To: Message-ID: <3D514C60.4831.100EDE6C@localhost> Interesting that this just came up because I ran into this same problem just yesterday. The problem I had was not so much wanting the reference map to be projected, but the fact that I had created it in one projection and had later changed the mapfile's projection parameter to a different projection. If the reference map is not created in the same projection as the mapfile projection is does not work. It would be nice to be able to say WHAT projection the reference map was made in so you don't have to recreate the reference map if you change the projection parameters on the mapfile. On 7 Aug 2002 at 14:32, Steve Lime wrote: > You've not missed anything, that support is not available. Nor do I see > this being add in the near term due > to the ton's of other work going on. This should be added as a feature > request to Bugzilla so that the idea > is not lost. That said, there are other possibilties: > > There is nothing that says that you can't use two different MapServer > applications on the same page. In > reality you can mimic a reference map using a second mapping > application. If you look closely at our > Recreation Compass (http://www.dnr.state.mn.us/maps/compass.html) > application you'll see we have > done just that. I wanted a reference map that would display a filled > box sometimes, a marker symbol > when the was too small, and nothing when the box was too large (eg. you > didn't need the reference map). > Prior to 3.6.1 you couldn't do this the the reference map object. The > solution was to use a second > little application. Worked like a charm and required on a small bit of > javascript. I would imagine you could > do the same thing with a reference map in a second projection. You'd > just have to use lat/lon as a go > between coordinate system. Worth a look if this is functionality you > need ASAP. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Havard Tveite 08/01/02 06:25AM >>> > I can not find a possibility to describe a projection for the > Reference Map Object in the Mapserver documentation. Have I > overlooked something? > > In my opinion it would be very useful and practical to be > able to use different projections for the reference map and > the main map. > This would, of course, in many cases lead to non-rectangular > outlines on the reference map, so one would have to determine > an appropriate level of detail for the outlines (from linear > interpolation between the four corner points to a smooth > rendering of the exact boundary curves). The lowest level > of detail would imply four coordinate transformations while > a high level of detail would lead to lots of coordinate > transformations. > > The only effect I believe this would have on other elements > is that "EXTENT" in the reference map object would have to > be specified in the reference map coordinate system. > > > -- > H?vard Tveite Phone: +47 64948857 > Department of Mapping Sciences Fax: +47 64948856 > Agricultural University of Norway > POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ > From david.armstrong at ntlworld.com Wed Aug 7 13:58:42 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Wed, 7 Aug 2002 21:58:42 +0100 Subject: [mapserver-users] Help ! setting mapscript as CGI Message-ID: <000d01c23e55$36f3e110$727ba8c0@davidpc> Just upgrading ! has anyone on the list successfully set php mapcript as CGI under windows ( apache & php 4.2.2) i have read the wiki but still have problems, running PHPDEV5 beta 3 from http://www.firepages.com.au Regards Dave From Rich at GreenwoodMap.com Wed Aug 7 15:21:50 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 07 Aug 2002 16:21:50 -0600 Subject: [mapserver-users] Wanted: Projection for the reference map In-Reply-To: <3D514C60.4831.100EDE6C@localhost> References: Message-ID: <5.1.0.14.0.20020807161718.026042f0@mail.GreenwoodMap.com> Sort of related to the projection issue is a "wish list" item for the reference map that I've been thinking about - It would be nice to have different reference maps for different scales or locations. e.g. the user starts with a reference map of the united states, but when they zoom into Rhode Island they would get a reference map of RI. Obviously there are probably some pretty straight forward ways to achieve this, but if somebody is going to re-work the reference map then I'd throw that out for consideration. Rich At 04:35 PM 8/7/2002 -0400, you wrote: >Interesting that this just came up because I ran into this same >problem just yesterday. The problem I had was not so much wanting the >reference map to be projected, but the fact that I had created it in >one projection and had later changed the mapfile's projection >parameter to a different projection. If the reference map is not >created in the same projection as the mapfile projection is does not >work. It would be nice to be able to say WHAT projection the >reference map was made in so you don't have to recreate the reference >map if you change the projection parameters on the mapfile. > >On 7 Aug 2002 at 14:32, Steve Lime wrote: > > > You've not missed anything, that support is not available. Nor do I see > > this being add in the near term due > > to the ton's of other work going on. This should be added as a feature > > request to Bugzilla so that the idea > > is not lost. That said, there are other possibilties: > > > > There is nothing that says that you can't use two different MapServer > > applications on the same page. In > > reality you can mimic a reference map using a second mapping > > application. If you look closely at our > > Recreation Compass (http://www.dnr.state.mn.us/maps/compass.html) > > application you'll see we have > > done just that. I wanted a reference map that would display a filled > > box sometimes, a marker symbol > > when the was too small, and nothing when the box was too large (eg. you > > didn't need the reference map). > > Prior to 3.6.1 you couldn't do this the the reference map object. The > > solution was to use a second > > little application. Worked like a charm and required on a small bit of > > javascript. I would imagine you could > > do the same thing with a reference map in a second projection. You'd > > just have to use lat/lon as a go > > between coordinate system. Worth a look if this is functionality you > > need ASAP. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Havard Tveite 08/01/02 06:25AM >>> > > I can not find a possibility to describe a projection for the > > Reference Map Object in the Mapserver documentation. Have I > > overlooked something? > > > > In my opinion it would be very useful and practical to be > > able to use different projections for the reference map and > > the main map. > > This would, of course, in many cases lead to non-rectangular > > outlines on the reference map, so one would have to determine > > an appropriate level of detail for the outlines (from linear > > interpolation between the four corner points to a smooth > > rendering of the exact boundary curves). The lowest level > > of detail would imply four coordinate transformations while > > a high level of detail would lead to lots of coordinate > > transformations. > > > > The only effect I believe this would have on other elements > > is that "EXTENT" in the reference map object would have to > > be specified in the reference map coordinate system. > > > > > > -- > > H?vard Tveite Phone: +47 64948857 > > Department of Mapping Sciences Fax: +47 64948856 > > Agricultural University of Norway > > POBox 5034, N-1432 ?s, NORWAY http://www.nlh.no/ikf/ > > Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From david.armstrong at ntlworld.com Wed Aug 7 16:56:53 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 8 Aug 2002 00:56:53 +0100 Subject: [mapserver-users] how to :- setting up php as CGI for windows apache Message-ID: <004f01c23e6e$1b10dd90$727ba8c0@davidpc> just for other users of windows if you need to alter your install for php mapscript to work as CGI here's my modified entrys LoadModule php4_module C:/phpdev5/php/sapi/php4apache.dll AddType application/x-httpd-php .php4 .php .htm .inc .fire #removed .phtml .PHP3 from the above line php mapscript requires CGI AddType application/x-httpd-php-source .phps #for MAPSERVER php mapscript use #Just make sure scripts for php mapscript use ".phtml" extensions ScriptAlias /php/ "C:/phpdev5/php/" AddType application/x-httpd-php_cgi .phtml .php3 Action application/x-httpd-php_cgi "/php/php.exe" no other changes are required hope it helps ! Dave From petukhov at ozemail.com.au Wed Aug 7 20:00:37 2002 From: petukhov at ozemail.com.au (petukhov at ozemail.com.au) Date: Thu, 8 Aug 2002 13:00:37 +1000 Subject: [mapserver-users] Oracle Spatial - MapServer - Cold Fusion - WEB Message-ID: <20020808030037.BWUX622.mta06.mail.mel.aone.net.au@[127.0.0.1]> Hi All! I'm just starting my GIS application. I think I could build it using Oracle Spatial, MapServer, Cold Fusion Applicaion Server. Where Do I start? What formats of maps should I use? How do I load them into Oracle? How do I access them form MapServer? How do serve them to the WEB with CF? Any help links, sugestions, samples, etc. are very welcome! Cheers. Boris Petukhov. This message was sent through MyMail http://www.mymail.com.au From steve.lime at dnr.state.mn.us Wed Aug 7 20:53:48 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Aug 2002 22:53:48 -0500 Subject: [mapserver-users] Has anybody seen this site/product: Message-ID: http://www.earthviewer.com/ Sounds cool, almost too cool. Makes me wonder then... Steve From hdi12 at it.canterbury.ac.nz Wed Aug 7 21:37:53 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Thu, 08 Aug 2002 16:37:53 +1200 Subject: [mapserver-users] WMS Style tag Message-ID: <3D4EA687@webmail> Hi all, Does anyone know what mapfile objects correspond to WMS Style tag? Cheers, Hao From Hugues.Parvillers at AgdF.com Wed Aug 7 22:28:13 2002 From: Hugues.Parvillers at AgdF.com (Hugues Parvillers) Date: Thu, 08 Aug 2002 07:28:13 +0200 Subject: [mapserver-users] Oracle Spatial - MapServer - Cold Fusion - WEB References: <20020808030037.BWUX622.mta06.mail.mel.aone.net.au@[127.0.0.1]> Message-ID: <3D52016D.AB90D384@AgdF.com> Hello Boris, Oracle Spatial store geometries and not maps. >From these datas you can make maps. So what are your data !? H/P petukhov at ozemail.com.au a ?crit : > Hi All! > > I'm just starting my GIS application. > > I think I could build it using Oracle Spatial, MapServer, Cold Fusion Applicaion Server. > > Where Do I start? > > What formats of maps should I use? > How do I load them into Oracle? > How do I access them form MapServer? > How do serve them to the WEB with CF? > > Any help links, sugestions, samples, etc. are very welcome! > > Cheers. > > Boris Petukhov. > > This message was sent through MyMail http://www.mymail.com.au From pucher at atlas.gis.univie.ac.at Wed Aug 7 23:59:38 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 08 Aug 2002 08:59:38 +0200 Subject: [mapserver-users] Rosa References: <3D516643.10002@dsl.pipex.com> Message-ID: <3D5216DA.6020300@atlas.gis.univie.ac.at> Andrew, we use such a functionality with the AOS http://www.aos.ac.at with he mapplet, not the ROSA applet!! regards alex Andrew Haigh wrote: > All, > > I've used MapServer over the last year or so and I think that its > great. However, has anybody got an updated version of the Rosa applet, > that doesn't refresh the entire browser frame when you perform a zoom > / etc operation? > > I did have a stab at writing something for my final year project at > uni. but its not very good or robust! I Keep thinking about a > re-write, but then I think about writting something in flash (like > http://www.geofactory.com). > > Any ideas? > > Regards, > > Andrew > > > > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From pucher at atlas.gis.univie.ac.at Thu Aug 8 00:08:19 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 08 Aug 2002 09:08:19 +0200 Subject: [mapserver-users] Feedback on my App, and host of questions References: <3DFF131E4E6D2D4198CDD758F35A5353010ABC89@postoffice.GASAI.Com> Message-ID: <3D5218E3.4060808@atlas.gis.univie.ac.at> Hankley, Chip wrote: >I could use a little feedback / help on an app I just put up. > >http://www.gasai.com/GISApps/CMTViewer/ > >This should present you with a log on screen. Choose the "Anonymous" access >button. Our web server's a dog, so be patient. The application uses PHP- >MapScript and Rosa. A lot of the users of this app have relatively low >screen res (800 x 600), so I'm using an "expandable legend" to save on >screen real-estate. > >1) I've only tested this under IE 6 and NS 6 on Win2K. The dynamic legend >relies pretty heavilly on CSS stuff. I'm just curious how it works under >other OS's and browsers (BTW, is there a URL somewhere that allows one to do > >this type of test... some type of "renderer" that will show you what your >page looks like under various OS / browser combinations...that would be >nice). > Works without any problem with Mozilla 1.0 on SuSE Linux 8.0 ! regards alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From pucher at atlas.gis.univie.ac.at Thu Aug 8 02:58:58 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 08 Aug 2002 11:58:58 +0200 Subject: [mapserver-users] 24bit images support Message-ID: <3D5240E2.7070303@atlas.gis.univie.ac.at> Hi, can somebody give me the latest news on the integration of 24bit image support in mapserver. I know this relates in some way to GD 2. regards alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From pucher at atlas.gis.univie.ac.at Thu Aug 8 03:31:33 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Thu, 08 Aug 2002 12:31:33 +0200 Subject: [mapserver-users] PostGIS spatial query performance Message-ID: <3D524885.5030304@atlas.gis.univie.ac.at> Hi, I have a question concerning the performance of a spatial query in PostGIS. -) I put all GMAP demo layers into my PostgreSQL/PostGIS database. -) I created GIST indexes for all tables. create index park_gist on park using GIST (the_geom GIST_GEOMETRY_OPS) . . . -) Did vacuum analyze all tables. OK, I want to query all parks in the GMAP demo that have a road running through them. My SQL query: SELECT park.* FROM park, road WHERE DISTANCE(park.the_geom, road.the_geom) < 2 EXPLAIN SELECT park.* FROM park, road WHERE DISTANCE(park.the_geom, road.the_geom) < 2 gives me the following output: Nested Loop (cost=0.00..8917.66 rows=23736 width=163) -> Seq Scan on park (cost=0.00..7.46 rows=46 width=131) -> Seq Scan on road (cost=0.00..170.48 rows=1548 width=32) the query works fine and gives me the correct result after.....about 6 minutes ( on my 1Ghz Notebook)!! I expected the result to be there within seconds?!? Something wrong with the indexes?? Any help is welcome. regards alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From amorin at NRCan.gc.ca Thu Aug 8 05:09:46 2002 From: amorin at NRCan.gc.ca (Morin, Annie) Date: Thu, 8 Aug 2002 08:09:46 -0400 Subject: [mapserver-users] Oracle Spatial - MapServer - Cold Fusion - WEB Message-ID: <06B403677C41D51194550002A55107D28C2797@s5-stf1-r1.nrn.nrcan.gc.ca> Boris, I suggest you to begin with basic mapserver config and shape files rather beginning with Oracle. Then after, include ColdFusion. I can give you hints about how I used ColdFusion with mapserver. Maybe someone else could help with Oracle Spatial. Annie -----Message d'origine----- De: petukhov at ozemail.com.au A: mapserver-users at lists.gis.umn.edu Date: 7/08/2002 23:00 Objet: [mapserver-users] Oracle Spatial - MapServer - Cold Fusion - WEB Hi All! I'm just starting my GIS application. I think I could build it using Oracle Spatial, MapServer, Cold Fusion Applicaion Server. Where Do I start? What formats of maps should I use? How do I load them into Oracle? How do I access them form MapServer? How do serve them to the WEB with CF? Any help links, sugestions, samples, etc. are very welcome! Cheers. Boris Petukhov. This message was sent through MyMail http://www.mymail.com.au From oskhom at yahoo.com Thu Aug 8 06:24:46 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Thu, 8 Aug 2002 06:24:46 -0700 (PDT) Subject: [mapserver-users] Time & Refresh Message-ID: <20020808132446.71512.qmail@web10410.mail.yahoo.com> Dear Users, I like to know how can I automatically upload my home page to client who has opened and is watching to that every X minutes as regular. X can be any time interval like 1,5,10 minutes and so on. Thanks, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From wesp at gdv.com Thu Aug 8 08:23:17 2002 From: wesp at gdv.com (Oliver Wesp) Date: Thu, 8 Aug 2002 17:23:17 +0200 Subject: AW: [mapserver-users] Time & Refresh In-Reply-To: <20020808132446.71512.qmail@web10410.mail.yahoo.com> Message-ID: <000101c23eef$85e246a0$1501a8c0@else> This will reload the page specified in url every 60 seconds. Is that what you mean or am I getting something totally wrong. Oliver > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] Im Auftrag > von ALI OSKUE > Gesendet: Donnerstag, 8. August 2002 15:25 > An: mapserver-users at lists.gis.umn.edu > Betreff: [mapserver-users] Time & Refresh > > > Dear Users, > > I like to know how can I automatically upload my home > page to client who has opened and is watching to that > every X minutes as regular. X can be any time interval > like 1,5,10 minutes and so on. > > Thanks, > > A-K-Oskue. > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > From DMartin at erac.com Thu Aug 8 08:53:57 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 8 Aug 2002 10:53:57 -0500 Subject: [mapserver-users] Feedback on my App, and host of questions Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2A3@STL-EXBE-I03.corp.erac.com> Chip, I like your app. One thing you might try though - in your checkboxes in the legend, add this code: onClick="document.frmMapInfo.submit();" This can of course be more bandwidth intensive, but I find it to be much more intuitive with a legend like yours. -Dan -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Wednesday, August 07, 2002 11:18 AM To: MapServer List (E-mail) Subject: [mapserver-users] Feedback on my App, and host of questions I could use a little feedback / help on an app I just put up. http://www.gasai.com/GISApps/CMTViewer/ This should present you with a log on screen. Choose the "Anonymous" access button. Our web server's a dog, so be patient. The application uses PHP- MapScript and Rosa. A lot of the users of this app have relatively low screen res (800 x 600), so I'm using an "expandable legend" to save on screen real-estate. 1) I've only tested this under IE 6 and NS 6 on Win2K. The dynamic legend relies pretty heavilly on CSS stuff. I'm just curious how it works under other OS's and browsers (BTW, is there a URL somewhere that allows one to do this type of test... some type of "renderer" that will show you what your page looks like under various OS / browser combinations...that would be nice). 2) The behavior under Netscape 6 is weird. Netscape won't pass form variables for elements in a DIV that is hidden. For example, expand 'Base Data' by clicking the blue bullet, turn on 'General Labels', then contract 'Base Data' by clicking the red bullet, then hit the 'redraw the map' button. You'll see that everything that was checked under 'Base Data' is now NOT checked. Not suprisingly, this does NOT happen under IE. 3) The way I was going to get around the issue in #2 was to simply expand all of the items right before the form was submitted (for NS users), using the onSubmit event. However, the ROSA applet seems to ignore the onSubmit event for some reason. Anyone know why, or a way around this? 4) I'm using JPEG as the image format, and am not very happy with the way it looks (vector stuff seems to 'bleed'). I don't want to use GIF b/c of the Unisys thing (they want $3500 for us to license GIF). 4a) I thought I heard some rumblings about PNG support (using 'sixlegs?') in ROSA... what became of this? 4b) On my box, I have the Java 2 (v1.3.1_02) VM installed. When using this, ROSA works great with PNG images. I had this idea of a little JS that would detect what version of Java the user had, and respond accordingly (JPEG for less than Java 2, PNG for greater), but I can't find a way to detect WHICH version of Java the client has. Is there a way to do this? Thanks for the input! Chip Hankley From Chip.Hankley at GASAI.Com Thu Aug 8 09:39:45 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 8 Aug 2002 11:39:45 -0500 Subject: [mapserver-users] OGR - ArcInfo Coverage Help Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCA6@postoffice.GASAI.Com> I can't seem to get the annotation layer in a AI coverage to render through OGR... is this possible? I've included some outputs from OGRINFO as well as the layer def from my mapfile. The issue seems to be the specification of LABELITEM for the layer. When I do this, no image is returned (no error, either). TIA! Chip =================================================================== C:\>ogrinfo bridges Had to open data source read-only. INFO: Open of `bridges' using driver `AVCBin' successful. 1: ARC (Line String) 2: LAB (Point) 3: igds (Point) ... a sampling of C:\>ogrinfo bridges igds OGRFeature(igds):479 UserId (Integer) = 18555 Text (String) = NB USH 51 RAMP Height (Real) = 17.500002 Level (Integer) = 51 POINT (288221.869 179078.766) OGRFeature(igds):480 UserId (Integer) = 18569 Text (String) = EB STH 29 Height (Real) = 17.500002 Level (Integer) = 51 POINT (289595.610 173873.979) ... and the pertinent part of the mapfile. LAYER NAME "Parks_cov" TYPE POINT CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\Wausau\data\DGN_temp\bridges, IGDS" STATUS default CLASSITEM "UserID" LABELITEM "Text" <= this causes something to choke. CLASS EXPRESSION /./ LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT ARIAL POSITION LC SIZE 8 COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END END From lists.ahaigh at dsl.pipex.com Thu Aug 8 09:51:44 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Thu, 08 Aug 2002 17:51:44 +0100 Subject: [mapserver-users] Time & Refresh References: <20020808132446.71512.qmail@web10410.mail.yahoo.com> Message-ID: <3D52A1A0.9080906@dsl.pipex.com> Assuming that you want to reload the page you can include the following line in your HTML Head object: You'll need to write out the refresh url at page creation time either in PHP or using JavaScript i.e.: My Map Page etc If you want to just reload an image, you can use javascript timer. Hope this helps, Andrew ALI OSKUE wrote: >Dear Users, > >I like to know how can I automatically upload my home >page to client who has opened and is watching to that >every X minutes as regular. X can be any time interval >like 1,5,10 minutes and so on. > >Thanks, > >A-K-Oskue. > >__________________________________________________ >Do You Yahoo!? >HotJobs - Search Thousands of New Jobs >http://www.hotjobs.com > > > From alex_rice at arc.to Thu Aug 8 10:33:17 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 8 Aug 2002 11:33:17 -0600 Subject: [mapserver-users] learning mapscript Message-ID: I'm working with Perl mapscript. The only documentation for mapscript API I've found so far is the README for the PHP mapscript. I was wondering if there is any general "mapscript API" documentation out there? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From TMitchell at lignum.com Thu Aug 8 11:33:45 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 8 Aug 2002 11:33:45 -0700 Subject: [mapserver-users] OGR - ArcInfo Coverage Help Message-ID: Are you able to view it as TYPE ANNOTATION? I know what you are trying to do, but haven't had a lot of success doing it myself (and it was a while ago). I've done a lot of OGR stuff though and wonder if you need put some single quotes in addition to the double quotes around the label item field name. I had to do this for coverage data that I put into postgresql using ogr2ogr. "Hankley, Chip" To: "MapServer List (E-mail)" Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] OGR - ArcInfo Coverage Help 08/08/2002 09:39 AM I can't seem to get the annotation layer in a AI coverage to render through OGR... is this possible? I've included some outputs from OGRINFO as well as the layer def from my mapfile. The issue seems to be the specification of LABELITEM for the layer. When I do this, no image is returned (no error, either). TIA! Chip =================================================================== C:\>ogrinfo bridges Had to open data source read-only. INFO: Open of `bridges' using driver `AVCBin' successful. 1: ARC (Line String) 2: LAB (Point) 3: igds (Point) ... a sampling of C:\>ogrinfo bridges igds OGRFeature(igds):479 UserId (Integer) = 18555 Text (String) = NB USH 51 RAMP Height (Real) = 17.500002 Level (Integer) = 51 POINT (288221.869 179078.766) OGRFeature(igds):480 UserId (Integer) = 18569 Text (String) = EB STH 29 Height (Real) = 17.500002 Level (Integer) = 51 POINT (289595.610 173873.979) ... and the pertinent part of the mapfile. LAYER NAME "Parks_cov" TYPE POINT CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\Wausau\data\DGN_temp\bridges, IGDS" STATUS default CLASSITEM "UserID" LABELITEM "Text" <= this causes something to choke. CLASS EXPRESSION /./ LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT ARIAL POSITION LC SIZE 8 COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END END From lfilak at medinaco.org Thu Aug 8 12:20:11 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 08 Aug 2002 15:20:11 -0400 Subject: [mapserver-users] learning mapscript Message-ID: <200208081907.g78J7u800863@yogi.medinaco.net> Hopefully these help: http://mapserver.gis.umn.edu/doc35/perlmapscript-reference.html , http://mapserver.gis.umn.edu/doc36/perlmapscript-reference.html & http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScript Lowell F. The following message was sent by Alex Rice on Thu, 8 Aug 2002 11:33:17 -0600. > I'm working with Perl mapscript. The only documentation for > mapscript API I've found so far is the README for the PHP > mapscript. I was wondering if there is any general "mapscript > API" documentation out there? > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > From alexys_6 at yahoo.es Thu Aug 8 12:04:16 2002 From: alexys_6 at yahoo.es (=?iso-8859-1?Q?Alexys_Herleym_Rodr=EDguez_Avellaneda?=) Date: Thu, 8 Aug 2002 14:04:16 -0500 Subject: [mapserver-users] 3.5 build problem with wmsclient Message-ID: <005901c23f0e$780e2480$ed631ec8@NICOLLE> I ran into a problem with Mapserver 3.5. This problem occured when I added --with-wmsclient to ./configure Please, Any ideas? I thought that the reason was the bug 82 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=82), but this don't work. Thanks. -Alexys ********** [root at nana mapserver_3.5]# ./configure --with-gd=/usr/local --with-tiff=/usr/local --with-jpeg=/usr --with-zlib=/usr/local --with-png=/usr/local --with-eppl --with-proj=/usr/local --with-mpatrol=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclient --with-php=/tmp1/php-4.0.6 --with-apxs=/usr/sbin/apxs --disable-rxposix-conflict-error creating cache ./config.cache checking for gcc... 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... yes checking whether gcc accepts -g... yes checking for c++... 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++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking whether we should include JPEG support... using libjpeg from system -L/usr/lib -ljpeg checking which version of GD to use... using libgd from -L/usr/local/lib -lgd checking where FreeType is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. checking where Zlib is installed... using libz from -L/usr/local/lib -lz checking where PNG is installed... using libpng from -L/usr/local/lib -lpng checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageString16 in -lc... yes checking for gdImageGifPtr in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR) from /usr/local. 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... no libpdf not found... PDF support not included. checking whether we should include TIFF support... using libtiff from -L/usr/local/lib -ltiff. checking whether we should include EPPL7 support... including EPPL7 support. checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from /usr/local. checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking whether we should compile in MPATROL support... using MPATROL from /usr/local. checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config checking for OGRRegisterAll in -lgdal.1.1... yes using OGR from system libs. checking if GDAL support requested... yes, user supplied gdal-config 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 enabled (-DUSE_WMS). checking whether we should include WMS Client Connections support... checking for libwww-config... /usr/local/bin/libwww-config found libwww version 5.3.2 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). checking for potential conflict between system regex and rxposix... checking for regexec in -lrx... no 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... /tmp1/php-4.0.6/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. checking for location of Apache headers using apxs... -I/usr/include/apache updating cache ./config.cache creating ./config.status creating Makefile creating mapscript/php3/Makefile [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# [root at nana mapserver_3.5]# make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplexer.c -o maplexer.o maplexer.c:3125: warning: `yyunput' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H 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_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapproject.c -o mapproject.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapraster.c -o mapraster.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapsde.c -o mapsde.o c++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MPATROL -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H mapwmslayer.c -o mapwmslayer.o In file included from /usr/local/include/w3c-libwww/WWWXML.h:57, from /usr/local/include/w3c-libwww/HTInit.h:144, from /usr/local/include/w3c-libwww/WWWInit.h:51, from mapwmslayer.c:115: /usr/local/include/w3c-libwww/HTXML.h:104:3: warning: "/*" within comment In file included from /usr/local/include/w3c-libwww/wwwsys.h:956, from /usr/local/include/w3c-libwww/WWWLib.h:50, from mapwmslayer.c:113: /usr/include/malloc.h:159: redefinition of `struct mallinfo' make: *** [mapwmslayer.o] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex_rice at arc.to Thu Aug 8 14:13:45 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 8 Aug 2002 15:13:45 -0600 Subject: [mapserver-users] Flash + mapserver usage q. Message-ID: I have seen mention on this list of: 1) using Ming libs to output SWF maps on the server side w/ mapserver. 2) using Flash interface to present JPEGs or whatever bitmaps produced by mapserver. However, has anyone worked on writing a Flash movie that will render on the client side a map + navigation interface from a WML session or GML stream coming from mapserver? I think current Flash versions have built in HTTP, javscript and XML parsing. Seems like this would be a nice solution. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From mckenna at dmsolutions.ca Thu Aug 8 14:41:49 2002 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 08 Aug 2002 17:41:49 -0400 Subject: [mapserver-users] OGR - ArcInfo Coverage Help References: <3DFF131E4E6D2D4198CDD758F35A5353010ABCA6@postoffice.GASAI.Com> Message-ID: <3D52E59D.461A7121@dmsolutions.ca> Chip, I've experienced similar problems with labelling coverages (my symbols appear but the labels look like they are in a different projection, way off from the symbols). We've filed it as a bug (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=184) and we'll be investigating it. Jeff "Hankley, Chip" wrote: > > I can't seem to get the annotation layer in a AI coverage to render through > OGR... is this possible? I've included some outputs from OGRINFO as well as > the layer def from my mapfile. > > The issue seems to be the specification of LABELITEM for the layer. When I > do this, no image is returned (no error, either). > > TIA! > > Chip > > =================================================================== > > C:\>ogrinfo bridges > Had to open data source read-only. > INFO: Open of `bridges' > using driver `AVCBin' successful. > 1: ARC (Line String) > 2: LAB (Point) > 3: igds (Point) > > ... a sampling of > > C:\>ogrinfo bridges igds > > OGRFeature(igds):479 > UserId (Integer) = 18555 > Text (String) = NB USH 51 RAMP > Height (Real) = 17.500002 > Level (Integer) = 51 > POINT (288221.869 179078.766) > > OGRFeature(igds):480 > UserId (Integer) = 18569 > Text (String) = EB STH 29 > Height (Real) = 17.500002 > Level (Integer) = 51 > POINT (289595.610 173873.979) > > ... and the pertinent part of the mapfile. > > LAYER > NAME "Parks_cov" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "C:\Inetpub\wwwroot\Wausau\data\DGN_temp\bridges, IGDS" > STATUS default > CLASSITEM "UserID" > LABELITEM "Text" <= this causes something to choke. > CLASS > EXPRESSION /./ > LABEL > TYPE TRUETYPE > ANTIALIAS TRUE > FONT ARIAL > POSITION LC > SIZE 8 > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > END > END > END -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From wzhang at c-cor.net Thu Aug 8 17:07:45 2002 From: wzhang at c-cor.net (Zhang, William) Date: Thu, 8 Aug 2002 20:07:45 -0400 Subject: [mapserver-users] Simple Map File Question Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4E5@pltnpo1.c-cor.com> Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 From alexys_6 at yahoo.es Thu Aug 8 19:11:10 2002 From: alexys_6 at yahoo.es (=?iso-8859-1?Q?Alexys_Herleym_Rodr=EDguez_Avellaneda?=) Date: Thu, 8 Aug 2002 21:11:10 -0500 Subject: [mapserver-users] connection has been interrupted! Message-ID: <008001c23f4a$1807f660$e9631ec8@NICOLLE> Hi, I'm working with mapserver3.5 with map_script y php 4.0.6 in redhat 7.1. The installation was successful. I test the file phpinfo_mapscript.phtml and work fine, but when test the file test_draw_map.phtml or the files of "PHP Mapscript 3.5 by example Howto" the netscape send the next message: The connection with nana.ingeo.com has been interrupted! and the file error-log of apache read: [Thu Aug 8 20:02:30 2002] [notice] child pid 1938 exit signal Aborted (6) somebody can give me help? Thanks, Alexys H. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dholeman1 at cox.net Thu Aug 8 19:44:53 2002 From: dholeman1 at cox.net (Don Holeman) Date: Thu, 8 Aug 2002 22:44:53 -0400 Subject: [mapserver-users] Mapserver Bootstrap Group References: <68107A9AF023EA439FF7CC2AD02D8FE503A4E5@pltnpo1.c-cor.com> Message-ID: <012501c23f4e$bd5ec9a0$97f90044@ri.cox.net> I am about at this step too, having compiled mapserver and walked through the tutorial and studied the page composition of the tutorial examples. I've been following discussons on this list as well, and while I'm learning a lot of intermediate and advanced material I'm missing a lot of the basics, which I'm rather embarrased to bother this list with as I know how redundant such questions get. Would anyone in the same boat care to join me in creating a short-term Mapserver bootstrap group at yahoogroups where we could handhold each other while we get ourselves up to speed with respect to the basics of GIS and Mapserver? If so, you can join me here: http://groups.yahoo.com/group/bootstrappingmapserver/ Best, Don Holeman ----- Original Message ----- From: "Zhang, William" To: Sent: Thursday, August 08, 2002 8:07 PM Subject: [mapserver-users] Simple Map File Question Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.377 / Virus Database: 211 - Release Date: 7/15/02 From alex_rice at arc.to Thu Aug 8 22:09:29 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 8 Aug 2002 23:09:29 -0600 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module Message-ID: <2EB00C12-AB56-11D6-ACD2-000393529642@arc.to> Has anyone messed about with Perl Mapscript and the CGI::MiniSvr module? Running a CGI perl script and loading the CGI perl module and the Mapscript perl module has a lot of overhead and will noticeably slow you down. Yeah I know it's just noise compared to reading many MB of shapefiles, but another way to consider it is: you don't want to make your web app any slower than it already is just by using a plain old CGI script. If it can be worked around. CGI::MiniSvr is kind of like a temporary mod perl, except it has nothing to do with Apache DSOs. And it doesn't require Fast CGI. Instead it forks a mini httpd process and temporarily maintains the state of the web application. This means that one could do something like this: - load the mapscript module (only once). - load the CGI module (once). - read the mapserver .map file (once) - create some other mapserver objects (once) - fork the mini server. - then handle a bunch of requests from a particular client on port xxxxx. ->tweak mapserver objects ->perform queries ->generate maps ->etc - timeout after a short while, how long depending on the server load. OK, I haven't actually got it working yet, but I thought it was neat enough to share. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From ma at t-kartor.se Fri Aug 9 03:38:25 2002 From: ma at t-kartor.se (Matthew Archer) Date: Fri, 09 Aug 2002 12:38:25 +0200 Subject: [mapserver-users] OGR - ArcInfo Coverage Help Message-ID: <5.1.0.14.0.20020809114226.00b0e880@snovit.t-kartor.se> Hi, I am trying to draw ArcInfo annotation via OGR, using MapServer v3.6.1 (windows binary) on Windows NT. I cannot get MapServer to draw the actual annotation text. Is this possible, have i got a syntax error somewhere. regards /Matthew Extract from arc DESCRIBE command on cover: Description of DOUBLE precision coverage anno15b FEATURE CLASSES Number of Attribute Spatial Feature Class Subclass Features data (bytes) Index? ------------- -------- --------- ------------ ------- ANNOTATIONS SDE 2188 524 Yes Extract from arc ITEMS anno15b.tatsde command on cover: ITEM NAME WIDTH OUTPUT TYPE SDE# 4 5 B SDE-ID 4 5 B OBJECT_ID 4 10 B ANNOTYPE 30 30 C NAME 250 250 C --------------------------------------------------------- Using the following syntax with TYPE=Point: LAYER NAME anno15 TYPE POINT CONNECTIONTYPE OGR CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" STATUS default CLASS COLOR 0 0 0 END END Mapserver draws points at the start of where each annotation string should be. --------------------------------------------------------- Using the following syntax with TYPE=Annotation: LAYER NAME anno15 TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" STATUS default CLASS COLOR 0 0 0 END END Mapserver draws nothing for this layer, but gives no error either. The rest of the layers still draw. --------------------------------------------------------- Using the following syntax with TYPE=Annotation and with a TEXT fixed label: LAYER NAME anno15 TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" STATUS default CLASS COLOR 0 0 0 TEXT "hello" LABEL COLOR 0 0 0 END END END Mapserver draws the default text where each annotation string should have been. --------------------------------------------------------- Using the following syntax with TYPE=Annotation and with a LABELITEM: LAYER NAME anno15 TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" STATUS default LABELITEM "NAME" CLASS COLOR 0 0 0 END END MapServer gives the error: msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME I have tried both NAME,name,Name without success -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolasb at maich.gr Fri Aug 9 04:21:04 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Fri, 09 Aug 2002 14:21:04 +0300 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module References: <2EB00C12-AB56-11D6-ACD2-000393529642@arc.to> Message-ID: <3D53A5A0.903@maich.gr> Alex Rice wrote: > Has anyone messed about with Perl Mapscript and the CGI::MiniSvr module? > > Running a CGI perl script and loading the CGI perl module and the > Mapscript perl module has a lot of overhead and will noticeably slow you Hi, This sounds similar to what I am doing by using the tclmapscript module inside the tclwebserver. I load the mapscript module into the interpreter that the httpd process also runs in. It seems faster than the mapserv cgi for the basic things I am doing, and requires very little overhead. A potential bottleneck that I see is that longer running db calls would block the webserver. To this end we are looking into threading, or at least to move potential db requests back into the mapserv.cgi..... anyway, nicolas boretos > - load the mapscript module (only once). > - load the CGI module (once). > - read the mapserver .map file (once) > - create some other mapserver objects (once) > - fork the mini server. > - then handle a bunch of requests from a particular client on port xxxxx. > ->tweak mapserver objects > ->perform queries > ->generate maps > ->etc > - timeout after a short while, how long depending on the server load. > > OK, I haven't actually got it working yet, but I thought it was neat > enough to share. > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > > > > . > From woodbri at swoodbridge.com Fri Aug 9 05:01:08 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 9 Aug 2002 08:01:08 -0400 Subject: [mapserver-users] Mapserver Bootstrap Group In-Reply-To: <012501c23f4e$bd5ec9a0$97f90044@ri.cox.net> Message-ID: <3D5376C4.31178.3FF9791@localhost> Don, What might be better is that you ask your questions here and then document the answers on wiki as QuickStart or WhatToDoAfterTheDemoWorks page. Then we will have that resource for other people trying to get started. Some of the common problems people have moving on from the demo are: 1) they forget to change the extents to match their new data 1a) they don't know how to figure out the extents of their data 2) they forget to change the UNITS to match their data 3) various questions about using other types of data (ie: not shapefiles) 4) How do I add points/tracks to the map dynamically 5) various questions about how to configure their mapfiles 6) how to make the reference map 7) how to structure data multiple files into one layer (ie: like 3000+ road files on a per county basis in the US) 8) how to set up spatial indexes 9) various questions on how to use raster layers 10) various questions on how to use projections or re-project data Anyway this is what I remember off the top of my head. I've probably missed some key ones, but I think you can see that if you had answers to these it would be a great help toward moving beyond the demo application. So I ask that you keep the discussion here and I am more than happy to help you build up a Newbies FAQ or GettingStartedGuide or whatever you want to call it. -Steve W. 5) How do I add labels/symbols to the map dynamically On 8 Aug 2002 at 22:44, Don Holeman wrote: > I am about at this step too, having compiled mapserver and walked through > the tutorial and studied the page composition of the tutorial examples. I've > been following discussons on this list as well, and while I'm learning a lot > of intermediate and advanced material I'm missing a lot of the basics, which > I'm rather embarrased to bother this list with as I know how redundant such > questions get. > > Would anyone in the same boat care to join me in creating a short-term > Mapserver bootstrap group at yahoogroups where we could handhold each other > while we get ourselves up to speed with respect to the basics of GIS and > Mapserver? > > If so, you can join me here: > http://groups.yahoo.com/group/bootstrappingmapserver/ > > Best, > Don Holeman > > > > ----- Original Message ----- > From: "Zhang, William" > To: > Sent: Thursday, August 08, 2002 8:07 PM > Subject: [mapserver-users] Simple Map File Question > > > > Hi, > > I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. > Now I am trying to study the tutorials and get problem. When I run the > tutorial Section 1 -- Example 1 with the map file > > NAME S1EX1 > EXTENT -97.238976 41.619778 -82.122902 49.38562 > SIZE 400 300 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > LAYER # States > NAME "states" > DATA states_ugl > STATUS DEFAULT > TYPE POLYGON > CLASSITEM "STATE" > CLASS > NAME "Michigan" > COLOR 255 255 128 > OUTLINECOLOR 0 0 0 > END # end of class object > END # end of layer object > END # end of map file > > It works fine. But when I changed the map file to > > NAME S1EX1 > EXTENT -97.238976 41.619778 -82.122902 49.38562 > SIZE 400 300 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > LAYER # Roads > NAME "roads" > DATA roads_ugl > STATUS ON > TYPE LINE > CLASSITEM "ROAD" > CLASS > NAME "MichiganROAD" > COLOR 255 255 128 > END # end of class object > END # end of layer object > END # end of map file > > This does not work. It only shows a blank box. I downloaded roads_ugl.shp, > roads_ugl.shx and roads_ugl.dbf from > http://terrasip.gis.umn.edu/projects/tutorial35/download.html > and put them in the SHAPEPATH specified directory. I think it must be > something wrong in my map file. Could somebody kindly give me a hint? > > Thanks, > > William Zhang > > C-Cor.net > E-Mail: wzhang at c-cor.net > Phone: (925) 251-3019 > Fax: (925) 467-0600 > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.377 / Virus Database: 211 - Release Date: 7/15/02 > > From lfilak at medinaco.org Fri Aug 9 05:35:39 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 09 Aug 2002 08:35:39 -0400 Subject: [mapserver-users] OGR - ArcInfo Coverage Help Message-ID: <200208091223.g79CNP810326@yogi.medinaco.net> Alternately you could convert the annotations to two-point lines and label the lines without drawing them (thanks to Steven L. & Daniel M.). http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex10 Lowell F. The following message was sent by Matthew Archer on Fri, 09 Aug 2002 12:38:25 +0200. > Hi, > > I am trying to draw ArcInfo annotation via OGR, using MapServer v3.6.1 > (windows binary) on Windows NT. > I cannot get MapServer to draw the actual annotation text. Is this > possible, have i got a syntax error somewhere. > > regards > /Matthew > > Extract from arc DESCRIBE command on cover: > > Description of DOUBLE precision coverage anno15b > > FEATURE CLASSES > > Number of Attribute Spatial > Feature Class Subclass Features data (bytes) Index? > ------------- -------- --------- ------------ ------- > ANNOTATIONS SDE 2188 524 Yes > > Extract from arc ITEMS anno15b.tatsde command on cover: > > ITEM NAME WIDTH OUTPUT TYPE > SDE# 4 5 B > SDE-ID 4 5 B > OBJECT_ID 4 10 B > ANNOTYPE 30 30 C > NAME 250 250 C > > --------------------------------------------------------- > Using the following syntax with TYPE=Point: > > LAYER > NAME anno15 > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > STATUS default > CLASS > COLOR 0 0 0 > END > END > > Mapserver draws points at the start of where each annotation string should be. > > --------------------------------------------------------- > Using the following syntax with TYPE=Annotation: > > LAYER > NAME anno15 > TYPE ANNOTATION > CONNECTIONTYPE OGR > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > STATUS default > CLASS > COLOR 0 0 0 > END > END > > Mapserver draws nothing for this layer, but gives no error either. The > rest of the layers still draw. > > --------------------------------------------------------- > Using the following syntax with TYPE=Annotation and with a TEXT fixed label: > > LAYER > NAME anno15 > TYPE ANNOTATION > CONNECTIONTYPE OGR > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > STATUS default > CLASS > COLOR 0 0 0 > TEXT "hello" > LABEL > COLOR 0 0 0 > END > END > END > > Mapserver draws the default text where each annotation string should have been. > > --------------------------------------------------------- > Using the following syntax with TYPE=Annotation and with a LABELITEM: > > LAYER > NAME anno15 > TYPE ANNOTATION > CONNECTIONTYPE OGR > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > STATUS default > LABELITEM "NAME" > CLASS > COLOR 0 0 0 > END > END > > MapServer gives the error: > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME > I have tried both NAME,name,Name without success > > From jhart at frw.uva.nl Fri Aug 9 05:25:55 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 9 Aug 2002 14:25:55 +0200 Subject: [mapserver-users] Flash + mapserver usage q. In-Reply-To: Message-ID: Alex Rice wrote: > I have seen mention on this list of: > 1) using Ming libs to output SWF maps on the server side w/ mapserver. > 2) using Flash interface to present JPEGs or whatever bitmaps > produced by mapserver. > However, has anyone worked on writing a Flash movie that will > render on the client side a map + navigation interface from a WML > session or GML stream coming from mapserver? I think current > Flash versions have built in HTTP, javscript and XML parsing. > Seems like this would be a nice solution. It IS a nice solution. Actually, you already can do something like that with PHP MapScript: read out the coordinate values from a Shapeobject and send them back in ASCII to Flash in any format you like. This could be XML or GMS or SVG, but a comma-delimited string of ASCII numbers works just as well (eg "coords=x1,y1,x2,y2,x3,y3 .. "). Within Flash you then use movieclip.loadvariables(MapScriptPHPurl, POST), This will call the url and when it returns, the variable "coords" will be available in the movieclip, filled with the list of coordinates. You can extract those with string.split(). If you prefer to generate XML, you can of course use the XML object in Flash, but for this simple scenario I would regard that as overkill. I'm not sure if this kind of output will be available in MapServer3.7. As said, it can be done from PHP, but it would be nice if Shapeobjects could be returned directly from MapServer as ASCII strings, in XML or whatever. One final remark: Shapeobjects are different before and after the call to $map->draw(). Before, they contain world-coordinates, afterwards transformed pixel coordinates. Moreover, some sort of pruning seems to take place, eliminating duplicate pixels I think (some one knows what happens exactly here?). This is a very nice feature, so even if you only need ASCII output for Flash, call $map->draw() beforehand all the same. Regards, Jan Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From ma at t-kartor.se Fri Aug 9 05:37:45 2002 From: ma at t-kartor.se (Matthew Archer) Date: Fri, 09 Aug 2002 14:37:45 +0200 Subject: [mapserver-users] OGR - ArcInfo Coverage Help In-Reply-To: <200208091223.g79CNP810326@yogi.medinaco.net> Message-ID: <5.1.0.14.0.20020809143505.00b3b530@snovit.t-kartor.se> Hi, Converting to lines works for some texts, however: How do i get the text to follow the line? Unfortunately, converting to lines does not work well for 3+ point lines (ie curved text) and multi-row text where each row is set specifically (wordposition in ArcInfo). /Matthew At 08:35 2002-08-09 -0400, you wrote: >Alternately you could convert the annotations to two-point lines and label >the lines without drawing them (thanks to Steven L. & Daniel M.). >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex10 >Lowell F. > >The following message was sent by Matthew Archer on Fri, >09 Aug 2002 12:38:25 +0200. > > > Hi, > > > > I am trying to draw ArcInfo annotation via OGR, using MapServer v3.6.1 > > (windows binary) on Windows NT. > > I cannot get MapServer to draw the actual annotation text. Is this > > possible, have i got a syntax error somewhere. > > > > regards > > /Matthew > > > > Extract from arc DESCRIBE command on cover: > > > > Description of DOUBLE precision coverage anno15b > > > > FEATURE CLASSES > > > > Number of Attribute Spatial > > Feature Class Subclass Features data (bytes) Index? > > ------------- -------- --------- ------------ ------- > > ANNOTATIONS SDE 2188 524 Yes > > > > Extract from arc ITEMS anno15b.tatsde command on cover: > > > > ITEM NAME WIDTH OUTPUT TYPE > > SDE# 4 5 B > > SDE-ID 4 5 B > > OBJECT_ID 4 10 B > > ANNOTYPE 30 30 C > > NAME 250 250 C > > > > --------------------------------------------------------- > > Using the following syntax with TYPE=Point: > > > > LAYER > > NAME anno15 > > TYPE POINT > > CONNECTIONTYPE OGR > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > STATUS default > > CLASS > > COLOR 0 0 0 > > END > > END > > > > Mapserver draws points at the start of where each annotation string > should be. > > > > --------------------------------------------------------- > > Using the following syntax with TYPE=Annotation: > > > > LAYER > > NAME anno15 > > TYPE ANNOTATION > > CONNECTIONTYPE OGR > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > STATUS default > > CLASS > > COLOR 0 0 0 > > END > > END > > > > Mapserver draws nothing for this layer, but gives no error either. The > > rest of the layers still draw. > > > > --------------------------------------------------------- > > Using the following syntax with TYPE=Annotation and with a TEXT fixed > label: > > > > LAYER > > NAME anno15 > > TYPE ANNOTATION > > CONNECTIONTYPE OGR > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > STATUS default > > CLASS > > COLOR 0 0 0 > > TEXT "hello" > > LABEL > > COLOR 0 0 0 > > END > > END > > END > > > > Mapserver draws the default text where each annotation string should > have been. > > > > --------------------------------------------------------- > > Using the following syntax with TYPE=Annotation and with a LABELITEM: > > > > LAYER > > NAME anno15 > > TYPE ANNOTATION > > CONNECTIONTYPE OGR > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > STATUS default > > LABELITEM "NAME" > > CLASS > > COLOR 0 0 0 > > END > > END > > > > MapServer gives the error: > > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME > > I have tried both NAME,name,Name without success > > > > From lfilak at medinaco.org Fri Aug 9 05:58:01 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 09 Aug 2002 08:58:01 -0400 Subject: [mapserver-users] OGR - ArcInfo Coverage Help Message-ID: <200208091245.g79Cjk810708@yogi.medinaco.net> Currently the routine in the wiki only reads in the first and last definition point for the text and creates a two-point line based on that. It can definitely be modified to read in all the points but currently would not be rendered using all of them. By using a truetype font and angle auto the text should follow the line. Lowell The following message was sent by Matthew Archer on Fri, 09 Aug 2002 14:37:45 +0200. > Hi, > > Converting to lines works for some texts, however: > > How do i get the text to follow the line? > > Unfortunately, converting to lines does not work well for 3+ point lines > (ie curved text) and multi-row text where each row is set specifically > (wordposition in ArcInfo). > > /Matthew > > At 08:35 2002-08-09 -0400, you wrote: > >Alternately you could convert the annotations to two-point lines and label > >the lines without drawing them (thanks to Steven L. & Daniel M.). > >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex10 > >Lowell F. > > > >The following message was sent by Matthew Archer on Fri, > >09 Aug 2002 12:38:25 +0200. > > > > > Hi, > > > > > > I am trying to draw ArcInfo annotation via OGR, using MapServer v3.6.1 > > > (windows binary) on Windows NT. > > > I cannot get MapServer to draw the actual annotation text. Is this > > > possible, have i got a syntax error somewhere. > > > > > > regards > > > /Matthew > > > > > > Extract from arc DESCRIBE command on cover: > > > > > > Description of DOUBLE precision coverage anno15b > > > > > > FEATURE CLASSES > > > > > > Number of Attribute Spatial > > > Feature Class Subclass Features data (bytes) Index? > > > ------------- -------- --------- ------------ ------- > > > ANNOTATIONS SDE 2188 524 Yes > > > > > > Extract from arc ITEMS anno15b.tatsde command on cover: > > > > > > ITEM NAME WIDTH OUTPUT TYPE > > > SDE# 4 5 B > > > SDE-ID 4 5 B > > > OBJECT_ID 4 10 B > > > ANNOTYPE 30 30 C > > > NAME 250 250 C > > > > > > --------------------------------------------------------- > > > Using the following syntax with TYPE=Point: > > > > > > LAYER > > > NAME anno15 > > > TYPE POINT > > > CONNECTIONTYPE OGR > > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > > STATUS default > > > CLASS > > > COLOR 0 0 0 > > > END > > > END > > > > > > Mapserver draws points at the start of where each annotation string > > should be. > > > > > > --------------------------------------------------------- > > > Using the following syntax with TYPE=Annotation: > > > > > > LAYER > > > NAME anno15 > > > TYPE ANNOTATION > > > CONNECTIONTYPE OGR > > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > > STATUS default > > > CLASS > > > COLOR 0 0 0 > > > END > > > END > > > > > > Mapserver draws nothing for this layer, but gives no error either. The > > > rest of the layers still draw. > > > > > > --------------------------------------------------------- > > > Using the following syntax with TYPE=Annotation and with a TEXT fixed > > label: > > > > > > LAYER > > > NAME anno15 > > > TYPE ANNOTATION > > > CONNECTIONTYPE OGR > > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > > STATUS default > > > CLASS > > > COLOR 0 0 0 > > > TEXT "hello" > > > LABEL > > > COLOR 0 0 0 > > > END > > > END > > > END > > > > > > Mapserver draws the default text where each annotation string should > > have been. > > > > > > --------------------------------------------------------- > > > Using the following syntax with TYPE=Annotation and with a LABELITEM: > > > > > > LAYER > > > NAME anno15 > > > TYPE ANNOTATION > > > CONNECTIONTYPE OGR > > > CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" > > > STATUS default > > > LABELITEM "NAME" > > > CLASS > > > COLOR 0 0 0 > > > END > > > END > > > > > > MapServer gives the error: > > > msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME > > > I have tried both NAME,name,Name without success > > > > > > From m.spring at gmx.de Fri Aug 9 05:52:35 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Fri, 09 Aug 2002 14:52:35 +0200 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module In-Reply-To: <2EB00C12-AB56-11D6-ACD2-000393529642@arc.to> (Alex Rice's message of "Thu, 8 Aug 2002 23:09:29 -0600") References: <2EB00C12-AB56-11D6-ACD2-000393529642@arc.to> Message-ID: I am using a different approach which only makes sense if you want to * fiddle with html more than the templates allow you * want to have direct database coupling So I use the mapserv executable like a traditional binary and execute it from inside a mod_perl process. I deliver all parameters in the environment variable QUERY_STRING and parse the output line by line, the latter being eased by a very simple template file. So this is a more traditional way of creating maps (but it is extremely stable!) and not that server oriented like your approach, but yours sounds very interesting especially because one could very easy maintain state. Just one warning: I am working in an administration and had to learn that a lot of firewalls just allow port 80 and 443, so you might need to use a special dispatcher instead of different server ports. Markus From jhart at frw.uva.nl Fri Aug 9 06:15:09 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Fri, 9 Aug 2002 15:15:09 +0200 Subject: [mapserver-users] Mapserver Bootstrap Group In-Reply-To: <012501c23f4e$bd5ec9a0$97f90044@ri.cox.net> Message-ID: Don Holeman wrote: > I am about at this step too, having compiled mapserver and walked through > the tutorial and studied the page composition of the tutorial examples. I've > been following discussons on this list as well, and while I'm learning a lot > of intermediate and advanced material I'm missing a lot of the basics, which > I'm rather embarrased to bother this list with as I know how redundant such > questions get. > Would anyone in the same boat care to join me in creating a short-term > Mapserver bootstrap group at yahoogroups where we could handhold each other > while we get ourselves up to speed with respect to the basics of GIS and > Mapserver? > If so, you can join me here: > http://groups.yahoo.com/group/bootstrappingmapserver/ > Best, > Don Holeman I appreciate the initiative of creating a MapServer novice mailing list, but I wonder if this couldn't be better done alongside the regular list, like the PostgreSQL novice list? I am perfectly willing to share my experiences with new users, but I hate having to look at ads while doing so. How about it, WebMaster? Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl From alex_rice at arc.to Fri Aug 9 06:34:26 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 9 Aug 2002 07:34:26 -0600 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module In-Reply-To: <3D53A5A0.903@maich.gr> Message-ID: On Friday, August 9, 2002, at 05:21 AM, Nicolas Boretos wrote: > This sounds similar to what I am doing by using the tclmapscript > module inside the tclwebserver. > I load the mapscript module into the interpreter that the httpd > process also runs in. It seems faster than the mapserv cgi for > the basic things I am doing, and requires very little overhead. > > A potential bottleneck that I see is that longer running db calls > would block the webserver. To this end we are looking into > threading, or at least to move potential db requests back into > the mapserv.cgi..... Interesting! In this scenario, are you using Apache as well, or is the main web server the tclwebserver? Just trying to figure how the bottleneck would happen with db calls blocking the webserver. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From ma at t-kartor.se Fri Aug 9 06:37:05 2002 From: ma at t-kartor.se (Matthew Archer) Date: Fri, 09 Aug 2002 15:37:05 +0200 Subject: [mapserver-users] OGR - ArcInfo Coverage Help In-Reply-To: <3D53B7DD.1090904@pobox.com> References: <5.1.0.14.0.20020809114226.00b0e880@snovit.t-kartor.se> Message-ID: <5.1.0.14.0.20020809153438.00b38210@snovit.t-kartor.se> Hi Frank, It wasn't me who had the bridge cover! How do i get hold of ogrinfo as a windows binary (Winnt)? /Matthew At 08:38 2002-08-09 -0400, you wrote: >Matthew Archer wrote: > >> >>Using the following syntax with TYPE=Annotation and with a LABELITEM: >> >>LAYER >> NAME anno15 >> TYPE ANNOTATION >> CONNECTIONTYPE OGR >> CONNECTION "C:\apache\htdocs\gt2\data\anno15b,0" >> STATUS default >> LABELITEM "NAME" >> CLASS >> COLOR 0 0 0 >> END >>END >> >>MapServer gives the error: >>msOGRLayerInitItemInfo(): OGR error. Invalid Field name: NAME >>I have tried both NAME,name,Name without success >Matthew, > >The above looks like it should work. Did you get display of annotation >from your "igds" layer from the bridges coverage to work? I see that >in that one the text came through with the attribute name "Text" in ogrinfo. > >How does the anno15b coverage look in ogrinfo? Are you sure you have >the layer index? > >BTW, the error does indeed mean that the field name isn't found by OGR. > >The following is a layer definition I used with an Arc/Info annotation >coverage: > >LAYER > NAME "text" > TYPE ANNOTATION > CONNECTIONTYPE OGR > CONNECTION 'lignum/fc_labels,2' > STATUS ON > LABELITEM "Text" > CLASSITEM "Level" > CLASS > NAME "test1" > COLOR 255 0 0 > LABEL > SIZE 16 > ANTIALIAS FALSE > FORCE TRUE > COLOR 0 255 0 > FONT "default" > TYPE TRUETYPE > END > END >END > >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 alex_rice at arc.to Fri Aug 9 06:46:31 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 9 Aug 2002 07:46:31 -0600 Subject: [mapserver-users] Flash + mapserver usage q. In-Reply-To: Message-ID: <692EE87E-AB9E-11D6-ACD2-000393529642@arc.to> On Friday, August 9, 2002, at 06:25 AM, Jan Hartmann wrote: > > "coords=x1,y1,x2,y2,x3,y3 .. "). Within Flash you then use > > movieclip.loadvariables(MapScriptPHPurl, POST), Ah, good point. Then Flash can load the vars directly from that delimited format. I think parsing XML would definitely be required in the realm of handling WMS responses, but, probably a mixture of both delimited and XML would be useful for a real app. > One final remark: Shapeobjects are different before and after the > call to > $map->draw(). Before, they contain world-coordinates, afterwards > transformed > pixel coordinates. Moreover, some sort of pruning seems to take place, > eliminating duplicate pixels I think (some one knows what happens > exactly > here?). This is a very nice feature, so even if you only need > ASCII output > for Flash, call $map->draw() beforehand all the same. > OK thanks for the tip. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From steve.lime at dnr.state.mn.us Fri Aug 9 07:31:26 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 09 Aug 2002 09:31:26 -0500 Subject: [mapserver-users] Simple Map File Question Message-ID: The mapserver CGI version considers ALL non-default layers to be off. First thing it does after processing the mapfile and the user input is to turn all layers off. It then steps through the layer list provided by the user and turns those on. Bottom line? STATUS ON/OFF makes no difference to the CGI version. You must explicitly request that non-default layers be on. Make sense? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Zhang, William" 08/08/02 07:07PM >>> Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 From wesp at gdv.com Fri Aug 9 07:40:01 2002 From: wesp at gdv.com (Oliver Wesp) Date: Fri, 9 Aug 2002 16:40:01 +0200 Subject: [mapserver-users] nQuery with SDE-Layer Message-ID: <000001c23fb2$a47a4400$1501a8c0@else> Dear List, I'm facing some strange problems with nquery and SDE-Layers. Here is my request: http://myHost/cgi-bin/mapserv?map=/var/apache/htdocs/project/my.map&imge xt=3360984.898934+5661892.942250+3416530.334032+5703843.458302&layer=myL ayer&imgxy=477+53&savequery=true&mode=nquery&map_size=592+447 And here is what I get back from Mapserver: CELL U1 U2 U3 WXB---B 201799 9.15278 4.20013e+12 WXB---A 136218 3.90833 3.5528e+11 WXB---C 201756 7.95556 1.63827e+12 And here - just to show the problem - is what I get back from an SQL-Select-Statement: SHAPE CELL U1 U2 U3 ---------- ------- ---------- ---------- ---------- 5191 WXB---B 3 9,15278 71,28 5146 WXB---A 2 3,90833 53,17 5148 WXB---C 3 7,95556 61,96 For the items U1 and U3 the Mapserver-Results are wrong. Seems to me as if the values for U1 are case-numbers. I have no clue where the values for U3 came from. The same problem appears when I use the different items in class-expressions. For U2 everything works fine, for U1 and U3 the whole thing is busted. All the Ux-Items are numbers. And here is the setting: Mapserver 3.6.1 ArcSDE 8.2 Solaris 8 Oracle 8i any hints? Oliver From pkishor at GeoAnalytics.com Fri Aug 9 07:54:24 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 9 Aug 2002 09:54:24 -0500 Subject: [mapserver-users] build 3.6.1 warnings and errors In-Reply-To: Message-ID: Build help needed. Many tia. Trying to install ms3.6.1 on OS X 10.1.5 with gcc 3 (I think). Stock build, using nothing fancy but gd, png, etc. MapServer builds except for the warnings and confusing msg below. =================== Warnings during Mapserver 3.6.1 make =================== maptemplate.c:1317: warning: long int format, different type arg (arg 3) maplexer.c:3273: warning: `yyunput' defined but not used maperror.c:234: warning: passing arg 1 of `ctime' from incompatible pointer type maperror.c:234: warning: long int format, int32_t arg (arg 4) mapprimitive.c:1102: warning: unused variable `intersect_points' mapprimitive.c:1099: warning: `last_angle' might be used uninitialized in this function mapprimitive.c:771: warning: `get_centroid' defined but not used mapproject.c:432: warning: return makes pointer from integer without a cast mapresample.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 maptemplate.h:16: warning: `inchesPerUnit' defined but not used mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used shptree.c:40: warning: `byte_order' might be used uninitialized in this function shptreevis.c:74: warning: unused variable `pabyBuf' shptreetst.c:66: warning: `node' might be used uninitialized in this function =================== Interesting and confusing msg during MapServer 3.6.1 make install =================== cp -f libmap.a /usr/local/lib/ cp -f map.h /usr/local/include/mapserver-3.5/ =================== wtf! I thought I was installing 3.6.1! Why did it cp -f to include/mapserver-3.5/ (or is that a feature ;-) ). Anyway, test results =================== [localhost:~/Projects/mapserver-3.6.1] pkishor% ./mapserv -v MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE =================== Perl/MapScript fails with following errors during Perl/MapScript make =================== LD_RUN_PATH="/Users/pkishor/Projects/mapserver-3.6.1:/usr/local/lib:/usr/lib" cc -flat_namespace -bundle -undefined suppress -L/usr/local/lib mapscript_wrap.o -o blib/arch/auto/mapscript/mapscript.bundle -L/Users/pkishor/Projects/mapserver-3.6.1 -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -ljpeg -lm /usr/bin/ld: table of contents for archive: /usr/local/lib/libmap.a is out of date; rerun ranlib(1) (can't load from it) make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1 From assefa at dmsolutions.ca Fri Aug 9 08:24:37 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 09 Aug 2002 11:24:37 -0400 Subject: [mapserver-users] Flash + mapserver usage q. References: <692EE87E-AB9E-11D6-ACD2-000393529642@arc.to> Message-ID: <3D53DEB5.27B2C7E@dmsolutions.ca> Hi There, Here is the doc explaining the first support of SWF output in mapserver. Note that this a first version and upgrades and other additions will be added (like the possiblity to export the whole map in one image, or to have an ascii output of the shape cooridinates and Flash do the rendering). http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html Later, Alex Rice wrote: > On Friday, August 9, 2002, at 06:25 AM, Jan Hartmann wrote: > > > > "coords=x1,y1,x2,y2,x3,y3 .. "). Within Flash you then use > > > > movieclip.loadvariables(MapScriptPHPurl, POST), > > Ah, good point. Then Flash can load the vars directly from that > delimited format. > > I think parsing XML would definitely be required in the realm of > handling WMS responses, but, probably a mixture of both delimited > and XML would be useful for a real app. > > > One final remark: Shapeobjects are different before and after the > > call to > > $map->draw(). Before, they contain world-coordinates, afterwards > > transformed > > pixel coordinates. Moreover, some sort of pruning seems to take place, > > eliminating duplicate pixels I think (some one knows what happens > > exactly > > here?). This is a very nice feature, so even if you only need > > ASCII output > > for Flash, call $map->draw() beforehand all the same. > > > > OK thanks for the tip. > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From BraeckelD at etminc.com Fri Aug 9 08:40:45 2002 From: BraeckelD at etminc.com (Doug Braeckel) Date: Fri, 9 Aug 2002 11:40:45 -0400 Subject: [mapserver-users] Mapplet Problem Message-ID: I've been using the base MapServer for the last few months with good results. I'm currently using Windows 2000, IIS, MapServer 3.6.1. I also have a duplicate running on Windows 2000 Workstation with Apache 1.3.24. I am now trying to add Mapplet to my application with poor results. Everything Javascript appears to be working (clicks and drags work) except that I cannot, no matter what I try, get the map image [img] to display in the applet (on either computer). All I get is a white square where the map would display. I've tried every combination of "http://[host][port][img]" I've seen. I'm now down to just [img] which contains the full path the image. In fact, when I VIEW PAGE SOURCE and copy the [img] link into Netscape, I can view the map image by itself, so I know the reference to the image is good. Has anyone else had a similar problem with getting MAPPLET working? What am I doing wrong? I thought this would be easier than ROSA, which I also can't get to work correctly. Sincerely, Doug Braeckel Senior GIS Programmer England, Thims & Miller, Inc. PH: (904) 642-8990 FX: (904) 646-9485 From niallm-wan at enigma.ie Fri Aug 9 09:32:26 2002 From: niallm-wan at enigma.ie (Niall Richard Murphy) Date: Fri, 9 Aug 2002 17:32:26 +0100 Subject: [mapserver-users] Question about raster(?) images and GPS Message-ID: <20020809163226.GA73432@enigma.ie> Hi folks, I'm looking for some advice as to what mapserver can do, and whether it would be useful for my application. Basically I have a set of images (png, jpeg, tiff) of my area. I know their GPS co-ordinates (where the image begins and ends in terms of them). I have a set of points, also expressed in terms of GPS co-ordinates. Questions: Is it possible to use mapserver to plot these points on the image dynamically, zoom in, pan around and label them? Is this difficult to do? These images are quite large - how much CPU is required for this kind of work? Thanks in advance for any help. Niall -- Enigma Consulting Limited: Security, UNIX and telecommunications consultants. Address: Floor 2, 45 Dawson Street, Dublin 2, Ireland. http://www.enigma.ie/ From Tom.Kralidis at ccrs.nrcan.gc.ca Fri Aug 9 09:33:46 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Fri, 9 Aug 2002 12:33:46 -0400 Subject: [mapserver-users] Mapplet Problem Message-ID: <7CDD7B94357FD5119E800002A537C46E226CD2@s5-ccr-r1.ccrs.nrcan.gc.ca> You need the hostname. The mapplet requires fully qualified URLs. 1./ Have you check the mapplet-howto on the UMN MapServer website? 2./ Have you tried: http://[host]/[img] 3./ Do you get any errors in the status bar? ..Tom > -----Original Message----- > From: Doug Braeckel [mailto:BraeckelD at etminc.com] > Sent: Friday, August 09, 2002 11:41 AM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Mapplet Problem > > > > I've been using the base MapServer for the last few months with good > results. I'm currently using Windows 2000, IIS, MapServer > 3.6.1. I also > have a duplicate running on Windows 2000 Workstation with > Apache 1.3.24. > > I am now trying to add Mapplet to my application with poor results. > Everything Javascript appears to be working (clicks and drags > work) except > that I cannot, no matter what I try, get the map image [img] > to display in > the applet (on either computer). All I get is a white square > where the map > would display. I've tried every combination of > "http://[host][port][img]" > I've seen. I'm now down to just [img] which contains the > full path the > image. In fact, when I VIEW PAGE SOURCE and copy the [img] link into > Netscape, I can view the map image by itself, so I know the > reference to the > image is good. > > Has anyone else had a similar problem with getting MAPPLET > working? What am > I doing wrong? I thought this would be easier than ROSA, > which I also can't > get to work correctly. > > Sincerely, > > Doug Braeckel > Senior GIS Programmer > England, Thims & Miller, Inc. > PH: (904) 642-8990 > FX: (904) 646-9485 > From dgraham at i3.com Fri Aug 9 10:43:23 2002 From: dgraham at i3.com (David Graham) Date: Fri, 09 Aug 2002 11:43:23 -0600 Subject: [mapserver-users] Has anybody seen this site/product: References: Message-ID: <3D53FF3B.8090401@i3.com> Steve Lime wrote: >http://www.earthviewer.com/ > >Sounds cool, almost too cool. Makes me wonder then... > >Steve > > > > Steve: It is cool. Really cool. It is like playing a video game. You type in a location, you do a few orbits around the Earth and then zoom down through the atmosphere and see the location. We have a copy here at i-cubed they have used some of our data in the product. Dave -- David W. Graham Director of Geospatial Applications Development information integration and imaging, LLC 201 Linden St, Third Floor Fort Collins, CO 80524 (970) 482-4400 dgraham at i3.com http://www.i3.com From BraeckelD at etminc.com Fri Aug 9 10:49:07 2002 From: BraeckelD at etminc.com (Doug Braeckel) Date: Fri, 9 Aug 2002 13:49:07 -0400 Subject: [mapserver-users] Mapplet Problem Message-ID: Tom, Yes, I've printed and read the HOW-TO, good stuff. I've tried every combination of [host] [port] [img] I can imagine, and I don't get any errors in the status bar. This thing's driving me nuts. You can check it out at: http://www.duvalCountyNPDES.net/ Click the gold NPDES logo at the top to get to the map. I've included a table of the variables at the bottom of the page. The raw CGI version of this worked fine. I'd just like to use Javascript to get this to function and look like our ArcIMS version. Thanks for any help you can provide, Doug Doug Braeckel Senior GIS Programmer England, Thims & Miller, Inc. PH: (904) 642-8990 FX: (904) 646-9485 -----Original Message----- From: Kralidis, Tom [mailto:Tom.Kralidis at CCRS.NRCan.gc.ca] Sent: Friday, August 09, 2002 12:34 PM To: 'Doug Braeckel'; 'mapserver-users at lists.gis.umn.edu' Subject: RE: [mapserver-users] Mapplet Problem You need the hostname. The mapplet requires fully qualified URLs. 1./ Have you check the mapplet-howto on the UMN MapServer website? 2./ Have you tried: http://[host]/[img] 3./ Do you get any errors in the status bar? ..Tom > -----Original Message----- > From: Doug Braeckel [mailto:BraeckelD at etminc.com] > Sent: Friday, August 09, 2002 11:41 AM > To: 'mapserver-users at lists.gis.umn.edu' > Subject: [mapserver-users] Mapplet Problem > > > > I've been using the base MapServer for the last few months with good > results. I'm currently using Windows 2000, IIS, MapServer > 3.6.1. I also > have a duplicate running on Windows 2000 Workstation with > Apache 1.3.24. > > I am now trying to add Mapplet to my application with poor results. > Everything Javascript appears to be working (clicks and drags > work) except > that I cannot, no matter what I try, get the map image [img] > to display in > the applet (on either computer). All I get is a white square > where the map > would display. I've tried every combination of > "http://[host][port][img]" > I've seen. I'm now down to just [img] which contains the > full path the > image. In fact, when I VIEW PAGE SOURCE and copy the [img] link into > Netscape, I can view the map image by itself, so I know the > reference to the > image is good. > > Has anyone else had a similar problem with getting MAPPLET > working? What am > I doing wrong? I thought this would be easier than ROSA, > which I also can't > get to work correctly. > > Sincerely, > > Doug Braeckel > Senior GIS Programmer > England, Thims & Miller, Inc. > PH: (904) 642-8990 > FX: (904) 646-9485 > From DMartin at erac.com Fri Aug 9 10:57:59 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 9 Aug 2002 12:57:59 -0500 Subject: [mapserver-users] Simple Map File Question Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B09@STL-EXBE-I03.corp.erac.com> This is such a common question. I know I fought with the SAME problem when I first started using MapServer. This is a quote from the MAP file documentation for version 3.6, within the LAYER object: STATUS [on|off|default] Sets the current status of the layer. Often modified by MapServer itself. Default turns the layer on permanently. This doesn't explain the STATUS situation mentioned below. I think updating might help alleviate that common question. -Dan Martin -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, August 09, 2002 9:31 AM To: wzhang at c-cor.net; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Simple Map File Question The mapserver CGI version considers ALL non-default layers to be off. First thing it does after processing the mapfile and the user input is to turn all layers off. It then steps through the layer list provided by the user and turns those on. Bottom line? STATUS ON/OFF makes no difference to the CGI version. You must explicitly request that non-default layers be on. Make sense? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Zhang, William" 08/08/02 07:07PM >>> Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 From morissette at dmsolutions.ca Fri Aug 9 11:20:09 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 09 Aug 2002 14:20:09 -0400 Subject: [mapserver-users] mapserver-dev mailing list Message-ID: <3D5407D9.A5E5D506@dmsolutions.ca> Hi, A little while ago we discussed the creation of a mapserver-dev mailing list to help communication between the mapserver developers. With the current work going on in MapServer 3.7, the need for this list became even more important, so the mapserver-dev at lists.gis.umn.edu list has been created at UMN. Regular users probably won't find much interest in this list, except perhaps to get an idea of what's coming down the pipe, but I would like to invite all developers who contributed extensions to MapServer in the past to subscribe to this list. The reason is that MapServer 3.7 has undergone serious changes recently and we need all developers to work together to make sure all parts are working properly. I don't think there is any information on the UMN website about this list yet (hopefully the site will be updated soon), but the list works the same way as the mapserver-users list, so to subscribe: ----- To subscribe to the MapServer-dev list send an e-mail to majordomo at lists.gis.umn.edu with the body of the message containing the following two lines subscribe mapserver-dev END ----- I also notice that there doesn't seem to be a searchable archive yet for this list. Steve, Raju: do you think you can add an archive and link to it from the UMN website? Thanks. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From m.spring at gmx.de Fri Aug 9 12:10:08 2002 From: m.spring at gmx.de (m.spring at gmx.de) Date: Fri, 09 Aug 2002 21:10:08 +0200 Subject: [mapserver-users] Mapplet Problem In-Reply-To: (Doug Braeckel's message of "Fri, 9 Aug 2002 13:49:07 -0400") References: Message-ID: Hi, your image url points to a png file. At least to my knowlegde java is not able to handle png files, but your browser may be! Retry with gif or jpg, this (to my knowledge) should work Markus From alex_rice at arc.to Fri Aug 9 12:53:00 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 9 Aug 2002 13:53:00 -0600 Subject: [mapserver-users] build 3.6.1 warnings and errors In-Reply-To: Message-ID: <9BA20A3C-ABD1-11D6-BAF6-000393529642@arc.to> On Friday, August 9, 2002, at 08:54 AM, Puneet Kishor wrote: > Build help needed. Many tia. > > Trying to install ms3.6.1 on OS X 10.1.5 with gcc 3 (I think). > Stock build, using nothing fancy but gd, png, etc. MapServer > builds except for the warnings and confusing msg below. No clue about the others > > /usr/bin/ld: table of contents for archive: > /usr/local/lib/libmap.a is out of date; rerun ranlib(1) (can't > load from it) For the above, all you need to do is this # sudo ranlib /usr/local/lib/libmap.a usually the installer script should do this, but maybe it doesn't or is expecting a different command to do it (like on linux?) Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From pkishor at GeoAnalytics.com Fri Aug 9 12:57:17 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 9 Aug 2002 14:57:17 -0500 Subject: [mapserver-users] build 3.6.1 warnings and errors Message-ID: > -----Original Message----- > From: Alex Rice [mailto:alex_rice at arc.to] > Sent: Friday, August 09, 2002 2:53 PM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] build 3.6.1 warnings and errors > > > > On Friday, August 9, 2002, at 08:54 AM, Puneet Kishor wrote: > > > Build help needed. Many tia. > > > > Trying to install ms3.6.1 on OS X 10.1.5 with gcc 3 (I think). > > Stock build, using nothing fancy but gd, png, etc. MapServer > > builds except for the warnings and confusing msg below. > > No clue about the others > > > > > /usr/bin/ld: table of contents for archive: > > /usr/local/lib/libmap.a is out of date; rerun ranlib(1) (can't > > load from it) > > For the above, all you need to do is this > > # sudo ranlib /usr/local/lib/libmap.a > > usually the installer script should do this, but maybe it doesn't > or is expecting a different command to do it (like on linux?) > well, it seems to be ranlib-ing, but complains about it being "out of date". I am wondering if it has something to do with the fact that some stuff got written to cp -f libmap.a /usr/local/lib/ cp -f map.h /usr/local/include/mapserver-3.5/ during ms make install. pk/ From thesquid at FriedBaloney.com Fri Aug 9 13:05:59 2002 From: thesquid at FriedBaloney.com (Dana Coe) Date: Fri, 09 Aug 2002 16:05:59 -0400 Subject: [mapserver-users] Simple ItemQuery with QueryMap & php MapScript Message-ID: Hello, Can anyone give me any hints / demos on how to reproduce the MapServer Test Suite - ItemQuery (Case 3: Simple ItemQuery With QueryMap http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html ) with Mapserver 3.6.1 & Mapscript? I've pored over the mailing list, and can find nothing that addresses this. I've got the gmap demo up and running with my own data & some modifications, I just want to be able to give it a county name (or a list of zip codes) and then have these displayed as a map. Case 3 seems to do exactly what I need, but it seems not to run on current versions. Any ideas? Thanks, Dana L Coe From allanp at campeb.org Fri Aug 9 14:14:06 2002 From: allanp at campeb.org (Allan Panitch) Date: Fri, 9 Aug 2002 16:14:06 -0500 (EST) Subject: [mapserver-users] Extracting one polygon from a file In-Reply-To: Message-ID: I hope this is simple. I have a shp file of the USA which is just a bunch of polygons in a shp file with a dbf of the attributes. I would like to just display michigan from this file. So in my map file I have a layer which displays that and the surrounding states, I would like to omit the other polygons (states). So in that layer I added LABELITEM "STATE_NAME" which is the valid label in the .dbf file. and the value is "michigan" So I tried something under class like EXPRESSION STATE_NAME=michigan but that did not seem to do the trick. Any ideas on how to extract a polygon for 1 layer? Thanks al On Thu, 11 Jul 2002, Al wrote: > I am hoping and thinking this is a simple question. > How would I increase the thicknes of a layer of lines..like roads? > It looks to default to a single pixel, but I would like the lines to be > around 4-5 pixels thick. > tx > al > > > From Chip.Hankley at GASAI.Com Fri Aug 9 14:34:08 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 9 Aug 2002 16:34:08 -0500 Subject: [mapserver-users] Simple ItemQuery with QueryMap & php MapScr ipt Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCB9@postoffice.GASAI.Com> Dana - I would go about reproducing that in two steps. To begin with, you'll need to make some changes to the mapfile in order to support the PHP/MapScript functions. 1) The map on the left shows the counties, with the county in question highlighted. The map is presumably at the extent specified in the mapfile. You can have a particular county highlight by using EXPRESSION in the class definition. $Layer = $map->getlayerbyname("county"); $Object = $Layer->getClass(0); $Object->setexpression($some_co_value); In this case, $some_co_value would be a value that would be passed from a form...i.e. the drop down box that has all the counties. When you go to draw the map, it should draw the selected county RED, and the rest white. 2) The map on the right is zoomed into the particular county. This will require that you figure out the extents of that county, then reset the map extent to that county, and redraw the map. This is kind of a generic function... function sel_extent($map, $layername, $value, $db_field) { //RESET the extent of the map based on the value of a record. For // example, we might want to zoom to DANE county in WISCONSIN based // the response to some event. // //PARAMETERS passed: //$map: the map object //$layername: the name of the layer that contains the feature // you want to zoom to //$value: the value of the field that you are querying against // e.g. the name of the county //$db_field: the name of the field in the shapefile's dbf // e.g. 'county_nm' // //Figure out which layer we will be working with, and // retrieve some basic info on it (paths to data) $lyr = $map->getlayerbyname($layername); $src = $lyr->data; $path = $map->shapepath; $shp_path = $path . $src; $db_path = $shp_path . ".dbf"; //Create a new shapefile object based on the path information $nShpFile = ms_newShapefileObj($shp_path, -1); //open the dbase file for the shapefile loop through the records // searching for the first record that matches the // search criteria. if ($dbi = dbase_open($db_path, 0)) { $nr = dbase_numrecords ($dbi); $q_result = array(); $x = 0; for ($i=1; $i <= $nr; $i++) { $cur_row = dbase_get_record_with_names ($dbi, $i); if (trim($value) == trim($cur_row[$db_field])) { $row_id = $i; break; } } } //Query the shapefile object for that particular record // to get the extent. Note that row-id is base 0 for mapscript // but base 1 for the dbf. $row_id = $row_id - 1; $shapeExtObj = $nShpFile->getExtent($row_id); $minx = $shapeExtObj->minx; $miny = $shapeExtObj->miny; $maxx = $shapeExtObj->maxx; $maxy = $shapeExtObj->maxy; //Add a buffer around the map extent returned for the shape $border = 200; $minx = $minx - $border; $miny = $miny - $border; $maxx = $maxx + $border; $maxy = $maxy + $border; //set the map's extent to the values returned by the shape + the buffer $map->setExtent($minx, $miny, $maxx, $maxy); } In both these cases, after running these commands, you would redraw the map using something like this: $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, $map->transparent, $map->interlace, 50); /* NEW MAPFILE ************************/ NAME test SHAPEPATH ../data SIZE 300 300 EXTENT 74000 4775000 798000 5499000 WEB IMAGEPATH "/usr/local/www/docs/tmp/" IMAGEURL "/tmp/" END LAYER NAME county DATA county STATUS DEFAULT TYPE POLYGON #The METADATA section allows you to retrieve information from MapScript # about a particular layer METADATA "DESCRIPTION" "County Info" "RESULT_FIELDS" "COUNTY_NM POPULATION AREA" END CLASSITEM "County_Name" <= Where "County_Name" is the field in the shapefile specifying county names. CLASS NAME 'Selected County' TEMPLATE "ttt_query.html" <= This line is ESSENTIAL for MapScript queries EXPRESSION '' COLOR 255 0 0 OUTLINECOLOR 0 0 0 END CLASS NAME 'All Others' TEMPLATE "ttt_query.html" <= This line is ESSENTIAL for MapScript queries EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 0 0 0 END END END -----Original Message----- From: Dana Coe [mailto:thesquid at FriedBaloney.com] Sent: Friday, August 09, 2002 3:06 PM To: mapserver Subject: [mapserver-users] Simple ItemQuery with QueryMap & php MapScript Hello, Can anyone give me any hints / demos on how to reproduce the MapServer Test Suite - ItemQuery (Case 3: Simple ItemQuery With QueryMap http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html ) with Mapserver 3.6.1 & Mapscript? I've pored over the mailing list, and can find nothing that addresses this. I've got the gmap demo up and running with my own data & some modifications, I just want to be able to give it a county name (or a list of zip codes) and then have these displayed as a map. Case 3 seems to do exactly what I need, but it seems not to run on current versions. Any ideas? Thanks, Dana L Coe From wzhang at c-cor.net Fri Aug 9 14:30:09 2002 From: wzhang at c-cor.net (Zhang, William) Date: Fri, 9 Aug 2002 17:30:09 -0400 Subject: [mapserver-users] Simple Map File Question Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4E6@pltnpo1.c-cor.com> First I would like to thank all your answers. But somehow I still can't make it work. I changed the status to DEFAULT and the extent to -99 40 -80 52 (states_ugl and roads_ugl covers the same area. So I think this extent should be good enough.). Here is the new map file. NAME s1new EXTENT -99 40 -80 52 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS DEFAULT TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file I tried following two strings to retrive map image They all do not work. Is it possible that "mode=map" can't handle too many lines? Thanks, William -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, August 09, 2002 7:31 AM To: wzhang at c-cor.net; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Simple Map File Question The mapserver CGI version considers ALL non-default layers to be off. First thing it does after processing the mapfile and the user input is to turn all layers off. It then steps through the layer list provided by the user and turns those on. Bottom line? STATUS ON/OFF makes no difference to the CGI version. You must explicitly request that non-default layers be on. Make sense? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Zhang, William" 08/08/02 07:07PM >>> Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 From Chip.Hankley at GASAI.Com Fri Aug 9 14:56:33 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 9 Aug 2002 16:56:33 -0500 Subject: [mapserver-users] Extracting one polygon from a file Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCBB@postoffice.GASAI.Com> in your layer definition ... CLASSITEM 'STATE_NAME' CLASS #Show Michigan as RED EXPRESSION 'michigan' COLOR 255 0 0 OUTLINECOLOR 0 0 0 END CLASS #Optionally, show everthing else as white EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 0 0 0 END ... You could certainly add labels if you want, but that has nothing to do with which state draws. -----Original Message----- From: Allan Panitch [mailto:allanp at campeb.org] Sent: Friday, August 09, 2002 4:14 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Extracting one polygon from a file I hope this is simple. I have a shp file of the USA which is just a bunch of polygons in a shp file with a dbf of the attributes. I would like to just display michigan from this file. So in my map file I have a layer which displays that and the surrounding states, I would like to omit the other polygons (states). So in that layer I added LABELITEM "STATE_NAME" which is the valid label in the .dbf file. and the value is "michigan" So I tried something under class like EXPRESSION STATE_NAME=michigan but that did not seem to do the trick. Any ideas on how to extract a polygon for 1 layer? Thanks al On Thu, 11 Jul 2002, Al wrote: > I am hoping and thinking this is a simple question. > How would I increase the thicknes of a layer of lines..like roads? > It looks to default to a single pixel, but I would like the lines to be > around 4-5 pixels thick. > tx > al > > > From morissette at dmsolutions.ca Fri Aug 9 15:04:15 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 09 Aug 2002 18:04:15 -0400 Subject: [mapserver-users] build 3.6.1 warnings and errors References: Message-ID: <3D543C5F.49DFD854@dmsolutions.ca> Puneet Kishor wrote: > > well, it seems to be ranlib-ing, but complains about it being "out of date". > I am wondering if it has something to do with the fact that some stuff got > written to > > cp -f libmap.a /usr/local/lib/ > cp -f map.h /usr/local/include/mapserver-3.5/ > > during ms make install. > MapServer's 'make install' target should be avoided. It has no real use, except confusing your build when you upgrade to a new version of MapServer. I suggest deleting /usr/local/lib/libmap.a, and /usr/local/include/mapserver-3.5/map.h, and then restart your build (make clean; make) ... the problem may go away. If it doesn't then I'm not sure what to suggest, but at least we'll have ruled out that possibility. -- ------------------------------------------------------------ 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 hdi12 at it.canterbury.ac.nz Fri Aug 9 18:06:05 2002 From: hdi12 at it.canterbury.ac.nz (Hao Ding) Date: Sat, 10 Aug 2002 13:06:05 +1200 Subject: [mapserver-users] mapfile questions Message-ID: <3D5466FD.2000603@student.canterbury.ac.nz> Hi, I am implementing an OGC WMS client and setting up MapServer as the WMS server. I used itasca demo dataset and mapfile to do some experiments, but met some questions that confused me. Any tips to this questions will be very much appreciated. 1. How to set Layer object in the mapfile to make a layer queriable? 2. There is no EXTENT objects set in WEB and Layer level except one in the Map level, which is EXTENT 388013.643812817 5200395.13465842 500802.348432817 5313156.99196842. In the resulting wms capabilities xml file as below, I find the BoundingBox of t he root Layer corresponds to above EXTENT, but as for the root Layer's LatLonBoundingBox and the child Layer's BoundingBox and LatLonBoundingBox I do not know where they are come from. Which one should I use to make a GetMap query? DEMO UMN MapServer Itasca Demo EPSG:26915 ctybdpy2 County Boundary EPSG:26915 ...... 3. What should I add in the mapfile if I want to get a GML file from MapServer when requesting for a point featureInfo? 4. I cannot find any mapfile object corresponding to the wms capabilities Style tag. How to set up mapfile to add Styles? Sorry about answering so many questions and taking your time to read them. Please give me your answers if you know any of them. Thanks! Hao From wzhang at c-cor.net Fri Aug 9 18:28:20 2002 From: wzhang at c-cor.net (Zhang, William) Date: Fri, 9 Aug 2002 21:28:20 -0400 Subject: Follow up on: [mapserver-users] Simple Map File Question Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4E9@pltnpo1.c-cor.com> Please ignore my previous question. I found that with similar map file I was able to show hydrol_ugl. I also succeeded in using MapServer to display some line shape files converted from Tiger data. Although showing roads_ugl is still a mystery to me, it is not important anymore. Thanks again, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 -----Original Message----- From: Zhang, William [mailto:wzhang at c-cor.net] Sent: Friday, August 09, 2002 2:30 PM To: 'Steve Lime'; 'Tyler Mitchell'; 'Shaik Anwar Hussain'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Simple Map File Question First I would like to thank all your answers. But somehow I still can't make it work. I changed the status to DEFAULT and the extent to -99 40 -80 52 (states_ugl and roads_ugl covers the same area. So I think this extent should be good enough.). Here is the new map file. NAME s1new EXTENT -99 40 -80 52 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS DEFAULT TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file I tried following two strings to retrive map image They all do not work. Is it possible that "mode=map" can't handle too many lines? Thanks, William -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Friday, August 09, 2002 7:31 AM To: wzhang at c-cor.net; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Simple Map File Question The mapserver CGI version considers ALL non-default layers to be off. First thing it does after processing the mapfile and the user input is to turn all layers off. It then steps through the layer list provided by the user and turns those on. Bottom line? STATUS ON/OFF makes no difference to the CGI version. You must explicitly request that non-default layers be on. Make sense? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Zhang, William" 08/08/02 07:07PM >>> Hi, I succeeded in compiling and runing MapServer demo on Win2000 with IIS 5.0. Now I am trying to study the tutorials and get problem. When I run the tutorial Section 1 -- Example 1 with the map file NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # States NAME "states" DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "STATE" CLASS NAME "Michigan" COLOR 255 255 128 OUTLINECOLOR 0 0 0 END # end of class object END # end of layer object END # end of map file It works fine. But when I changed the map file to NAME S1EX1 EXTENT -97.238976 41.619778 -82.122902 49.38562 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER # Roads NAME "roads" DATA roads_ugl STATUS ON TYPE LINE CLASSITEM "ROAD" CLASS NAME "MichiganROAD" COLOR 255 255 128 END # end of class object END # end of layer object END # end of map file This does not work. It only shows a blank box. I downloaded roads_ugl.shp, roads_ugl.shx and roads_ugl.dbf from http://terrasip.gis.umn.edu/projects/tutorial35/download.html and put them in the SHAPEPATH specified directory. I think it must be something wrong in my map file. Could somebody kindly give me a hint? Thanks, William Zhang C-Cor.net E-Mail: wzhang at c-cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 From pkishor at GeoAnalytics.com Fri Aug 9 19:49:28 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 9 Aug 2002 21:49:28 -0500 Subject: [mapserver-users] build 3.6.1 warnings and errors In-Reply-To: <3D543C5F.49DFD854@dmsolutions.ca> Message-ID: Thanks for the suggestion Daniel. A few questions -- On Friday, August 9, 2002, at 05:04 PM, Daniel Morissette wrote: > Puneet Kishor wrote: >> >> well, it seems to be ranlib-ing, but complains about it being "out of >> date". >> I am wondering if it has something to do with the fact that some stuff >> got >> written to >> >> cp -f libmap.a /usr/local/lib/ >> cp -f map.h /usr/local/include/mapserver-3.5/ >> >> during ms make install. >> > > MapServer's 'make install' target should be avoided. It has no real > use, except confusing your build when you upgrade to a new version of > MapServer. I am not sure what you mean by "'make install' target should be avoided." I never gave any target. All I did was 'make install' at the prompt. Are you saying I don't need to 'make install'? > > I suggest deleting /usr/local/lib/libmap.a, and > /usr/local/include/mapserver-3.5/map.h, and then restart your build > (make clean; make) ... the problem may go away. Did that, and am now faced with the following... Mapserv builds fine, but Perl/Mapscript refuses to. Croaks out with the message -- /usr/bin/ld: table of contents for archive: /usr/local/lib/libmap.a is out of date; rerun ranlib(1) (can't load from it) make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1 Any suggestion? Tia, pk. From yecarrillo at hotmail.com Sat Aug 10 19:32:02 2002 From: yecarrillo at hotmail.com (Eduin Yesid Carrillo) Date: Sat, 10 Aug 2002 21:32:02 -0500 Subject: [mapserver-users] Two or more filteritem values Message-ID: Hi Folks. I'd solved my last question with filteritem $Filtro1 = strval ($HTTP_FORM_VARS["Filtro1"]); $ValorFiltro1 = strval ($HTTP_FORM_VARS["ValorFiltro1"]); $poLayer = $gpoMap->getlayerbyname(redes); $poLayer->set("filteritem", "$Filtro1"); $poLayer->setFilter("'$ValorFiltro1'"); It works fine, but now I need define more than one values of filteritem. There is any form of define some kind of SQL "Definition" of a layer (shape) as in ArcView? Thanks ---------------------------- Eduin Yesid Carrillo Ingeniero Civil Bucaramanga - Colombia yecarrillo at hotmail.com yecarrillo at condorito.uis.edu.co #ICQ 14323531 _________________________________________________________________ MSN Fotos: la forma m?s f?cil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx From zak-ms at aiya.dhs.org Sat Aug 10 20:24:28 2002 From: zak-ms at aiya.dhs.org (Zak James) Date: Sat, 10 Aug 2002 23:24:28 -0400 Subject: [mapserver-users] build 3.6.1 warnings and errors In-Reply-To: Message-ID: Does perl/mapscript build ok with older gcc versions on OS X 10.1.5? What does gcc -v return? Zak On Friday, August 9, 2002, at 10:49 PM, Puneet Kishor wrote: > Thanks for the suggestion Daniel. > > A few questions -- > > On Friday, August 9, 2002, at 05:04 PM, Daniel Morissette wrote: > >> Puneet Kishor wrote: >>> >>> well, it seems to be ranlib-ing, but complains about it being "out of >>> date". >>> I am wondering if it has something to do with the fact that some >>> stuff got >>> written to >>> >>> cp -f libmap.a /usr/local/lib/ >>> cp -f map.h /usr/local/include/mapserver-3.5/ >>> >>> during ms make install. >>> >> >> MapServer's 'make install' target should be avoided. It has no real >> use, except confusing your build when you upgrade to a new version of >> MapServer. > > I am not sure what you mean by "'make install' target should be > avoided." I never gave any target. All I did was 'make install' at the > prompt. Are you saying I don't need to 'make install'? > >> >> I suggest deleting /usr/local/lib/libmap.a, and >> /usr/local/include/mapserver-3.5/map.h, and then restart your build >> (make clean; make) ... the problem may go away. > > Did that, and am now faced with the following... > > Mapserv builds fine, but Perl/Mapscript refuses to. Croaks out with the > message -- > > /usr/bin/ld: table of contents for archive: /usr/local/lib/libmap.a is > out of date; rerun ranlib(1) (can't load from it) > make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1 > > > Any suggestion? > > Tia, > > pk. > From agnieszka_zak at interia.pl Sun Aug 11 13:05:48 2002 From: agnieszka_zak at interia.pl (=?iso-8859-2?Q?Agnieszka_=AFak?=) Date: Sun, 11 Aug 2002 22:05:48 +0200 Subject: [mapserver-users] Error - jpeg raster Message-ID: <000701c24172$7cb43fe0$0200a8c0@Agnieszka> Hi, I get error: "JPEG parameter struct mismatch: library thinks size is 432, caller expects 464", when I want to display raster (jpg) and MapServer is running on Windows. On Linux everything is good. I use: - Windows 2000 - PHP 4.1.2 - MapScript Version ($Revision: 1.104.2.1 $ $Date: 2002/06/03 14:19:53 $) MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE - Windows binaries from http://www2.dmsolutions.ca/mapserver/dl/ Thanks for any help. Regards, Agnieszka ?ak ---------------------------------------------------------------------- Gratis. Non-stop informacje. >>> http://link.interia.pl/f1635 From Simon.Kirkness at fisheries.nsw.gov.au Sun Aug 11 17:16:11 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Mon, 12 Aug 2002 10:16:11 +1000 Subject: [mapserver-users] Gmap Message-ID: Hi All, I have the Gmap application working with php/mapscript and have replaced the shapefiles with my own. My data is in Decimal degrees and I have changed the quick view to zoom into areas of interest. Can anyone tell me why the script in the gmap.phtml file for the quick view does not handle decimal places? Regards <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From pucher at atlas.gis.univie.ac.at Mon Aug 12 00:01:37 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Mon, 12 Aug 2002 09:01:37 +0200 Subject: [mapserver-users] [Fwd: Re: [postgis-users] PostGIS spatial query performance] Message-ID: <3D575D51.8060909@atlas.gis.univie.ac.at> Just to complete this, here is an answer I got from the PostGIS mailinglist. I was able to speed up my query from 6 min to 2 seconds :-) regards alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum -------------- next part -------------- An embedded message was scrubbed... From: unknown sender Subject: no subject Date: no date Size: 38 URL: From jhart at frw.uva.nl Thu Aug 8 11:15:08 2002 From: jhart at frw.uva.nl (Jan Hartmann) Date: Thu, 8 Aug 2002 20:15:08 +0200 Subject: [postgis-users] PostGIS spatial query performance In-Reply-To: <3D528DDD.9977BB10@refractions.net> Message-ID: It is possible to do this much faster. As Paul said, you can speed up a distance query (which doesn't use indices) by preceding it with an overlap query, like: select park.* from park,roads where park.the_geom && roads.the_geom and distance(park.the_geom,mypoints.the_geom) = 0 This will select all parks whose bounding boxes overlap with roads, using an index. The distance function then uses this subset to retrieve those parks that actually overlap. In your case, you also want all parks within 2 km (?) of roads, so the && operator is too restrictive. However, the same argument holds for the box3d operator: you can first test on overlapping bounding boxes (plus your margin), and use the distance function on the resulting set only. Like: select park.* from park,roads where xmin(box3d(park.the_geom)) <= xmax(box3d(roads.the_geom)) + 2 and xmax(box3d(park.the_geom)) >= xmin(box3d(roads.the_geom)) - 2 and ymin(box3d(park.the_geom)) <= ymax(box3d(roads.the_geom)) + 2 and ymax(box3d(park.the_geom)) >= ymin(box3d(roads.the_geom)) - 2 and distance(park.the_geom,roads.the_geom) <= 2 This should give you much faster retrieval times; it did so on my data by some orders of magnitude. Of course, if an individual road winds through the whole area, its bounding box will overlap with everything and you won't have much time gain then. If that's really a problem, you could split up the roads into smaller parts. I'm not sure David's point is valid. As far as I understand it, PostgreSQL optimizes joins, among other things by using indexes. The problem here seems to be that indexes won't used with the distance function, but will when using && and bbox. I guess it would be reasonably difficult to program the distance function in such a way that it can be used by PostgreSQL index-based functions regards, Jan Hartmann Department of Geography University of Amsterdam jhart at frw.uva.nl -----Original Message----- From: postgis-users-admin at postgis.refractions.net [mailto:postgis-users-admin at postgis.refractions.net]On Behalf Of Paul Ramsey Sent: Thursday, August 08, 2002 5:27 PM To: postgis-users at postgis.refractions.net Subject: Re: [postgis-users] PostGIS spatial query performance Yes, this is sadly true. In order to figure out the answer, there is choice by to interogate every feature in at least one of the tables. In the distance-from-a-fixed-point case, it is possible to leverage the indexing to make the process very fast. Construct a query rectagle which is slightly larger than your desired filter radius, and do an overlap query (&&) as well as the distance() query. The && query will use the index and drastically subset the amount of features which need the distance() test applied to them. Ideally, distance() would do this automatically in some way, so that even the full join distance(geomcolumn,geomcolumn case would at least finish in closer to a*n time rather than n*m time. P. David Garnier wrote: > > Hello, > Spatial indexing can't do anything for you since you're explicitly > asking for a full join between two tables. If you think about it, your > queries computes the distance between each possible pairs of shapes in > your tables. So if you have 10000 shapes in each table,this means that > distance will be called 100.000.000 times. Ouch. > > You should try to find another way to get the data you're looking for. > > Best Regards, > David Garnier > > le jeu 08-08-2002 ? 12:31, Alexander Pucher a ?crit : > > Hi, > > > > I have a question concerning the performance of a spatial query in PostGIS. > > > > -) I put all GMAP demo layers into my PostgreSQL/PostGIS database. > > -) I created GIST indexes for all tables. > > > > create index park_gist on park > > using GIST (the_geom GIST_GEOMETRY_OPS) > > . > > . > > . > > > > -) Did vacuum analyze all tables. > > > > OK, I want to query all parks in the GMAP demo that have a road running > > through them. > > > > My SQL query: > > > > SELECT park.* > > FROM park, road > > WHERE DISTANCE(park.the_geom, road.the_geom) < 2 > > > > > > > > EXPLAIN SELECT park.* > > FROM park, road > > WHERE DISTANCE(park.the_geom, road.the_geom) < 2 > > > > gives me the following output: > > > > Nested Loop (cost=0.00..8917.66 rows=23736 width=163) > > -> Seq Scan on park (cost=0.00..7.46 rows=46 width=131) > > -> Seq Scan on road (cost=0.00..170.48 rows=1548 width=32) > > > > > > the query works fine and gives me the correct result after.....about 6 > > minutes ( on my 1Ghz Notebook)!! > > > > I expected the result to be there within seconds?!? > > > > Something wrong with the indexes?? > > > > Any help is welcome. > > > > regards > > alex > > > > > > > > > > -- > > ________________________________________________________ > > > > Institut fuer Geographie und Regionalforschung > > Universitaet Wien > > Kartografie und Geoinformation > > > > Departement of Geography and Regional Research > > University of Vienna > > Cartography and GIS > > > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > > > Tel: (+43 1) 4277 48644 > > Fax: (+43 1) 4277 48649 > > E-mail: alexander.pucher at univie.ac.at > > > > FTP: ftp://ftp.gis.univie.ac.at > > WWW: http://www.gis.univie.ac.at/karto > > -------------------------------------------------------- > > Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at > > -------------------------------------------------------- > > > > M$ is not the answer. M$ is the question! > > No is the answer -- Eric Naggum > > > > > > > > _______________________________________________ > > postgis-users mailing list > > postgis-users at postgis.refractions.net > > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users --------------030601060709070809030907-- From BraeckelD at etminc.com Mon Aug 12 05:30:17 2002 From: BraeckelD at etminc.com (Doug Braeckel) Date: Mon, 12 Aug 2002 08:30:17 -0400 Subject: [mapserver-users] Mapplet Problem Message-ID: That was the problem. Java didn't like the PNG file. JPG worked great, but the quality, even bumped all the way up, is lacking. I guess I'm going to have to go with GIF or just deal with the poor image quality. Thanks to everyone who responded. Now I just have to get the "Applet mapplet document.form1 has no properties" error figured out. Thanks again, Doug Doug Braeckel Senior GIS Programmer England, Thims & Miller, Inc. PH: (904) 642-8990 FX: (904) 646-9485 -----Original Message----- From: m.spring at gmx.de [mailto:m.spring at gmx.de] Sent: Friday, August 09, 2002 3:10 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mapplet Problem Hi, your image url points to a png file. At least to my knowlegde java is not able to handle png files, but your browser may be! Retry with gif or jpg, this (to my knowledge) should work Markus From lfilak at medinaco.org Mon Aug 12 06:54:02 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Mon, 12 Aug 2002 09:54:02 -0400 Subject: [mapserver-users] build 3.6.1 warnings and errors Message-ID: <200208121341.g7CDfe820883@yogi.medinaco.net> I can't seem to reproduce the error you're getting. However did you make sure to do a 'make clean' in both the mapserver-* & mapserver-*/mapscript/perl directory before trying to build mapscript? Lowell F. The following message was sent by Zak James on Sat, 10 Aug 2002 23:24:28 -0400. > Does perl/mapscript build ok with older gcc versions on OS X 10.1.5? > What does gcc -v return? > > Zak > On Friday, August 9, 2002, at 10:49 PM, Puneet Kishor wrote: > > > Thanks for the suggestion Daniel. > > > > A few questions -- > > > > On Friday, August 9, 2002, at 05:04 PM, Daniel Morissette wrote: > > > >> Puneet Kishor wrote: > >>> > >>> well, it seems to be ranlib-ing, but complains about it being "out of > >>> date". > >>> I am wondering if it has something to do with the fact that some > >>> stuff got > >>> written to > >>> > >>> cp -f libmap.a /usr/local/lib/ > >>> cp -f map.h /usr/local/include/mapserver-3.5/ > >>> > >>> during ms make install. > >>> > >> > >> MapServer's 'make install' target should be avoided. It has no real > >> use, except confusing your build when you upgrade to a new version of > >> MapServer. > > > > I am not sure what you mean by "'make install' target should be > > avoided." I never gave any target. All I did was 'make install' at the > > prompt. Are you saying I don't need to 'make install'? > > > >> > >> I suggest deleting /usr/local/lib/libmap.a, and > >> /usr/local/include/mapserver-3.5/map.h, and then restart your build > >> (make clean; make) ... the problem may go away. > > > > Did that, and am now faced with the following... > > > > Mapserv builds fine, but Perl/Mapscript refuses to. Croaks out with the > > message -- > > > > /usr/bin/ld: table of contents for archive: /usr/local/lib/libmap.a is > > out of date; rerun ranlib(1) (can't load from it) > > make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1 > > > > > > Any suggestion? > > > > Tia, > > > > pk. > > From Chip.Hankley at GASAI.Com Mon Aug 12 07:05:21 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 12 Aug 2002 09:05:21 -0500 Subject: [mapserver-users] Simple ItemQuery with QueryMap & php MapScr ipt Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCBD@postoffice.GASAI.Com> Hi Dana... Re-visit the way EXPRESSION works in the mapfile syntax. EXPRESSION can be simple (the way I outlined in my note), or LOGICAL or REGULAR. In your case, you would probably want to use a LOGICAL expression. See http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class Your original question really had two parts: a) how to hi-lite a particular record b) how to zoom to a particular record So for a)... $Layer = $map->getlayerbyname("county"); $Object = $Layer->getClass(0); $myExpression = "('[STATE_NM]' eq 'MARYLAND' AND '[CO_NAME]' eq 'MONTGOMERY')"; $Object->setexpression($myExpression); ... for b) You would just simply re-work the way you do the dbase query. Rather than look for records where CO_NAME equals MONTGOMERY, you'd have to look for the record where STATE_NM also equals MARYLAND. Unfortunately, the dbase module in PHP doesn't seem to support SQL style queries (I could be wrong on this)... so the syntax of something like that will be a little ugly. So... ... for ($i=1; $i <= $nr; $i++) { $cur_row = dbase_get_record_with_names ($dbi, $i); //something like this should work if (trim($value1) == trim($cur_row[$db_field1]) and trim($value2) == trim($cur_row[$db_field2])) { $row_id = $i; break; } BTW, I haven't done this in PostGIS, but I'm relatively confident it would be MUCH easier. For starters, you could issue an SQL style query against PostgreSQL to return the record(s) you want...PLUS I believe you can pull the spatial extent of a record right out of the PostGIS database, so you wouldn't have to go through the other little pieces of MapScript code. Chip -----Original Message----- From: Dana Coe [mailto:thesquid at friedbaloney.com] Sent: Friday, August 09, 2002 8:18 PM To: Hankley, Chip Subject: Re: [mapserver-users] Simple ItemQuery with QueryMap & php MapScr ipt Chip, The routine you sent me worked quite well, however, it unfortunately selects counties with the same name from multiple states. Ie, Montgomery MD & Montgomery PA. I've tried setting a separate class in my counties layer to link to the 'State' attribute in the dbf file, but it doesn't seem to get queried, much less filtered by a regex. In other words, can I do a nested setexpression on two different attributes from the same dbf file? Thanks for your help, Dana From pkishor at GeoAnalytics.com Mon Aug 12 07:12:52 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 12 Aug 2002 09:12:52 -0500 Subject: [mapserver-users] build 3.6.1 warnings and errors Message-ID: Lowell, Zak, Thanks for the help. Also, thanks to DM. I cleaned the crap out of my machine... everything conceivably related to ms3.5. Started afresh, and Perl/Mapscript compiled. I wonder if an uninstall script would be worthwhile... a log could be created indicating what was installed where and what version. The uninstall script could work with that log, optionally removing older junk. Needless to say, Perl/Mapscript commands have changed. That, of course, is another challenge... thanks to you all for the great work. pk/ > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: Monday, August 12, 2002 8:54 AM > To: Zak James; Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] build 3.6.1 warnings and errors > > > I can't seem to reproduce the error you're getting. However > did you make sure to do a 'make clean' in both the > mapserver-* & mapserver-*/mapscript/perl directory before > trying to build mapscript? > Lowell F. > > The following message was sent by Zak James > on Sat, 10 Aug 2002 23:24:28 -0400. > > > Does perl/mapscript build ok with older gcc versions on OS > X 10.1.5? > > What does gcc -v return? > > > > Zak > > On Friday, August 9, 2002, at 10:49 PM, Puneet Kishor wrote: > > > > > Thanks for the suggestion Daniel. > > > > > > A few questions -- > > > > > > On Friday, August 9, 2002, at 05:04 PM, Daniel Morissette wrote: > > > > > >> Puneet Kishor wrote: > > >>> > > >>> well, it seems to be ranlib-ing, but complains about it > being "out of > > >>> date". > > >>> I am wondering if it has something to do with the fact > that some > > >>> stuff got > > >>> written to > > >>> > > >>> cp -f libmap.a /usr/local/lib/ > > >>> cp -f map.h /usr/local/include/mapserver-3.5/ > > >>> > > >>> during ms make install. > > >>> > > >> > > >> MapServer's 'make install' target should be avoided. It > has no real > > >> use, except confusing your build when you upgrade to a > new version of > > >> MapServer. > > > > > > I am not sure what you mean by "'make install' target should be > > > avoided." I never gave any target. All I did was 'make > install' at the > > > prompt. Are you saying I don't need to 'make install'? > > > > > >> > > >> I suggest deleting /usr/local/lib/libmap.a, and > > >> /usr/local/include/mapserver-3.5/map.h, and then restart > your build > > >> (make clean; make) ... the problem may go away. > > > > > > Did that, and am now faced with the following... > > > > > > Mapserv builds fine, but Perl/Mapscript refuses to. > Croaks out with the > > > message -- > > > > > > /usr/bin/ld: table of contents for archive: > /usr/local/lib/libmap.a is > > > out of date; rerun ranlib(1) (can't load from it) > > > make: *** [blib/arch/auto/mapscript/mapscript.bundle] Error 1 > > > > > > > > > Any suggestion? > > > > > > Tia, > > > > > > pk. > > > > From Chip.Hankley at GASAI.Com Mon Aug 12 07:25:15 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 12 Aug 2002 09:25:15 -0500 Subject: [mapserver-users] Simple ItemQuery with QueryMap & php MapScr ipt Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCBF@postoffice.GASAI.Com> Nicol... I'm forwarding this to the MapServer list. On first glance, it looks OK to me... I don't generally create mapfiles on the fly, so, it's hard for me to de-bug that part of your code... that could be where the problem is. For de-bugging purposes, I'd first go back and try to do this against a static mapfile. See if that works, then try to implement it with building the mapfile on-the-fly like that. Chip -----Original Message----- From: Nicol Hermann [mailto:mapserver at geochem.de] Sent: Saturday, August 10, 2002 1:39 PM To: Hankley, Chip Subject: RE: [mapserver-users] Simple ItemQuery with QueryMap & php MapScript Hi Chip, inspired by your posting in the Mapserver-Newsgroup i try to reproduce the 'simple ItemQuery' with PHP-Mapscript. This works fine till i tryed to get the values of the selected EXPRESSION. I try the following at the position // ===> <=== marked in the Script $numResults = $Layer->getNumResults(); $Layer->open($map->shapepath); $getDesc = $lyObj->getMetaData("DESCRIPTION"); $selFields = explode(" ", $Layer->getMetaData("RESULT_FIELDS")); for($j = 0;$j < $numResults;$j++) { $oRes = $Layer->getResult($j); $oShape = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); $res = $res.'|'.$oShape->values[$selFields[0]]; } $numResults is 0 so i get nothing back. Here is my Script so far. Could you please give me an hint or a short code snippet what i have to do to get the values. My setting is: Mapserver 3.6.1 Debian 3.0 PHP (CGI) 4.2.2 Thank you very much Nicol P.S The Script is based on the Shapes from http://maps.dnr.state.mn.us/mapserver_demos/tests3.5/itemquery/test.html //////////////////////////// addColor(255, 0, 0); $nOutLineColor = $map -> addColor(0, 0, 0); $nOtherColorId = $map -> addColor(212, 212, 212); $map -> web -> set ("imagepath","{$verzpfad}tmp/"); $map -> web -> set ("imageurl", "{$serverpfad}tmp/"); $map -> set ("width", 300); $map -> set ("height", 300); $map -> setExtent(74000,4775000,798000,5499000); $Layer = ms_newLayerObj($map); $Layer -> set("name","county"); $Layer -> set("status", 1); $Layer -> set("data","{$verzpfad}{$datapath}/$data"); $Layer -> setMetaData("DESCRIPTION","$descr"); $Layer -> setMetaData("RESULT_FIELDS","CTY_NAME COUN"); $Layer -> set("classitem", "cty_name"); // entspr. FILTERITEM im map-File $Layer -> set("type", MS_LAYER_POLYGON ); $poClass = ms_newClassObj($Layer); $poClass -> set("color", $nColorId); // Farbe des gewaehlten Elements $poClass -> set("outlinecolor", $nOutLineColor); // Umrissfarbe des gewaehlten Elements $poClass -> set("template", "php_selected.html"); $poClass -> set("name", "Selektiere Elemente"); $Object = $Layer->getClass(0); $Object -> setexpression($some_co_value); // entspr. FILTER im map-File // ===> <=== $otherClass = ms_newClassObj($Layer); $otherClass -> set("color", $nOtherColorId); $otherClass -> set("outlinecolor", $nOutLineColor); // Umrissfarbe der nicht gewaehlten Elemente $otherClass -> set("template", "php_selected.html"); $otherClass -> set("name", "Nicht selektiere Elemente"); $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, $map->transparent, $map->interlace, 50); $img->free(); printf("

Referenzkarte:
\n", $url); ?> From DMartin at erac.com Mon Aug 12 09:57:36 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 12 Aug 2002 11:57:36 -0500 Subject: [mapserver-users] Mapplet Problem Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2B7@STL-EXBE-I03.corp.erac.com> I believe Rosa works with PNG. Perhaps it would be a better fit for you? -Dan -----Original Message----- From: Doug Braeckel [mailto:BraeckelD at etminc.com] Sent: Monday, August 12, 2002 7:30 AM To: 'm.spring at gmx.de'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Mapplet Problem That was the problem. Java didn't like the PNG file. JPG worked great, but the quality, even bumped all the way up, is lacking. I guess I'm going to have to go with GIF or just deal with the poor image quality. Thanks to everyone who responded. Now I just have to get the "Applet mapplet document.form1 has no properties" error figured out. Thanks again, Doug Doug Braeckel Senior GIS Programmer England, Thims & Miller, Inc. PH: (904) 642-8990 FX: (904) 646-9485 -----Original Message----- From: m.spring at gmx.de [mailto:m.spring at gmx.de] Sent: Friday, August 09, 2002 3:10 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mapplet Problem Hi, your image url points to a png file. At least to my knowlegde java is not able to handle png files, but your browser may be! Retry with gif or jpg, this (to my knowledge) should work Markus From carrolls at unbc.ca Mon Aug 12 10:14:44 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Mon, 12 Aug 2002 10:14:44 -0700 (PDT) Subject: [mapserver-users] ogr2ogr error Message-ID: Hi, I try running ogr2ogr and this is the result I keep getting. carrolls:~/commhealth/can_uep> ogr2ogr -f "ESRI Shapefile" -where "Prov = 'BC'" ../bc_uep/bcuep.shp canuep.shp ERROR 1: Syntax error, 2 extra tokens I can't find any details on the error in the internet. Does anyone have anyideas on what the erro might be? -- Seamus Carroll From sgillies at i3.com Mon Aug 12 11:07:08 2002 From: sgillies at i3.com (Sean Gillies) Date: Mon, 12 Aug 2002 12:07:08 -0600 Subject: [mapserver-users] New method for Python mapscript Message-ID: <3D57F94C.5020002@i3.com> Greetings Python mapscript users, Recently, I've found the use for getting mapserver map images as Python string objects. Rather than fill in the empty Python getImageToVar() method, I decided to write a new interface for a method I'm calling getImageString(). Mostly I disagreed with the notion of getting to a variable through its name as a string. I'm including the code that you might paste into your mapscript.i file within the imageObj definition. You will need to modify your setup.py script so that -DUSE_GD_PNG and -DUSE_GD_JPEG as passed as arguments to swig. I've only tested this with gd-1.8.4 but will be moving on to gd-2 next week. So, now we can do stuff like this: import MapScript mapob = MapScript.mapObj(...) imgob = mapObj.draw() data = imgob.getImageString(...) png = file("map.png", "wb") png.write(data) png.close() This is trivial. It's more useful for creating Zope image objects from a Zope Python script like this: import StringIO import MapScript mapob = MapScript.mapObj(...) imgob = mapObj.draw() data = StringIO.StringIO(imgob.getImageString(...)) self.manage_addImage('map.png', data, "", "", 'image/png') Hope that you find this of use and happy to hear any other ideas. cheers, Sean -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: getImageString.txt URL: From btolka at geointeractive.biz Mon Aug 12 11:47:51 2002 From: btolka at geointeractive.biz (Bryan Tolka) Date: Mon, 12 Aug 2002 14:47:51 -0400 Subject: [mapserver-users] Mapplet Problem References: <4ACBA1414DD9EE418CC250E4AAA9035A16F2B7@STL-EXBE-I03.corp.erac.com> Message-ID: <3D5802D7.9090100@geointeractive.biz> I do not think Rosa is compatible with PNG, only JPEG. However, I have not been able to officially confirm this. Bryan Tolka Martin, Daniel wrote: > I believe Rosa works with PNG. Perhaps it would be a better fit for you? > > -Dan > > -----Original Message----- > From: Doug Braeckel [mailto:BraeckelD at etminc.com] > Sent: Monday, August 12, 2002 7:30 AM > To: 'm.spring at gmx.de'; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Mapplet Problem > > > > That was the problem. Java didn't like the PNG file. JPG worked great, but > the quality, even bumped all the way up, is lacking. I guess I'm going to > have to go with GIF or just deal with the poor image quality. > > Thanks to everyone who responded. Now I just have to get the "Applet > mapplet document.form1 has no properties" error figured out. > > Thanks again, > > Doug > > > Doug Braeckel > Senior GIS Programmer > England, Thims & Miller, Inc. > PH: (904) 642-8990 > FX: (904) 646-9485 > > > -----Original Message----- > From: m.spring at gmx.de [mailto:m.spring at gmx.de] > Sent: Friday, August 09, 2002 3:10 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Mapplet Problem > > > Hi, > > your image url points to a png file. At least to my knowlegde java is > not able to handle png files, but your browser may be! > Retry with gif or jpg, this (to my knowledge) should work > > Markus > > From lists.ahaigh at dsl.pipex.com Mon Aug 12 11:50:04 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Mon, 12 Aug 2002 19:50:04 +0100 Subject: [mapserver-users] Mapplet Problem References: <4ACBA1414DD9EE418CC250E4AAA9035A16F2B7@STL-EXBE-I03.corp.erac.com> Message-ID: <3D58035C.8070004@dsl.pipex.com> You'll find it depends on the version of Java on the users machine. The latest versions support png. Andrew Martin, Daniel wrote: >I believe Rosa works with PNG. Perhaps it would be a better fit for you? > >-Dan > >-----Original Message----- >From: Doug Braeckel [mailto:BraeckelD at etminc.com] >Sent: Monday, August 12, 2002 7:30 AM >To: 'm.spring at gmx.de'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] Mapplet Problem > > > >That was the problem. Java didn't like the PNG file. JPG worked great, but >the quality, even bumped all the way up, is lacking. I guess I'm going to >have to go with GIF or just deal with the poor image quality. > >Thanks to everyone who responded. Now I just have to get the "Applet >mapplet document.form1 has no properties" error figured out. > >Thanks again, > >Doug > > >Doug Braeckel >Senior GIS Programmer >England, Thims & Miller, Inc. >PH: (904) 642-8990 >FX: (904) 646-9485 > > >-----Original Message----- >From: m.spring at gmx.de [mailto:m.spring at gmx.de] >Sent: Friday, August 09, 2002 3:10 PM >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Mapplet Problem > > >Hi, > >your image url points to a png file. At least to my knowlegde java is >not able to handle png files, but your browser may be! >Retry with gif or jpg, this (to my knowledge) should work > >Markus > > > From Martha.F.Bullock at erdc.usace.army.mil Mon Aug 12 12:12:20 2002 From: Martha.F.Bullock at erdc.usace.army.mil (Bullock, Martha F ERDC-CRREL-NH) Date: Mon, 12 Aug 2002 15:12:20 -0400 Subject: [mapserver-users] featureitemquery vs. itemfeaturequery Message-ID: <048FBD219330D211B47000A0C9B3BAFD03A1654B@crl02.crrel.usace.army.mil> Dear List, A while back I submitted a question about the syntax and functionality of FEATUREITEMQUERY, as stated as a mode option in the 3.6 help documentation. Since that time I have received a couple of very helpful responses - all stating that the mode listed in the CGI reference should read ITEMFEATUREQUERY instead of featureitemquery. I just wanted to formally post the correction to the list for all who may have the same question in the future. Thanks again to all who responded. Martha From DMartin at erac.com Mon Aug 12 12:32:47 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 12 Aug 2002 14:32:47 -0500 Subject: [mapserver-users] Mapplet Problem Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2B8@STL-EXBE-I03.corp.erac.com> Okay, that makes sense. Definitely not a solution if many JVMs don't support it. -Dan -----Original Message----- From: Andrew Haigh [mailto:lists.ahaigh at dsl.pipex.com] Sent: Monday, August 12, 2002 1:50 PM To: Martin, Daniel Cc: 'Doug Braeckel'; 'm.spring at gmx.de'; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mapplet Problem You'll find it depends on the version of Java on the users machine. The latest versions support png. Andrew Martin, Daniel wrote: >I believe Rosa works with PNG. Perhaps it would be a better fit for you? > >-Dan > >-----Original Message----- >From: Doug Braeckel [mailto:BraeckelD at etminc.com] >Sent: Monday, August 12, 2002 7:30 AM >To: 'm.spring at gmx.de'; mapserver-users at lists.gis.umn.edu >Subject: RE: [mapserver-users] Mapplet Problem > > > >That was the problem. Java didn't like the PNG file. JPG worked great, but >the quality, even bumped all the way up, is lacking. I guess I'm going to >have to go with GIF or just deal with the poor image quality. > >Thanks to everyone who responded. Now I just have to get the "Applet >mapplet document.form1 has no properties" error figured out. > >Thanks again, > >Doug > > >Doug Braeckel >Senior GIS Programmer >England, Thims & Miller, Inc. >PH: (904) 642-8990 >FX: (904) 646-9485 > > >-----Original Message----- >From: m.spring at gmx.de [mailto:m.spring at gmx.de] >Sent: Friday, August 09, 2002 3:10 PM >To: mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Mapplet Problem > > >Hi, > >your image url points to a png file. At least to my knowlegde java is >not able to handle png files, but your browser may be! >Retry with gif or jpg, this (to my knowledge) should work > >Markus > > > From DMartin at erac.com Mon Aug 12 13:08:39 2002 From: DMartin at erac.com (Martin, Daniel) Date: Mon, 12 Aug 2002 15:08:39 -0500 Subject: [mapserver-users] ogr2ogr error Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2B9@STL-EXBE-I03.corp.erac.com> You might get a better response on the GDAL mailing list: http://groups.yahoo.com/group/gdal-dev/ OGR falls within the GDAL umbrella, and they are pretty responsive to OGR questions like yours. -Dan -----Original Message----- From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca] Sent: Monday, August 12, 2002 12:15 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ogr2ogr error Hi, I try running ogr2ogr and this is the result I keep getting. carrolls:~/commhealth/can_uep> ogr2ogr -f "ESRI Shapefile" -where "Prov = 'BC'" ../bc_uep/bcuep.shp canuep.shp ERROR 1: Syntax error, 2 extra tokens I can't find any details on the error in the internet. Does anyone have anyideas on what the erro might be? -- Seamus Carroll From pkishor at GeoAnalytics.com Mon Aug 12 13:25:49 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 12 Aug 2002 15:25:49 -0500 Subject: [mapserver-users] malformed PNGs Message-ID: I am getting malformed PNGs... they are being made all right, but they are only about 3 to 4 k in length. The browser is unable to show them, and of course, opening them with an image application gives an error... "Not a valid PNG file". Any idea why? I am using ms3.5 with Perl/Mapscript. the machine I am developing on, a beatup box with RH 7.2, works just fine for a PHP Mapscript application. pk/ From mgiesbrecht at geoarctic.com Mon Aug 12 14:59:47 2002 From: mgiesbrecht at geoarctic.com (Mark Giesbrecht) Date: Mon, 12 Aug 2002 15:59:47 -0600 Subject: [mapserver-users] Question: MySQL/Postres and MapServer - how many? Message-ID: <3D582FD3.8599D3FC@geoarctic.com> Hi All, I mostly lurk in this newsgroup, and the odd time I've an actual question. I wanted to toss out a survey, trying to get a feel for the usage of MySQL and Postgres with MapServer. So, how many of you out there are using Mapserver integrated with MySQL, and how many are using Mapserver with Postgres? I'll sum up and post back to the group after a couple days... Thanks in advance, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mgiesbrecht.vcf Type: text/x-vcard Size: 346 bytes Desc: Card for Mark Giesbrecht URL: From carrolls at unbc.ca Mon Aug 12 16:33:23 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Mon, 12 Aug 2002 16:33:23 -0700 (PDT) Subject: [mapserver-users] Question: MySQL/Postres and MapServer - how many? In-Reply-To: <3D582FD3.8599D3FC@geoarctic.com> Message-ID: Hi, Could people answering this question also put down, if available, the URL to their mapserver site using mysql or postgres. Am interested in seeing what can be accomplished. Seamus On Mon, 12 Aug 2002, Mark Giesbrecht wrote: > Hi All, > > I mostly lurk in this newsgroup, and the odd time I've an actual > question. I wanted to toss out a survey, trying to get a feel for the > usage of MySQL and Postgres with MapServer. > > So, how many of you out there are using Mapserver integrated with > MySQL, and how many are using Mapserver with Postgres? > > I'll sum up and post back to the group after a couple days... > > Thanks in advance, > > Mark > -- Seamus Carroll From Antti.Roppola at brs.gov.au Mon Aug 12 16:54:42 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Tue, 13 Aug 2002 09:54:42 +1000 Subject: [mapserver-users] ogr2ogr error Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9952F0@ACTMAIL2> Have you tried a process of elimination to find out what part of the command is causing the problems? cp ../bc_uep/bcuep.shp . ogr2ogr -f "ESRI Shapefile" bcuep.shp canuep.shp rm canuep.* ogr2ogr -f "ESRI Shapefile" ../bc_uep/bcuep.shp canuep.shp rm canup.* ogr2ogr -where "Prov = 'BC'" bcuep.shp canuep.shp etc. etc. Antti -----Original Message----- From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca] Sent: Tuesday, 13 August 2002 3:15 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ogr2ogr error Hi, I try running ogr2ogr and this is the result I keep getting. carrolls:~/commhealth/can_uep> ogr2ogr -f "ESRI Shapefile" -where "Prov = 'BC'" ../bc_uep/bcuep.shp canuep.shp ERROR 1: Syntax error, 2 extra tokens I can't find any details on the error in the internet. Does anyone have anyideas on what the erro might be? -- Seamus Carroll From alex_rice at arc.to Mon Aug 12 17:02:28 2002 From: alex_rice at arc.to (Alex Rice) Date: Mon, 12 Aug 2002 18:02:28 -0600 Subject: [mapserver-users] q. combining mapscript and PostGIS Message-ID: Hi, I am using Perl mapscript. I am wondering if there are any other ways to manipulate the extent of the map object, other than by directly accessing mapobject's rectobject. Like via a layer's filter somehow? I am querying postgis tables for street objects and school district objects. I want to zoom the map object's extent to match the bounding box of search results. I think the postgis query for the bounding box would be like: # select Extent(the_geom) from cityplus where stanno like '%LOMAS BLVD%'; BOX3D(-106.670434 35.086152 0,-106.487795 35.094625 0) (1 row) I know I could open a DBI connection, do another query, and then setting the extent on the mapobject's rectobj. But I don't want to use DBI unless necessary. Thanks, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From carrolls at unbc.ca Mon Aug 12 18:06:39 2002 From: carrolls at unbc.ca (Seamus Thomas Carroll) Date: Mon, 12 Aug 2002 18:06:39 -0700 (PDT) Subject: [mapserver-users] ogr2ogr error In-Reply-To: <595FE28AB1EBD111920F0060B06B3DD70D9952F0@ACTMAIL2> Message-ID: It turns out that the quotes around BC are not supported. After this was pointed out I was able to run the command using, ogr2ogr -where "PROV_CODE = 59" /home/carrolls/commhealth/bc_uep/ /home/carrolls/commhealth/can_uep/canuep.shp On Tue, 13 Aug 2002 Antti.Roppola at brs.gov.au wrote: > Have you tried a process of elimination to find out > what part of the command is causing the problems? > > cp ../bc_uep/bcuep.shp . > ogr2ogr -f "ESRI Shapefile" bcuep.shp canuep.shp > > rm canuep.* > ogr2ogr -f "ESRI Shapefile" ../bc_uep/bcuep.shp canuep.shp > > rm canup.* > ogr2ogr -where "Prov = 'BC'" bcuep.shp canuep.shp > > etc. etc. > > Antti > > -----Original Message----- > From: Seamus Thomas Carroll [mailto:carrolls at unbc.ca] > Sent: Tuesday, 13 August 2002 3:15 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] ogr2ogr error > > > Hi, > > I try running ogr2ogr and this is the result I keep getting. > > carrolls:~/commhealth/can_uep> ogr2ogr -f "ESRI Shapefile" -where "Prov = > 'BC'" ../bc_uep/bcuep.shp canuep.shp > ERROR 1: Syntax error, 2 extra tokens > > I can't find any details on the error in the internet. Does anyone have > anyideas on what the erro might be? > -- Seamus Carroll From kap at qwest.net Mon Aug 12 23:26:06 2002 From: kap at qwest.net (Ken Patterson) Date: Mon, 12 Aug 2002 23:26:06 -0700 Subject: [mapserver-users] Calculating pixel coordinates from latlong Message-ID: <005501c24292$4e7a46d0$43eae63f@north.patterson.com> Hello, We hope to liven up our backgrounds using Mapserver output from either the perl interface or using shp2img. At this time we are trying to figure out how to map a world coordinates (lat/long) to pixel coordinates (from Perl). I can create a background image with Perl Mapserver and save it to a png file then to be loaded back in w/ GD::newFromPng(). What Information do I need in order to translate from World (lat/long) to a pixel coordinate? Is this something that can be done w/in the Perl Mapserver interface? Has anyone gone through this and can provide some direction? >From searching through the Mapserver archives it seems that the "true" Extent needs to be found and that a projection needs to take place. I've seen some references to a Perl interface to Proj.4 but could not retrieve the files. Any help of ideas would be greatly appreciated! Thanks, Ken $map_path = /my.map"; $amap = new mapObj( "$map_path ); # ---------------------------- Set the image w/h $amap->{width} = 200; $amap->{height} = 100; # ------------------------------ Create my extent (Arizona) $myExtent = new rectObj(); $myExtent->{maxx} = -111.35; $myExtent->{minx} = -112.97; $myExtent->{maxy} = 33.62; $myExtent->{miny} = 33.19; $amap->{extent} = $myExtent; # ----------------------------- Draw the maps $image = $amap->draw(); # ----------------------------- Save the bitmap $image_url = $image->saveImage( "/tmp/test.png", $mapscript::MS_PNG, 1, 1, 95 ); # ----------------------------- Get the image file to a GD image my $backGroundImage = GD::Image->newFromPng( "/tmp/test.png" ); # ---------------------------- Want try draw some stuff on the image my ( $vx, $vy ) = TranslateToViewport( ... ) # Draw my stuff at/around pt ( $vx, $vy ) If I'm understanding it correctly Mapserver is using a projection and the extent is altered as well. -------------- next part -------------- An HTML attachment was scrubbed... URL: From oskhom at yahoo.com Tue Aug 13 00:17:35 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Tue, 13 Aug 2002 00:17:35 -0700 (PDT) Subject: [mapserver-users] Extent Message-ID: <20020813071735.2028.qmail@web10409.mail.yahoo.com> Dear users, I have two question: 1- I have a RASTER file with BMP format.I like to use it in my map file.This bmp file is produced and updated via a VB program every 10 minutes. When I call my home page ervrything is ok even GIF files fill the TEMP folder but I can not see any map on the screen. 2- How EXTEND parameters (inside map file)is determined for raster files. I should be grateful if some body would tell me what wrong is. Thanks in advance, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From oskhom at yahoo.com Tue Aug 13 00:48:08 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Tue, 13 Aug 2002 00:48:08 -0700 (PDT) Subject: [mapserver-users] Installation Message-ID: <20020813074808.9262.qmail@web10403.mail.yahoo.com> Dear Users, According to Mapserver site recommendations to test software I type the following URL in my browser: "http://alioskue/cgi-bin/mapserv.exe" and I get the following message: "No query infomation to decode.QUERY_STRING no set." Now I like to know does my mapserver work completely or not? Please somebody tell me his/her idea? Thanks in advance, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From lfilak at medinaco.org Tue Aug 13 04:12:24 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 13 Aug 2002 07:12:24 -0400 (EDT) Subject: [mapserver-users] malformed PNGs In-Reply-To: Message-ID: If you already have $ENV{MS_ERRORFILE} = "/var/log/mapserver.log" near the top of your perl script does the log show an error while rendering any of the layers? Lowell F. On Mon, 12 Aug 2002, Puneet Kishor wrote: > I am getting malformed PNGs... they are being made all right, but they are > only about 3 to 4 k in length. The browser is unable to show them, and of > course, opening them with an image application gives an error... "Not a > valid PNG file". > > Any idea why? > > I am using ms3.5 with Perl/Mapscript. > > the machine I am developing on, a beatup box with RH 7.2, works just fine > for a PHP Mapscript application. > > pk/ > From alex_rice at arc.to Tue Aug 13 09:07:42 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 13 Aug 2002 10:07:42 -0600 Subject: [mapserver-users] followup - q. combining mapscript and PostGIS Message-ID: It appears that the filter on a layer objects only decides the content, not the extent of the layer. Is that correct? Also, is it even possible to use Perl DBI from Mapscript? My script dies when I attempt it: % ./mapscript.cgi dyld: perl multiple definitions of symbol _DLAddHead /Library/Perl/darwin/auto/mapscript/mapscript.bundle definition of _DLAddHead /Library/Perl/darwin/auto/DBD/Pg/Pg.bundle definition of _DLAddHead Thanks for any suggestions, Alex Begin forwarded message: > From: Alex Rice > Date: Tue Aug 13, 2002 09:32:12 AM US/Mountain > To: vinko at cprsig.cl > Subject: Re: [mapserver-users] q. combining mapscript and PostGIS > > > On Tuesday, August 13, 2002, at 03:07 AM, Vinko Vrsalovic wrote: >> >> I didn't get if you actually do a query in your mapscript code or not. > > So far I am only doing the queries by setting the filter on my > layer objects using mapscript, not doing a query with DBI. > > This is my first mapscript app and I'm kind of getting a feel for > the design issues involved. > >> If not, and the queries are done by mapserver libraries and you >> wish to >> avoid doing an extra query, my guess is that you can't, because, >> AFAIU, >> FILTER is used to determine what is shown, not how... but I may >> be wrong. > > OK, thanks for confirming. At least two pairs of eyes think so. > >> If you do a query, you could extract the extent in that same query, as >> in: >> >> select name, zipcode, extent(the_geom) as extent from streets where >> <...> group by name,zipcode; >> > > Yes, I guess I'll just do this. I may need to use DBI for other > purposes in this app as well. Not sure. > > Thanks, > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > > From pkishor at GeoAnalytics.com Tue Aug 13 09:18:20 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 13 Aug 2002 11:18:20 -0500 Subject: [mapserver-users] malformed PNGs Message-ID: well, I already had a line in my map file like so... LOG "/var/www/html/bims/tmp/mapserver.log" I added $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" to my perl script. I don't get any log files written out. Do I have to set this ENV variable in the Apache conf file? or at the shell prompt using setenv? Tia, pk/ > If you already have > $ENV{MS_ERRORFILE} = "/var/log/mapserver.log" > near the top of your perl script does the log show an error while > rendering any of the layers? > Lowell F. > > On Mon, 12 Aug 2002, Puneet Kishor wrote: > > > I am getting malformed PNGs... they are being made all > right, but they are > > only about 3 to 4 k in length. The browser is unable to > show them, and of > > course, opening them with an image application gives an > error... "Not a > > valid PNG file". > > > > Any idea why? > > > > I am using ms3.5 with Perl/Mapscript. > > > > the machine I am developing on, a beatup box with RH 7.2, > works just fine > > for a PHP Mapscript application. > > > > pk/ > > > From alex_rice at arc.to Tue Aug 13 09:38:24 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 13 Aug 2002 10:38:24 -0600 Subject: [mapserver-users] q. combining mapscript and PostGIS In-Reply-To: Message-ID: <1618DE5D-AEDB-11D6-B271-000393529642@arc.to> (Alex, answering own post) This was covered on the Postgis mailing list. The answer is yes, you have to find the extent by other means, like by DBI query, then set the extent into your map object using mapscript. On Monday, August 12, 2002, at 06:02 PM, Alex Rice wrote: > Hi, I am using Perl mapscript. I am wondering if there are any > other ways to manipulate the extent of the map object, other than > by directly accessing mapobject's rectobject. Like via a layer's > filter somehow? > > I am querying postgis tables for street objects and school > district objects. I want to zoom the map object's extent to match > the bounding box of search results. I think the postgis query for > the bounding box would be like: > > # select Extent(the_geom) from cityplus where stanno like '%LOMAS > BLVD%'; > BOX3D(-106.670434 35.086152 0,-106.487795 35.094625 0) > (1 row) > > I know I could open a DBI connection, do another query, and then > setting the extent on the mapobject's rectobj. But I don't want > to use DBI unless necessary. From lfilak at medinaco.org Tue Aug 13 09:58:34 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 13 Aug 2002 12:58:34 -0400 (EDT) Subject: [mapserver-users] malformed PNGs In-Reply-To: Message-ID: The LOG is for logging requests whereas the ERRORFILE is for logging errors. Does the user that the webserver is running as have permission to write to /var/www/html/bims/tmp/mapserver.log or alternately /var/www/html/bims/tmp/error.log? There should at least be a log file with a record of the request. Lowell On Tue, 13 Aug 2002, Puneet Kishor wrote: > well, I already had a line in my map file like so... > > LOG "/var/www/html/bims/tmp/mapserver.log" > > I added > > $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" > > to my perl script. I don't get any log files written out. Do I have to set > this ENV variable in the Apache conf file? or at the shell prompt using > setenv? > > Tia, > > pk/ > > > If you already have > > $ENV{MS_ERRORFILE} = "/var/log/mapserver.log" > > near the top of your perl script does the log show an error while > > rendering any of the layers? > > Lowell F. > > > > On Mon, 12 Aug 2002, Puneet Kishor wrote: > > > > > I am getting malformed PNGs... they are being made all > > right, but they are > > > only about 3 to 4 k in length. The browser is unable to > > show them, and of > > > course, opening them with an image application gives an > > error... "Not a > > > valid PNG file". > > > > > > Any idea why? > > > > > > I am using ms3.5 with Perl/Mapscript. > > > > > > the machine I am developing on, a beatup box with RH 7.2, > > works just fine > > > for a PHP Mapscript application. > > > > > > pk/ > > > > > > From lfilak at medinaco.org Tue Aug 13 10:58:29 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 13 Aug 2002 13:58:29 -0400 (EDT) Subject: [mapserver-users] followup - q. combining mapscript and PostGIS In-Reply-To: Message-ID: We currently use DBI without a problem but not with the Pg module (DBD::XBase & DBD::mysql). The error may not be tied directly to mapscript & Pg however. A search on google shows the errors having to do with needing to compile the module with -flat_namespace.? Lowell F. On Tue, 13 Aug 2002, Alex Rice wrote: > It appears that the filter on a layer objects only decides the > content, not the extent of the layer. Is that correct? Also, is > it even possible to use Perl DBI from Mapscript? My script dies > when I attempt it: > > % ./mapscript.cgi > dyld: perl multiple definitions of symbol _DLAddHead > /Library/Perl/darwin/auto/mapscript/mapscript.bundle definition > of _DLAddHead > /Library/Perl/darwin/auto/DBD/Pg/Pg.bundle definition of _DLAddHead > > Thanks for any suggestions, > Alex > > Begin forwarded message: > > > From: Alex Rice > > Date: Tue Aug 13, 2002 09:32:12 AM US/Mountain > > To: vinko at cprsig.cl > > Subject: Re: [mapserver-users] q. combining mapscript and PostGIS > > > > > > On Tuesday, August 13, 2002, at 03:07 AM, Vinko Vrsalovic wrote: > >> > >> I didn't get if you actually do a query in your mapscript code or not. > > > > So far I am only doing the queries by setting the filter on my > > layer objects using mapscript, not doing a query with DBI. > > > > This is my first mapscript app and I'm kind of getting a feel for > > the design issues involved. > > > >> If not, and the queries are done by mapserver libraries and you > >> wish to > >> avoid doing an extra query, my guess is that you can't, because, > >> AFAIU, > >> FILTER is used to determine what is shown, not how... but I may > >> be wrong. > > > > OK, thanks for confirming. At least two pairs of eyes think so. > > > >> If you do a query, you could extract the extent in that same query, as > >> in: > >> > >> select name, zipcode, extent(the_geom) as extent from streets where > >> <...> group by name,zipcode; > >> > > > > Yes, I guess I'll just do this. I may need to use DBI for other > > purposes in this app as well. Not sure. > > > > Thanks, > > > > Alex Rice, Software Developer > > Architectural Research Consultants, Inc. > > alex_rice at arc.to > > alrice at swcp.com > > > > > From cgillies at cghtech.com Tue Aug 13 11:11:42 2002 From: cgillies at cghtech.com (Gillies, Chuck) Date: Tue, 13 Aug 2002 14:11:42 -0400 Subject: [mapserver-users] unsubscribe Message-ID: Please unsubscribe me to the mapusers forum. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob at limelyte.com Tue Aug 13 11:41:35 2002 From: rob at limelyte.com (Rob Martinson) Date: Tue, 13 Aug 2002 11:41:35 -0700 Subject: [mapserver-users] Creating a tile set from a single image Message-ID: <006001c242f9$0d256680$9ee625d0@rmm> Listers, Is there a utility that I might use to easily slice a single large image into a mosaic (possibly even building a tileindex) to be used as a raster tile set with Mapserver? I have two large TIFF images (approximately 450MB each) which I would like to tile. Rob Martinson From alex_rice at arc.to Tue Aug 13 11:54:05 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 13 Aug 2002 12:54:05 -0600 Subject: [mapserver-users] followup - q. combining mapscript and PostGIS In-Reply-To: Message-ID: <0AA99EBE-AEEE-11D6-B271-000393529642@arc.to> On Tuesday, August 13, 2002, at 12:21 PM, Lowell.Filak wrote: > I'm not familiar with dyld but I did find this and it looks like perl > itself?: > http://archive.develooper.com/macosx at perl.org/msg01754.html > If the flat_namespace compile flag was used 'perl -V' will show it. > Lowell > Yep on OS X, pretty much all Unix tools get compiled with flat_namespace. I really don't understand it. (For anyone who is curious, fink.sourceforge.net has all the gory details, including all the libtool madness on OS X. See http://fink.sourceforge.net/doc/porting/porting.html ) I have verified that my Perl itself, mapscript module and DBD::Pg were all compiled with flat_namespace. So I have no clue. I'm going to take this question to the macosx at perl.org since it does seem like a likely place to ask. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From nathanh at broszengineering.com Tue Aug 13 13:08:08 2002 From: nathanh at broszengineering.com (Hopper) Date: Tue, 13 Aug 2002 15:08:08 -0500 Subject: [mapserver-users] Interesting Implementation of Mapserver Message-ID: <01ad01c24305$26053c50$0b6410ac@broszengineering.com> Here's the text of a message from the Politech mailing list, a list devoted to electronic privacy, technology news. The implementation of MapServer is fairly standard, so far as I can discern, but unique because of its content. Perhaps the most interesting compontent of the setup is that the content is user-generated. This seems to deviate (slightly) from the general MapServer paradigm, where content generation is fixed by a supervising party. I'm curious what other users have had success with user-generated content, and what pitfalls have been encountered. The URL: http://mapserver.zhrodague.net/ Caveat lector: there's some profanity, not egregious mind you, but it might not be workplace safe. The forwarded email: --------------------------------------------------------------------- This letter is from last month but we haven't covered it on Politech before. Read it carefully: The FBI claims that using an open 802.11 access point without explicit authorization may be a federal crime ("theft of services"). -Declan --- From: Bill Shore [mailto:billshore at fbi.gov] Sent: Monday, July 08, 2002 9:56 AM To: billshore at fbi.gov Subject: Wireless networks - Warchalking/Wardriving It has recently been brought to my attention that individuals/groups have been actively working in the Pittsburgh area as well as other areas of the United States including Philadelphia, and Boston, and the rest of the world for that matter, to identify locations where wireless networks are implemented. This is done by a technique identified as "Wardriving." Wardriving is accomplished by driving around in a vehicle using a laptop computer equipped with appropriate hardware and software http://www.netstumbler.com/ to identify wireless networks used in commercial and/or residential areas. Upon identifying a wireless network, the access point can be marked with a coded symbol, or "warchalked." This symbol will alert others of the presence of a wireless network. The network can then be accessed with the proper equipment and utilized by the individual(s) to access the Internet, download email, and potentially compromise your systems. In Pittsburgh, the individuals are essentially attempting to map the entire city to identify the wireless access points, see here, http://mapserver.zhrodague.net/cgi- bin/mapserv?mode=browse&layer=all&layer=q uadsheets&layer=borough&layer=roads&layer=ap&zoomdir=1&zoomsize=2&imgxy=458+ 165&imgext=-80.175489+40.268422+-79.733217+40.621536&map=%2Fmnt%2Fhog%2Fwebs ites%2Fmapserver%2Fpublic_html%2Fpa%2Fpgh.map&savequery=true&program=%2Fcgi- bin%2Fmapserv&map_web_imagepath=%2Fmnt%2Fhog%2Fwebsites%2Fmapserver%2Fpublic _html%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&img.x=250&img.y=197. Also, check this article from pghwireless.com, http://www.pghwireless.com/modules.php?name=News&file=article&sid=19 Identifying the presence of a wireless network may not be a criminal violation, however, there may be criminal violations if the network is actually accessed including theft of services, interception of communications, misuse of computing resources, up to and including violations of the Federal Computer Fraud and Abuse Statute, Theft of Trade Secrets, and other federal violations. At this point, I am not aware of any malicious activity that has been reported to the FBI here in Pittsburgh, however, you are cautioned regarding this activity if you have implemented a wireless network in your business. You are also highly encouraged to implement appropriate wireless security practices to protect your information assets, http://www.cert.org/research/isw/isw2001/papers/Kabara-31-08.pdf There are several articles available with additional details including http://www.warchalking.org as well as http://www.pghwireless.com. A copy of the coding symbols is attached in .pdf format. If you notice these symbols at your place of business, it is likely your network has been identified publicly. If you believe you may have been compromised or if you have any questions regarding this activity, you are encouraged to contact the appropriate law enforcement agency. The FBI office in Pittsburgh and High Tech Crimes Task Force can be contacted at 412-432-4000. <> Bill Shore Special Agent FBI-Pittsburgh 3311 East Carson Street Pittsburgh, PA 15203 412-432-4395 billshore at fbi.gov ------------------------------------------------------------------------- POLITECH -- Declan McCullagh's politics and technology mailing list You may redistribute this message freely if you include this notice. To subscribe to Politech: http://www.politechbot.com/info/subscribe.html This message is archived at http://www.politechbot.com/ Declan McCullagh's photographs are at http://www.mccullagh.org/ ------------------------------------------------------------------------- ------ EOF From sctweedy at NRCan.gc.ca Tue Aug 13 13:13:34 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Tue, 13 Aug 2002 16:13:34 -0400 Subject: [mapserver-users] PNG files in Netscape Message-ID: <5ACEEE96F4F9D41190790002A528B51E027406E4@s0-ott-x11.nrn.nrcan.gc.ca> I was testing out a simple application and I've found I can't get PNG files to display in Netscape. The test worked fine in IE, but in Netscape I get an empty picture. If I right-click on the empty icon then I get a "save-as" dialog box. Any ideas on why PNG files aren't displaying? I'm using: PWS server on NT Netscape 4.79 php 4.2.2 Mapserver 3.6.1 Thanks, st From pkishor at GeoAnalytics.com Tue Aug 13 14:57:53 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 13 Aug 2002 16:57:53 -0500 Subject: [mapserver-users] PNG files in Netscape Message-ID: are sure Netscape 4.79 can display png files natively? I think it requires a plug-in to display them. > -----Original Message----- > From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] > Sent: Tuesday, August 13, 2002 3:14 PM > To: MapServer Users (E-mail) > Subject: [mapserver-users] PNG files in Netscape > > > I was testing out a simple application and I've found I can't > get PNG files > to display in Netscape. The test worked fine in IE, but in > Netscape I get > an empty picture. If I right-click on the empty icon then I > get a "save-as" > dialog box. Any ideas on why PNG files aren't displaying? > > I'm using: > PWS server on NT > Netscape 4.79 > php 4.2.2 > Mapserver 3.6.1 > > Thanks, > st > From pkishor at GeoAnalytics.com Tue Aug 13 15:01:22 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 13 Aug 2002 17:01:22 -0500 Subject: [mapserver-users] malformed PNGs Message-ID: Lowell, Thanks for you guidance. Re my original problem... for some strange reason now I can get PNGs made correctly. Obviously something has changed but I have no idea what. To answer another post by Alex Rice, when I opened the malformed PNGs in a text editor I saw a bunch of gobbledegook but no error messages... I also saw some reference to gd-jpeg, but I don't remember the exact words. Anyway, I am able to make PNGs fine now. Wrt the log file, I still can't get the log file to be written out. Yes, the directory has write permission for everybody, which includes user apache. As I said, I have added the following at the top of my perl script $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log"; but, no success. Would be nice to keep this log, Thanks, pk/ > -----Original Message----- > From: Lowell.Filak [mailto:lfilak at medinaco.org] > Sent: Tuesday, August 13, 2002 11:59 AM > To: Puneet Kishor > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] malformed PNGs > > > The LOG is for logging requests whereas the ERRORFILE is for logging > errors. Does the user that the webserver is running as have > permission to > write to /var/www/html/bims/tmp/mapserver.log or alternately > /var/www/html/bims/tmp/error.log? There should at least be a > log file with > a record of the request. > Lowell > > On Tue, 13 Aug 2002, Puneet Kishor wrote: > > > well, I already had a line in my map file like so... > > > > LOG "/var/www/html/bims/tmp/mapserver.log" > > > > I added > > > > $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" > > > > to my perl script. I don't get any log files written out. > Do I have to set > > this ENV variable in the Apache conf file? or at the shell > prompt using > > setenv? > > > > Tia, > > > > pk/ > > > > > If you already have > > > $ENV{MS_ERRORFILE} = "/var/log/mapserver.log" > > > near the top of your perl script does the log show an error while > > > rendering any of the layers? > > > Lowell F. > > > > > > On Mon, 12 Aug 2002, Puneet Kishor wrote: > > > > > > > I am getting malformed PNGs... they are being made all > > > right, but they are > > > > only about 3 to 4 k in length. The browser is unable to > > > show them, and of > > > > course, opening them with an image application gives an > > > error... "Not a > > > > valid PNG file". > > > > > > > > Any idea why? > > > > > > > > I am using ms3.5 with Perl/Mapscript. > > > > > > > > the machine I am developing on, a beatup box with RH 7.2, > > > works just fine > > > > for a PHP Mapscript application. > > > > > > > > pk/ > > > > > > > > > > From drew at Zhrodague.net Tue Aug 13 15:35:40 2002 From: drew at Zhrodague.net (Drew) Date: Tue, 13 Aug 2002 18:35:40 -0400 (EDT) Subject: [mapserver-users] Interesting Implementation of Mapserver In-Reply-To: <01ad01c24305$26053c50$0b6410ac@broszengineering.com> Message-ID: > Here's the text of a message from the Politech mailing list, a list devoted > to electronic privacy, technology news. > The implementation of MapServer is fairly standard, so far as I can discern, > but unique because of its content. Perhaps the most interesting compontent > of the setup is that the content is user-generated. This seems to deviate > (slightly) from the general MapServer paradigm, where content generation is > fixed by a supervising party. > > I'm curious what other users have had success with user-generated content, > and what pitfalls have been encountered. > > The URL: > http://mapserver.zhrodague.net/ > > Caveat lector: there's some profanity, not egregious mind you, but it might > not be workplace safe. Cool! Actually, because of the politech article, our machine is under some extreme load. We've tightened some of the datasets down, and got an amazing visualization technique in our parsing of the raw netstumbler data, that will be available as soon as it's done crunching. You can see the signals spilling out into the streets. Anyone interested, help is greatly appreciated, we've got quite a beefy box (and a fast raid). Please email me to drew at zhrodague.net. -- drew at zhrodague.net From Antti.Roppola at brs.gov.au Tue Aug 13 17:34:25 2002 From: Antti.Roppola at brs.gov.au (Antti.Roppola at brs.gov.au) Date: Wed, 14 Aug 2002 10:34:25 +1000 Subject: [mapserver-users] Interesting Implementation of Mapserver Message-ID: <595FE28AB1EBD111920F0060B06B3DD70D9952FD@ACTMAIL2> Hi all, User generated content is one of the things I am interested in doing with Mapserver and PostGIS. I am expecting to be able to put controls on user generated content via the RDBMs, and maybe put harder limits on how much data any individual query can drag off disk (say have multiple geometries and force the use of sparser versions when the machine is loaded?). But I have to move a few more things off the testing box first... Antti P.S. I am curious as to what "killed" the Mapserver. Was it an setup/optimisation problem or what? Our dev box started thrashing disk when someone placed a 300 Mb un-indexed shapefile into a map they were putting together (it doesn't matter how much CPU you have if it's going to take several seconds to read your shapefile from disk). -----Original Message----- From: Hopper [mailto:nathanh at broszengineering.com] Sent: Wednesday, 14 August 2002 6:08 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Interesting Implementation of Mapserver Here's the text of a message from the Politech mailing list, a list devoted to electronic privacy, technology news. The implementation of MapServer is fairly standard, so far as I can discern, but unique because of its content. Perhaps the most interesting compontent of the setup is that the content is user-generated. This seems to deviate (slightly) from the general MapServer paradigm, where content generation is fixed by a supervising party. I'm curious what other users have had success with user-generated content, and what pitfalls have been encountered. The URL: http://mapserver.zhrodague.net/ Caveat lector: there's some profanity, not egregious mind you, but it might not be workplace safe. The forwarded email: --------------------------------------------------------------------- This letter is from last month but we haven't covered it on Politech before. Read it carefully: The FBI claims that using an open 802.11 access point without explicit authorization may be a federal crime ("theft of services"). -Declan --- From: Bill Shore [mailto:billshore at fbi.gov] Sent: Monday, July 08, 2002 9:56 AM To: billshore at fbi.gov Subject: Wireless networks - Warchalking/Wardriving It has recently been brought to my attention that individuals/groups have been actively working in the Pittsburgh area as well as other areas of the United States including Philadelphia, and Boston, and the rest of the world for that matter, to identify locations where wireless networks are implemented. This is done by a technique identified as "Wardriving." Wardriving is accomplished by driving around in a vehicle using a laptop computer equipped with appropriate hardware and software http://www.netstumbler.com/ to identify wireless networks used in commercial and/or residential areas. Upon identifying a wireless network, the access point can be marked with a coded symbol, or "warchalked." This symbol will alert others of the presence of a wireless network. The network can then be accessed with the proper equipment and utilized by the individual(s) to access the Internet, download email, and potentially compromise your systems. In Pittsburgh, the individuals are essentially attempting to map the entire city to identify the wireless access points, see here, http://mapserver.zhrodague.net/cgi- bin/mapserv?mode=browse&layer=all&layer=q uadsheets&layer=borough&layer=roads&layer=ap&zoomdir=1&zoomsize=2&imgxy=458+ 165&imgext=-80.175489+40.268422+-79.733217+40.621536&map=%2Fmnt%2Fhog%2Fwebs ites%2Fmapserver%2Fpublic_html%2Fpa%2Fpgh.map&savequery=true&program=%2Fcgi- bin%2Fmapserv&map_web_imagepath=%2Fmnt%2Fhog%2Fwebsites%2Fmapserver%2Fpublic _html%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&img.x=250&img.y=197. Also, check this article from pghwireless.com, http://www.pghwireless.com/modules.php?name=News&file=article&sid=19 Identifying the presence of a wireless network may not be a criminal violation, however, there may be criminal violations if the network is actually accessed including theft of services, interception of communications, misuse of computing resources, up to and including violations of the Federal Computer Fraud and Abuse Statute, Theft of Trade Secrets, and other federal violations. At this point, I am not aware of any malicious activity that has been reported to the FBI here in Pittsburgh, however, you are cautioned regarding this activity if you have implemented a wireless network in your business. You are also highly encouraged to implement appropriate wireless security practices to protect your information assets, http://www.cert.org/research/isw/isw2001/papers/Kabara-31-08.pdf There are several articles available with additional details including http://www.warchalking.org as well as http://www.pghwireless.com. A copy of the coding symbols is attached in .pdf format. If you notice these symbols at your place of business, it is likely your network has been identified publicly. If you believe you may have been compromised or if you have any questions regarding this activity, you are encouraged to contact the appropriate law enforcement agency. The FBI office in Pittsburgh and High Tech Crimes Task Force can be contacted at 412-432-4000. <> Bill Shore Special Agent FBI-Pittsburgh 3311 East Carson Street Pittsburgh, PA 15203 412-432-4395 billshore at fbi.gov ------------------------------------------------------------------------- POLITECH -- Declan McCullagh's politics and technology mailing list You may redistribute this message freely if you include this notice. To subscribe to Politech: http://www.politechbot.com/info/subscribe.html This message is archived at http://www.politechbot.com/ Declan McCullagh's photographs are at http://www.mccullagh.org/ ------------------------------------------------------------------------- ------ EOF From ychen at yorktel.com Tue Aug 13 19:26:21 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Tue, 13 Aug 2002 22:26:21 -0400 Subject: [mapserver-users] PNG files in Netscape Message-ID: <4C5998A3E78C674A92183D4813806E82035D48@ytcmail.yorktel.com> Check your Edit->Preferences->Navigator->Applications, scroll down in the description window you should have an entry of 'PNG Image File' which says handled by plugin. I have 4.77 and I actually don't remember loading the plugin myself. Anyway if you still have the problem try this link on the libpng home site: http://www.libpng.org/pub/png/pngapbr.html#nn. Or, install Netscape Communicator 7.0 PreRelease 1. Starting Communicator 6 Netscape has PNG native support but 6.x kind of running slow. I'm running 7.0PR1 on another machine and like it. Yu-Hsin Chen -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Tue 8/13/2002 4:13 PM To: MapServer Users (E-mail) Cc: Subject: [mapserver-users] PNG files in Netscape I was testing out a simple application and I've found I can't get PNG files to display in Netscape. The test worked fine in IE, but in Netscape I get an empty picture. If I right-click on the empty icon then I get a "save-as" dialog box. Any ideas on why PNG files aren't displaying? I'm using: PWS server on NT Netscape 4.79 php 4.2.2 Mapserver 3.6.1 Thanks, st From pkishor at GeoAnalytics.com Tue Aug 13 21:23:55 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 13 Aug 2002 23:23:55 -0500 Subject: [mapserver-users] mapserver.log (was Re: malformed PNGs) In-Reply-To: Message-ID: slowly slowly we progress... I am finally able to get mapserver.log to generate. I added the $ENV line immediately after the shebang line, and chown-ed the tmp directory to nobody. Works! ok. so I am now watching the log file with tail -f ... and I see the following... Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. the problem is, I can't figure out what is causing the above error. My map file is fairly complicated, and as far as I can see, everything is being drawn the way I want it. So, what is it that is inaccessible? Is there a way the log can append (or prefix) the line number in the source that caused the error? Is there a way to determine where it is failing? Tia as always. pk/ On Tuesday, August 13, 2002, at 11:58 AM, Lowell.Filak wrote: > The LOG is for logging requests whereas the ERRORFILE is for logging > errors. Does the user that the webserver is running as have permission > to > write to /var/www/html/bims/tmp/mapserver.log or alternately > /var/www/html/bims/tmp/error.log? There should at least be a log file > with > a record of the request. > Lowell > > On Tue, 13 Aug 2002, Puneet Kishor wrote: > >> well, I already had a line in my map file like so... >> >> LOG "/var/www/html/bims/tmp/mapserver.log" >> >> I added >> >> $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" >> >> to my perl script. I don't get any log files written out. Do I have to > set >> this ENV variable in the Apache conf file? or at the shell prompt > using >> setenv? >> >> Tia, >> >> pk/ >> From johnhagstrand at interageresearch.com Tue Aug 13 23:25:49 2002 From: johnhagstrand at interageresearch.com (John Hagstrand) Date: Wed, 14 Aug 2002 01:25:49 -0500 Subject: [mapserver-users] mapserver cgi Message-ID: <4.3.2.7.0.20020814011740.033db208@pop.registeredsite.com> Hi, I'd like a build of MapServer implemented as a CGI program that takes seven input parameters and returns a GIF of the map. The seven input parameters are: n = north boundary in degrees latitude s = south boundary e = east boundary w = west boundary wd = width in pixels ht = height in pixels layers = layers to include, like layers=aerial+lakes+highways Can anybody do that for me? John ------------------------------------------------- John Hagstrand Interage Research, Inc. 847 838 5371 Software Development Consulting for Internet Content Management We make knowledge accessible, useful, and relevant for everyone. http://www.interageresearch.com From oskhom at yahoo.com Tue Aug 13 23:32:38 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Tue, 13 Aug 2002 23:32:38 -0700 (PDT) Subject: [mapserver-users] Urgent%-BMP as Input Message-ID: <20020814063238.75065.qmail@web10410.mail.yahoo.com> Dear Users, I used a BMP file (inside map file) as input map i.e. "mymap.bmp". When I call MapServer I get following error message: "MsDrawRaster():Image handling error.Unrecognized or Unsupported image format." What is wrong? what is solution? Also anybody tell me what kinds of raster files can be used inside map file? Finally how parameters of EXTEND (inside map file) is determined when raster file is used? Thanks in advance, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From oskhom at yahoo.com Wed Aug 14 04:37:45 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Wed, 14 Aug 2002 04:37:45 -0700 (PDT) Subject: [mapserver-users] GDAL&MapServer Message-ID: <20020814113745.86712.qmail@web10409.mail.yahoo.com> Dear Users, I should be grateful if somebody would mail me answer of the following questions: 1-What is GDAL? 2-How GDAL can be used inside the MapServer. Thanks a lot, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From woodbri at swoodbridge.com Wed Aug 14 04:57:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 14 Aug 2002 07:57:52 -0400 Subject: [mapserver-users] mapserver.log (was Re: malformed PNGs) In-Reply-To: References: Message-ID: <3D5A0D80.16113.1DBC5353@localhost> On 13 Aug 2002 at 23:23, Puneet Kishor wrote: > ok. so I am now watching the log file with > > tail -f ... > > and I see the following... > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. These are informational messages that indicate the you do not have spatial indexes on some of your shape files -- these would be the filename.qix. You should run shapetree on every shape files. If you don't, then you get these messages and mapserver has to either do a linear search of the shape file or build a temporary shape tree. This happens on every mapserver hit so adding the shapetree files can improve performance maybe significantly depending on your set up. -Steve From woodbri at swoodbridge.com Wed Aug 14 05:11:07 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 14 Aug 2002 08:11:07 -0400 Subject: [mapserver-users] GDAL&MapServer In-Reply-To: <20020814113745.86712.qmail@web10409.mail.yahoo.com> Message-ID: <3D5A109B.931.1DC8764B@localhost> See http://www.google.com/search?hl=en&ie=ISO-8859-1&q=gdal The first hit is your answer to 1) and http://www.google.com/search?num=100&hl=en&lr=&ie=ISO-8859- 1&newwindow=1&safe=off&q=gdal+mapserver for your answer to 2) -Steve On 14 Aug 2002 at 4:37, ALI OSKUE wrote: > Dear Users, > > I should be grateful if somebody would mail me answer > of the following questions: > 1-What is GDAL? > 2-How GDAL can be used inside the MapServer. > > Thanks a lot, > A-K-Oskue. > > > > > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > From woodbri at swoodbridge.com Wed Aug 14 05:15:46 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 14 Aug 2002 08:15:46 -0400 Subject: [mapserver-users] Interesting Implementation of Mapserver In-Reply-To: <595FE28AB1EBD111920F0060B06B3DD70D9952FD@ACTMAIL2> Message-ID: <3D5A11B2.11281.1DCCB766@localhost> On 14 Aug 2002 at 10:34, Antti.Roppola at brs.gov.au wrote: > P.S. I am curious as to what "killed" the Mapserver. Was it an > setup/optimisation problem or what? Our dev box started thrashing > disk when someone placed a 300 Mb un-indexed shapefile into a map > they were putting together (it doesn't matter how much CPU you have > if it's going to take several seconds to read your shapefile from disk). This is not totally true, you should add a shapetree index to the file and see what happens to performance, because then you will not be reading data that is not needed for display purposes!!!! -Steve From lists.ahaigh at dsl.pipex.com Wed Aug 14 05:49:24 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Wed, 14 Aug 2002 13:49:24 +0100 Subject: [mapserver-users] mapserver cgi References: <4.3.2.7.0.20020814011740.033db208@pop.registeredsite.com> Message-ID: <3D5A51D4.8030200@dsl.pipex.com> John, It sounds like you want to use the Open GIS Web Map Server interface for MapServer. You can then build requests like http://myhost/cgi-bin/mapserv?map=&bbox=&width=500&height=500&layers=alayer,blayer See: http://mapserver.gis.umn.edu/doc36/wms-server-howto.html Hope this helps, Andrew John Hagstrand wrote: > Hi, > > I'd like a build of MapServer implemented as a CGI program that takes > seven input parameters and returns a GIF of the map. > > The seven input parameters are: > n = north boundary in degrees latitude > s = south boundary > e = east boundary > w = west boundary > wd = width in pixels > ht = height in pixels > layers = layers to include, like layers=aerial+lakes+highways > > Can anybody do that for me? > > John > > ------------------------------------------------- > John Hagstrand > Interage Research, Inc. > 847 838 5371 > Software Development Consulting for Internet Content Management > We make knowledge accessible, useful, and relevant for everyone. > http://www.interageresearch.com > > > From alex_rice at arc.to Wed Aug 14 08:29:37 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 14 Aug 2002 09:29:37 -0600 Subject: [mapserver-users] PHP mapscript as Apache module: clarification? Message-ID: I have seen some confusing posts on the list about this issue. After re-reading the PHP mapscript installation docs, I think that it's OK to use PHP mapscript with PHP as an Apache DSO module, **except on Windows** in which case you should use CGI PHP only because of thread safety issues. Is this a correct assessment? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Wed Aug 14 08:33:11 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 14 Aug 2002 09:33:11 -0600 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module In-Reply-To: <200208091232.g79CWX810450@yogi.medinaco.net> Message-ID: <243A0254-AF9B-11D6-B8C2-000393529642@arc.to> On Friday, August 9, 2002, at 06:44 AM, Lowell Filak wrote: > Sounds like it would be handy. Will you be able to post your > results/configuration to the list/wiki when you have it done? > Lowell F. An update, I have run into a dead-end with Perl mapscript-- I cannot access PostreSQL from the DBI or Pg perl modules when the Mapscript perl module is in use. Some weird OS X symbol collision problem. I am stumped on it and I am switching over to PHP mapscript, or if that doesn't work, Python mapscript. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From adams at terrestris.de Wed Aug 14 09:08:00 2002 From: adams at terrestris.de (Till Adams) Date: Wed, 14 Aug 2002 18:08:00 +0200 Subject: [mapserver-users] Displaying TIFF Message-ID: <3D5A8060.3070407@terrestris.de> Dear Users, does Mapserver only accept Geotiff? I have a Tif with an external tfw. MS displays the image in one color all over the right side of my display window. Do I have to define Projection for displaying tif with tfw? Any ideas? Cheers, Till ----- Dipl. Geogr. Till Adams terrstris, Paulsen&Adams GbR Meckenheimer Allee 166 * 53115 Bonn Tel.: 0228 73 9647 * Fax.: 0228 73 6538 info at terrestris.de * www.terrestris.de From drew at Zhrodague.net Wed Aug 14 08:47:49 2002 From: drew at Zhrodague.net (Drew) Date: Wed, 14 Aug 2002 11:47:49 -0400 (EDT) Subject: [mapserver-users] Interesting Implementation of Mapserver In-Reply-To: <3D5A11B2.11281.1DCCB766@localhost> Message-ID: > > P.S. I am curious as to what "killed" the Mapserver. Was it an > > setup/optimisation problem or what? Our dev box started thrashing > > disk when someone placed a 300 Mb un-indexed shapefile into a map > > they were putting together (it doesn't matter how much CPU you have > > if it's going to take several seconds to read your shapefile from disk). > > This is not totally true, you should add a shapetree index to the > file and see what happens to performance, because then you will not > be reading data that is not needed for display purposes!!!! Is that a tileindex? Part of the problem, is that we've got hundreds of thousands of scanned wireless access-points in a shapefile, the world-maps seem to load really quickly, via tileindex. Is a shapetree different than a tileindex? Can you provide an example? From steve.lime at dnr.state.mn.us Wed Aug 14 09:35:56 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Aug 2002 11:35:56 -0500 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module Message-ID: Have you tried re-SWIGing MapScript with the latest version of SWIG? The version of MapScript in the distributions was built with SWIG 1.1. More recently the SWIG team has released 1.3.x which is very different from the old stuff and may produce modules that play nicely with others. I've used 1.3.12 successfully with very minimal mods to my scripts. For example when creating a MapScript object you need to do $map = new mapscript::mapObj() instead of $map = new mapObj(). It might be worth trying before bailing on perl... To re-SWIG, install new SWIG, cd mapscript/perl directory and do a 'swig -perl5 -shadow mapscript.i'. That will build new wrapper and perl module files. Then build as usual. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alex Rice 08/14/02 10:33AM >>> On Friday, August 9, 2002, at 06:44 AM, Lowell Filak wrote: > Sounds like it would be handy. Will you be able to post your > results/configuration to the list/wiki when you have it done? > Lowell F. An update, I have run into a dead-end with Perl mapscript-- I cannot access PostreSQL from the DBI or Pg perl modules when the Mapscript perl module is in use. Some weird OS X symbol collision problem. I am stumped on it and I am switching over to PHP mapscript, or if that doesn't work, Python mapscript. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From pramsey at refractions.net Wed Aug 14 10:40:20 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 14 Aug 2002 10:40:20 -0700 Subject: [mapserver-users] Interesting Implementation of Mapserver References: Message-ID: <3D5A9604.49437166@refractions.net> For a website with dynamicly updated data, you might consider using PostGIS. The "trouble" with using shapefiles and shptree is that for each new row you add to the shapefile, you have to rebuild the shptree, otherwise your data and your index will get out of sync. With PostGIS, the index is kept up to date automatically during updates and inserts. Transactional integrity also means that the low-probability case of multiple simultaneous writes destroying your data file will not ever occur. P. Drew wrote: > > > > P.S. I am curious as to what "killed" the Mapserver. Was it an > > > setup/optimisation problem or what? Our dev box started thrashing > > > disk when someone placed a 300 Mb un-indexed shapefile into a map > > > they were putting together (it doesn't matter how much CPU you have > > > if it's going to take several seconds to read your shapefile from disk). > > > > This is not totally true, you should add a shapetree index to the > > file and see what happens to performance, because then you will not > > be reading data that is not needed for display purposes!!!! > > Is that a tileindex? > > Part of the problem, is that we've got hundreds of thousands of > scanned wireless access-points in a shapefile, the world-maps seem to load > really quickly, via tileindex. > > Is a shapetree different than a tileindex? Can you provide an > example? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Wed Aug 14 11:27:14 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Aug 2002 13:27:14 -0500 Subject: [mapserver-users] Extracting one polygon from a file Message-ID: Note that you don't need the expression in the last cass. By default if the last class has no expression it becomes the default expression. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Hankley, Chip" 08/09/02 04:56PM >>> in your layer definition ... CLASSITEM 'STATE_NAME' CLASS #Show Michigan as RED EXPRESSION 'michigan' COLOR 255 0 0 OUTLINECOLOR 0 0 0 END CLASS #Optionally, show everthing else as white EXPRESSION /./ COLOR 255 255 255 OUTLINECOLOR 0 0 0 END ... You could certainly add labels if you want, but that has nothing to do with which state draws. -----Original Message----- From: Allan Panitch [mailto:allanp at campeb.org] Sent: Friday, August 09, 2002 4:14 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Extracting one polygon from a file I hope this is simple. I have a shp file of the USA which is just a bunch of polygons in a shp file with a dbf of the attributes. I would like to just display michigan from this file. So in my map file I have a layer which displays that and the surrounding states, I would like to omit the other polygons (states). So in that layer I added LABELITEM "STATE_NAME" which is the valid label in the .dbf file. and the value is "michigan" So I tried something under class like EXPRESSION STATE_NAME=michigan but that did not seem to do the trick. Any ideas on how to extract a polygon for 1 layer? Thanks al On Thu, 11 Jul 2002, Al wrote: > I am hoping and thinking this is a simple question. > How would I increase the thicknes of a layer of lines..like roads? > It looks to default to a single pixel, but I would like the lines to be > around 4-5 pixels thick. > tx > al > > > From drew at Zhrodague.net Wed Aug 14 11:12:07 2002 From: drew at Zhrodague.net (Drew) Date: Wed, 14 Aug 2002 14:12:07 -0400 (EDT) Subject: [mapserver-users] Interesting Implementation of Mapserver In-Reply-To: <3D5A9604.49437166@refractions.net> Message-ID: > For a website with dynamicly updated data, you might consider using > PostGIS. The "trouble" with using shapefiles and shptree is that for > each new row you add to the shapefile, you have to rebuild the shptree, > otherwise your data and your index will get out of sync. With PostGIS, > the index is kept up to date automatically during updates and inserts. > Transactional integrity also means that the low-probability case of > multiple simultaneous writes destroying your data file will not ever > occur. Yeah, we're looking into PostGIS -- got it installed. Special kudos to the developers of mapserver, we were able to get the whole package up and running without writing a single line of code!!! (We're not programmers) Again, any help is appreciated, the box is pretty beefy (much RAM, and fast RAID), but we need more help. Eblevins has donated quite a chunk of time to the scripts that we're using, his help is greatly appreciated. -- drew at zhrodague.net http://mapserver.zhrodague.net From woodbri at swoodbridge.com Wed Aug 14 11:49:39 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 14 Aug 2002 14:49:39 -0400 Subject: [mapserver-users] Displaying TIFF In-Reply-To: <3D5A8060.3070407@terrestris.de> Message-ID: <3D5A6E03.1281.1F355498@localhost> On 14 Aug 2002 at 18:08, Till Adams wrote: > > Dear Users, > > does Mapserver only accept Geotiff? I have a Tif with an external tfw. MS displays the image in one color all over the right side of my display window. Do I have to define Projection for displaying tif with tfw? > Any ideas? mapserver support tif files but uses .wld external files so rename your .tfw files to .wld -Steve From steve.lime at dnr.state.mn.us Wed Aug 14 11:56:17 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Aug 2002 13:56:17 -0500 Subject: [mapserver-users] Displaying TIFF Message-ID: Actually it recognized .tfw as well... >>> 08/14/02 01:49PM >>> On 14 Aug 2002 at 18:08, Till Adams wrote: > > Dear Users, > > does Mapserver only accept Geotiff? I have a Tif with an external tfw. MS displays the image in one color all over the right side of my display window. Do I have to define Projection for displaying tif with tfw? > Any ideas? mapserver support tif files but uses .wld external files so rename your .tfw files to .wld -Steve From alex_rice at arc.to Wed Aug 14 12:25:38 2002 From: alex_rice at arc.to (Alex Rice) Date: Wed, 14 Aug 2002 13:25:38 -0600 Subject: [mapserver-users] Mapscript and Perl CGI::MiniSvr module In-Reply-To: Message-ID: <9D596440-AFBB-11D6-B8C2-000393529642@arc.to> On Wednesday, August 14, 2002, at 10:35 AM, Steve Lime wrote: > > To re-SWIG, install new SWIG, cd mapscript/perl directory and do > a 'swig -perl5 -shadow mapscript.i'. That will build new > wrapper and perl module files. Then build as usual. Steve, I have confirmed that this problem exists when rebuilt with Swig 1.3.13. However, at this point I'm pretty certain it's deep within the bowels of Perl modules on OS X, not specific to mapscript. It may be specific to postgresql. The same error pops up when ANY two modules which link with PostgreSQL are used, e.g. mapscript + DBI, or Pg + DBI, or mapscript + Pg! I suppose I'll build a newer Perl for OSX next and see if that cures it. Although this is the standard Perl 5.6 that comes with OS X. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From morissette at dmsolutions.ca Wed Aug 14 12:51:03 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 14 Aug 2002 15:51:03 -0400 Subject: [mapserver-users] PHP mapscript as Apache module: clarification? References: Message-ID: <3D5AB4A7.8E00A901@dmsolutions.ca> Alex Rice wrote: > > I have seen some confusing posts on the list about this issue. > After re-reading the PHP mapscript installation docs, I think > that it's OK to use PHP mapscript with PHP as an Apache DSO > module, **except on Windows** in which case you should use CGI > PHP only because of thread safety issues. Is this a correct > assessment? > PHP MapScript 3.6 _must_ be installed as a CGI on all platforms. So the PHP MapScript Installation docs should be updated if it contains contradictory information. Unfortunately I don't think this HOWTO has been updated since version 3.5 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From gabriel at ciasc.gov.br Wed Aug 14 13:47:53 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 14 Aug 2002 17:47:53 -0300 Subject: [mapserver-users] Join Problem References: <18E0CC75605BD411907800508B8BB8D00165EFCF@odin.enator.dk> Message-ID: <007f01c243d3$de94cf50$12d713ac@ciasc.gov.br> Dear Listers. My MapServer 3.3 give-me this message: => loadClass(): Unknown identifier. (Join):(154). What would be wrong ??? Thanks. <=================================> ... LAYER NAME politico TYPE POLYGON DATA politi97 STATUS ON MAXSCALE 30000000 CLASS SYMBOL 0 SIZE 2 NAME 'Mapa Pol?tico de SC - 1997' OUTLINECOLOR 150 150 150 COLOR 250 250 250 Join NAME sipia_join TYPE single TABLE ""/home/mapserver/data/sipia.dbf" FROM nm_munic TO TFILE nm_munic # TEMPLATE END END HEADER "politi97_header.html" FOOTER "politi97_footer.html" QUERY TEMPLATE "politi97.html" END END # Mapa Politico ... From vinko at cprsig.cl Wed Aug 14 16:43:20 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Wed, 14 Aug 2002 19:43:20 -0400 Subject: [mapserver-users] PHP mapscript as Apache module: clarification? In-Reply-To: References: Message-ID: <20020814234320.GA29507@landsat.cprsig.cl> On Wed, Aug 14, 2002 at 09:29:37AM -0600, Alex Rice wrote: > I have seen some confusing posts on the list about this issue. > After re-reading the PHP mapscript installation docs, I think > that it's OK to use PHP mapscript with PHP as an Apache DSO > module, **except on Windows** in which case you should use CGI > PHP only because of thread safety issues. Is this a correct > assessment? No. The 3.6 branch should be run as a CGI on all platforms, in fact, if you try to load the mapscript extension from a DSO module, you only get a 'this must run as a CGI' error page. -- Vinko Vrsalovic http://www.cprsig.cl From pkishor at GeoAnalytics.com Wed Aug 14 18:18:40 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 14 Aug 2002 20:18:40 -0500 Subject: [mapserver-users] mapserver.log (was Re: malformed PNGs) In-Reply-To: Message-ID: Thanks Lowell, Steve, and Steve. That is now clear. Which brings me to a few random issues -- 1. if Lowell hadn't told me about $ENV{MS_ERRORFILE}, how could I have found that out? I think I have peered into all the Perl/Mapscript docs there are but didn't see this. Maybe I missed it, but maybe it isn't there, or is not obvious. In which case, we (I myself) need to do Perl/Mapscript a service and really make a nice Perl how-to. I frankly love Perl over all other scripting stuff, but find PHP stuff to be generally better documented. For example, it was not obvious trying to figure out the changes from 3.5->3.6.1. The mapquakes.pl script is great, but it is hardly adequate. I have finally got my Perl/Mapscript application behaving and will be releasing it a la gMap (I am planning to call it pMap for the heck of it! so don't be taking away the name from me!!), but we really need more. 2. SDL says (and so did SW) -- > The error in your log files is completely benign and can be safely > ignored. It just says that > there is no spatial index associated with a particular shapefile, which > is perfectly legal... well, then why doesn't the error say just that? I mean, instead of Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. it could just as well have been Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index associated with hydro.shp Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index associated with roads.shp is there a good reason why error messages have to be cryptic? That is one great turn-off I had with ESRI software -- I mean, anytime any of their products version 1.x onward croaked, it said there was a "Fatal error, segmentation fault". I couldn't even pick my nose with that info! 3. I am getting a boatload of errors in my Apache error_log like so [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 2415 during global destruction. [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 1144 during global destruction. [Wed Aug 14 08:44:07 2002] index.pl: Use of uninitialized value in exists at /Library/Perl/darwin/mapscript.pm line 2417 during global destruction. Things seem to be working, so are the above also benign, so to say? I am not using mod_perl any more... this with Perl 5.6.1 with Apache 1.3.26 on OS X. However, I have had the same error on Win2k, Perl 5.6.1, Apache 2.0.39. 4. What is the compatibility of Perl/Mapscript with Perl 5.8.0? If it is not, I won't even worry about upgrading Perl, but would like to know. 5. Not too long ago we narrowed a bunch of errors to mod_perl use (methinks they were like those mentioned above in #3) that actually crashed the program, in that, the map didn't draw (the dreaded "Internal Server Error has occurred..."). What is the future possibility of Perl/Mapscript co-existing with mod_perl? I know these are many questions, and I don't mean to sound over-eager. My main interest is in better (best possible) debugging, so answers to #2 and #3 would be very satisfying. As the great Lowell.Filak wrote on Wednesday, August 14, 2002, at 06:17 AM,: "Error messages are a terrible thing not to have." pk/ > > Steve > >>>> Puneet Kishor 08/13/02 11:23PM >>> > slowly slowly we progress... > > I am finally able to get mapserver.log to generate. I added the $ENV > line immediately after the shebang line, and chown-ed the tmp directory > to nobody. Works! > > ok. so I am now watching the log file with > > tail -f ... > > and I see the following... > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > > the problem is, I can't figure out what is causing the above error. My > map file is fairly complicated, and as far as I can see, everything is > being drawn the way I want it. So, what is it that is inaccessible? Is > there a way the log can append (or prefix) the line number in the source > that caused the error? Is there a way to determine where it is failing? > > Tia as always. > > pk/ > > > On Tuesday, August 13, 2002, at 11:58 AM, Lowell.Filak wrote: > >> The LOG is for logging requests whereas the ERRORFILE is for logging >> errors. Does the user that the webserver is running as have permission >> to >> write to /var/www/html/bims/tmp/mapserver.log or alternately >> /var/www/html/bims/tmp/error.log? There should at least be a log file >> with >> a record of the request. >> Lowell >> >> On Tue, 13 Aug 2002, Puneet Kishor wrote: >> >>> well, I already had a line in my map file like so... >>> >>> LOG "/var/www/html/bims/tmp/mapserver.log" >>> >>> I added >>> >>> $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" >>> >>> to my perl script. I don't get any log files written out. Do I have to >> set >>> this ENV variable in the Apache conf file? or at the shell prompt >> using >>> setenv? >>> >>> Tia, >>> >>> pk/ >>> > From wzhang at c-cor.net Wed Aug 14 18:22:06 2002 From: wzhang at c-cor.net (Zhang, William) Date: Wed, 14 Aug 2002 21:22:06 -0400 Subject: [mapserver-users] Tiger Data Projection Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4EA@pltnpo1.c-cor.com> Hi, I used Tgr2Shp tool to convert Tiger data to shape files. These shape files can be shown by MapServer. But I am still wondering (1) which projection should I use to show Tiger data as street map under MapServer? (2) During my testing, I did not specify any projection in map file and the map still showed, which projection is used by MapServer as default? Thanks for the help. William Zhang From woodbri at swoodbridge.com Wed Aug 14 20:10:02 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 14 Aug 2002 23:10:02 -0400 Subject: [mapserver-users] Tiger Data Projection In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A4EA@pltnpo1.c-cor.com> Message-ID: <3D5AE34A.22412.20FF6DB8@localhost> On 14 Aug 2002 at 21:22, Zhang, William wrote: > Hi, > > I used Tgr2Shp tool to convert Tiger data to shape files. These shape files > can be shown by MapServer. But I am still wondering > (1) which projection should I use to show Tiger data as street map under > MapServer? None or any one you mught desire. > (2) During my testing, I did not specify any projection in map file and the > map still showed, which projection is used by MapServer as default? by default, mapserver use no projection (ie: it that's the long, lat or x, y values and plots them against the XY axis. -Steve From steve.lime at dnr.state.mn.us Wed Aug 14 20:48:44 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Aug 2002 22:48:44 -0500 Subject: [mapserver-users] mapserver.log (was Re: malformed PNGs) Message-ID: 1. That's not a perl/mapscript specific feature. It'll work with the CGI version. The feature was added specifically for development/debugging reasons and wasn't documented. Guess it should be, but as pointed out in question 2 it tends to cause more problems for general users than in solves. BTW Do folks know about using environment variable names for mapfile names? Probably not, but it works lovely. Guess we need to add that in the docs someplace. 2. Good point, but at the time (and currently) it meant something to me. That code is relatively ancient, actually predates public distribution. 3.7 already notes the filename and I've changed the error message to be even more non-cryptic this evening. But hey, at least you actually get an error message instead of a core dump. 3. Blame SWIG, it wrote the Perl module. Re-SWIGing with a newer version of SWIG than in used with the distributions might help. Contact me off list if you'd like to try that. 4. Dunno. SWIG tends to lag behind versions Perl just a bit. If the Perl developers left the low level C interface the same then there should be no problem. I don't think I'd go there unless you had a real compelling reason to do so. 5. The problem with mod_perl is not so much MapScript as it is SWIG. Modules produced with version 1.1x of SWIG are incompatible with mod_perl. Changes to SWIG in the 1.3x series are supposed to have fixed those issues. I've not tried it myself though. BTW Version 3.7 will be released with MapScript being compiled against the more recent versions of SWIG. Hope this helps. Steve 3. Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Puneet Kishor 08/14/02 20:19 PM >>> Thanks Lowell, Steve, and Steve. That is now clear. Which brings me to a few random issues -- 1. if Lowell hadn't told me about $ENV{MS_ERRORFILE}, how could I have found that out? I think I have peered into all the Perl/Mapscript docs there are but didn't see this. Maybe I missed it, but maybe it isn't there, or is not obvious. In which case, we (I myself) need to do Perl/Mapscript a service and really make a nice Perl how-to. I frankly love Perl over all other scripting stuff, but find PHP stuff to be generally better documented. For example, it was not obvious trying to figure out the changes from 3.5->3.6.1. The mapquakes.pl script is great, but it is hardly adequate. I have finally got my Perl/Mapscript application behaving and will be releasing it a la gMap (I am planning to call it pMap for the heck of it! so don't be taking away the name from me!!), but we really need more. 2. SDL says (and so did SW) -- > The error in your log files is completely benign and can be safely > ignored. It just says that > there is no spatial index associated with a particular shapefile, which > is perfectly legal... well, then why doesn't the error say just that? I mean, instead of Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. it could just as well have been Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index associated with hydro.shp Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index associated with roads.shp is there a good reason why error messages have to be cryptic? That is one great turn-off I had with ESRI software -- I mean, anytime any of their products version 1.x onward croaked, it said there was a "Fatal error, segmentation fault". I couldn't even pick my nose with that info! 3. I am getting a boatload of errors in my Apache error_log like so [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 2415 during global destruction. [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH reference at /Library/Perl/darwin/mapscript.pm line 1144 during global destruction. [Wed Aug 14 08:44:07 2002] index.pl: Use of uninitialized value in exists at /Library/Perl/darwin/mapscript.pm line 2417 during global destruction. Things seem to be working, so are the above also benign, so to say? I am not using mod_perl any more... this with Perl 5.6.1 with Apache 1.3.26 on OS X. However, I have had the same error on Win2k, Perl 5.6.1, Apache 2.0.39. 4. What is the compatibility of Perl/Mapscript with Perl 5.8.0? If it is not, I won't even worry about upgrading Perl, but would like to know. 5. Not too long ago we narrowed a bunch of errors to mod_perl use (methinks they were like those mentioned above in #3) that actually crashed the program, in that, the map didn't draw (the dreaded "Internal Server Error has occurred..."). What is the future possibility of Perl/Mapscript co-existing with mod_perl? I know these are many questions, and I don't mean to sound over-eager. My main interest is in better (best possible) debugging, so answers to #2 and #3 would be very satisfying. As the great Lowell.Filak wrote on Wednesday, August 14, 2002, at 06:17 AM,: "Error messages are a terrible thing not to have." pk/ > > Steve > >>>> Puneet Kishor 08/13/02 11:23PM >>> > slowly slowly we progress... > > I am finally able to get mapserver.log to generate. I added the $ENV > line immediately after the shebang line, and chown-ed the tmp directory > to nobody. Works! > > ok. so I am now watching the log file with > > tail -f ... > > and I see the following... > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > > the problem is, I can't figure out what is causing the above error. My > map file is fairly complicated, and as far as I can see, everything is > being drawn the way I want it. So, what is it that is inaccessible? Is > there a way the log can append (or prefix) the line number in the source > that caused the error? Is there a way to determine where it is failing? > > Tia as always. > > pk/ > > > On Tuesday, August 13, 2002, at 11:58 AM, Lowell.Filak wrote: > >> The LOG is for logging requests whereas the ERRORFILE is for logging >> errors. Does the user that the webserver is running as have permission >> to >> write to /var/www/html/bims/tmp/mapserver.log or alternately >> /var/www/html/bims/tmp/error.log? There should at least be a log file >> with >> a record of the request. >> Lowell >> >> On Tue, 13 Aug 2002, Puneet Kishor wrote: >> >>> well, I already had a line in my map file like so... >>> >>> LOG "/var/www/html/bims/tmp/mapserver.log" >>> >>> I added >>> >>> $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" >>> >>> to my perl script. I don't get any log files written out. Do I have to >> set >>> this ENV variable in the Apache conf file? or at the shell prompt >> using >>> setenv? >>> >>> Tia, >>> >>> pk/ >>> > From steve.lime at dnr.state.mn.us Wed Aug 14 21:06:10 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Aug 2002 23:06:10 -0500 Subject: [mapserver-users] New method for Python mapscript Message-ID: Sean: I added this to the CVS version. Have you checked the GIF enabled version of GD 1.8.4 to see if this is possible? I thought those guys did a pretty complete port, but perhaps not. This will need some updating with 3.7 since things like type, quality and so on are carried now in the imageObj (as an imageFormatObject) rather then independently). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Sean Gillies 08/12/02 13:10 PM >>> Greetings Python mapscript users, Recently, I've found the use for getting mapserver map images as Python string objects. Rather than fill in the empty Python getImageToVar() method, I decided to write a new interface for a method I'm calling getImageString(). Mostly I disagreed with the notion of getting to a variable through its name as a string. I'm including the code that you might paste into your mapscript.i file within the imageObj definition. You will need to modify your setup.py script so that -DUSE_GD_PNG and -DUSE_GD_JPEG as passed as arguments to swig. I've only tested this with gd-1.8.4 but will be moving on to gd-2 next week. So, now we can do stuff like this: import MapScript mapob = MapScript.mapObj(...) imgob = mapObj.draw() data = imgob.getImageString(...) png = file("map.png", "wb") png.write(data) png.close() This is trivial. It's more useful for creating Zope image objects from a Zope Python script like this: import StringIO import MapScript mapob = MapScript.mapObj(...) imgob = mapObj.draw() data = StringIO.StringIO(imgob.getImageString(...)) self.manage_addImage('map.png', data, "", "", 'image/png') Hope that you find this of use and happy to hear any other ideas. cheers, Sean From MJHatcher at space.qinetiq.com Thu Aug 15 02:39:56 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Thu, 15 Aug 2002 10:39:56 +0100 Subject: [mapserver-users] Multiple projection problem Message-ID: Hi people, I'm having problems with using different projections in MapServer. If I try and merge data in different projections, the datasets requiring reprojecting don't get displayed. I am using the NT MapServer 3.6.1 binary compiled with GDAL and PROJ4 support. My WMS default projection is lat/long, but I have datasets in UK National Grid (epsg:27700) which it should be possible to reproject. I'm having this problem with both rasters and vectors, but I've only included my vector map file below. Help would be appreciated!! Matt Hatcher. --- map file --- # # Start of map file # NAME MAIN STATUS ON SIZE 600 350 EXTENT -140570 -33340 956950 606250 # osgb UNITS METERS SHAPEPATH "data" IMAGECOLOR 192 192 192 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE test.html MINSCALE 1000 MAXSCALE 7000000 IMAGEPATH "w:\wwwroot\tmp\" IMAGEURL "/tmp/" METADATA WMS_TITLE "foo" WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "foo" WMS_SRS "EPSG:27700 EPSG:4326" # OSGB and lat/long END END # # Start of layer definitions # LAYER NAME "uk_osgb" TYPE LINE STATUS DEFAULT DATA uk_osgb GROUP uk_osgb CLASS COLOR 0 0 128 END METADATA WMS_TITLE "UK outline" WMS_ABSTRACT "Boundary of UK region" WMS_GROUP_TITLE "UK boundaries" WMS_SRS "EPSG:27700 EPSG:4326" END PROJECTION "init=epsg:27700" END END END # Map File ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at gdv.com Thu Aug 15 04:54:56 2002 From: wesp at gdv.com (Oliver Wesp) Date: Thu, 15 Aug 2002 13:54:56 +0200 Subject: AW: [mapserver-users] nQuery with SDE-Layer In-Reply-To: <000001c23fb2$a47a4400$1501a8c0@else> Message-ID: <000401c24452$93229780$1501a8c0@else> O.k. we fixed the problem. Seems like there is problem with getting integer- or float-values out our SDE-Database. Double-Values are working fine. This has something to do with motorola-byteorder and passing values in mapsde.c . We fixed the problem right now and submitted our changes to Steve Lime. If anybody is facing this problem, feel free to contact me. greetings Oliver > -----Urspr?ngliche Nachricht----- > Von: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu] Im Auftrag > von Oliver Wesp > Gesendet: Freitag, 9. August 2002 16:40 > An: mapserver-users at lists.gis.umn.edu > Betreff: [mapserver-users] nQuery with SDE-Layer > > > Dear List, > > I'm facing some strange problems with nquery and SDE-Layers. > Here is my > request: > http://myHost/cgi-bin/mapserv?map=/var/apache/htdocs/project/my.map&imge xt=3360984.898934+5661892.942250+3416530.334032+5703843.458302&layer=myL ayer&imgxy=477+53&savequery=true&mode=nquery&map_size=592+447 And here is what I get back from Mapserver: CELL U1 U2 U3 WXB---B 201799 9.15278 4.20013e+12 WXB---A 136218 3.90833 3.5528e+11 WXB---C 201756 7.95556 1.63827e+12 And here - just to show the problem - is what I get back from an SQL-Select-Statement: SHAPE CELL U1 U2 U3 ---------- ------- ---------- ---------- ---------- 5191 WXB---B 3 9,15278 71,28 5146 WXB---A 2 3,90833 53,17 5148 WXB---C 3 7,95556 61,96 For the items U1 and U3 the Mapserver-Results are wrong. Seems to me as if the values for U1 are case-numbers. I have no clue where the values for U3 came from. The same problem appears when I use the different items in class-expressions. For U2 everything works fine, for U1 and U3 the whole thing is busted. All the Ux-Items are numbers. And here is the setting: Mapserver 3.6.1 ArcSDE 8.2 Solaris 8 Oracle 8i any hints? Oliver From lfilak at medinaco.org Thu Aug 15 06:59:48 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 15 Aug 2002 09:59:48 -0400 Subject: [mapserver-users] mapserver.log (was Re: malformed PNGs) Message-ID: <200208151347.g7FDlM824158@yogi.medinaco.net> My apologies to the list for the poor state of the PerlMapscript docs. Hopefully the full 3.6 stuff will be ready by the time 3.7 comes out ;-) FYI: The logging information is documented in the wiki under PerlMapscript->Debugging. Lowell F. The following message was sent by "Steve Lime" on Wed, 14 Aug 2002 22:48:44 -0500. > 1. That's not a perl/mapscript specific feature. It'll work with the CGI version. The feature was added specifically for development/debugging reasons and wasn't documented. Guess it should be, but as pointed out in question 2 it tends to cause more problems for general users than in solves. BTW Do folks know about using environment variable names for mapfile names? Probably not, but it works lovely. Guess we need to add that in the docs someplace. > > 2. Good point, but at the time (and currently) it meant something to me. That code is relatively ancient, actually predates public distribution. 3.7 already notes the filename and I've changed the error message to be even more non-cryptic this evening. But hey, at least you actually get an error message instead of a core dump. > > 3. Blame SWIG, it wrote the Perl module. Re-SWIGing with a newer version of SWIG than in used with the distributions might help. Contact me off list if you'd like to try that. > > 4. Dunno. SWIG tends to lag behind versions Perl just a bit. If the Perl developers left the low level C interface the same then there should be no problem. I don't think I'd go there unless you had a real compelling reason to do so. > > 5. The problem with mod_perl is not so much MapScript as it is SWIG. Modules produced with version 1.1x of SWIG are incompatible with mod_perl. Changes to SWIG in the 1.3x series are supposed to have fixed those issues. I've not tried it myself though. > > BTW Version 3.7 will be released with MapScript being compiled against the more recent versions of SWIG. > > Hope this helps. > > Steve > > 3. > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> Puneet Kishor 08/14/02 20:19 PM >>> > Thanks Lowell, Steve, and Steve. > > That is now clear. Which brings me to a few random issues -- > > 1. if Lowell hadn't told me about $ENV{MS_ERRORFILE}, how could I have > found that out? I think I have peered into all the Perl/Mapscript docs > there are but didn't see this. Maybe I missed it, but maybe it isn't > there, or is not obvious. In which case, we (I myself) need to do > Perl/Mapscript a service and really make a nice Perl how-to. I frankly > love Perl over all other scripting stuff, but find PHP stuff to be > generally better documented. For example, it was not obvious trying to > figure out the changes from 3.5->3.6.1. The mapquakes.pl script is > great, but it is hardly adequate. I have finally got my Perl/Mapscript > application behaving and will be releasing it a la gMap (I am planning > to call it pMap for the heck of it! so don't be taking away the name > from me!!), but we really need more. > > 2. SDL says (and so did SW) -- > > > > The error in your log files is completely benign and can be safely > > ignored. It just says that > > there is no spatial index associated with a particular shapefile, which > > is perfectly legal... > > well, then why doesn't the error say just that? I mean, instead of > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > > it could just as well have been > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index > associated with hydro.shp > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): no spatial index > associated with roads.shp > > is there a good reason why error messages have to be cryptic? That is > one great turn-off I had with ESRI software -- I mean, anytime any of > their products version 1.x onward croaked, it said there was a "Fatal > error, segmentation fault". I couldn't even pick my nose with that info! > > 3. I am getting a boatload of errors in my Apache error_log like so > > [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 2415 during global > destruction. > [Wed Aug 14 08:44:07 2002] index.pl: (in cleanup) Not a HASH > reference at /Library/Perl/darwin/mapscript.pm line 1144 during global > destruction. > [Wed Aug 14 08:44:07 2002] index.pl: Use of uninitialized value in > exists at /Library/Perl/darwin/mapscript.pm line 2417 during global > destruction. > > Things seem to be working, so are the above also benign, so to say? I am > not using mod_perl any more... this with Perl 5.6.1 with Apache 1.3.26 > on OS X. However, I have had the same error on Win2k, Perl 5.6.1, Apache > 2.0.39. > > 4. What is the compatibility of Perl/Mapscript with Perl 5.8.0? If it is > not, I won't even worry about upgrading Perl, but would like to know. > > 5. Not too long ago we narrowed a bunch of errors to mod_perl use > (methinks they were like those mentioned above in #3) that actually > crashed the program, in that, the map didn't draw (the dreaded "Internal > Server Error has occurred..."). What is the future possibility of > Perl/Mapscript co-existing with mod_perl? > > I know these are many questions, and I don't mean to sound over-eager. > My main interest is in better (best possible) debugging, so answers to > #2 and #3 would be very satisfying. As the great Lowell.Filak wrote on > Wednesday, August 14, 2002, at 06:17 AM,: "Error messages are a > terrible thing not to have." > > pk/ > > > > > > Steve > > > >>>> Puneet Kishor 08/13/02 11:23PM >>> > > slowly slowly we progress... > > > > I am finally able to get mapserver.log to generate. I added the $ENV > > line immediately after the shebang line, and chown-ed the tmp directory > > to nobody. Works! > > > > ok. so I am now watching the log file with > > > > tail -f ... > > > > and I see the following... > > > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > > Tue Aug 13 23:10:51 2002 - msSearchDiskTree(): Unable to access file. > > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > > Tue Aug 13 23:11:46 2002 - msSearchDiskTree(): Unable to access file. > > > > the problem is, I can't figure out what is causing the above error. My > > map file is fairly complicated, and as far as I can see, everything is > > being drawn the way I want it. So, what is it that is inaccessible? Is > > there a way the log can append (or prefix) the line number in the source > > that caused the error? Is there a way to determine where it is failing? > > > > Tia as always. > > > > pk/ > > > > > > On Tuesday, August 13, 2002, at 11:58 AM, Lowell.Filak wrote: > > > >> The LOG is for logging requests whereas the ERRORFILE is for logging > >> errors. Does the user that the webserver is running as have permission > >> to > >> write to /var/www/html/bims/tmp/mapserver.log or alternately > >> /var/www/html/bims/tmp/error.log? There should at least be a log file > >> with > >> a record of the request. > >> Lowell > >> > >> On Tue, 13 Aug 2002, Puneet Kishor wrote: > >> > >>> well, I already had a line in my map file like so... > >>> > >>> LOG "/var/www/html/bims/tmp/mapserver.log" > >>> > >>> I added > >>> > >>> $ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log" > >>> > >>> to my perl script. I don't get any log files written out. Do I have to > >> set > >>> this ENV variable in the Apache conf file? or at the shell prompt > >> using > >>> setenv? > >>> > >>> Tia, > >>> > >>> pk/ > >>> > > > From stepan.kafka at centrum.cz Thu Aug 15 06:56:40 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Thu, 15 Aug 2002 15:56:40 +0200 Subject: [mapserver-users] Multiple projection problem In-Reply-To: Message-ID: <000401c24463$94c25510$7e3c2fc3@HSGIS> Hi Matt! Your map has set output projection to WGS84, but initial map extent is clearly set for different projection. Stepan Kafka -----Puvodn? zpr?va----- Od: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Matthew Hatcher Odesl?no: 15. srpna 2002 11:40 Komu: mapserver-users at lists.gis.umn.edu Predmet: [mapserver-users] Multiple projection problem Hi people, I'm having problems with using different projections in MapServer. If I try and merge data in different projections, the datasets requiring reprojecting don't get displayed. I am using the NT MapServer 3.6.1 binary compiled with GDAL and PROJ4 support. My WMS default projection is lat/long, but I have datasets in UK National Grid (epsg:27700) which it should be possible to reproject. I'm having this problem with both rasters and vectors, but I've only included my vector map file below. Help would be appreciated!! Matt Hatcher. --- map file --- # # Start of map file # NAME MAIN STATUS ON SIZE 600 350 EXTENT -140570 -33340 956950 606250 # osgb UNITS METERS SHAPEPATH "data" IMAGECOLOR 192 192 192 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4326" END # # Start of web interface definition (including WMS enabling metadata) # WEB TEMPLATE test.html MINSCALE 1000 MAXSCALE 7000000 IMAGEPATH "w:\wwwroot\tmp\" IMAGEURL "/tmp/" METADATA WMS_TITLE "foo" WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "foo" WMS_SRS "EPSG:27700 EPSG:4326" # OSGB and lat/long END END # # Start of layer definitions # LAYER NAME "uk_osgb" TYPE LINE STATUS DEFAULT DATA uk_osgb GROUP uk_osgb CLASS COLOR 0 0 128 END METADATA WMS_TITLE "UK outline" WMS_ABSTRACT "Boundary of UK region" WMS_GROUP_TITLE "UK boundaries" WMS_SRS "EPSG:27700 EPSG:4326" END PROJECTION "init=epsg:27700" END END END # Map File ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From WILLIC10 at mail.northgrum.com Thu Aug 15 07:11:30 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Thu, 15 Aug 2002 07:11:30 -0700 Subject: [mapserver-users] Debug mode? Message-ID: Is there any type of debug mode for MapServer 3.6? I am trying to do the first example in the tutorial and I am getting no image. Just trying to figure out what I am doing wrong. All I see is the broken image box like there is no image. I have been able to view the itasca demo without any problems so I know my mapserv binary is working fine. Any suggestions would be great!! Thanks Chris From alex_rice at arc.to Thu Aug 15 08:47:30 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 15 Aug 2002 09:47:30 -0600 Subject: [mapserver-users] Re: [GENERAL] Perl modules problem on OS X In-Reply-To: <16616.1029362834@sss.pgh.pa.us> Message-ID: <4E7FC7AE-B066-11D6-94C8-000393529642@arc.to> On Wednesday, August 14, 2002, at 04:07 PM, Tom Lane wrote: > Alex Rice writes: >> dyld: perl multiple definitions of symbol _DLAddHead >> /Library/Perl/darwin/auto/mapscript/mapscript.bundle definition >> of _DLAddHead >> /Library/Perl/darwin/auto/DBD/Pg/Pg.bundle definition of _DLAddHead > >> The strange thing is, of the 3 modules DBI, Pg and mapscript, all >> 3 work OK independently, but when I use; any two them from the >> same script, the above symbol definitions problem occurs and the >> script dies. > > Hm. It would appear that all three modules have copies of libpq.a > statically bound into them, and OS X's dynamic loader won't accept > loading dynamic libraries with conflicting symbol names. > > DLAddHead is presumably just the first conflict the loader ran into > --- if you got rid of that, it'd still fail on PQExec and the other > symbols exported by libpq. > > I imagine that this can be worked around by changing the way that > these modules are linked, but I really have no idea exactly what has > to be done or by whom. You might try asking around among OSX gurus > about what to do with name conflicts between libraries. OK I managed to get DBD::Pg to link dynamically and I'm no longer getting the error. DBD::Pg seemed to insist on linking with libpq.a, so I hid libpq.a and then it linked with libpq.so, apparently. No more errors! Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From steve.lime at dnr.state.mn.us Thu Aug 15 11:08:42 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 15 Aug 2002 13:08:42 -0500 Subject: [mapserver-users] Debug mode? Message-ID: Not really, but if I recall the tutorial it's just embedding a map via an tag. There's most likely an error message but no way to get at it that way. Try using netscape and right clicking on the busted image to open the image in another window. That way you'll get at the error message. Steve >>> "Williams, Chris D." 08/15/02 09:11AM >>> Is there any type of debug mode for MapServer 3.6? I am trying to do the first example in the tutorial and I am getting no image. Just trying to figure out what I am doing wrong. All I see is the broken image box like there is no image. I have been able to view the itasca demo without any problems so I know my mapserv binary is working fine. Any suggestions would be great!! Thanks Chris From BraeckelD at etminc.com Thu Aug 15 11:38:36 2002 From: BraeckelD at etminc.com (Doug Braeckel) Date: Thu, 15 Aug 2002 14:38:36 -0400 Subject: [mapserver-users] Debug mode? Message-ID: Chris, Do what I did; put the cgi variables (the guys in the brackets []) in a table so you can see what is actually going on. Something like:
ITEM VARIABLE
IMG [img]
Map [map]
Host [host]
etc, etc. You can easily debug all of your information if you include all of the cgi variables like this at the bottom of the web page. Sincerely, Doug Braeckel Senior GIS Programmer England, Thims & Miller, Inc. PH: (904) 642-8990 FX: (904) 646-9485 -----Original Message----- From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] Sent: Thursday, August 15, 2002 10:12 AM To: Mapserver (E-mail) Subject: [mapserver-users] Debug mode? Is there any type of debug mode for MapServer 3.6? I am trying to do the first example in the tutorial and I am getting no image. Just trying to figure out what I am doing wrong. All I see is the broken image box like there is no image. I have been able to view the itasca demo without any problems so I know my mapserv binary is working fine. Any suggestions would be great!! Thanks Chris From wzhang at c-cor.net Thu Aug 15 11:51:28 2002 From: wzhang at c-cor.net (Zhang, William) Date: Thu, 15 Aug 2002 14:51:28 -0400 Subject: [mapserver-users] Debug mode? Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4EC@pltnpo1.c-cor.com> 1. Put s1ex1.map and states_ugl.shp in certain directory. 2. change the path strings which are in s1ex1.html and s1ex1.map. Hope this help. William Zhang -----Original Message----- From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] Sent: Thursday, August 15, 2002 7:12 AM To: Mapserver (E-mail) Subject: [mapserver-users] Debug mode? Is there any type of debug mode for MapServer 3.6? I am trying to do the first example in the tutorial and I am getting no image. Just trying to figure out what I am doing wrong. All I see is the broken image box like there is no image. I have been able to view the itasca demo without any problems so I know my mapserv binary is working fine. Any suggestions would be great!! Thanks Chris From alex_rice at arc.to Thu Aug 15 12:27:23 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 15 Aug 2002 13:27:23 -0600 Subject: [mapserver-users] multiple symbols prob./ Perl on OS X/ summary and workaround. Message-ID: <0660B602-B085-11D6-BBE1-000393529642@arc.to> Since it's not unlikely other OS X/ Perl Mapscript developers will hit this bug (or have already) On OS X I ran into the situation where Perl Mapscript and DBD::Pg (The PostgreSQL driver for DBI) both were statically linked with libpq.a (the PostgreSQL client library). The symptom was that scripts using both of these modules (actually not just mapscript; any two Perl modules statically bound to libpq.a) will die with this output from dyld: dyld: perl multiple definitions of symbol _DLAddHead /Library/Perl/darwin/auto/mapscript/mapscript.bundle definition of _DLAddHead /Library/Perl/darwin/auto/DBD/Pg/Pg.bundle definition of _DLAddHead It's a mystery because all of these perl modules were compiled with -flat_namespace, which I thought was supposed to fix all this on OS X. The workaround is to use the environment variable DYLD_FORCE_FLAT_NAMESPACE. You can set it with setenv in your shell before running your scripts, or use other Unix methods. Strangely enough the typical Perl way does not work as expected: -- #!/usr/bin/perl # set at compile time (but doesn't work as expected) BEGIN { $ENV{'DYLD_FORCE_FLAT_NAMESPACE'} = 1; } use mapscript; use DBI; -- Instead I am using Apache's SetEnv directive, since this is a CGI script that's being run: # prevent libpq.a symbol collisions between mapscript and DBI. SetEnv DYLD_FORCE_FLAT_NAMESPACE 1 Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Thu Aug 15 12:32:54 2002 From: alex_rice at arc.to (Alex Rice) Date: Thu, 15 Aug 2002 13:32:54 -0600 Subject: [mapserver-users] PHP mapscript as Apache module: clarification? In-Reply-To: <3D5AB4A7.8E00A901@dmsolutions.ca> Message-ID: On Wednesday, August 14, 2002, at 01:51 PM, Daniel Morissette wrote: > > PHP MapScript 3.6 _must_ be installed as a CGI on all platforms. > > So the PHP MapScript Installation docs should be updated if it contains > contradictory information. Unfortunately I don't think this HOWTO has > been updated since version 3.5 > OK, thanks for clarifying... Can you say where/what the thread safety issues are in Mapscript+ libmap? I have been experimenting a bit compiling PHP Mapscript using Swig 1.3 directly from mapscript.i. If I could get mapscript running in a PHP apache DSO I would be very happy. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From sctweedy at NRCan.gc.ca Thu Aug 15 12:38:21 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Thu, 15 Aug 2002 15:38:21 -0400 Subject: [mapserver-users] PNG files in Netscape Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740709@s0-ott-x11.nrn.nrcan.gc.ca> After further testing I've come to the conclusion that the PWS server is somehow creating the problem. Is there anyone out there that's still using a PWS server and PNG files? The server doesn't seem to want to send PNG files to the Netscape browsers, but has no problem with IE browsers. Does anyone know of any good discussion groups for PNG files (other than the WWW3 site or the PNG file site)? Thanks in advance, st -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Tuesday, August 13, 2002 4:14 PM To: MapServer Users (E-mail) Subject: [mapserver-users] PNG files in Netscape I was testing out a simple application and I've found I can't get PNG files to display in Netscape. The test worked fine in IE, but in Netscape I get an empty picture. If I right-click on the empty icon then I get a "save-as" dialog box. Any ideas on why PNG files aren't displaying? I'm using: PWS server on NT Netscape 4.79 php 4.2.2 Mapserver 3.6.1 Thanks, st From morissette at dmsolutions.ca Thu Aug 15 12:55:08 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 15 Aug 2002 15:55:08 -0400 Subject: [mapserver-users] PHP mapscript as Apache module: clarification? References: Message-ID: <3D5C071C.7DFFF1D8@dmsolutions.ca> Alex Rice wrote: > > Can you say where/what the thread safety issues are in Mapscript+ > libmap? I have been experimenting a bit compiling PHP Mapscript > using Swig 1.3 directly from mapscript.i. If I could get > mapscript running in a PHP apache DSO I would be very happy. > Several of the thread-safety issues in libmap.a have been addressed by Frank and Steve I think before the 3.6 release. The main issue that I know is left is related to the use of chdir() in lots of places to handle relative paths (like shapefile DATA path relative to SHAPEPATH, or SYMBOLSET location relative to mapfile location). Julien here has been working on this in the 3.7 source, it's almost all done, but because of the recent chaos in the 3.7 branch he still has some work to do to merge his changes back in the CVS version. Then the other big issues are the heritage from PHP3 that make the PHP MapScript wrappers not safe for use as a DSO... probably some small changes, but still need to be addressed, and I'm not sure of the number or extents of those issues. Finally, once the above are addressed, some proper testing, etc. needs to be done to ensure that PHP MapScript can work safely as a DSO again... I had SWIG 1.3+PHP in my hit list for quite a while, but it keeps being pushed back. I wouldn't expect things to work right out of the box with SWIG since PHP support is very new, but I would be interested in hearing your mileage with SWIG+PHP... perhaps you could send your feedback on this via the mapserver-dev list where I think this type of low-level discussion belongs more. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Aug 15 13:31:37 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Thu, 15 Aug 2002 16:31:37 -0400 Subject: [mapserver-users] PNG files in Netscape Message-ID: <7CDD7B94357FD5119E800002A537C46E23028E@s5-ccr-r1.ccrs.nrcan.gc.ca> Could it be something to with the MIME-type PWS is trying to send with the image or something? Maybe PWS has a hard time handling PNG's, doesn't recognize the extension, and doesn't send the right MIME-type ... I've seen this kind of behavior before, IE just uses the extension and more or less ignores the MIME-type ... Whereas NS4 goes by the MIME-type alone ... Just an idea :) J.F. -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Thursday, August 15, 2002 3:38 PM To: MapServer Users (E-mail) Subject: RE: [mapserver-users] PNG files in Netscape After further testing I've come to the conclusion that the PWS server is somehow creating the problem. Is there anyone out there that's still using a PWS server and PNG files? The server doesn't seem to want to send PNG files to the Netscape browsers, but has no problem with IE browsers. Does anyone know of any good discussion groups for PNG files (other than the WWW3 site or the PNG file site)? Thanks in advance, st -----Original Message----- From: Tweedy, Scott [mailto:sctweedy at NRCan.gc.ca] Sent: Tuesday, August 13, 2002 4:14 PM To: MapServer Users (E-mail) Subject: [mapserver-users] PNG files in Netscape I was testing out a simple application and I've found I can't get PNG files to display in Netscape. The test worked fine in IE, but in Netscape I get an empty picture. If I right-click on the empty icon then I get a "save-as" dialog box. Any ideas on why PNG files aren't displaying? I'm using: PWS server on NT Netscape 4.79 php 4.2.2 Mapserver 3.6.1 Thanks, st From DMartin at erac.com Thu Aug 15 13:48:46 2002 From: DMartin at erac.com (Martin, Daniel) Date: Thu, 15 Aug 2002 15:48:46 -0500 Subject: [mapserver-users] Debug mode? Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B11@STL-EXBE-I03.corp.erac.com> I don't know of a debug mode, but I can give you a pointer or two. One of the first things to look for - are the image files being placed in your temp folder? If they are, is your resulting HTML correctly pointing to these files? Try "View Source" and confirm. Answers to those two questions can go a long way towards solving the problem. -Dan -----Original Message----- From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] Sent: Thursday, August 15, 2002 9:12 AM To: Mapserver (E-mail) Subject: [mapserver-users] Debug mode? Is there any type of debug mode for MapServer 3.6? I am trying to do the first example in the tutorial and I am getting no image. Just trying to figure out what I am doing wrong. All I see is the broken image box like there is no image. I have been able to view the itasca demo without any problems so I know my mapserv binary is working fine. Any suggestions would be great!! Thanks Chris From mschulz at webgis.de Fri Aug 16 02:47:50 2002 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 16 Aug 2002 11:47:50 +0200 Subject: [mapserver-users] mapscript and image extent Message-ID: <3D5CCA45.694A8E46@webgis.de> Hi, is it possible to get mapscript access to the calculated image extent (in map coordinates) when/after drawing the map image? Because this is not the same as the actual map extent set in the mapfile, is it? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From pgigoux at munistgo.cl Fri Aug 16 10:46:37 2002 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Fri, 16 Aug 2002 13:46:37 -0400 Subject: [mapserver-users] install mapserver 3.6.1 Message-ID: <008701c2454c$e15b8e20$4459fea9@munistgo.cl> how do I have to install mapserver 3.6.1 for it work wiht phpmapscript Thanks in advance Patricio From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Fri Aug 16 07:05:31 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Fri, 16 Aug 2002 10:05:31 -0400 Subject: [mapserver-users] mapscript and image extent Message-ID: <7CDD7B94357FD5119E800002A537C46E230291@s5-ccr-r1.ccrs.nrcan.gc.ca> With the CGI version the extent of the map being returned can be accessed via "[mapext]" ... In Perl, something like "$map->{extent}->{minx}" (or miny,maxx,maxy) should give it to you ... Just make sure you call this after any operation has been performed obviously. This would return the extent of the map for the current state of the map object. J.F. -----Original Message----- From: Michael Schulz [mailto:mschulz at webgis.de] Sent: Friday, August 16, 2002 5:48 AM To: MapServer Userlist Subject: [mapserver-users] mapscript and image extent Hi, is it possible to get mapscript access to the calculated image extent (in map coordinates) when/after drawing the map image? Because this is not the same as the actual map extent set in the mapfile, is it? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From WILLIC10 at mail.northgrum.com Fri Aug 16 10:08:33 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Fri, 16 Aug 2002 10:08:33 -0700 Subject: [mapserver-users] More newbie questions Message-ID: I was able to get the first example from the tutorial to work. I needed to change some of the paths to absolute paths and that worked. What I am trying to do now is get a different shape file to work. I downloaded a world outline shape and was able to show it using the 400 x 300 size. If I adjust that to be larger in the .map file, the image size doesn't change. Any suggestions?? Thanks Chris From joe at otsys.com Fri Aug 16 10:45:17 2002 From: joe at otsys.com (Joe Bussell) Date: Fri, 16 Aug 2002 10:45:17 -0700 Subject: [mapserver-users] mapscript and image extent In-Reply-To: <3D5CCA45.694A8E46@webgis.de> References: <3D5CCA45.694A8E46@webgis.de> Message-ID: <20020816174517.GA18438@extempore.otsys.com> In Perl I can do: my $img = $map->prepareImage() or carp "Unable to prepareImage $mapscript::ms_error->{message} \n"; carp "Scale = $map->{scale}". " maxY = $map->{extent}->{maxy}". " maxX = $map->{extent}->{maxx}". " minY = $map->{extent}->{miny}". " minX = $map->{extent}->{minx}"; I still haven't managed to get these values returned to the client fo proper mouse movement calculations, but its a start. Joe Bussell On Time Systems On Fri, Aug 16, 2002 at 11:47:50AM +0200, Michael Schulz wrote: > Hi, > > is it possible to get mapscript access to the calculated image extent > (in map coordinates) when/after drawing the map image? Because this is > not the same as the actual map extent set in the mapfile, is it? > > Thanks, Michael > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de > > > From woodbri at swoodbridge.com Fri Aug 16 13:07:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 16 Aug 2002 16:07:52 -0400 Subject: [mapserver-users] More newbie questions In-Reply-To: Message-ID: <3D5D2358.20708.29C9A007@localhost> On 16 Aug 2002 at 10:08, Williams, Chris D. wrote: > I was able to get the first example from the tutorial to work. I needed to > change some of the paths to absolute paths and that worked. What I am > trying to do now is get a different shape file to work. I downloaded a > world outline shape and was able to show it using the 400 x 300 size. If I > adjust that to be larger in the .map file, the image size doesn't change. > Any suggestions?? Does your HTML have height and width specified on the IMG tag? That will casue the browser to scale the image to fit that size no matter what size it is. -Steve From DMartin at erac.com Fri Aug 16 15:24:11 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 16 Aug 2002 17:24:11 -0500 Subject: [mapserver-users] More newbie questions Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A16F2C4@STL-EXBE-I03.corp.erac.com> I'm assuming you are using the pure-CGI version (not the php version). For dynamic image sizes I use something like this: -Dan -----Original Message----- From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] Sent: Friday, August 16, 2002 12:09 PM To: Mapserver (E-mail) Subject: [mapserver-users] More newbie questions I was able to get the first example from the tutorial to work. I needed to change some of the paths to absolute paths and that worked. What I am trying to do now is get a different shape file to work. I downloaded a world outline shape and was able to show it using the 400 x 300 size. If I adjust that to be larger in the .map file, the image size doesn't change. Any suggestions?? Thanks Chris From booklong at hotmail.com Sat Aug 17 16:18:00 2002 From: booklong at hotmail.com (N A) Date: Sat, 17 Aug 2002 23:18:00 +0000 Subject: [mapserver-users] Problem with specifying data parameter for postgis layer Message-ID: Dear all, Could someone please let me know if sub queries are allowed in specifying the data parameter for a postgis layer. when I specify the data parameter as: LAYER . DATA "the_geom from places" . END it works on the otherhand, I would like to be able to manipulate the query a bit more so I try to use: LAYER . DATA "the_geom from (select the_geom,featuretype,featurename from places) as foo" . END this fails. I went back and browsed thru the mappostgis.c source code and I found the following: Must contain 'geometry_column from table_name' or 'geom from (subselect) as foo' Any help will be appreciated. Thanks _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From vinko at cprsig.cl Sat Aug 17 17:39:36 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Sat, 17 Aug 2002 20:39:36 -0400 Subject: [mapserver-users] install mapserver 3.6.1 In-Reply-To: <008701c2454c$e15b8e20$4459fea9@munistgo.cl> References: <008701c2454c$e15b8e20$4459fea9@munistgo.cl> Message-ID: <20020818003936.GA9430@landsat.cprsig.cl> On Fri, Aug 16, 2002 at 01:46:37PM -0400, Patricio Gigoux wrote: > how do I have to install mapserver 3.6.1 for it work wiht phpmapscript Using the --with-php configure flag. If you could explain a bit more your question, the answers could be a lot better. Read http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript This next link is outdated, so don't follow it. http://mapserver.gis.umn.edu/doc36/phpmapscript-install-howto.html -- Vinko Vrsalovic http://www.cprsig.cl From klehr1 at tampabay.rr.com Sun Aug 18 07:05:42 2002 From: klehr1 at tampabay.rr.com (S&K Lehr) Date: Sun, 18 Aug 2002 10:05:42 -0400 Subject: [mapserver-users] unsubscribe Message-ID: <001d01c246c0$587939c0$0400a8c0@MAINFRAME> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycnyon at pd.jaring.my Sun Aug 18 08:45:21 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Sun, 18 Aug 2002 23:45:21 +0800 Subject: [mapserver-users] Support for 24-bit Tiff Message-ID: <000d01c246ce$77bede80$6ecc97ca@domain> Is support for 24-bit Tiff available yet in MS ? Nyon From andrewrcollins at yahoo.com Sun Aug 18 23:29:58 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Sun, 18 Aug 2002 23:29:58 -0700 (PDT) Subject: No subject Message-ID: <20020819062958.52991.qmail@web14004.mail.yahoo.com> Hello Each and All I am having a heck of a time determing what the status of a Java MapScript interface is or is not... I've done a search (maybe not wide enough?) and found some contradictory postings and websites: The Theory http://mapserver.gis.umn.edu/wilma/mapserver-users/0006/msg00060.html Experiments http://mailman.cs.uchicago.edu/pipermail/swig/2001-November/003471.html Questions... http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00042.html Possible success? http://urewera.boarsnest.net/MapScript/ But, no "HOWTO" exists... http://mapserver.gis.umn.edu/mdp/ I'm not any sort of "Java guru" but I have a sincere interest in seeing a Java interface to MapServer become available. I'm absolutely certain that there are at least a few other people interested in getting a Java interface working. I would compose a "HOWTO" project for the MapServer Documentation Project, with some help, too: http://mapserver.gis.umn.edu/mdp/ Please send responses, hints, links or information to the MapServer list as well as directly to me. Thanks! ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From andrewrcollins at yahoo.com Sun Aug 18 23:33:07 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Sun, 18 Aug 2002 23:33:07 -0700 (PDT) Subject: [mapserver-users] Java Interface to MapServer Message-ID: <20020819063307.31685.qmail@web14006.mail.yahoo.com> Oops... Sorry. Please respond to this posting. I dislike subject-free emails, too. -- Hello Each and All I am having a heck of a time determing what the status of a Java MapScript interface is or is not... I've done a search (maybe not wide enough?) and found some contradictory postings and websites: The Theory http://mapserver.gis.umn.edu/wilma/mapserver-users/0006/msg00060.html Experiments http://mailman.cs.uchicago.edu/pipermail/swig/2001-November/003471.html Questions... http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00042.html Possible success? http://urewera.boarsnest.net/MapScript/ But, no "HOWTO" exists... http://mapserver.gis.umn.edu/mdp/ I'm not any sort of "Java guru" but I have a sincere interest in seeing a Java interface to MapServer become available. I'm absolutely certain that there are at least a few other people interested in getting a Java interface working. I would compose a "HOWTO" project for the MapServer Documentation Project, with some help, too: http://mapserver.gis.umn.edu/mdp/ Please send responses, hints, links or information to the MapServer list as well as directly to me. Thanks! ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From Timothy.Mackey at ga.gov.au Sun Aug 18 23:55:24 2002 From: Timothy.Mackey at ga.gov.au (Mackey Timothy) Date: Mon, 19 Aug 2002 16:55:24 +1000 Subject: [mapserver-users] oracle spatial 9i Message-ID: Hi all, I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial 8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get an OracleSpatial error. Does Oracle Spatial support only work with 8.x? If so, is it on the plans to upgrade to 9i? Tim Mackey Web Applications Manager Geoscience Australia timothy.mackey at ga.gov.au http://www.ga.gov.au From nicolasb at maich.gr Mon Aug 19 03:30:07 2002 From: nicolasb at maich.gr (Nicolas Boretos) Date: Mon, 19 Aug 2002 13:30:07 +0300 Subject: [mapserver-users] 3.5/3.6 TclMapScript dll References: <20020819062958.52991.qmail@web14004.mail.yahoo.com> Message-ID: <3D60C8AF.3090606@maich.gr> Hello, does anyone have a tclmapscript windows dll built against 3.5/3.6 mapserver? sincerely, nicolas boretos From gis_consultant at hotmail.com Mon Aug 19 09:42:57 2002 From: gis_consultant at hotmail.com (C F) Date: Mon, 19 Aug 2002 10:42:57 -0600 Subject: [mapserver-users] Java Interface to MapServer Message-ID: My take on it is that technically, it does work.... However, if your intention is to use it in a web environment, I *think* your server component will need to be as CGI as opposed to a servlet. If I'm wrong... someone please let us know the solution! I looked into this a while back and here are my conclusions based on experimentation and input from the group... 1) The swig tool worked great for providing Java hooks into Mapscript. 2) I was able to create functional mapscript programs in Java to generate maps. 3) Because mapserver is not thread-safe the servlet environment provides prohibitive limitations. Basically what would happen is it (servlet) would take requests and process them fine... as long as you let your request finish before sending another one. As it turns out servlets hold on to the same thread for browser sessions which causes problems for this non-thread-safe environment. I've tried different ways of protecting/synchronizing the threads from these issues but without success. For me, the biggest scare factor is that is it seems very difficult or impossible to catch these errors and handle them gracefully. Any little disruption in the underlying mapserver libraries I'm accessing through JNI causes the entire JVM to crash! This is VERY bad. If you're in a servlet environment, this also causes your servlet engine to crash, so then you're down for good. 4) I thought about the possibility of still using Java, but setting it up as CGI instead of servlets. This might resolve the threading issues, but again, the fact that any little error (let's say an invalid file path or a bum layer) causes the JVM to crash. While subsequent requests should still work (your site wouldn't be down), I am still not able to handle errors gracefully and the fact that the JVM is crashing brings up scaring things like orphaned resources that build up over time and really screwing things up. Since I'm developing everything else in Java, I would like to stick with Java, as it would solve a lot of my headaches... so I too would like to hear about any success stories. In the meantime, I'm using a servlet to open up a URL connection to a local PHP/Mapscript page and returning the results as PHP/Mapscript works great and has excellent support and user base. >From: Andrew Collins >To: mapserver-users at lists.gis.umn.edu >CC: Stephen Lime , debasish sahu >, DebasishS at riskinc.com, >gsims at wave.co.nz, mdp at lists.gis.umn.edu >Subject: [mapserver-users] Java Interface to MapServer >Date: Sun, 18 Aug 2002 23:33:07 -0700 (PDT) > >Oops... Sorry. >Please respond to this posting. >I dislike subject-free emails, too. > >-- > >Hello Each and All > >I am having a heck of a time determing what the status of a Java >MapScript interface is or is not... I've done a search (maybe not >wide enough?) and found some contradictory postings and websites: > > The Theory > http://mapserver.gis.umn.edu/wilma/mapserver-users/0006/msg00060.html > > Experiments > http://mailman.cs.uchicago.edu/pipermail/swig/2001-November/003471.html > > Questions... > http://mapserver.gis.umn.edu/wilma/mapserver-users/0112/msg00042.html > > Possible success? > http://urewera.boarsnest.net/MapScript/ > > But, no "HOWTO" exists... > http://mapserver.gis.umn.edu/mdp/ > >I'm not any sort of "Java guru" but I have a sincere interest >in seeing a Java interface to MapServer become available. I'm >absolutely certain that there are at least a few other people >interested in getting a Java interface working. > >I would compose a "HOWTO" project for the MapServer Documentation >Project, with some help, too: http://mapserver.gis.umn.edu/mdp/ > >Please send responses, hints, links or information to the >MapServer list as well as directly to me. > >Thanks! > >===== >Andrew Collins - andrewrcollins at yahoo.com >http://profiles.yahoo.com/andrewrcollins/ > >__________________________________________________ >Do You Yahoo!? >HotJobs - Search Thousands of New Jobs >http://www.hotjobs.com _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From gis_consultant at hotmail.com Mon Aug 19 10:05:50 2002 From: gis_consultant at hotmail.com (C F) Date: Mon, 19 Aug 2002 11:05:50 -0600 Subject: [mapserver-users] Error Handling for Layers? Message-ID: Hi, I'm certain this must've been discussed before, but I've searched and searched the archives and came up with nothing... I'm using Mapserver 3.6.1 and with PostGIS. Is there any way to recover from an error in a layer? Right now, it appears that if, for whatever reason, one of your visible layers was not available during a request, the whole thing blows up and you get no map at all. My thinking is that the rest of the layers shouldn't get the shaft just because one layer couldn't get its act together. Mapguide has a nice feature like this where it still returns a map, but only that one layer doesn't get rendered and a little red 'X' shows up next it in the legend indicating that it has an error. I'd be interested to hear about both raw Mapserver/Mapfile implementation as well as Mapscript. Since I may be using either/or. Right now, the only solution I see is using Mapscript (PHP in my case) to manually loop through each layer and setting every single possible property and perform the draw operation and trap errors (totally replace the mapfile).... which is fine with me, it just seems like an awful lot of work to set up PHP to replicate all setting available in the Mapfile (symbology, scales, classes, labeling, etc, etc). Am I wrong? Thanks! _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From gis_consultant at hotmail.com Mon Aug 19 11:22:58 2002 From: gis_consultant at hotmail.com (C F) Date: Mon, 19 Aug 2002 12:22:58 -0600 Subject: [mapserver-users] Error Handling for Layers? Message-ID: Oops, please disregard to the last portion of my post. I think I had a momentary lapse of brain power. I remembered after sending it that I can draw layers in PHP Mapscript one-by-one from the mapfile (without having to manually set every layer property). However, I guess the question still remains, will layer errors be trappable/recoverable? In case you're wondering why I don't just try it for myself.... it's because I don't have access to my app right now :) But I will try it and post the results if I don't get any responses. Thanks >From: "C F" >To: mapserver-users at lists.gis.umn.edu >Subject: [mapserver-users] Error Handling for Layers? >Date: Mon, 19 Aug 2002 11:05:50 -0600 > >Hi, >I'm certain this must've been discussed before, but I've searched and >searched the archives and came up with nothing... >I'm using Mapserver 3.6.1 and with PostGIS. Is there any way to recover >from an error in a layer? Right now, it appears that if, for whatever >reason, one of your visible layers was not available during a request, the >whole thing blows up and you get no map at all. My thinking is that the >rest of the layers shouldn't get the shaft just because one layer couldn't >get its act together. Mapguide has a nice feature like this where it still >returns a map, but only that one layer doesn't get rendered and a little >red 'X' shows up next it in the legend indicating that it has an error. >I'd be interested to hear about both raw Mapserver/Mapfile implementation >as well as Mapscript. Since I may be using either/or. > >Right now, the only solution I see is using Mapscript (PHP in my case) to >manually loop through each layer and setting every single possible property >and perform the draw operation and trap errors (totally replace the >mapfile).... which is fine with me, it just seems like an awful lot of work >to set up PHP to replicate all setting available in the Mapfile (symbology, >scales, classes, labeling, etc, etc). Am I wrong? > >Thanks! > > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From pagurekd at agr.gc.ca Mon Aug 19 12:29:28 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Mon, 19 Aug 2002 15:29:28 -0400 Subject: [mapserver-users] rosa, projection and query problem Message-ID: Hi everone, I've developed an application using Mapserver CGI, the ROSA applet, and shapefiles that are in decimal degrees. The application works, including the queries on the polygons, as long as I don't include any projection information in the map file. However, I am trying to set this application up for use as a WMS server, and as soon as I put the projection tags into the mapfile e.g. PROJECTION "init=epsg:4267" END (this tag is in each layer definition as well as at the very top section of the mapfile) everything works EXCEPT for the query, which results in the following: msQueryByPoint(): Search returned no results. No matching record(s) found But as far as I can tell from the URL, nothing has changed as a result of the click on the map. Is there some sort of underlying conflict with PROJ and ROSA (i doubt that)... can anyone shed any light on this frustrating problem I'm having? see below for the mapfile I have another application that is set up the same way for use as a WMS server but it doesn't use ROSA... and it works fine, so I don't think this is a problem with the PROJ setup. D. Pagurek # # Start of map file # NAME ECOROSA STATUS ON SIZE 500 250 EXTENT -150 40 -50 90 UNITS dd SHAPEPATH "c:\inetpub\wwwroot\ms_demo\eco\data" IMAGECOLOR 255 255 255 # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4267" END # # Start of web interface definition # WEB IMAGEPATH "C:\Inetpub\wwwroot\temp\" IMAGEURL "/temp/" TEMPLATE eco_rosa.html METADATA "wms_title" "WMS Ecostratification" "wms_onlineresource" "http://myhost/scripts/mapserv.exe?" "wms_srs" "EPSG:4267" ...etc... END #metadata END #WEB QUERYMAP SIZE 500 250 STATUS ON STYLE HILITE COLOR 255 255 0 END # # Start of reference map # REFERENCE IMAGE "c:\inetpub\wwwroot\ms_demo\aveco2\ref_map.gif" EXTENT -150 40 -50 90 SIZE 100 50 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND STATUS ON IMAGECOLOR 255 255 255 OUTLINECOLOR 0 0 0 #KEYSIZE 18 12 KEYSIZE 16 10 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 0 END END #LEGEND # # Start of scalebar # SCALEBAR STATUS ON IMAGECOLOR 255 255 255 LABEL COLOR 255 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 200 2 COLOR 153 153 153 UNITS kilometers INTERVALS 3 END #SCALEBAR # # Start of layer definitions # LAYER NAME 'Ecozones' TYPE Polygon STATUS ON DATA ecozones TEMPLATE "ecoquery1.html" FOOTER "ecofooter.html" CLASSITEM 'ZONE' CLASS EXPRESSION '1' NAME 'Arctic Cordillera' COLOR 204 255 255 END # CLASS CLASS EXPRESSION '2' NAME 'Northern Arctic' COLOR 153 204 204 END # CLASS CLASS EXPRESSION '3' NAME 'Southern Arctic' COLOR 0 153 204 END # CLASS CLASS EXPRESSION '4' NAME 'Taiga Plains' COLOR 204 204 204 END # CLASS CLASS EXPRESSION '5' NAME 'Taiga Shield' COLOR 153 153 153 END # CLASS CLASS EXPRESSION '6' NAME 'Boreal Shield' COLOR 102 204 102 END # CLASS CLASS EXPRESSION '7' NAME 'Atlantic Maritime' COLOR 102 204 204 END # CLASS CLASS EXPRESSION '8' NAME 'Mixed Wood Plains' COLOR 255 204 153 END # CLASS CLASS EXPRESSION '9' NAME 'Boreal Plains' COLOR 204 255 204 END # CLASS CLASS EXPRESSION '10' NAME 'Prairies' COLOR 255 255 153 END # CLASS CLASS EXPRESSION '11' NAME 'Taiga Cordillera' COLOR 204 153 204 END # CLASS CLASS EXPRESSION '12' NAME 'Boreal Cordillera' COLOR 153 102 204 END # CLASS CLASS EXPRESSION '13' NAME 'Pacific Maritime' COLOR 0 102 0 END # CLASS CLASS EXPRESSION '14' NAME 'Montane Cordillera' COLOR 153 204 000 END # CLASS CLASS EXPRESSION '15' NAME 'Hudson Plains' COLOR 204 255 153 END # CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "Ecozones" "wms_Srs" "EPSG:4267" "wms_abstract" "An area at the earth's surface representative of large and very generalized ecological units characterized by various abiotic and biotic factors. " "wms_extent" "-150 40 -50 90" "wms_opaque" "1" END END # LAYER LAYER NAME Ecodistricts TYPE Polygon STATUS ON DATA eco TEMPLATE "ecoquery3.html" CLASS NAME "Ecodistricts" OUTLINECOLOR 204 0 0 END # CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "Ecodistricts" "wms_srs" "EPSG:4267" "wms_abstract" "A part of an ecoregion characterized by distinctive assemblages of relief, geology, landforms,soils, vegetation, water, and fauna." "wms_extent" "-150 40 -50 90" "wms_opaque" "0" END END # LAYER LAYER NAME Ecoregions TYPE Polygon STATUS ON DATA ecoregions HEADER "ecoheader.html" TEMPLATE "ecoquery2.html" CLASS NAME 'Ecoregions' OUTLINECOLOR 0 0 0 END #CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "ecoregions" "wms_srs" "EPSG:4267" "wms_abstract" "A part of an ecozone characterized by distinctive regional ecological factors, including climate, physiography, vegetation, soil, water and fauna." "wms_extent" "-150 40 -50 90" "wms_opaque" "0" END END #LAYER END # MAPFILE From andrewrcollins at yahoo.com Mon Aug 19 13:22:34 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Mon, 19 Aug 2002 13:22:34 -0700 (PDT) Subject: [mapserver-users] Java Interface to MapServer In-Reply-To: Message-ID: <20020819202234.22320.qmail@web14007.mail.yahoo.com> C F > 1) The swig tool worked great for providing Java hooks into > Mapscript. I've succeeded in getting swig to produce a suitable set of Java wrapper classes generated and compiled without serious hassle. > 2) I was able to create functional mapscript programs in > Java to generate maps. I hope to be here once I get the .dll compilation process established and automated. I'm using MingW. I am following the approach described in "Mapserver and Mapscript/Tcl for Windows" found in mapserver-3.6.1/mapscript/tcl/win of compiling all of MapServer into a single mondo .dll file. > 3) Because mapserver is not thread-safe the servlet environment > provides prohibitive limitations. Basically what would happen > is it (servlet) would take requests and process them fine... as > long as you let your request finish before sending another one. Yes, I experienced this problem with the PHP/MapScript for MapServer 3.5 on occasion. > As it turns out servlets hold on to the same thread for browser > sessions which causes problems for this non-thread-safe > environment. I've tried different ways of > protecting/synchronizing the threads from these issues but > without success. True, but did you follow the strategy of having the servlet implement SingleThreadModel? http://java.sun.com/docs/books/tutorial/servlets/client-interaction/threads.html > For me, the biggest scare factor is that is it seems very > difficult or impossible to catch these errors and handle them > gracefully. Any little disruption in the underlying mapserver > libraries I'm accessing through JNI causes the entire JVM to > crash! This is VERY bad. If you're in a servlet environment, > this also causes your servlet engine to crash, so then you're > down for good. I agree that deep catastrophic errors related to JNI are frustratingly difficult to debug. I would certainly prefer to avoid this arena. > 4) I thought about the possibility of still using Java, but > setting it up as CGI instead of servlets. This might resolve > the threading issues, but again, the fact that any little error > (let's say an invalid file path or a bum layer) causes the JVM > to crash. While subsequent requests should still work (your > site wouldn't be down), I am still not able to handle errors > gracefully and the fact that the JVM is crashing brings up > scaring things like orphaned resources that build up over time > and really screwing things up. It seems that implementing the SingleThreadModel may solve this problem--at least in theory. > Since I'm developing everything else in Java, I would like to > stick with Java, as it would solve a lot of my headaches... so > I too would like to hear about any success stories. I had been set on simply using PHP/MapScript, alongside all my other Java work, for the past few months, but then I started using JBoss 3.0 and for the sake of a stable long-term development process I feel that revisiting a Java interface to MapServer would be far more beneficial than being strapped into hauling both PHP and Java into the future. > In the meantime, I'm using a servlet to open up a URL > connection to a local PHP/Mapscript page and returning > the results as PHP/Mapscript works great and has excellent > support and user base. Yes, I agree that the PHP/MapScript work is really great. I would like to see the same for a Java interface. :) Thanks for your response. My main question from this post: Did you implement the SingleThreadModel for your servlet? Thanks! ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From gis_consultant at hotmail.com Mon Aug 19 14:42:27 2002 From: gis_consultant at hotmail.com (C F) Date: Mon, 19 Aug 2002 15:42:27 -0600 Subject: [mapserver-users] Java Interface to MapServer Message-ID: > > As it turns out servlets hold on to the same thread for browser > > sessions which causes problems for this non-thread-safe > > environment. I've tried different ways of > > protecting/synchronizing the threads from these issues but > > without success. > >True, but did you follow the strategy of having the servlet >implement SingleThreadModel? > >http://java.sun.com/docs/books/tutorial/servlets/client-interaction/threads.html > I tried to accomplish the same thing through the use of thread locking (just out of curiousity) but I didn't try the implements SingleThreadModel approach. You're right, it seems like this should work.... However, that seems like it would have severe performance implications. I don't mind restricting each client to a single request at a time, but limiting the entire servlet, and by extension, machine to one request at a time sounds aweful. Are you okay with that or do you have other tricks up your sleeve? The only thing I can think of is to use this approach and have several servlets each implementing SingleThreadModel and a load balancer calling them across concurrent requests. I don't have a good enough understanding of the low level threading going on behind the scenes to fully grasp if or why this would work, but based on my previous experimentation, it seems like it might. Here are some interesting things I experienced.... maybe this will give you enough insight to offer some other solutions. You might also have some suggestions for solving this using an EJB container like JBoss (which I also tried briefly). Servlet and/or JSP ------------------ Concurrent requests from a single browser = crash Concurrent requests from multiple browsers = ok JSP -> EJB (mapscript implemented in session bean in JBoss 3.0) --------------------------------------------------------------- Concurrent requests from a single browser = ok Concurrent requests from multiple browsers = crash >I had been set on simply using PHP/MapScript, alongside all my >other Java work, for the past few months, but then I started >using JBoss 3.0 and for the sake of a stable long-term >development process I feel that revisiting a Java interface >to MapServer would be far more beneficial than being strapped >into hauling both PHP and Java into the future. I'm with you there. I would *love* to be able to set this stuff up in EJB's and be able to pass around my native servlet context, etc. Life would be so much easier. I'm afraid though, that even if we're able to work around the threading issue, there is still the error handling issue (i.e. stability). It's just that the whole thing seems sketchy to me right now. Maybe if we're determined enough we can work through it.... It will be interesting to see what you try and find out. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From tripodi at cttmar.univali.br Mon Aug 19 20:53:30 2002 From: tripodi at cttmar.univali.br (Rodrigo Zanato Tripodi) Date: Tue, 20 Aug 2002 00:53:30 -0300 Subject: [mapserver-users] oracle spatial 9i In-Reply-To: Message-ID: <5.1.1.6.0.20020820001503.009ed540@pop3.cttmar.univali.br> Hi, I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. Sorry about the lack of support. I was busy with a project at the last weeks. I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I will test this at this week and try to fix the code if I found any error. Can you send me the version of all libraries and the error that you get? Are you using Oracle IAS? Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br At 16:55 19/08/02 +1000, Mackey Timothy wrote: >Hi all, > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get >an OracleSpatial error. > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans >to upgrade to 9i? > > >Tim Mackey >Web Applications Manager >Geoscience Australia >timothy.mackey at ga.gov.au >http://www.ga.gov.au From Timothy.Mackey at ga.gov.au Mon Aug 19 21:08:00 2002 From: Timothy.Mackey at ga.gov.au (Mackey Timothy) Date: Tue, 20 Aug 2002 14:08:00 +1000 Subject: [mapserver-users] oracle spatial 9i Message-ID: Hi Rodrigo, We're using Oracle 9.2.0.1.0, and IAS 1.0.2.2.0. We have installed the version of Oracle Spatial that came with Oracle 9i (release 2). The 3.6.1 code compiles fine, but requesting a map using mapserver CGI gives a mapserver error: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error." MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Tim -----Original Message----- From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] Sent: Tuesday, 20 August 2002 1:54 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle spatial 9i Hi, I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. Sorry about the lack of support. I was busy with a project at the last weeks. I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I will test this at this week and try to fix the code if I found any error. Can you send me the version of all libraries and the error that you get? Are you using Oracle IAS? Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br At 16:55 19/08/02 +1000, Mackey Timothy wrote: >Hi all, > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get >an OracleSpatial error. > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans >to upgrade to 9i? > > >Tim Mackey >Web Applications Manager >Geoscience Australia >timothy.mackey at ga.gov.au >http://www.ga.gov.au From mg at fd.dk Tue Aug 20 03:08:15 2002 From: mg at fd.dk (=?iso-8859-1?Q?Mikael_Gr=F8nfeldt?=) Date: Tue, 20 Aug 2002 12:08:15 +0200 Subject: [mapserver-users] oracle spatial 9i Message-ID: <9025C8877267D3118A8F00A0C9E31CCD0156BDDE@fdexchange.fd.dk> Hi Tim and Rodrigo We have the same problem here in Copenhagen. We're using Oracle 9.2.0.1.0 and IAS with Server version: Apache/1.3.12 (Unix),Server built: Aug 18 2000 16:14:55 both running on a HP-UX B.11.00 64 bit. We have mapserver 3.6.1 running on a NT platform (Apache/1.3.23) and the NT mapserver are able to connect to our database and display objects from the database without any problems. We have also compiled a version of mapserver on our Unix platform, we have compiled it as 64 bit, as long as we dont try to connect to the Oracle database mapserver works fine, but when we try to access the database the mapserver craches and Apache returns with a "internal server Error" and the following is added to the Apache error_log: /oracle/oasTEST/OAS9i/Apache/Apache/cgi-bin/map[6]: 13629 Bus error(coredump) [Tue Aug 20 11:23:24 2002] [error] [client 10.1.100.78] Premature end of script headers: /oracle/oasTEST/OAS9i/Apache/Apache/cgi-bin/map We think we have located the problem to line 283 in maporaclespatial.c: TRY( layerinfo, /* allocate envhp */ OCIEnvCreate( &layerinfo->envhp, OCI_OBJECT, (dvoid *)0, 0, 0, 0, (size_t) 0, (dvoid **)0 ) ) && If we /* */ the TRY call and compile a new mapserver we get: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error. OCI_INVALID_HANDLE" back from the mapserver when we try to connect to the database. I hope this information can help Mikael Gronfeldt Head of Section Danish Directorate of Fisheries http://www.fd.dk -----Original Message----- From: Mackey Timothy [mailto:Timothy.Mackey at ga.gov.au] Sent: Tuesday, August 20, 2002 6:08 AM To: Rodrigo Zanato Tripodi Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] oracle spatial 9i Hi Rodrigo, We're using Oracle 9.2.0.1.0, and IAS 1.0.2.2.0. We have installed the version of Oracle Spatial that came with Oracle 9i (release 2). The 3.6.1 code compiles fine, but requesting a map using mapserver CGI gives a mapserver error: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error." MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Tim -----Original Message----- From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] Sent: Tuesday, 20 August 2002 1:54 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle spatial 9i Hi, I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. Sorry about the lack of support. I was busy with a project at the last weeks. I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I will test this at this week and try to fix the code if I found any error. Can you send me the version of all libraries and the error that you get? Are you using Oracle IAS? Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br At 16:55 19/08/02 +1000, Mackey Timothy wrote: >Hi all, > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get >an OracleSpatial error. > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans >to upgrade to 9i? > > >Tim Mackey >Web Applications Manager >Geoscience Australia >timothy.mackey at ga.gov.au >http://www.ga.gov.au From Hugues.Parvillers at AgdF.com Tue Aug 20 04:55:27 2002 From: Hugues.Parvillers at AgdF.com (Hugues Parvillers) Date: Tue, 20 Aug 2002 13:55:27 +0200 Subject: [mapserver-users] oracle spatial 9i References: Message-ID: <3D622E2F.F2933D07@AgdF.com> Tim, Don't you have the Oracle Error ? For example look at : http://mapserver.gis.umn.edu/wilma/mapserver-users/0202/msg00333.html Yu had a defined Oracle error ! H/P Mackey Timothy a ?crit : > Hi Rodrigo, > > We're using Oracle 9.2.0.1.0, and IAS 1.0.2.2.0. > We have installed the version of Oracle Spatial that came with Oracle 9i (release 2). > > The 3.6.1 code compiles fine, but requesting a map using mapserver CGI gives a mapserver error: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error." > > MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Tim > > -----Original Message----- > From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] > Sent: Tuesday, 20 August 2002 1:54 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oracle spatial 9i > > Hi, > > I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. > > Sorry about the lack of support. I was busy with a project at the last weeks. > > I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I > will test this at this week and try to fix the code if I found any error. > > Can you send me the version of all libraries and the error that you get? > > Are you using Oracle IAS? > > Rodrigo Zanato Tripodi > Laborat?rio de Computa??o Aplicada - CTTMar/Univali > tripodi at cttmar.univali.br > http://g10.cttmar.univali.br > > At 16:55 19/08/02 +1000, Mackey Timothy wrote: > >Hi all, > > > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial > >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get > >an OracleSpatial error. > > > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans > >to upgrade to 9i? > > > > > >Tim Mackey > >Web Applications Manager > >Geoscience Australia > >timothy.mackey at ga.gov.au > >http://www.ga.gov.au From pucher at atlas.gis.univie.ac.at Tue Aug 20 07:19:59 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Tue, 20 Aug 2002 16:19:59 +0200 Subject: [mapserver-users] MapServer on SuSe 8.0 HOWTO Message-ID: <3D62500F.9040009@atlas.gis.univie.ac.at> As promised to Daniel about 3 weeks ago, here is my 'UMN MapServer on SuSE Linux 8.0 Compilation and Installation HOWTO'. This first version is made in german, for I think that mostly people from the german speaking world will use SUSE. If there is demand, I will translate it into english. Furtermore, will put it into the wiki as soon as possible. Regards, alex -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum -------------- next part -------------- An HTML attachment was scrubbed... URL: From pagurekd at agr.gc.ca Tue Aug 20 07:19:39 2002 From: pagurekd at agr.gc.ca (Debbie Pagurek) Date: Tue, 20 Aug 2002 10:19:39 -0400 Subject: [mapserver-users] rosa, projection and query problem Message-ID: OK - I solved my problem. For some reason, after I added the projection tags the application no longer "liked" TOLERANCE 0. So I added TOLERANCEUNITS METERS to my map file, and changed the TOLERANCE to 1 and the query part of the application works again. So the question is... why doesn't TOLERANCE 0 work once the projection information is added? I wasn't actually changing the projection of the layers, I just added the projection tags so that the app can be used as a WMS server. D. Pagurek >>> "Debbie Pagurek" 08/19/02 03:29PM >>> Hi everone, I've developed an application using Mapserver CGI, the ROSA applet, and shapefiles that are in decimal degrees. The application works, including the queries on the polygons, as long as I don't include any projection information in the map file. However, I am trying to set this application up for use as a WMS server, and as soon as I put the projection tags into the mapfile e.g. PROJECTION "init=epsg:4267" END (this tag is in each layer definition as well as at the very top section of the mapfile) everything works EXCEPT for the query, which results in the following: msQueryByPoint(): Search returned no results. No matching record(s) found But as far as I can tell from the URL, nothing has changed as a result of the click on the map. Is there some sort of underlying conflict with PROJ and ROSA (i doubt that)... can anyone shed any light on this frustrating problem I'm having? see below for the mapfile I have another application that is set up the same way for use as a WMS server but it doesn't use ROSA... and it works fine, so I don't think this is a problem with the PROJ setup. D. Pagurek # # Start of map file # NAME ECOROSA STATUS ON SIZE 500 250 EXTENT -150 40 -50 90 UNITS dd SHAPEPATH "c:\inetpub\wwwroot\ms_demo\eco\data" IMAGECOLOR 255 255 255 # Projection definition, consult the PROJ.4 documentation for parameter discussion # PROJECTION "init=epsg:4267" END # # Start of web interface definition # WEB IMAGEPATH "C:\Inetpub\wwwroot\temp\" IMAGEURL "/temp/" TEMPLATE eco_rosa.html METADATA "wms_title" "WMS Ecostratification" "wms_onlineresource" "http://myhost/scripts/mapserv.exe?" "wms_srs" "EPSG:4267" ...etc... END #metadata END #WEB QUERYMAP SIZE 500 250 STATUS ON STYLE HILITE COLOR 255 255 0 END # # Start of reference map # REFERENCE IMAGE "c:\inetpub\wwwroot\ms_demo\aveco2\ref_map.gif" EXTENT -150 40 -50 90 SIZE 100 50 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND STATUS ON IMAGECOLOR 255 255 255 OUTLINECOLOR 0 0 0 #KEYSIZE 18 12 KEYSIZE 16 10 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 0 END END #LEGEND # # Start of scalebar # SCALEBAR STATUS ON IMAGECOLOR 255 255 255 LABEL COLOR 255 0 0 SIZE tiny END #LABEL STYLE 1 SIZE 200 2 COLOR 153 153 153 UNITS kilometers INTERVALS 3 END #SCALEBAR # # Start of layer definitions # LAYER NAME 'Ecozones' TYPE Polygon STATUS ON DATA ecozones TEMPLATE "ecoquery1.html" FOOTER "ecofooter.html" CLASSITEM 'ZONE' CLASS EXPRESSION '1' NAME 'Arctic Cordillera' COLOR 204 255 255 END # CLASS CLASS EXPRESSION '2' NAME 'Northern Arctic' COLOR 153 204 204 END # CLASS CLASS EXPRESSION '3' NAME 'Southern Arctic' COLOR 0 153 204 END # CLASS CLASS EXPRESSION '4' NAME 'Taiga Plains' COLOR 204 204 204 END # CLASS CLASS EXPRESSION '5' NAME 'Taiga Shield' COLOR 153 153 153 END # CLASS CLASS EXPRESSION '6' NAME 'Boreal Shield' COLOR 102 204 102 END # CLASS CLASS EXPRESSION '7' NAME 'Atlantic Maritime' COLOR 102 204 204 END # CLASS CLASS EXPRESSION '8' NAME 'Mixed Wood Plains' COLOR 255 204 153 END # CLASS CLASS EXPRESSION '9' NAME 'Boreal Plains' COLOR 204 255 204 END # CLASS CLASS EXPRESSION '10' NAME 'Prairies' COLOR 255 255 153 END # CLASS CLASS EXPRESSION '11' NAME 'Taiga Cordillera' COLOR 204 153 204 END # CLASS CLASS EXPRESSION '12' NAME 'Boreal Cordillera' COLOR 153 102 204 END # CLASS CLASS EXPRESSION '13' NAME 'Pacific Maritime' COLOR 0 102 0 END # CLASS CLASS EXPRESSION '14' NAME 'Montane Cordillera' COLOR 153 204 000 END # CLASS CLASS EXPRESSION '15' NAME 'Hudson Plains' COLOR 204 255 153 END # CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "Ecozones" "wms_Srs" "EPSG:4267" "wms_abstract" "An area at the earth's surface representative of large and very generalized ecological units characterized by various abiotic and biotic factors. " "wms_extent" "-150 40 -50 90" "wms_opaque" "1" END END # LAYER LAYER NAME Ecodistricts TYPE Polygon STATUS ON DATA eco TEMPLATE "ecoquery3.html" CLASS NAME "Ecodistricts" OUTLINECOLOR 204 0 0 END # CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "Ecodistricts" "wms_srs" "EPSG:4267" "wms_abstract" "A part of an ecoregion characterized by distinctive assemblages of relief, geology, landforms,soils, vegetation, water, and fauna." "wms_extent" "-150 40 -50 90" "wms_opaque" "0" END END # LAYER LAYER NAME Ecoregions TYPE Polygon STATUS ON DATA ecoregions HEADER "ecoheader.html" TEMPLATE "ecoquery2.html" CLASS NAME 'Ecoregions' OUTLINECOLOR 0 0 0 END #CLASS TOLERANCE 0 PROJECTION "init=epsg:4267" END METADATA "wms_title" "ecoregions" "wms_srs" "EPSG:4267" "wms_abstract" "A part of an ecozone characterized by distinctive regional ecological factors, including climate, physiography, vegetation, soil, water and fauna." "wms_extent" "-150 40 -50 90" "wms_opaque" "0" END END #LAYER END # MAPFILE From Michael.Smith at erdc.usace.army.mil Tue Aug 20 07:54:07 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 20 Aug 2002 10:54:07 -0400 Subject: [mapserver-users] Which WMS Versions are supported? Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD17B8@crl02.crrel.usace.army.mil> Is wms version 1.1.1 not supported? I've been connecting to a wms version 1.1.0 server and its been working fine. Now I've tried to get to a 1.1.1 server (Microsoft TerraServer) and I get no image. Here's the layer specs I've been using LAYER NAME terraserver METADATA "wms_title" "Raster/USGS DRG" "wms_srs" "EPSG:26905 EPSG:26906 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG:26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" END TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?version=1.1.1&service=wms&LAYERS=DRG&FORMAT=image/jpeg&styles=" PROJECTION "init=epsg:26911" END END When I connect using a direct URL and fill in the bbox, etc, I get an image. i.e. Anyone know why? Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From mschulz at webgis.de Tue Aug 20 08:00:21 2002 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 20 Aug 2002 17:00:21 +0200 Subject: [mapserver-users] how to access dbf files? Message-ID: <3D625985.D76CCFC0@webgis.de> Hello, could somebody give me a hint on what would be to "right" way to access attribute information from a dbf file using mapscript. I am a little bit confused since there seem to be variuos ways to do so. php/mapscript obviously uses its own dbf functionality, perl/mapscript uses sometimes the xbase module but also the DBFInfo object that can be accessed directly from mapscript. For python/mapscript i rewrote the perl/mapscript sample shpinfo.pl to a shpinfo.py using msDBF... functions and the DBFInfo object. But i experienced pretty often that these functions were rather unstable (lot of segfaults when doing writes). Then i switched to the dbf functions that come with the pyshapelib. Is this confusion real and are there changes to this subject going on, or is there no "normal" mapscript way to do so and each language adresses this issue differently? TIA, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From pkishor at GeoAnalytics.com Tue Aug 20 09:01:21 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 20 Aug 2002 11:01:21 -0500 Subject: [mapserver-users] how to access dbf files? Message-ID: The "right" way is to not use dbf at all... instead import everything other than the base necessary into a database. but, of course, that is not what you asked. Hence, the right way is anyway that works for you... as you said, use the dbase functions provided with the scripting language of your choice... all of them have those functions. I have never experienced any problem with the dbf access methods in Perl or PHP other than the inherent problem that dbf access is sequential, hence, slow. Still, on a fast machine with little load, the speed is quite good. if the load is heavy then it is time to go the real database way. One caveat... to label with an attribute, the attribute has to be in the dbf file (is that right?). Other than that, selects are a real timesaver with something like MySQL. pk/ > -----Original Message----- > From: Michael Schulz [mailto:mschulz at webgis.de] > Sent: Tuesday, August 20, 2002 10:00 AM > To: MapServer Userlist > Subject: [mapserver-users] how to access dbf files? > > > Hello, > > could somebody give me a hint on what would be to "right" way > to access > attribute information from a dbf file using mapscript. > > I am a little bit confused since there seem to be variuos > ways to do so. > php/mapscript obviously uses its own dbf functionality, perl/mapscript > uses sometimes the xbase module but also the DBFInfo object > that can be > accessed directly from mapscript. For python/mapscript i rewrote the > perl/mapscript sample shpinfo.pl to a shpinfo.py using msDBF... > functions and the DBFInfo object. But i experienced pretty often that > these functions were rather unstable (lot of segfaults when doing > writes). Then i switched to the dbf functions that come with the > pyshapelib. > > Is this confusion real and are there changes to this subject going on, > or is there no "normal" mapscript way to do so and each language > adresses this issue differently? > > TIA, Michael > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de > > From assefa at dmsolutions.ca Tue Aug 20 09:13:15 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 20 Aug 2002 12:13:15 -0400 Subject: [mapserver-users] New version of Rosa Message-ID: <3D626A9B.B6DB3554@dmsolutions.ca> Hi There, There is a new version (1.2.0) of rosa available at the download site : http://www2.dmsolutions.ca/webtools/rosa/index.html. This version contains mainly bug corrections and few functionnalities. Here is the change log between this version and the previous one : Version 1.2.0 (Aug 19, 2002): ----------------------------- - Correct bug related to threads in the tooltip class. - Fixed minor problem with Unix Makefile: not all .class were included in .jar - Correct bug for IE5.5 and higher (applet not initialized properly). - Correct Bug with the mesuring tool. - Add PNG support using sixlegs png library (http://www.sixlegs.com/) - Ability to use the print command from the browser to print the applet. - If a button is active (clicked), if the user reclicks on it, It will stay selected and not be unselected. - Add functions to set two applet parameters from javascript (the image and the pixel size) Best Regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From morissette at dmsolutions.ca Tue Aug 20 08:22:29 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 20 Aug 2002 11:22:29 -0400 Subject: [mapserver-users] Which WMS Versions are supported? References: <048FBD219330D211B47000A0C9B3BAFD03CD17B8@crl02.crrel.usace.army.mil> Message-ID: <3D625EB5.BA98A6DB@dmsolutions.ca> MapServer 3.6 supports only up to 1.1.0 in server mode, but I see no reason why it wouldn't work with a 1.1.1 server as a client since there were no major changes in the GetMap requests between 1.1.0 and 1.1.1. If you're running on Unix, can you please compile your MapServer using the --enable-debug configure option, and then look at the web server's error_log and you'll see the URL that is used for the GetMap request... with that URL it should be possible to figure what's happening. You may also see some useful error messages in the error_log. Note that there is no debugging information output to the error_log on Windows, so this will work only on Unix servers. Finally, once you have the faulty URL, could you please file a bug about this in bugzilla so that we have a trace of the problem and it doesn't fall in a crack? Thanks Daniel "Smith, Michael ERDC-CRREL-NH" wrote: > > Is wms version 1.1.1 not supported? I've been connecting to a wms version 1.1.0 server and its been working fine. Now I've tried to get to a 1.1.1 server (Microsoft TerraServer) and I get no image. > > Here's the layer specs I've been using > > LAYER > NAME terraserver > METADATA > "wms_title" "Raster/USGS DRG" > "wms_srs" "EPSG:26905 EPSG:26906 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG:26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" > END > TYPE RASTER > STATUS default > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/ogcmap.ashx?version=1.1.1&service=wms&LAYERS=DRG&FORMAT=image/jpeg&styles=" > PROJECTION > "init=epsg:26911" > END > END > > When I connect using a direct URL and fill in the bbox, etc, I get an image. > i.e. > > Anyone know why? > > Mike Smith > email: michael.smith at erdc.usace.army.mil > RSGISC > ERDC - CRREL > Hanover, NH 03755 > (603) 646-4765 From steve.lime at dnr.state.mn.us Tue Aug 20 10:05:16 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 20 Aug 2002 12:05:16 -0500 Subject: [mapserver-users] how to access dbf files? Message-ID: With perl use Xbase.pm. It's very stable and fast. I would imagine most other scripting languages would have similar modules. The DBFInfo stuff was added solely to support the tk/tcl msworkbench application and was not intended for general use. If time permits I will properly wrap the shapelib DBF functions so that a common set of methods will exist- version 3.7. Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Schulz 08/20/02 10:00AM >>> Hello, could somebody give me a hint on what would be to "right" way to access attribute information from a dbf file using mapscript. I am a little bit confused since there seem to be variuos ways to do so. php/mapscript obviously uses its own dbf functionality, perl/mapscript uses sometimes the xbase module but also the DBFInfo object that can be accessed directly from mapscript. For python/mapscript i rewrote the perl/mapscript sample shpinfo.pl to a shpinfo.py using msDBF... functions and the DBFInfo object. But i experienced pretty often that these functions were rather unstable (lot of segfaults when doing writes). Then i switched to the dbf functions that come with the pyshapelib. Is this confusion real and are there changes to this subject going on, or is there no "normal" mapscript way to do so and each language adresses this issue differently? TIA, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From lfilak at medinaco.org Tue Aug 20 10:20:04 2002 From: lfilak at medinaco.org (Lowell.Filak) Date: Tue, 20 Aug 2002 13:20:04 -0400 (EDT) Subject: [mapserver-users] how to access dbf files? In-Reply-To: <3D625985.D76CCFC0@webgis.de> Message-ID: I can't speak directly for the developers. My impression is that there once (3.3) was only one way (ok, two ways) to access dbf data (ex. XBase or DBI/XBase). This caused a lot of confusion because there may have been issues installing/understanding how to use XBase or DBI/XBase to access the data. Then in 3.5 the read-only DBFInfo access method was exposed so reads could be done without external modules. However that didn't solve write issues without still including XBase or DBI/XBase. So then the write methods were exposed. That is my theory of what happened. As far as the "correct" method to access dbf data... I would imagine it depends on what you want to do. If your doing a lot of dbf access that needs to use existing indexes you should use something like XBase, if you don't need indexes but want to query dbf files as if they were RDBMS using SQL then use something like DBI/XBase (for later porting to RDBMS?), & if you only want to load a single module (mapscript) then you can use DBFInfo. Possibly you could report some of the errors you're encountering to help improve the reliability of DBFInfo or supply pointers for other users? Lowell F. On Tue, 20 Aug 2002, Michael Schulz wrote: > Hello, > > could somebody give me a hint on what would be to "right" way to access > attribute information from a dbf file using mapscript. > > I am a little bit confused since there seem to be variuos ways to do so. > php/mapscript obviously uses its own dbf functionality, perl/mapscript > uses sometimes the xbase module but also the DBFInfo object that can be > accessed directly from mapscript. For python/mapscript i rewrote the > perl/mapscript sample shpinfo.pl to a shpinfo.py using msDBF... > functions and the DBFInfo object. But i experienced pretty often that > these functions were rather unstable (lot of segfaults when doing > writes). Then i switched to the dbf functions that come with the > pyshapelib. > > Is this confusion real and are there changes to this subject going on, > or is there no "normal" mapscript way to do so and each language > adresses this issue differently? > > TIA, Michael > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de > > From joe at otsys.com Tue Aug 20 10:44:23 2002 From: joe at otsys.com (Joe Bussell) Date: Tue, 20 Aug 2002 10:44:23 -0700 Subject: [mapserver-users] how to access dbf files? In-Reply-To: <3D625985.D76CCFC0@webgis.de> References: <3D625985.D76CCFC0@webgis.de> Message-ID: <20020820174423.GA16429@extempore.otsys.com> The beauty of software is that there is seldom a 'right' way to do a thing. It is the case the mapserver is not 'orthogonal'. It does allow multiple accesses to the same functionality. This may be distracting to purists. Take heart however. I suggest that you take your favorate tool set, whether that be PERL or PHP and learn its specifics. Focus on your own goals and try it out in code. It usually is a short path from there to enlightenment. Then you may profess your own flavor of 'right' Cordially, Joe Bussell On Time Systems PS: The comments and opinions in this email reflect my own delusions. As near as I can tell no one else sees the world quite as I do. On Tue, Aug 20, 2002 at 05:00:21PM +0200, Michael Schulz wrote: > Hello, > > could somebody give me a hint on what would be to "right" way to access > attribute information from a dbf file using mapscript. > > I am a little bit confused since there seem to be variuos ways to do so. > php/mapscript obviously uses its own dbf functionality, perl/mapscript > uses sometimes the xbase module but also the DBFInfo object that can be > accessed directly from mapscript. For python/mapscript i rewrote the > perl/mapscript sample shpinfo.pl to a shpinfo.py using msDBF... > functions and the DBFInfo object. But i experienced pretty often that > these functions were rather unstable (lot of segfaults when doing > writes). Then i switched to the dbf functions that come with the > pyshapelib. > > Is this confusion real and are there changes to this subject going on, > or is there no "normal" mapscript way to do so and each language > adresses this issue differently? > > TIA, Michael > > -- > ----------------------------------------------------------- > Michael Schulz in medias res > Dipl.-Geologe Gesellschaft f?r > Informationstechnologie mbH > Sautierstr. 38, 79104 Freiburg > 0761 55695-95 (Fax 96) > mschulz at webgis.de www.webgis.de > > > From alex_rice at arc.to Tue Aug 20 11:32:53 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 20 Aug 2002 12:32:53 -0600 Subject: [mapserver-users] [map] tag and $mapObj->processTemplate() Message-ID: <3D1BB18F-B46B-11D6-A617-000393529642@arc.to> I'm using Perl mapscript & am mapscript newbie. I noticed that the $mapObj->processTemplate() method does not replace the [map] tag in my template. The mapserv CGI does replace the [map] field in my template. The mapserver docs mention something about the savemap CGI parameter being required, but it's not clear. How can I get mapscript to process the [map] tag in my template? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From Michael.Smith at erdc.usace.army.mil Tue Aug 20 11:33:01 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 20 Aug 2002 14:33:01 -0400 Subject: [mapserver-users] Which WMS Versions are supported? Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD17B9@crl02.crrel.usace.army.mil> Thanks Dan, that solved the problem (--enable-debug, works great). It turns out that the problem was multiple srs's in the wms metadata. I put in all the epsg codes that the server supports in the wms metadata and the epsg that I wanted in the projection part but it was always sending the URL with the first epsg code from the wms-metadata. Is that how its supposed to work or should I file this in bugzilla? Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 -----Original Message----- From: Daniel Morissette [mailto:morissette at dmsolutions.ca] Sent: Tuesday, August 20, 2002 11:22 AM To: Smith, Michael ERDC-CRREL-NH Cc: 'mapserver-users at lists.gis.umn.edu' Subject: Re: [mapserver-users] Which WMS Versions are supported? MapServer 3.6 supports only up to 1.1.0 in server mode, but I see no reason why it wouldn't work with a 1.1.1 server as a client since there were no major changes in the GetMap requests between 1.1.0 and 1.1.1. If you're running on Unix, can you please compile your MapServer using the --enable-debug configure option, and then look at the web server's error_log and you'll see the URL that is used for the GetMap request... with that URL it should be possible to figure what's happening. You may also see some useful error messages in the error_log. Note that there is no debugging information output to the error_log on Windows, so this will work only on Unix servers. Finally, once you have the faulty URL, could you please file a bug about this in bugzilla so that we have a trace of the problem and it doesn't fall in a crack? Thanks Daniel "Smith, Michael ERDC-CRREL-NH" wrote: > > Is wms version 1.1.1 not supported? I've been connecting to a wms version 1.1.0 server and its been working fine. Now I've tried to get to a 1.1.1 server (Microsoft TerraServer) and I get no image. > > Here's the layer specs I've been using > > LAYER > NAME terraserver > METADATA > "wms_title" "Raster/USGS DRG" > "wms_srs" "EPSG:26905 EPSG:26906 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG:26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" > END > TYPE RASTER > STATUS default > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/ogcmap.ashx?version=1.1.1&service=wms&LAYERS=DRG&FORMAT=image/jpeg&styles=" > PROJECTION > "init=epsg:26911" > END > END > > When I connect using a direct URL and fill in the bbox, etc, I get an image. > i.e. > > Anyone know why? > > Mike Smith > email: michael.smith at erdc.usace.army.mil > RSGISC > ERDC - CRREL > Hanover, NH 03755 > (603) 646-4765 From ychen at yorktel.com Tue Aug 20 12:38:50 2002 From: ychen at yorktel.com (Yu-Hsin Chen) Date: Tue, 20 Aug 2002 15:38:50 -0400 Subject: [mapserver-users] oracle spatial 9i Message-ID: <4C5998A3E78C674A92183D4813806E82035D59@ytcmail.yorktel.com> Yes, as Hugues pointed out in 0202/msg00333.html, I did get specific Oracle error messages. It is not an effortless task to use MapServer with its native Oracle cupport, however, isn't that the reason why we love computer work? First of all you have to know for sure that MapServer is talking to Oracle already. For me, running Mandrake Linux and Apache I had to modify my commonhttpd.conf to include the ORACLE_HOME and ORACLE_SID before the MapServer started to communicate with Oracle. If you never seen an Oracle error there might be a high probability that MapServer is not talking to Oracle yet. Once you overcome this communications hurdle then you need to have operating knowledge about Oracle's SDO schema which is the spatial option of Oracle. Oracle's SDO implementation is highly object orientated and not the same as the traditional relational database model as we're familiar with. One final note, I was on MapServer 3.5 and Oracle 8.1.7i. I haven't got time to play with either 3.6 or 9i. Yu-Hsin -----Original Message----- From: Hugues Parvillers [mailto:Hugues.Parvillers at AgdF.com] Sent: Tuesday, August 20, 2002 7:55 AM To: Mackey Timothy Cc: Rodrigo Zanato Tripodi; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] oracle spatial 9i Tim, Don't you have the Oracle Error ? For example look at : http://mapserver.gis.umn.edu/wilma/mapserver-users/0202/msg00333.html Yu had a defined Oracle error ! H/P Mackey Timothy a ?crit : > Hi Rodrigo, > > We're using Oracle 9.2.0.1.0, and IAS 1.0.2.2.0. > We have installed the version of Oracle Spatial that came with Oracle 9i (release 2). > > The 3.6.1 code compiles fine, but requesting a map using mapserver CGI gives a mapserver error: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error." > > MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Tim > > -----Original Message----- > From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] > Sent: Tuesday, 20 August 2002 1:54 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oracle spatial 9i > > Hi, > > I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. > > Sorry about the lack of support. I was busy with a project at the last weeks. > > I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I > will test this at this week and try to fix the code if I found any error. > > Can you send me the version of all libraries and the error that you get? > > Are you using Oracle IAS? > > Rodrigo Zanato Tripodi > Laborat?rio de Computa??o Aplicada - CTTMar/Univali > tripodi at cttmar.univali.br > http://g10.cttmar.univali.br > > At 16:55 19/08/02 +1000, Mackey Timothy wrote: > >Hi all, > > > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial > >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get > >an OracleSpatial error. > > > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans > >to upgrade to 9i? > > > > > >Tim Mackey > >Web Applications Manager > >Geoscience Australia > >timothy.mackey at ga.gov.au > >http://www.ga.gov.au From morissette at dmsolutions.ca Tue Aug 20 12:48:59 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 20 Aug 2002 15:48:59 -0400 Subject: [mapserver-users] Which WMS Versions are supported? References: <048FBD219330D211B47000A0C9B3BAFD03CD17B9@crl02.crrel.usace.army.mil> Message-ID: <3D629D2B.5BDD5668@dmsolutions.ca> I thought that I had noticed a similar behavior before but had not found time to investigate yet. This is not exactly the expected behavior, so yes please file as a bug and I'll try to look into this for the 3.7 release. Daniel "Smith, Michael ERDC-CRREL-NH" wrote: > > Thanks Dan, that solved the problem (--enable-debug, works great). It turns out that the problem was multiple srs's in the wms metadata. I put in all the epsg codes that the server supports in the wms metadata and the epsg that I wanted in the projection part but it was always sending the URL with the first epsg code from the wms-metadata. Is that how its supposed to work or should I file this in bugzilla? > > Mike Smith > email: michael.smith at erdc.usace.army.mil > RSGISC > ERDC - CRREL > Hanover, NH 03755 > (603) 646-4765 > > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Tuesday, August 20, 2002 11:22 AM > To: Smith, Michael ERDC-CRREL-NH > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: Re: [mapserver-users] Which WMS Versions are supported? > > MapServer 3.6 supports only up to 1.1.0 in server mode, but I see no > reason why it wouldn't work with a 1.1.1 server as a client since there > were no major changes in the GetMap requests between 1.1.0 and 1.1.1. > > If you're running on Unix, can you please compile your MapServer using > the --enable-debug configure option, and then look at the web server's > error_log and you'll see the URL that is used for the GetMap request... > with that URL it should be possible to figure what's happening. You may > also see some useful error messages in the error_log. > > Note that there is no debugging information output to the error_log on > Windows, so this will work only on Unix servers. > > Finally, once you have the faulty URL, could you please file a bug about > this in bugzilla so that we have a trace of the problem and it doesn't > fall in a crack? > > Thanks > > Daniel > > "Smith, Michael ERDC-CRREL-NH" wrote: > > > > Is wms version 1.1.1 not supported? I've been connecting to a wms version 1.1.0 server and its been working fine. Now I've tried to get to a 1.1.1 server (Microsoft TerraServer) and I get no image. > > > > Here's the layer specs I've been using > > > > LAYER > > NAME terraserver > > METADATA > > "wms_title" "Raster/USGS DRG" > > "wms_srs" "EPSG:26905 EPSG:26906 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:26913 EPSG:26914 EPSG:26915 EPSG:26916 EPSG:26917 EPSG:26918 EPSG:26919 EPSG:26920" > > END > > TYPE RASTER > > STATUS default > > CONNECTIONTYPE WMS > > CONNECTION "http://terraservice.net/ogcmap.ashx?version=1.1.1&service=wms&LAYERS=DRG&FORMAT=image/jpeg&styles=" > > PROJECTION > > "init=epsg:26911" > > END > > END > > > > When I connect using a direct URL and fill in the bbox, etc, I get an image. > > i.e. > > > > Anyone know why? > > > > Mike Smith > > email: michael.smith at erdc.usace.army.mil > > RSGISC > > ERDC - CRREL > > Hanover, NH 03755 > > (603) 646-4765 From Hugues.Parvillers at AgdF.com Tue Aug 20 12:54:12 2002 From: Hugues.Parvillers at AgdF.com (Hugues Parvillers) Date: Tue, 20 Aug 2002 21:54:12 +0200 Subject: [mapserver-users] oracle spatial 9i References: <4C5998A3E78C674A92183D4813806E82035D59@ytcmail.yorktel.com> Message-ID: <3D629E64.79D2B826@AgdF.com> Hello Yu_Hsin, You should try Spatial 9i : it works very much faster with MapServer for my own tests and this really comes from Oracle. H/P Yu-Hsin Chen a ?crit : > Yes, as Hugues pointed out in 0202/msg00333.html, I did get specific Oracle error messages. > > It is not an effortless task to use MapServer with its native Oracle cupport, however, isn't that the reason why we love computer work? > > First of all you have to know for sure that MapServer is talking to Oracle already. For me, running Mandrake Linux and Apache I had to modify my commonhttpd.conf to include the ORACLE_HOME and ORACLE_SID before the MapServer started to communicate with Oracle. If you never seen an Oracle error there might be a high probability that MapServer is not talking to Oracle yet. Once you overcome this communications hurdle then you need to have operating knowledge about Oracle's SDO schema which is the spatial option of Oracle. Oracle's SDO implementation is highly object orientated and not the same as the traditional relational database model as we're familiar with. > > One final note, I was on MapServer 3.5 and Oracle 8.1.7i. I haven't got time to play with either 3.6 or 9i. > > Yu-Hsin > > -----Original Message----- > From: Hugues Parvillers [mailto:Hugues.Parvillers at AgdF.com] > Sent: Tuesday, August 20, 2002 7:55 AM > To: Mackey Timothy > Cc: Rodrigo Zanato Tripodi; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] oracle spatial 9i > > Tim, > > Don't you have the Oracle Error ? > > For example look at : http://mapserver.gis.umn.edu/wilma/mapserver-users/0202/msg00333.html > > Yu had a defined Oracle error ! > > H/P > > Mackey Timothy a ?crit : > > > Hi Rodrigo, > > > > We're using Oracle 9.2.0.1.0, and IAS 1.0.2.2.0. > > We have installed the version of Oracle Spatial that came with Oracle 9i (release 2). > > > > The 3.6.1 code compiles fine, but requesting a map using mapserver CGI gives a mapserver error: "msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error." > > > > MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > Tim > > > > -----Original Message----- > > From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] > > Sent: Tuesday, 20 August 2002 1:54 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] oracle spatial 9i > > > > Hi, > > > > I'm working with Rodrigo Cabral at Oracle Spatial support for mapserver. > > > > Sorry about the lack of support. I was busy with a project at the last weeks. > > > > I never tried to compile the mapserver with OCI libs from Oracle 9i. But, I > > will test this at this week and try to fix the code if I found any error. > > > > Can you send me the version of all libraries and the error that you get? > > > > Are you using Oracle IAS? > > > > Rodrigo Zanato Tripodi > > Laborat?rio de Computa??o Aplicada - CTTMar/Univali > > tripodi at cttmar.univali.br > > http://g10.cttmar.univali.br > > > > At 16:55 19/08/02 +1000, Mackey Timothy wrote: > > >Hi all, > > > > > >I've got mapserver 3.6.1 CGI to compile and work with Oracle Spatial > > >8.1.7. However, when I compile and run against Oracle 9i (9.2.0.1.0) I get > > >an OracleSpatial error. > > > > > >Does Oracle Spatial support only work with 8.x? If so, is it on the plans > > >to upgrade to 9i? > > > > > > > > >Tim Mackey > > >Web Applications Manager > > >Geoscience Australia > > >timothy.mackey at ga.gov.au > > >http://www.ga.gov.au From DMartin at erac.com Tue Aug 20 12:56:40 2002 From: DMartin at erac.com (Martin, Daniel) Date: Tue, 20 Aug 2002 14:56:40 -0500 Subject: [mapserver-users] New version of Rosa Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B19@STL-EXBE-I03.corp.erac.com> Very nice! I'm excited. PNG support and the ability to use the Print button were high on my wish list. I just tried both features out, and they work great - after I realized I needed to use the rosa_png.jar. I'm happy to be GIF free. Thanks for the update! Dan -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Tuesday, August 20, 2002 11:13 AM To: rosa-users at dmsolutions.ca Cc: rosa at dmsolutions.ca; mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] New version of Rosa Hi There, There is a new version (1.2.0) of rosa available at the download site : http://www2.dmsolutions.ca/webtools/rosa/index.html. This version contains mainly bug corrections and few functionnalities. Here is the change log between this version and the previous one : Version 1.2.0 (Aug 19, 2002): ----------------------------- - Correct bug related to threads in the tooltip class. - Fixed minor problem with Unix Makefile: not all .class were included in .jar - Correct bug for IE5.5 and higher (applet not initialized properly). - Correct Bug with the mesuring tool. - Add PNG support using sixlegs png library (http://www.sixlegs.com/) - Ability to use the print command from the browser to print the applet. - If a button is active (clicked), if the user reclicks on it, It will stay selected and not be unselected. - Add functions to set two applet parameters from javascript (the image and the pixel size) Best Regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Aug 20 13:18:31 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 20 Aug 2002 15:18:31 -0500 Subject: [mapserver-users] [map] tag and $mapObj->processTemplate() Message-ID: The CGI version takes any form element and allows you to echo it by using the element name in brackets. That's how [map] works. There is no section in the code specifically looking for [map], but since you must always set a map variable it always works. Lemme look at the processTemplate method for a workaround. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Alex Rice 08/20/02 01:32PM >>> I'm using Perl mapscript & am mapscript newbie. I noticed that the $mapObj->processTemplate() method does not replace the [map] tag in my template. The mapserv CGI does replace the [map] field in my template. The mapserver docs mention something about the savemap CGI parameter being required, but it's not clear. How can I get mapscript to process the [map] tag in my template? Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Tue Aug 20 13:22:02 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 20 Aug 2002 14:22:02 -0600 Subject: [mapserver-users] [map] tag and $mapObj->processTemplate() In-Reply-To: Message-ID: <7CAD1D6E-B47A-11D6-A617-000393529642@arc.to> On Tuesday, August 20, 2002, at 02:18 PM, Steve Lime wrote: > The CGI version takes any form element and allows you to echo it > by using the element > name in brackets. That's how [map] works. There is no section in > the code specifically > looking for [map], but since you must always set a map variable > it always works. Lemme > look at the processTemplate method for a workaround. OK I see. I am going to use the tagnames and tagvalues array parameters in processTemplate. I'll just add [map] in there. Thanks, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From morissette at dmsolutions.ca Tue Aug 20 13:34:15 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 20 Aug 2002 16:34:15 -0400 Subject: [mapserver-users] [map] tag and $mapObj->processTemplate() References: <3D1BB18F-B46B-11D6-A617-000393529642@arc.to> Message-ID: <3D62A7C7.9D7E9C40@dmsolutions.ca> Alex Rice wrote: > > I'm using Perl mapscript & am mapscript newbie. I noticed that > the $mapObj->processTemplate() method does not replace the [map] > tag in my template. The mapserv CGI does replace the [map] field > in my template. The mapserver docs mention something about the > savemap CGI parameter being required, but it's not clear. How can > I get mapscript to process the [map] tag in my template? > See the PHP MapScript docs for $mapObj->processTemplate() in http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html Only tags that correspond to a member of the mapObj will be replaced in the template by default. And if you pass the second argument (generateimages) as TRUE then the [img], [scalebar], etc. will be automagically generated and replaced as well. [map] seems to be specific to the CGI mode, that's why it's not handled by the function. According to the MapServer templates docs, it is enabled only if the SAVEMAP CGI parameter is enabled (apparently to save the state of the map to a temporary file). Note that since you have the map path in your script you can pass it via the first argument to the processTemplate() method. There is an example of this in the PHP MapScript docs... not sure how that would work in Perl though. I hope that helps. Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From alex_rice at arc.to Tue Aug 20 14:41:31 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 20 Aug 2002 15:41:31 -0600 Subject: [mapserver-users] idea for mapscript tutorial Message-ID: <973E08B0-B485-11D6-A617-000393529642@arc.to> I have a lot to learn before I could write something like this, but I've been reading mapserv.c to get ideas for using mapscript, and it occurred to me is this: A great mapscript tutorial would be to implement mapserv.c in mapscript. Not all of it, but at least the core functionality for working with map and template files, panning and zooming. Does such a script exist? Most of the mapscript examples I've seen are either web apps of very limited function, or they are kind of on-off utility scripts for doing this or that. What I'm interested in doing is using mapscript only for what I can't get mapserver to do, hence my initial interest in the processTemplate function). Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From Chip.Hankley at GASAI.Com Tue Aug 20 14:57:29 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 20 Aug 2002 16:57:29 -0500 Subject: [mapserver-users] TIP: Breaking Up Large Images for TILEINDEX Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCEC@postoffice.GASAI.Com> I've seen this topic come up a few times on the list, so I added something to the WIKI- http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?CreatingTiles I often have images where a single image covers a large area (perhaps something like a MrSID of an entire county). In order to make this functional in MapServer, I convert to TIF, then break up the TIF into tiles for use in a TILEINDEX. What I put on the Wiki is an ArcInfo AML that takes an input image, breaks it up into smaller images, creates the tileindex shapefile (using gdaltindex), and indexes the shapefile (using shptree). Anyway, sorry for the emphasis on an ESRI product, but I know that there are a lot of MapServer users out there who also use ArcInfo... so hopefully this will be useful. BTW, if there's another way to do this... like using GDAL or something... I'd love to know. Chip Hankley From steve at sierraclubbc.org Tue Aug 20 16:21:54 2002 From: steve at sierraclubbc.org (Steve Young) Date: Tue, 20 Aug 2002 16:21:54 -0700 Subject: [mapserver-users] shp2pdf utility Message-ID: Hi, Can anyone give me some details on how the layers (-l) option is used in shp2pdf? I haven't found anything in the archives that describes it's function, nor have I been able to get any change in output by specifying layer names. It may be I just don't understand the syntax so any help or information is appreciated. shp2pdf -m [mapfile] -o [pdf] -l [layers] TIA Steve _____________________ Steve Young GIS Technician E steve at sierraclubbc.org T 250 386 5255 F 250 386 4453 Sierra Club of BC 576 Johnson St Victoria B.C. V8W 1M3 CANADA www.sierraclub.ca/bc From alex_rice at arc.to Tue Aug 20 18:14:55 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 20 Aug 2002 19:14:55 -0600 Subject: [mapserver-users] hoping for more verbose debug messages In-Reply-To: <20020731234339.GA26133@extempore.otsys.com> Message-ID: <6761BBCE-B4A3-11D6-9723-000393529642@arc.to> On Wednesday, July 31, 2002, at 05:43 PM, Joe Bussell wrote: > I am getting errors which do not provide enough info for me to debug. > The specific messages are as follows: > > Wed Jul 31 16:25:24 2002 - msAddImageSymbol(): Unable to access file. Hi, I did you find anything else about this error? Are you running perl mapscript as a CGI? I'm getting it with Perl mapscript as well. Funny thing is the this same .map file works fine with mapserv CGI and Perl mapscript (from the CLI) but Perl mapscript as a CGI app goes into an infinite loop and logs the "msAddImageSymbol(): Unable to access file" I think something weird is happening with the cwd. Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From alex_rice at arc.to Tue Aug 20 19:18:18 2002 From: alex_rice at arc.to (Alex Rice) Date: Tue, 20 Aug 2002 20:18:18 -0600 Subject: [mapserver-users] bug with mapscript and MS_ERRORFILE? Message-ID: <41AA4860-B4AC-11D6-9723-000393529642@arc.to> I have been absolutely nuts for a little bit here... I think I may have found a really bizarre mapscript bug. Using Perl mapscript 3.6.1, unmodified, the following test script goes into an infinite loop and fills mapserver.log with "msAddImageSymbol(): Unable to access file.". If I do any of the following 3 things, the script executes fine and no infinite loop occurs. 1) comment out the line $ENV{MS_ERRORFILE} = "..."; 2) remove the mapserver.log file. 3) remove write permissions on the mapserver.log file. -- test script -- #!/usr/bin/perl $ENV{MS_ERRORFILE} = "/var/log/mapserver.log"; use mapscript; my $mapObj = new mapObj('aps.map') or die("Unable to open mapfile"); my $filename = $mapObj->{web}->{imagepath} . $$. '.png'; my $imgObj = $mapObj->draw; # <------------------------- goes into infinite loop here $res = $imgObj->saveImage($filename, $mapscript::MS_PNG, # image type $mapscript::MS_TRUE, # transparency $mapscript::MS_TRUE, # interlace -1); # quality % (applicable to jpg only) die "saveImage() returned '$res'"; --end test script-- Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From joe at otsys.com Tue Aug 20 23:05:39 2002 From: joe at otsys.com (Joe Bussell) Date: Tue, 20 Aug 2002 23:05:39 -0700 Subject: [mapserver-users] hoping for more verbose debug messages In-Reply-To: <6761BBCE-B4A3-11D6-9723-000393529642@arc.to> References: <20020731234339.GA26133@extempore.otsys.com> <6761BBCE-B4A3-11D6-9723-000393529642@arc.to> Message-ID: <20020821060539.GA31118@extempore.otsys.com> No definitive answer. Without feedback from the error handler which includes the symbol its looking for it will be a snipe hunt. I have had my plate full getting our site to a useful state. Someone needs to add this to bugzilla in the hopes that these specific error messages are readdressed. Cordially, Joe Bussell On Time Systems On Tue, Aug 20, 2002 at 07:14:55PM -0600, Alex Rice wrote: > > On Wednesday, July 31, 2002, at 05:43 PM, Joe Bussell wrote: > > >I am getting errors which do not provide enough info for me to debug. > >The specific messages are as follows: > > > >Wed Jul 31 16:25:24 2002 - msAddImageSymbol(): Unable to access file. > > Hi, I did you find anything else about this error? Are you > running perl mapscript as a CGI? I'm getting it with Perl > mapscript as well. Funny thing is the this same .map file works > fine with mapserv CGI and Perl mapscript (from the CLI) but Perl > mapscript as a CGI app goes into an infinite loop and logs the > "msAddImageSymbol(): Unable to access file" I think something > weird is happening with the cwd. > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > > > From oskhom at yahoo.com Wed Aug 21 00:30:53 2002 From: oskhom at yahoo.com (ALI OSKUE) Date: Wed, 21 Aug 2002 00:30:53 -0700 (PDT) Subject: [mapserver-users] Visual basic Message-ID: <20020821073053.82218.qmail@web10412.mail.yahoo.com> Dear list, How is it possible written program in VB to be used inside MapServer. Thanks in advance, A-K-Oskue. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From l.bargeot at educagri.fr Wed Aug 21 01:15:27 2002 From: l.bargeot at educagri.fr (Lionel) Date: Wed, 21 Aug 2002 10:15:27 +0200 Subject: [mapserver-users] split the map def file Message-ID: <02082110152704.24336@agrogeomatic> Hello, I recently subscribe to the list, I've allready tried to post, but I'm not sure it worked. Sorry for dupllicate topics. I ask myself about the map definition/initialisation file. I would like to know if it's possible to store every layer definition in a different file and include them with a single line ine a genral map def file. I know it's possible to store symbolsets in other files. But I would like to store layers definition in other files. Thanks Lionel -- AgrogeomaTIC CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 From pucher at atlas.gis.univie.ac.at Wed Aug 21 01:29:29 2002 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 21 Aug 2002 10:29:29 +0200 Subject: [mapserver-users] New version of Rosa References: <3D626A9B.B6DB3554@dmsolutions.ca> Message-ID: <3D634F69.1010802@atlas.gis.univie.ac.at> Really nice ... at least on Mozilla ;-) IE ver. 6.0 does not show the applet images like zoom-in, zoom-out etc with the rosa_png.jar. I have gif2png'ed all images, changed the php3 and phtml files (of the GMAP demo - as a test) to use the png images, but still it only works on Mozilla/Netscape 6.1. Any ideas? regards alex Yewondwossen Assefa wrote: >Hi There, > > There is a new version (1.2.0) of rosa available at the download site >: http://www2.dmsolutions.ca/webtools/rosa/index.html. > > This version contains mainly bug corrections and few functionnalities. >Here is the change log between this version and the previous one : > > Version 1.2.0 (Aug 19, 2002): >----------------------------- > >- Correct bug related to threads in the tooltip class. > >- Fixed minor problem with Unix Makefile: not all .class were included >in .jar > >- Correct bug for IE5.5 and higher (applet not initialized properly). > >- Correct Bug with the mesuring tool. > >- Add PNG support using sixlegs png library (http://www.sixlegs.com/) > >- Ability to use the print command from the browser to print the applet. > >- If a button is active (clicked), if the user reclicks on it, It will >stay > selected and not be unselected. > >- Add functions to set two applet parameters from javascript (the image >and the pixel size) > > > Best Regards, > >-- >---------------------------------------------------------------- >Assefa Yewondwossen >Software Analyst > >Email: assefa at dmsolutions.ca >http://www.dmsolutions.ca/ > >Phone: (613) 565-5056 (ext 14) >Fax: (613) 565-0925 >---------------------------------------------------------------- > > > > > > -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universitaet Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartography and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: alexander.pucher at univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto -------------------------------------------------------- Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at -------------------------------------------------------- M$ is not the answer. M$ is the question! No is the answer -- Eric Naggum From mschulz at webgis.de Wed Aug 21 01:39:06 2002 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 21 Aug 2002 10:39:06 +0200 Subject: [mapserver-users] how to access dbf files? References: <3D625985.D76CCFC0@webgis.de> <20020820174423.GA16429@extempore.otsys.com> Message-ID: <3D6351AA.5EC6C79A@webgis.de> Thanks for all who replied, i will now use the pyshapelib DBF access and python/mapscript with a clear conscience ;-) and add this way to the python/mapscript documentation we started. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From marian.grigoras at mchp.siemens.de Wed Aug 21 02:00:46 2002 From: marian.grigoras at mchp.siemens.de (Marian Grigoras) Date: Wed, 21 Aug 2002 11:00:46 +0200 Subject: [mapserver-users] hints wanted Message-ID: <3D6356BE.94001CCE@mchp.siemens.de> Hello, I am a new user of MapServer. I managed to run the demo and made a few easy programs by myself using the tutorial data. I want to configure a very simple map server that uses JPG (GIF or other image file), but I do not have the maps in shapefile format. I only need to specify they position relative to one another, or relative to a general coordinate system, no matter which one it is (what I mean is that I need the map server running on a campus level, so I do not care for global lat/lon coordinates or similar). Basically I would like to be able to toggle between 2 maps (JPGs) according to the zoom level and do some cropping on the selected map. MapServer looks great, but (there had to be a BUT :-) ) unfortunately I do not have time to invest 1 week in parsing the tutorial and the whole documentation just to find out that MapServer cannot handle this case (in 1 week I could write a small server by my own). So could someone more experienced: - at least tell me if MapServer could handle my application, - at most :-) give some hints on the easiest way to implement this (REFERENCE maps or something else) Sorry if this looks trivial, but I need some information fast. Thanks a lot. Marian Grigoras From lists.ahaigh at dsl.pipex.com Wed Aug 21 04:45:10 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Wed, 21 Aug 2002 12:45:10 +0100 Subject: [mapserver-users] Windows Binary Message-ID: <3D637D46.6090500@dsl.pipex.com> I'm looking for a Windows Binary for MapServer, which supports WMS, PostGIS, OGR, GDAL, PROJ and PHP MapScript (for PHP 4.2.2). I've looked on the UMN site and DM Solutions and I can't one. Any Ideas? Many thanks, Andrew From MJHatcher at space.qinetiq.com Wed Aug 21 05:41:50 2002 From: MJHatcher at space.qinetiq.com (Matthew Hatcher) Date: Wed, 21 Aug 2002 13:41:50 +0100 Subject: [mapserver-users] hints wanted Message-ID: Marian, Good news: Mapserver can do what you want! Shapefiles are vector data - point, line and polygon co-ordinates. They are different from rasters (images - like JPGs) so they are not essential. What you need to create is a 'world file' for each of your JPGS to reference it your chosen co-ordinate system. World files are described in the Mapserver HOWTO for rasters, but basically use: X pixel size in your co-ordinate system 0.0 0.0 Y pixel size in your co-ordinate system (usually minus if the origin is top-left) X co-ordinate of top-left Y co-ordinate of top-left So if your map top-left is at 100,100 in your co-ordinates and each pixel represents 5 meters then use: 5.0 0.0 0.0 -5.0 100.0 100.0 Create this as a text file - just those six lines - and save it with the same filename as the JPG but a .WLD or .JGW extension. Then use a very simple map file like the one below. You could add 'MINSCALE' and 'MAXSCALE' properties if you want to set one or other so they only appear at a given scale, perhaps. I hope this gives you some pointers. Good luck with Mapserver! Matt Hatcher. ---- map.map ---- NAME MAP STATUS ON SIZE 600 350 # set size of output image UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # set background colour of image IMAGETYPE jpeg IMAGEQUALITY 100 # only appropriate for jpeg output # # Projection definition # PROJECTION "init=epsg:4326" # set this to whatever, maybe just 'geographic' END # # Start of web interface definition # WEB TEMPLATE template.html IMAGEPATH "d:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" METADATA WMS_TITLE "title" WMS_ABSTRACT "abstract" WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost" WMS_SRS "EPSG:4326" END END # # Layers # LAYER NAME "map1" TYPE RASTER STATUS OFF DATA "map1.jpg" CLASS NAME "Map1" END END LAYER NAME "map2" TYPE RASTER STATUS OFF DATA "map2.jpg" CLASS NAME "Map2" END END # Map File -----Original Message----- From: Marian Grigoras [mailto:marian.grigoras at mchp.siemens.de] Sent: 21 August 2002 10:01 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] hints wanted Hello, I am a new user of MapServer. I managed to run the demo and made a few easy programs by myself using the tutorial data. I want to configure a very simple map server that uses JPG (GIF or other image file), but I do not have the maps in shapefile format. I only need to specify they position relative to one another, or relative to a general coordinate system, no matter which one it is (what I mean is that I need the map server running on a campus level, so I do not care for global lat/lon coordinates or similar). Basically I would like to be able to toggle between 2 maps (JPGs) according to the zoom level and do some cropping on the selected map. MapServer looks great, but (there had to be a BUT :-) ) unfortunately I do not have time to invest 1 week in parsing the tutorial and the whole documentation just to find out that MapServer cannot handle this case (in 1 week I could write a small server by my own). So could someone more experienced: - at least tell me if MapServer could handle my application, - at most :-) give some hints on the easiest way to implement this (REFERENCE maps or something else) Sorry if this looks trivial, but I need some information fast. Thanks a lot. Marian Grigoras ********************************************************************** The information contained in this email and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the intended recipient(s) any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabriel at ciasc.gov.br Wed Aug 21 06:53:41 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 21 Aug 2002 10:53:41 -0300 Subject: [mapserver-users] About TOLERANCE and TOLERANCEUNITS References: <3D6356BE.94001CCE@mchp.siemens.de> Message-ID: <002401c2491a$28a51500$12d713ac@ciasc.gov.br> Dear Lister. I would like to restrict my polygon searche on "nquery" to only one polygon by layer. Is it possible ? How ? I tried to reduce the TOLERANCE to one or lesser however he did not work and when I tried to use PIXELS the MAPSERVER gave this error: getSymbol(): Incorrect symbol. (pixels):(167) Thanks. Gabriel From david.armstrong at ntlworld.com Wed Aug 21 07:50:09 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Wed, 21 Aug 2002 15:50:09 +0100 Subject: [mapserver-users] compiling mapscript error Message-ID: <001101c24922$0e8c32e0$727ba8c0@davidpc> ok i hold my hand up ! can someone point out my possible error here compiling new install under redhat 7.3 the only switches i used are --with-proj --with-php=/usr/include/php snip>> cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/usr/local/mapserver-3.6.1/mapscript/php3' gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG -I/usr/local/mapserver-3.6.1 -I/usr/include -I/usr/include/php/ -I/usr/include/php//dl -I/usr/include/php//main -I/usr/include/php//Zend -I/usr/include/php//include -I/usr/include/php//TSRM -c -o php_mapscript_util.o php_mapscript_util.c gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/usr/local/mapserver-3.6.1/mapscript/php3' [root at localhost mapserver-3.6.1]# regards Richard From Chip.Hankley at GASAI.Com Wed Aug 21 08:05:56 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 21 Aug 2002 10:05:56 -0500 Subject: [mapserver-users] tileindex, images, optimal size Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABCF0@postoffice.GASAI.Com> When creating a tileindex for a large image (i.e. breaking a large image into smaller tiles) what is (or is there) a good rule of thumb for how big each tile should be? Chip Hankley From woodbri at swoodbridge.com Wed Aug 21 08:10:20 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 21 Aug 2002 11:10:20 -0400 Subject: [mapserver-users] compiling mapscript error In-Reply-To: <001101c24922$0e8c32e0$727ba8c0@davidpc> Message-ID: <3D63751C.4612.4278F4C4@localhost> On 21 Aug 2002 at 15:50, David Armstrong wrote: > ok i hold my hand up ! > can someone point out my possible error here > compiling new install under redhat 7.3 > the only switches i used are --with-proj --with-php=/usr/include/php > > snip>> > cd mapscript/php3; make; cd ../.. > make[1]: Entering directory `/usr/local/mapserver-3.6.1/mapscript/php3' > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS ^^^^^^^^^^ NOTICE double gcc gcc edit Makefile and remove one of these. This is a known problem, HOPEFULLY it will be fixed on the next release. > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG > -I/usr/local/mapserver-3.6.1 -I/usr/include -I/usr/include/php/ > -I/usr/include/php//dl -I/usr/include/php//main -I/usr/include/php//Zend > -I/usr/include/php//include -I/usr/include/php//TSRM -c -o > php_mapscript_util.o php_mapscript_util.c > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory `/usr/local/mapserver-3.6.1/mapscript/php3' > [root at localhost mapserver-3.6.1]# > > > regards > Richard > > > From morissette at dmsolutions.ca Wed Aug 21 08:19:52 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 21 Aug 2002 11:19:52 -0400 Subject: [mapserver-users] compiling mapscript error References: <3D63751C.4612.4278F4C4@localhost> Message-ID: <3D63AF98.8D18992D@dmsolutions.ca> woodbri at swoodbridge.com wrote: > > On 21 Aug 2002 at 15:50, David Armstrong wrote: > > > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS > > ^^^^^^^^^^ NOTICE double gcc gcc edit Makefile and remove one of > these. This is a known problem, HOPEFULLY it will be fixed on the > next release. > Great news! It's fixed now! :) I fixed it in 3.6.2 and 3.7-dev about 1 month ago. I didn't feel it was worth mentioning in the 3.6.2 HISTORY file but perhaps I should have included it. You can get the 3.6.2 source from CVS or from our site at http://www2.dmsolutions.ca/mapserver/dl/mapserver-3.6.2.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Wed Aug 21 08:34:40 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 21 Aug 2002 10:34:40 -0500 Subject: [mapserver-users] compiling mapscript error Message-ID: > gcc: cannot specify -o with -c or -S and multiple compilations take out the multiple cc from your make file and make again. From nhv at cape.com Wed Aug 21 08:43:04 2002 From: nhv at cape.com (Norman Vine) Date: Wed, 21 Aug 2002 11:43:04 -0400 Subject: [mapserver-users] tileindex, images, optimal size In-Reply-To: <3DFF131E4E6D2D4198CDD758F35A5353010ABCF0@postoffice.GASAI.Com> Message-ID: <039801c24929$7159ea00$a300a8c0@nhv> Chip Hankley writes: > >When creating a tileindex for a large image (i.e. breaking a >large image >into smaller tiles) what is (or is there) a good rule of thumb >for how big each tile should be? I can heartily reccomend a power of two specifically 2**8 < 256x256 > Other then being a managable size, this has the added benefit of making the individual tiles mip-mappable :-) Cheers Norman From pagameba at magma.ca Wed Aug 21 08:55:03 2002 From: pagameba at magma.ca (Paul Spencer) Date: Wed, 21 Aug 2002 11:55:03 -0400 Subject: [mapserver-users] compiling mapscript error References: <001101c24922$0e8c32e0$727ba8c0@davidpc> Message-ID: <3D63B7D7.1010404@magma.ca> David, check the makefile in mapscript/php3 and look for a gcc line that has two gcc's: gcc gcc ..... if you see this, remove one of the gcc. There was an error in the configure script that is fixed in cvs. Cheers, Paul -- Paul Spencer Applications and Software Development DM Solutions Group David Armstrong wrote: > ok i hold my hand up ! > can someone point out my possible error here > compiling new install under redhat 7.3 > the only switches i used are --with-proj --with-php=/usr/include/php > > snip>> > cd mapscript/php3; make; cd ../.. > make[1]: Entering directory `/usr/local/mapserver-3.6.1/mapscript/php3' > gcc gcc -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG > -I/usr/local/mapserver-3.6.1 -I/usr/include -I/usr/include/php/ > -I/usr/include/php//dl -I/usr/include/php//main -I/usr/include/php//Zend > -I/usr/include/php//include -I/usr/include/php//TSRM -c -o > php_mapscript_util.o php_mapscript_util.c > gcc: cannot specify -o with -c or -S and multiple compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory `/usr/local/mapserver-3.6.1/mapscript/php3' > [root at localhost mapserver-3.6.1]# > > > regards > Richard > > > From TMitchell at lignum.com Wed Aug 21 08:57:51 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 21 Aug 2002 08:57:51 -0700 Subject: [mapserver-users] TIP: Breaking Up Large Images for TILEINDEX Message-ID: FYI I just added a note to the beginning of http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?CreatingTiles pointing users to your excellent AVE for tiling shapefiles. That's worthy of the wiki, especially if you can put the AVE up there without HTML splitting the long lines!. Thanks Chip. Tyler "Hankley, Chip" To: "MapServer List (E-mail)" Sent by: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] TIP: Breaking Up Large Images for TILEINDEX 08/20/2002 02:57 PM I've seen this topic come up a few times on the list, so I added something to the WIKI- http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?CreatingTiles I often have images where a single image covers a large area (perhaps something like a MrSID of an entire county). In order to make this functional in MapServer, I convert to TIF, then break up the TIF into tiles for use in a TILEINDEX. What I put on the Wiki is an ArcInfo AML that takes an input image, breaks it up into smaller images, creates the tileindex shapefile (using gdaltindex), and indexes the shapefile (using shptree). Anyway, sorry for the emphasis on an ESRI product, but I know that there are a lot of MapServer users out there who also use ArcInfo... so hopefully this will be useful. BTW, if there's another way to do this... like using GDAL or something... I'd love to know. Chip Hankley From akrherz at iitap.iastate.edu Wed Aug 21 08:59:22 2002 From: akrherz at iitap.iastate.edu (Daryl Herzmann) Date: Wed, 21 Aug 2002 11:59:22 -0400 (EDT) Subject: [mapserver-users] MapServer + Weather Data Message-ID: Hiya! Firstly, MapServer and PHP mapscript are just great! I have been attempting to get others to try out MapServer before buying commercial closed-source products. Anyway, on to my questions. There are two features within mapserver that I am curious about. 1. Gridded data. How can gridded datasets, which Meteorologists use all the time, be incorporated into MapServer? Most of the datasets are in Grib format, but can be converted to netCDF. 2. Station METAR plots. Anybody done this? :) Basically, a wind barb is plotted based on wind speed and direction. A circle is plotted for sky cover. Other text information is plotted around the circle. Thanks for the info! Daryl From John.Arthur at T-Mobile.com Wed Aug 21 10:01:37 2002 From: John.Arthur at T-Mobile.com (Arthur, John) Date: Wed, 21 Aug 2002 10:01:37 -0700 Subject: [mapserver-users] Error when compiling 3.7 with ming Message-ID: <987E5CD7052ED51198F400508BA25279572012@vamerrifms01.mail.voicestream.com> When compiling 3.7 with ming, I get this error: ------------------------------------------------------------------ gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -D USE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include mapswf.c -o mapswf .o mapswf.c: In function `msDrawMarkerSymbolSWF': mapswf.c:1299: request for member `red' in something not a structure or union mapswf.c:1299: request for member `green' in something not a structure or union mapswf.c:1299: request for member `blue' in something not a structure or union mapswf.c:1301: request for member `red' in something not a structure or union mapswf.c:1301: request for member `green' in something not a structure or union mapswf.c:1301: request for member `blue' in something not a structure or union mapswf.c:1304: request for member `red' in something not a structure or union mapswf.c:1304: request for member `green' in something not a structure or union mapswf.c:1304: request for member `blue' in something not a structure or union mapswf.c:1319: request for member `red' in something not a structure or union mapswf.c:1319: request for member `green' in something not a structure or union mapswf.c:1319: request for member `blue' in something not a structure or union mapswf.c:1358: request for member `red' in something not a structure or union mapswf.c:1358: request for member `green' in something not a structure or union mapswf.c:1358: request for member `blue' in something not a structure or union mapswf.c:1360: request for member `red' in something not a structure or union mapswf.c:1360: request for member `green' in something not a structure or union mapswf.c:1360: request for member `blue' in something not a structure or union mapswf.c:1376: request for member `red' in something not a structure or union mapswf.c:1376: request for member `green' in something not a structure or union mapswf.c:1376: request for member `blue' in something not a structure or union mapswf.c: In function `msDrawLineSymbolSWF': mapswf.c:1595: request for member `red' in something not a structure or union mapswf.c:1595: request for member `green' in something not a structure or union mapswf.c:1595: request for member `blue' in something not a structure or union mapswf.c: In function `msDrawShadeSymbolSWF': mapswf.c:1755: request for member `red' in something not a structure or union mapswf.c:1755: request for member `green' in something not a structure or union mapswf.c:1755: request for member `blue' in something not a structure or union mapswf.c:1757: request for member `red' in something not a structure or union mapswf.c:1757: request for member `green' in something not a structure or union mapswf.c:1757: request for member `blue' in something not a structure or union mapswf.c:1806: request for member `red' in something not a structure or union mapswf.c:1806: request for member `green' in something not a structure or union mapswf.c:1806: request for member `blue' in something not a structure or union mapswf.c:1806: request for member `red' in something not a structure or union mapswf.c:1806: request for member `green' in something not a structure or union mapswf.c:1806: request for member `blue' in something not a structure or union mapswf.c: In function `draw_textSWF': mapswf.c:1900: request for member `red' in something not a structure or union mapswf.c:1900: request for member `green' in something not a structure or union mapswf.c:1900: request for member `blue' in something not a structure or union mapswf.c:1906: request for member `red' in something not a structure or union mapswf.c:1906: request for member `green' in something not a structure or union mapswf.c:1906: request for member `blue' in something not a structure or union mapswf.c:1912: request for member `red' in something not a structure or union mapswf.c:1912: request for member `green' in something not a structure or union mapswf.c:1912: request for member `blue' in something not a structure or union mapswf.c: In function `msDrawLabelCacheSWF': mapswf.c:2015: warning: unused variable `classPtr' make: *** [mapswf.o] Error 1 ------------------------------------------------------------------ I have ming installed and working with PHP just fine. Any clue to this error? John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at t-mobile.com ?T???Mobile? From EDUARDOPK at vcp.com.br Wed Aug 21 10:25:56 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Wed, 21 Aug 2002 14:25:56 -0300 Subject: RES: RES: [mapserver-users] Windows Binary Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE818E@la02vcp.vcp.com.br> so sorry please. i?ve deleted it and upload it again. so i?ve download it and test it. for now, that?s ok. i have troubles with large e-mails at my mail servers... so try again... if u didn?t get it, i?ll send u in pieces. :-) Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br -----Mensagem original----- De: Andrew Haigh [mailto:lists.ahaigh at dsl.pipex.com] Enviada em: quarta-feira, 21 de agosto de 2002 14:03 Para: EDUARDO PATTO KANEGAE Assunto: Re: RES: [mapserver-users] Windows Binary I've attempted to download the file but i get a HTTP404 error. If you could e-mail me it, that would be great. Thanks, Andrew EDUARDO PATTO KANEGAE wrote: >this is the mapscript that i?m currently using. > >i could send u my mapserver binaries for windows, but even in zip format, >my cgi-bin directory( that includes mapserver and shapelib tools) goes over >7MB. > >so, try to get it at http://scopo1.vila.bol.com.br/cgi-bin.zip > >regards > >Eduardo Patto Kanegae >eduardopk at vcp.com.br >eduardo at scopotecnologia.com.br >http://www.scopotecnologia.com.br > > >-----Mensagem original----- >De: Andrew Haigh [mailto:lists.ahaigh at dsl.pipex.com] >Enviada em: quarta-feira, 21 de agosto de 2002 8:45 >Para: MapServer Mailing List >Assunto: [mapserver-users] Windows Binary > > >I'm looking for a Windows Binary for MapServer, which supports WMS, >PostGIS, OGR, GDAL, PROJ and PHP MapScript (for PHP 4.2.2). > >I've looked on the UMN site and DM Solutions and I can't one. > >Any Ideas? > >Many thanks, > >Andrew > > > > From EDUARDOPK at vcp.com.br Wed Aug 21 10:46:30 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Wed, 21 Aug 2002 14:46:30 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?mapserver=B4s_new_versions?= Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE818F@la02vcp.vcp.com.br> is there any kind of plan to change the mapserver?s concepts and practices for future versions( 3.7 or 4)? i?m asking this ?cause i?m afraid to loose know-how and current apps made with MapServer... ?cause i think a good n soft upgrade is a software that can be upgraded and u will NOT loose your apps and database. here in brazil i?ve seen too many cases like this with some softwares. that?s it. ;-) Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From assefa at dmsolutions.ca Wed Aug 21 11:03:40 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 21 Aug 2002 14:03:40 -0400 Subject: [mapserver-users] New version of Rosa References: <3D626A9B.B6DB3554@dmsolutions.ca> <3D634F69.1010802@atlas.gis.univie.ac.at> Message-ID: <3D63D5FC.8BD7BC66@dmsolutions.ca> Hi There, The support of PNG was done for the main image displayed by thg applet. (parameter IMG_URL). I am going to add the support to also have button images as PNG in futures releases. Later, Alexander Pucher wrote: > Really nice ... at least on Mozilla ;-) > > IE ver. 6.0 does not show the applet images like zoom-in, zoom-out etc > with the rosa_png.jar. > > I have gif2png'ed all images, changed the php3 and phtml files (of the > GMAP demo - as a test) to use the png images, but still it only works on > Mozilla/Netscape 6.1. > > Any ideas? > > regards > alex > > Yewondwossen Assefa wrote: > > >Hi There, > > > > There is a new version (1.2.0) of rosa available at the download site > >: http://www2.dmsolutions.ca/webtools/rosa/index.html. > > > > This version contains mainly bug corrections and few functionnalities. > >Here is the change log between this version and the previous one : > > > > Version 1.2.0 (Aug 19, 2002): > >----------------------------- > > > >- Correct bug related to threads in the tooltip class. > > > >- Fixed minor problem with Unix Makefile: not all .class were included > >in .jar > > > >- Correct bug for IE5.5 and higher (applet not initialized properly). > > > >- Correct Bug with the mesuring tool. > > > >- Add PNG support using sixlegs png library (http://www.sixlegs.com/) > > > >- Ability to use the print command from the browser to print the applet. > > > >- If a button is active (clicked), if the user reclicks on it, It will > >stay > > selected and not be unselected. > > > >- Add functions to set two applet parameters from javascript (the image > >and the pixel size) > > > > > > Best Regards, > > > >-- > >---------------------------------------------------------------- > >Assefa Yewondwossen > >Software Analyst > > > >Email: assefa at dmsolutions.ca > >http://www.dmsolutions.ca/ > > > >Phone: (613) 565-5056 (ext 14) > >Fax: (613) 565-0925 > >---------------------------------------------------------------- > > > > > > > > > > > > > > -- > ________________________________________________________ > > Institut fuer Geographie und Regionalforschung > Universitaet Wien > Kartografie und Geoinformation > > Departement of Geography and Regional Research > University of Vienna > Cartography and GIS > > Universitaetstr. 7, A-1010 Wien, AUSTRIA > > Tel: (+43 1) 4277 48644 > Fax: (+43 1) 4277 48649 > E-mail: alexander.pucher at univie.ac.at > > FTP: ftp://ftp.gis.univie.ac.at > WWW: http://www.gis.univie.ac.at/karto > -------------------------------------------------------- > Atlas of Eastern and Southeastern Europe: http://www.aos.ac.at > -------------------------------------------------------- > > M$ is not the answer. M$ is the question! > No is the answer -- Eric Naggum -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From gabriel at ciasc.gov.br Wed Aug 21 11:50:43 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 21 Aug 2002 15:50:43 -0300 Subject: [mapserver-users] Raste Display References: Message-ID: <011301c24943$a70319f0$12d713ac@ciasc.gov.br> RE: [mapserver-users] hints wantedI have some TIF images georeferenced at MapInfo software. I would like to display them with Mapserver. My MS version is: mapserver at linux cgi-bin]$ ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE According supported formats list at http://www.remotesensing.org/gdal , " If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extention .tfw, .tiffw or .wld, as well as a MapInfo .tab file (only control points used, Coordsys ignored)." Mapserver would have to work with MapInfo file. But It give-me this message: "msCalculateScale(): General error message. Invalid image extent." My .map file is: # # Start of map file # NAME RASTER_ STATUS ON SIZE 400 300 UNITS METERS SHAPEPATH "/home/mapserver/geoimagens" # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "zone=22" # "south" # "no_defs" #END # # Start of web interface definition # WEB TEMPLATE raster.html IMAGEPATH "/usr/local/apache2/htdocs/ms_demo/tmp/" IMAGEURL "/ms_demo/tmp/" END # # Start of layer definitions # LAYER NAME "agronomica_trindade" TYPE RASTER DATA "agronomica_trindade.tif" STATUS DEFAULT END # END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabriel at ciasc.gov.br Wed Aug 21 12:14:43 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Wed, 21 Aug 2002 16:14:43 -0300 Subject: [mapserver-users] Raste Display (More Information) Message-ID: <013101c24947$01889870$12d713ac@ciasc.gov.br> RE: [mapserver-users] hints wantedThis is the output from some "TIFF Tools Overview" (tiffdump and tiffinfo) of my TIF file : [mapserver at linux geoimagens]$ tiffdump agronomica_trindade.tif agronomica_trindade.tif: Magic: 0x4949 Version: 0x2a Directory 0: offset 8 (0x8) next 0 (0) SubFileType (254) LONG (4) 1<0> ImageWidth (256) LONG (4) 1<924> ImageLength (257) LONG (4) 1<906> BitsPerSample (258) SHORT (3) 3<8 8 8> Compression (259) SHORT (3) 1<1> Photometric (262) SHORT (3) 1<2> SamplesPerPixel (277) SHORT (3) 1<3> RowsPerStrip (278) LONG (4) 1<906> StripByteCounts (279) LONG (4) 1<2511432> XResolution (282) RATIONAL (5) 1<100> YResolution (283) RATIONAL (5) 1<100> PlanarConfig (284) SHORT (3) 1<1> ResolutionUnit (296) SHORT (3) 1<2> Predictor (317) SHORT (3) 1<1> Software (305) ASCII (2) 15 DateTime (306) ASCII (2) 20<1999: 5:20 15:49:21\0> ImageDescription (270) ASCII (2) 48<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...> Model (272) ASCII (2) 48<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...> 37458 (0x9252) BYTE (1) 2<0x1 0xbb> 37459 (0x9253) BYTE (1) 2<0xe0 0x13> 37460 (0x9254) BYTE (1) 2<0xbe 0x6b> 37461 (0x9255) BYTE (1) 2<0x9c 0xc3> StripOffsets (273) LONG (4) 1<228123> [mapserver at linux geoimagens]$ tiffinfo agronomica_trindade.tif agronomica_trindade.tif: Warning, unknown field with tag 317 (0x13d) ignored. agronomica_trindade.tif: Warning, invalid TIFF directory; tags are not sorted in ascending order. agronomica_trindade.tif: Warning, unknown field with tag 37458 (0x9252) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37459 (0x9253) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37460 (0x9254) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37461 (0x9255) ignored. TIFF Directory at offset 0x8 Subfile Type: (0 = 0x0) Image Width: 924 Image Length: 906 Resolution: 100, 100 pixels/inch Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: RGB color Date & Time: "1999: 5:20 15:49:21" Software: "UMAX MagicScan" Image Description: "" Model: "" Samples/Pixel: 3 Rows/Strip: 906 Planar Configuration: single image plane ----- Original Message ----- From: gabriel To: mapserver-users at lists.gis.umn.edu Sent: Wednesday, August 21, 2002 3:50 PM Subject: Raste Display I have some TIF images georeferenced at MapInfo software. I would like to display them with Mapserver. My MS version is: mapserver at linux cgi-bin]$ ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE According supported formats list at http://www.remotesensing.org/gdal , " If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extention .tfw, .tiffw or .wld, as well as a MapInfo .tab file (only control points used, Coordsys ignored)." Mapserver would have to work with MapInfo file. But It give-me this message: "msCalculateScale(): General error message. Invalid image extent." My .map file is: # # Start of map file # NAME RASTER_ STATUS ON SIZE 400 300 UNITS METERS SHAPEPATH "/home/mapserver/geoimagens" # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "zone=22" # "south" # "no_defs" #END # # Start of web interface definition # WEB TEMPLATE raster.html IMAGEPATH "/usr/local/apache2/htdocs/ms_demo/tmp/" IMAGEURL "/ms_demo/tmp/" END # # Start of layer definitions # LAYER NAME "agronomica_trindade" TYPE RASTER DATA "agronomica_trindade.tif" STATUS DEFAULT END # END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From gis_consultant at hotmail.com Wed Aug 21 12:40:14 2002 From: gis_consultant at hotmail.com (C F) Date: Wed, 21 Aug 2002 13:40:14 -0600 Subject: [mapserver-users] mapserver´s new versions Message-ID: While I'll agree that it is nice to maintain backwards compatibility, I have to throw in a vote for not stifling progress for the sake backward compatibility. It is often painful to go through an upgrade where everything must be adjusted to the new version, but it?s usually only a short-term effort. On flip-side, applications that hold on to their legacy underpinnings will find their ability to adjust or take advantage of improved technologies increasing limited over time and functionality will suffer greatly in the future?. (Arc/Info is trying desperately to catch up to the rest of the world now). >From: EDUARDO PATTO KANEGAE >To: MapServer USERS (Correio eletr?nico) > >Subject: [mapserver-users] mapserver?s new versions >Date: Wed, 21 Aug 2002 14:46:30 -0300 > >is there any kind of plan to change the mapserver?s concepts and practices >for future versions( 3.7 or 4)? > > >i?m asking this ?cause i?m afraid to loose know-how and current apps made >with MapServer... > > ?cause i think a good n soft upgrade is a software that can be >upgraded >and u will NOT loose your apps and database. > > here in brazil i?ve seen too many cases like this with some softwares. > >that?s it. > >;-) > >Eduardo Patto Kanegae >eduardopk at vcp.com.br >Time Planejamento - UNIDADE LA - Ramal 9126 >eduardo at scopotecnologia.com.br >http://www.scopotecnologia.com.br > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From assefa at dmsolutions.ca Wed Aug 21 12:57:24 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 21 Aug 2002 15:57:24 -0400 Subject: [mapserver-users] Error when compiling 3.7 with ming References: <987E5CD7052ED51198F400508BA25279572012@vamerrifms01.mail.voicestream.com> Message-ID: <3D63F0A4.AA0B4C75@dmsolutions.ca> There is a new version of mapswf.c (r1.15) with the corrections. Later, "Arthur, John" wrote: > When compiling 3.7 with ming, I get this error: > > ------------------------------------------------------------------ > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H > -DUSE_WMS -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG > -DUSE_GD_JPEG -D > USE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -I/usr/include > -I/usr/local/include -I/usr/local/include -I/usr/include mapswf.c -o > mapswf > .o > mapswf.c: In function `msDrawMarkerSymbolSWF': > mapswf.c:1299: request for member `red' in something not a structure or > union > mapswf.c:1299: request for member `green' in something not a structure or > union > mapswf.c:1299: request for member `blue' in something not a structure or > union > mapswf.c:1301: request for member `red' in something not a structure or > union > mapswf.c:1301: request for member `green' in something not a structure or > union > mapswf.c:1301: request for member `blue' in something not a structure or > union > mapswf.c:1304: request for member `red' in something not a structure or > union > mapswf.c:1304: request for member `green' in something not a structure or > union > mapswf.c:1304: request for member `blue' in something not a structure or > union > mapswf.c:1319: request for member `red' in something not a structure or > union > mapswf.c:1319: request for member `green' in something not a structure or > union > mapswf.c:1319: request for member `blue' in something not a structure or > union > mapswf.c:1358: request for member `red' in something not a structure or > union > mapswf.c:1358: request for member `green' in something not a structure or > union > mapswf.c:1358: request for member `blue' in something not a structure or > union > mapswf.c:1360: request for member `red' in something not a structure or > union > mapswf.c:1360: request for member `green' in something not a structure or > union > mapswf.c:1360: request for member `blue' in something not a structure or > union > mapswf.c:1376: request for member `red' in something not a structure or > union > mapswf.c:1376: request for member `green' in something not a structure or > union > mapswf.c:1376: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawLineSymbolSWF': > mapswf.c:1595: request for member `red' in something not a structure or > union > mapswf.c:1595: request for member `green' in something not a structure or > union > mapswf.c:1595: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawShadeSymbolSWF': > mapswf.c:1755: request for member `red' in something not a structure or > union > mapswf.c:1755: request for member `green' in something not a structure or > union > mapswf.c:1755: request for member `blue' in something not a structure or > union > mapswf.c:1757: request for member `red' in something not a structure or > union > mapswf.c:1757: request for member `green' in something not a structure or > union > mapswf.c:1757: request for member `blue' in something not a structure or > union > mapswf.c:1806: request for member `red' in something not a structure or > union > mapswf.c:1806: request for member `green' in something not a structure or > union > mapswf.c:1806: request for member `blue' in something not a structure or > union > mapswf.c:1806: request for member `red' in something not a structure or > union > mapswf.c:1806: request for member `green' in something not a structure or > union > mapswf.c:1806: request for member `blue' in something not a structure or > union > mapswf.c: In function `draw_textSWF': > mapswf.c:1900: request for member `red' in something not a structure or > union > mapswf.c:1900: request for member `green' in something not a structure or > union > mapswf.c:1900: request for member `blue' in something not a structure or > union > mapswf.c:1906: request for member `red' in something not a structure or > union > mapswf.c:1906: request for member `green' in something not a structure or > union > mapswf.c:1906: request for member `blue' in something not a structure or > union > mapswf.c:1912: request for member `red' in something not a structure or > union > mapswf.c:1912: request for member `green' in something not a structure or > union > mapswf.c:1912: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawLabelCacheSWF': > mapswf.c:2015: warning: unused variable `classPtr' > make: *** [mapswf.o] Error 1 > ------------------------------------------------------------------ > > I have ming installed and working with PHP just fine. Any clue to this > error? > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at t-mobile.com > ?T???Mobile? -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ian at geography.leeds.ac.uk Wed Aug 21 13:20:24 2002 From: ian at geography.leeds.ac.uk (Ian Turton) Date: Wed, 21 Aug 2002 21:20:24 +0100 Subject: [mapserver-users] MapServer + Weather Data In-Reply-To: Message-ID: <5.1.0.14.0.20020821211756.05cc8050@geog.leeds.ac.uk> At 16:59 21/08/02, Daryl Herzmann wrote: >Hiya! > > >2. Station METAR plots. Anybody done this? :) Basically, a wind barb is >plotted based on wind speed and direction. A circle is plotted for sky >cover. Other text information is plotted around the circle. There are several free true type fonts out there that should allow you to build that sort of symbol. Google should be able to find them but mail me and I'll try and find one I had lying around somewhere in the office. Ian From TMitchell at lignum.com Wed Aug 21 13:33:14 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 21 Aug 2002 13:33:14 -0700 Subject: [mapserver-users] Raste Display Message-ID: Do you know the geographic extent or coordinates of the image? Feel free to email me your tiff and I can tell you if you don't know. You will need a line in the first section of your map file called EXTENT or EXTENT - where you substitute in the coordinates of the lower left corner of the area and then the upper right corner. That looks to me why you are getting the error, because you don't define where about in the world you want to look. Tyler "gabriel" To: Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] Raste Display 08/21/2002 03:50 PM I have some TIF images georeferenced at MapInfo software. I would like to display them with Mapserver. My MS version is: mapserver at linux cgi-bin]$ ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE According supported formats list at http://www.remotesensing.org/gdal , " If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extention .tfw, .tiffw or .wld, as well as a MapInfo .tab file (only control points used, Coordsys ignored)." Mapserver would have to work with MapInfo file. But It give-me this message: "msCalculateScale(): General error message. Invalid image extent." My .map file is: # # Start of map file # NAME RASTER_ STATUS ON SIZE 400 300 UNITS METERS SHAPEPATH "/home/mapserver/geoimagens" # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "zone=22" # "south" # "no_defs" #END # # Start of web interface definition # WEB TEMPLATE raster.html IMAGEPATH "/usr/local/apache2/htdocs/ms_demo/tmp/" IMAGEURL "/ms_demo/tmp/" END # # Start of layer definitions # LAYER NAME "agronomica_trindade" TYPE RASTER DATA "agronomica_trindade.tif" STATUS DEFAULT END # END # Map File From TMitchell at lignum.com Wed Aug 21 14:09:31 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 21 Aug 2002 14:09:31 -0700 Subject: [mapserver-users] Raste Display (More Information) Message-ID: Did you compile the mapserv program yourself? I would recommend configuring it --without-tiff , since GDAL also has tiff support and you don't want to confuse mapserv with which to use. That's from my experience anyway. If you have gdal installed use "gdalinfo" and tell use what info it gives you about your image. Tyler "gabriel" To: Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] Raste Display (More Information) 08/21/2002 04:14 PM This is the output from some "TIFF Tools Overview" (tiffdump and tiffinfo) of my TIF file : [mapserver at linux geoimagens]$ tiffdump agronomica_trindade.tif agronomica_trindade.tif: Magic: 0x4949 Version: 0x2a Directory 0: offset 8 (0x8) next 0 (0) SubFileType (254) LONG (4) 1<0> ImageWidth (256) LONG (4) 1<924> ImageLength (257) LONG (4) 1<906> BitsPerSample (258) SHORT (3) 3<8 8 8> Compression (259) SHORT (3) 1<1> Photometric (262) SHORT (3) 1<2> SamplesPerPixel (277) SHORT (3) 1<3> RowsPerStrip (278) LONG (4) 1<906> StripByteCounts (279) LONG (4) 1<2511432> XResolution (282) RATIONAL (5) 1<100> YResolution (283) RATIONAL (5) 1<100> PlanarConfig (284) SHORT (3) 1<1> ResolutionUnit (296) SHORT (3) 1<2> Predictor (317) SHORT (3) 1<1> Software (305) ASCII (2) 15 DateTime (306) ASCII (2) 20<1999: 5:20 15:49:21\0> ImageDescription (270) ASCII (2) 48 <\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...> Model (272) ASCII (2) 48<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...> 37458 (0x9252) BYTE (1) 2<0x1 0xbb> 37459 (0x9253) BYTE (1) 2<0xe0 0x13> 37460 (0x9254) BYTE (1) 2<0xbe 0x6b> 37461 (0x9255) BYTE (1) 2<0x9c 0xc3> StripOffsets (273) LONG (4) 1<228123> [mapserver at linux geoimagens]$ tiffinfo agronomica_trindade.tif agronomica_trindade.tif: Warning, unknown field with tag 317 (0x13d) ignored. agronomica_trindade.tif: Warning, invalid TIFF directory; tags are not sorted in ascending order. agronomica_trindade.tif: Warning, unknown field with tag 37458 (0x9252) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37459 (0x9253) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37460 (0x9254) ignored. agronomica_trindade.tif: Warning, unknown field with tag 37461 (0x9255) ignored. TIFF Directory at offset 0x8 Subfile Type: (0 = 0x0) Image Width: 924 Image Length: 906 Resolution: 100, 100 pixels/inch Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: RGB color Date & Time: "1999: 5:20 15:49:21" Software: "UMAX MagicScan" Image Description: "" Model: "" Samples/Pixel: 3 Rows/Strip: 906 Planar Configuration: single image plane ----- Original Message ----- From: gabriel To: mapserver-users at lists.gis.umn.edu Sent: Wednesday, August 21, 2002 3:50 PM Subject: Raste Display I have some TIF images georeferenced at MapInfo software. I would like to display them with Mapserver. My MS version is: mapserver at linux cgi-bin]$ ./mapserv -v MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE According supported formats list at http://www.remotesensing.org/gdal , " If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extention .tfw, .tiffw or .wld, as well as a MapInfo .tab file (only control points used, Coordsys ignored)." Mapserver would have to work with MapInfo file. But It give-me this message: "msCalculateScale(): General error message. Invalid image extent." My .map file is: # # Start of map file # NAME RASTER_ STATUS ON SIZE 400 300 UNITS METERS SHAPEPATH "/home/mapserver/geoimagens" # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "zone=22" # "south" # "no_defs" #END # # Start of web interface definition # WEB TEMPLATE raster.html IMAGEPATH "/usr/local/apache2/htdocs/ms_demo/tmp/" IMAGEURL "/ms_demo/tmp/" END # # Start of layer definitions # LAYER NAME "agronomica_trindade" TYPE RASTER DATA "agronomica_trindade.tif" STATUS DEFAULT END # END # Map File From John.Arthur at T-Mobile.com Wed Aug 21 17:27:05 2002 From: John.Arthur at T-Mobile.com (Arthur, John) Date: Wed, 21 Aug 2002 17:27:05 -0700 Subject: [mapserver-users] Error when compiling 3.7 with ming Message-ID: <987E5CD7052ED51198F400508BA25279572017@vamerrifms01.mail.voicestream.com> Is there a simple example map file in addition to the document at http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html? I have successfully generated the swf files, but the "main" SWF file doesn't display the layers. It is just blank. However, the layer files do work individually. Thanks, John -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wednesday, August 21, 2002 3:57 PM To: Arthur, John Cc: mapserver list Subject: Re: [mapserver-users] Error when compiling 3.7 with ming There is a new version of mapswf.c (r1.15) with the corrections. Later, "Arthur, John" wrote: > When compiling 3.7 with ming, I get this error: > > ------------------------------------------------------------------ > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H > -DUSE_WMS -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG > -DUSE_GD_JPEG -D > USE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -I/usr/include > -I/usr/local/include -I/usr/local/include -I/usr/include mapswf.c -o > mapswf > .o > mapswf.c: In function `msDrawMarkerSymbolSWF': > mapswf.c:1299: request for member `red' in something not a structure or > union > mapswf.c:1299: request for member `green' in something not a structure or > union > mapswf.c:1299: request for member `blue' in something not a structure or > union > mapswf.c:1301: request for member `red' in something not a structure or > union > mapswf.c:1301: request for member `green' in something not a structure or > union > mapswf.c:1301: request for member `blue' in something not a structure or > union > mapswf.c:1304: request for member `red' in something not a structure or > union > mapswf.c:1304: request for member `green' in something not a structure or > union > mapswf.c:1304: request for member `blue' in something not a structure or > union > mapswf.c:1319: request for member `red' in something not a structure or > union > mapswf.c:1319: request for member `green' in something not a structure or > union > mapswf.c:1319: request for member `blue' in something not a structure or > union > mapswf.c:1358: request for member `red' in something not a structure or > union > mapswf.c:1358: request for member `green' in something not a structure or > union > mapswf.c:1358: request for member `blue' in something not a structure or > union > mapswf.c:1360: request for member `red' in something not a structure or > union > mapswf.c:1360: request for member `green' in something not a structure or > union > mapswf.c:1360: request for member `blue' in something not a structure or > union > mapswf.c:1376: request for member `red' in something not a structure or > union > mapswf.c:1376: request for member `green' in something not a structure or > union > mapswf.c:1376: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawLineSymbolSWF': > mapswf.c:1595: request for member `red' in something not a structure or > union > mapswf.c:1595: request for member `green' in something not a structure or > union > mapswf.c:1595: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawShadeSymbolSWF': > mapswf.c:1755: request for member `red' in something not a structure or > union > mapswf.c:1755: request for member `green' in something not a structure or > union > mapswf.c:1755: request for member `blue' in something not a structure or > union > mapswf.c:1757: request for member `red' in something not a structure or > union > mapswf.c:1757: request for member `green' in something not a structure or > union > mapswf.c:1757: request for member `blue' in something not a structure or > union > mapswf.c:1806: request for member `red' in something not a structure or > union > mapswf.c:1806: request for member `green' in something not a structure or > union > mapswf.c:1806: request for member `blue' in something not a structure or > union > mapswf.c:1806: request for member `red' in something not a structure or > union > mapswf.c:1806: request for member `green' in something not a structure or > union > mapswf.c:1806: request for member `blue' in something not a structure or > union > mapswf.c: In function `draw_textSWF': > mapswf.c:1900: request for member `red' in something not a structure or > union > mapswf.c:1900: request for member `green' in something not a structure or > union > mapswf.c:1900: request for member `blue' in something not a structure or > union > mapswf.c:1906: request for member `red' in something not a structure or > union > mapswf.c:1906: request for member `green' in something not a structure or > union > mapswf.c:1906: request for member `blue' in something not a structure or > union > mapswf.c:1912: request for member `red' in something not a structure or > union > mapswf.c:1912: request for member `green' in something not a structure or > union > mapswf.c:1912: request for member `blue' in something not a structure or > union > mapswf.c: In function `msDrawLabelCacheSWF': > mapswf.c:2015: warning: unused variable `classPtr' > make: *** [mapswf.o] Error 1 > ------------------------------------------------------------------ > > I have ming installed and working with PHP just fine. Any clue to this > error? > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at t-mobile.com > ?T???Mobile? -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jef.mony at free.fr Thu Aug 22 01:43:09 2002 From: jef.mony at free.fr (jef.mony at free.fr) Date: Thu, 22 Aug 2002 10:43:09 +0200 Subject: [mapserver-users] intersect Message-ID: <3D64C03D.11035.2861B7@localhost> Hi, I noticed a little problem with the intersects function of the ShapeObj. I have two Shapes : a polygon and a point $line = ms_newLineObj(); $line->addXY($Xmin,$Ymax); $line->addXY($Xmax,$Ymax); $line->addXY($Xmax,$Ymin); $line->addXY($Xmin,$Ymin); $line->addXY($Xmin,$Ymax); $poly = ms_newShapeObj(MS_SHAPE_POLYGON); $poly->add($line); $line2 = ms_newLineObj(); $line2->addXY($Xmin,$Ymax); $poly2 = ms_newShapeObj(MS_SHAPE_POINT); $poly2->add($line2); If I try $poly->intersects($poly2) I have a wrong result, in fact it's like I would have test the intersection between the p?int and the boundaries of the poly ... but If I use $poly2->contains($pt) with pt a point with the same coords that the poly2 it's work fine ... An idea, is it a bug or a wrong use ? Thanks From lfilak at medinaco.org Thu Aug 22 05:27:39 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 22 Aug 2002 08:27:39 -0400 Subject: [mapserver-users] intersect Message-ID: <200208221214.g7MCEx814450@yogi.medinaco.net> I don't believe 'intersect' is intended for use with a point. Check out: http://www.ic.arizona.edu/~agave/agave_gis04b.htm for a quick diagram of what intersect is intended to do. HTH Lowell F. The following message was sent by jef.mony at free.fr on Thu, 22 Aug 2002 10:43:09 +0200. > Hi, > > I noticed a little problem with the intersects function of the ShapeObj. > I have two Shapes : a polygon and a point > > > $line = ms_newLineObj(); > $line->addXY($Xmin,$Ymax); > $line->addXY($Xmax,$Ymax); > $line->addXY($Xmax,$Ymin); > $line->addXY($Xmin,$Ymin); > $line->addXY($Xmin,$Ymax); > $poly = ms_newShapeObj(MS_SHAPE_POLYGON); > $poly->add($line); > > $line2 = ms_newLineObj(); > $line2->addXY($Xmin,$Ymax); > $poly2 = ms_newShapeObj(MS_SHAPE_POINT); > $poly2->add($line2); > > If I try $poly->intersects($poly2) I have a wrong result, in fact it's like I > would have test the intersection between the p?int and the boundaries of > the poly ... > but If I use $poly2->contains($pt) with pt a point with the same coords that > the poly2 it's work fine ... > > An idea, is it a bug or a wrong use ? > > Thanks From Knut.Nadolski at DLE-R.Bayern.de Thu Aug 22 05:42:34 2002 From: Knut.Nadolski at DLE-R.Bayern.de (Nadolski Knut) Date: Thu, 22 Aug 2002 14:42:34 +0200 Subject: [mapserver-users] Gif-images as marker symbols Message-ID: <11C3B3D17A3ED311B27C00104B4B47BCA7E2F7@dler9.dle-r.bayern.de> Hi list, is there any trick in using GIF-images as marker symbols. I tried it with a sybol-definition like that: SYMBOL NAME 'DLE' TYPE PIXMAP IMAGE "signet_mit_weiss.gif" END Whats about the path for the image? Knut From pkishor at GeoAnalytics.com Thu Aug 22 06:55:28 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 22 Aug 2002 08:55:28 -0500 Subject: [mapserver-users] Gif-images as marker symbols In-Reply-To: <11C3B3D17A3ED311B27C00104B4B47BCA7E2F7@dler9.dle-r.bayern.de> Message-ID: On Thursday, August 22, 2002, at 07:42 AM, Nadolski Knut wrote: > Hi list, > is there any trick in using GIF-images as marker symbols. > I tried it with a sybol-definition like that: > > SYMBOL > NAME 'DLE' > TYPE PIXMAP > IMAGE "signet_mit_weiss.gif" > END > > Whats about the path for the image? > relative to the symbols file... and, of course, a gif capable gd. other than that, no trickery at all. From nospam at cnrit.tamu.edu Thu Aug 22 07:25:31 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Thu, 22 Aug 2002 09:25:31 -0500 Subject: [mapserver-users] Anybody have updated Mapserver Utilities?? Message-ID: <3D64F45B.6010300@cnrit.tamu.edu> Hello, I have been beating my head against the wall trying to find utilities that will ease the development of Mapserver web pages to no avail! I have downloaded and tried all the utilities on the Mapserver home page but they don't work with my version of Mapserver! I'm running the latest stable version, 3.6.1, on a Sun box running Solaris 8. I've got mapserver working fine and the demo worked fine and mapplet works fine in my demo, the only thing is that the "Mapserver Workbench" developer told me that he has not updated his tool since Mapserver 3.4.x, so I can't use that, and "MapUtils" appears to be for old versions of Arcview and old versions of Mapserver as well! The files it generates don't work with my version of Mapserver. Has anybody updated Maputils, or any other tool for that matter, to work with Mapserver 3.6.1? I'd like to have something that generates the ".map" files out of ArcView at the very minimum, but I'll take whatever I can get in lieu of writing those config files manually! HELP?!?!?! From gadoury at dmsolutions.ca Thu Aug 22 07:32:08 2002 From: gadoury at dmsolutions.ca (Dean Gadoury) Date: Thu, 22 Aug 2002 10:32:08 -0400 Subject: [mapserver-users] Anybody have updated Mapserver Utilities?? In-Reply-To: <3D64F45B.6010300@cnrit.tamu.edu> Message-ID: Mike, have you tried MapLab? You can get information about it and download it at the following address: http://www.dmsolutions.on.ca/maplab.html -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Mike Smith Sent: Thursday, August 22, 2002 10:26 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Anybody have updated Mapserver Utilities?? Hello, I have been beating my head against the wall trying to find utilities that will ease the development of Mapserver web pages to no avail! I have downloaded and tried all the utilities on the Mapserver home page but they don't work with my version of Mapserver! I'm running the latest stable version, 3.6.1, on a Sun box running Solaris 8. I've got mapserver working fine and the demo worked fine and mapplet works fine in my demo, the only thing is that the "Mapserver Workbench" developer told me that he has not updated his tool since Mapserver 3.4.x, so I can't use that, and "MapUtils" appears to be for old versions of Arcview and old versions of Mapserver as well! The files it generates don't work with my version of Mapserver. Has anybody updated Maputils, or any other tool for that matter, to work with Mapserver 3.6.1? I'd like to have something that generates the ".map" files out of ArcView at the very minimum, but I'll take whatever I can get in lieu of writing those config files manually! HELP?!?!?! From ken at kyler.com Thu Aug 22 08:06:29 2002 From: ken at kyler.com (Ken Kyler) Date: Thu, 22 Aug 2002 11:06:29 -0400 Subject: [mapserver-users] configure problems Message-ID: First, I've read the FAQ, HOWTOs and did a search for this particular problem. I'm trying to install Mapserver on a FreeBSD 4.5-STABLE system rinning Apache and mod_php4. When I run configure with the following options... ./configure \ --with-php=/usr/local/include/php \ --with-jpeg=/usr/local/lib \ --with-freetype=/usr/local/include/freetype2 \ --with-png=/usr/local/lib \ --with-apxs=/usr/local/sbin/apxs \ --with-gd=/usr/local/lib \ --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ --enable-runpath I get the following error checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib. checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. checking which version of GD to use... configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. Make sure gd is compiled before calling configure. both libjpeg.so and libgd.so *are* located in the /usr/local/lib directory What am I doing wrong? Ken From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Thu Aug 22 09:19:14 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Thu, 22 Aug 2002 12:19:14 -0400 Subject: [mapserver-users] configure problems Message-ID: <7CDD7B94357FD5119E800002A537C46E2302AD@s5-ccr-r1.ccrs.nrcan.gc.ca> Ken, Although you have the binary libraries, you also NEED the header files for said libraries. Since you say you have the libraries themselves in the appropriate location, I would next go on to check that you have the required header files (/usr/include/, /usr/local/include, etc ..). I don't know how it works on FreeBSD, but on RedHat-based systems, this usually means you need the "development" (gd-dev for instance) version of any given package. The default package contains the binaries, the dev package contains header files, and source code and such things ... J.F. -----Original Message----- From: Ken Kyler [mailto:ken at kyler.com] Sent: Thursday, August 22, 2002 11:06 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] configure problems First, I've read the FAQ, HOWTOs and did a search for this particular problem. I'm trying to install Mapserver on a FreeBSD 4.5-STABLE system rinning Apache and mod_php4. When I run configure with the following options... ./configure \ --with-php=/usr/local/include/php \ --with-jpeg=/usr/local/lib \ --with-freetype=/usr/local/include/freetype2 \ --with-png=/usr/local/lib \ --with-apxs=/usr/local/sbin/apxs \ --with-gd=/usr/local/lib \ --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ --enable-runpath I get the following error checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib. checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. checking which version of GD to use... configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. Make sure gd is compiled before calling configure. both libjpeg.so and libgd.so *are* located in the /usr/local/lib directory What am I doing wrong? Ken From TMitchell at lignum.com Thu Aug 22 10:30:31 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 22 Aug 2002 10:30:31 -0700 Subject: [mapserver-users] configure problems Message-ID: Yes it seems like the .so files aren't the problem, perhaps. Isn't it saying that you need the header (.h) files for jpeg and gd? I believe you will need those files, which are part of the source code for libjpeg and libgd. I'd try to locate the libgd.h, etc. files on your system, you may already have them in an "include" directory somewhere - but I'm not expert on this stuff! Tyler "Ken Kyler" Sent by: To: owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] configure problems 08/22/2002 08:06 AM First, I've read the FAQ, HOWTOs and did a search for this particular problem. I'm trying to install Mapserver on a FreeBSD 4.5-STABLE system rinning Apache and mod_php4. When I run configure with the following options... ./configure \ --with-php=/usr/local/include/php \ --with-jpeg=/usr/local/lib \ --with-freetype=/usr/local/include/freetype2 \ --with-png=/usr/local/lib \ --with-apxs=/usr/local/sbin/apxs \ --with-gd=/usr/local/lib \ --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ --enable-runpath I get the following error checking whether we should include JPEG support... Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib. checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. checking which version of GD to use... configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. Make sure gd is compiled before calling configure. both libjpeg.so and libgd.so *are* located in the /usr/local/lib directory What am I doing wrong? Ken From david.armstrong at ntlworld.com Thu Aug 22 10:48:49 2002 From: david.armstrong at ntlworld.com (David Armstrong) Date: Thu, 22 Aug 2002 18:48:49 +0100 Subject: [mapserver-users] maps not displayed image is black Message-ID: <004701c24a04$2c6730c0$727ba8c0@davidpc> i have had this problem before on windows , but just setting up on linux first time round i have the map images ok in the /tmp directory , but they are not displayed , all i have is a black area where the map should be i presume it could be a permissions problem running the latest itasca demo on mapserver 3.6.2 with linux redhat 7.3 thanks Richard Armstrong From pkishor at GeoAnalytics.com Thu Aug 22 10:51:02 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 22 Aug 2002 12:51:02 -0500 Subject: [mapserver-users] configure problems Message-ID: you need the .a and .h files... they are more important than the .so (shared object). do a find for the appropriate .h/.a and see where they are located. funny thing is if you don't provide any dir prefix it is good enough to find the relevant files from their default locations. hth. > -----Original Message----- > From: Ken Kyler [mailto:ken at kyler.com] > Sent: Thursday, August 22, 2002 10:06 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] configure problems > > > First, I've read the FAQ, HOWTOs and did a search for this particular > problem. > > I'm trying to install Mapserver on a FreeBSD 4.5-STABLE system rinning > Apache and mod_php4. > > When I run configure with the following options... > > ./configure \ > --with-php=/usr/local/include/php \ > --with-jpeg=/usr/local/lib \ > --with-freetype=/usr/local/include/freetype2 \ > --with-png=/usr/local/lib \ > --with-apxs=/usr/local/sbin/apxs \ > --with-gd=/usr/local/lib \ > --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ > --enable-runpath > > I get the following error > > checking whether we should include JPEG support... > Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib. > checking for jpeg_read_header in -ljpeg... no > libjpeg not found. JPEG support not included, > possibly needed for > GD. > checking which version of GD to use... > configure: error: Could not find gd.h or libgd.a/libgd.so in > /usr/local/lib. > Make sure gd is compiled before calling configure. > > both libjpeg.so and libgd.so *are* located in the > /usr/local/lib directory > > What am I doing wrong? > > Ken > From EDUARDOPK at vcp.com.br Thu Aug 22 10:50:53 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Thu, 22 Aug 2002 14:50:53 -0300 Subject: RES: [mapserver-users] Anybody have updated Mapserver Utilities?? Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE81A3@la02vcp.vcp.com.br> I don?t think this is "really" a good utiliti, but here it goes: i?ve just worked in a project that was an intranet n it has a report that must show a grid, containting atributes, and too a map of the grid(or a map of the forest specifcaly)... and the problem in this application is that each map should appear in its full extent. so, i dit this: 1.execute the utility SHPDUMP, with something like: $ shpdump mymap.shp > mymap.dmp // dmp -> Dump file result 2.execute the my PHP funtion 'get_shp_corners' passing the dumpfile as parameter: $result = get_shp_corners('mymap.dmp'); 3.and EURECA! finally got 2 coordinates at $result array that can be used to set the EXTENT parameter of my MapFiles. e.g. : i can write a MapFile using: ... EXTENT x1 y1 x2 y2 ... where: x1 = $result[0] y1 = $result[1] x2 = $result[2] y2 = $result[3] 4.so, let?s see the PHP code: /*************************************************************************** ****************/ /* get_shp_corners: returns an array containing x1 y1 x2 y2 - that is the full extent - of a ShapeFile, based on its dumpfile $dumpfile = a text file that is generated with the shpdump command Author: Eduardo Patto Kanegae */ function get_shp_corners($dump_filename){ $dmp_hwnd = fopen($dump_filename,'r'); if (!$dmp_hwnd){ return FALSE; } else { fclose($dmp_hwnd); $vet_lin_dumpfile = file($dump_filename); $p_found[0]=FALSE; $p_found[1]=FALSE; $p_found[2]=FALSE; $p_found[3]=FALSE; $tmp[0] = ""; $tmp[1] = ""; $tmp[2] = ""; $tmp[3] = ""; for($j=0;$j Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br -----Mensagem original----- De: Dean Gadoury [mailto:gadoury at dmsolutions.ca] Enviada em: quinta-feira, 22 de agosto de 2002 11:32 Para: Mike Smith; mapserver-users at lists.gis.umn.edu Assunto: RE: [mapserver-users] Anybody have updated Mapserver Utilities?? Mike, have you tried MapLab? You can get information about it and download it at the following address: http://www.dmsolutions.on.ca/maplab.html -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Mike Smith Sent: Thursday, August 22, 2002 10:26 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Anybody have updated Mapserver Utilities?? Hello, I have been beating my head against the wall trying to find utilities that will ease the development of Mapserver web pages to no avail! I have downloaded and tried all the utilities on the Mapserver home page but they don't work with my version of Mapserver! I'm running the latest stable version, 3.6.1, on a Sun box running Solaris 8. I've got mapserver working fine and the demo worked fine and mapplet works fine in my demo, the only thing is that the "Mapserver Workbench" developer told me that he has not updated his tool since Mapserver 3.4.x, so I can't use that, and "MapUtils" appears to be for old versions of Arcview and old versions of Mapserver as well! The files it generates don't work with my version of Mapserver. Has anybody updated Maputils, or any other tool for that matter, to work with Mapserver 3.6.1? I'd like to have something that generates the ".map" files out of ArcView at the very minimum, but I'll take whatever I can get in lieu of writing those config files manually! HELP?!?!?! From pagameba at magma.ca Thu Aug 22 11:09:56 2002 From: pagameba at magma.ca (Paul Spencer) Date: Thu, 22 Aug 2002 14:09:56 -0400 Subject: [mapserver-users] configure problems References: Message-ID: <3D6528F4.7060805@magma.ca> try --with-jpeg=/usr/local (no lib) and the same for png and gd. Paul -- Paul Spencer Applications and Software Development DM Solutions Group Ken Kyler wrote: > First, I've read the FAQ, HOWTOs and did a search for this particular > problem. > > I'm trying to install Mapserver on a FreeBSD 4.5-STABLE system rinning > Apache and mod_php4. > > When I run configure with the following options... > > ./configure \ > --with-php=/usr/local/include/php \ > --with-jpeg=/usr/local/lib \ > --with-freetype=/usr/local/include/freetype2 \ > --with-png=/usr/local/lib \ > --with-apxs=/usr/local/sbin/apxs \ > --with-gd=/usr/local/lib \ > --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ > --enable-runpath > > I get the following error > > checking whether we should include JPEG support... > Could not find jpeglib.h or libjpeg.a/libjpeg.so in /usr/local/lib. > checking for jpeg_read_header in -ljpeg... no > libjpeg not found. JPEG support not included, possibly needed for > GD. > checking which version of GD to use... > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. > Make sure gd is compiled before calling configure. > > both libjpeg.so and libgd.so *are* located in the /usr/local/lib directory > > What am I doing wrong? > > Ken > > From ken at kyler.com Thu Aug 22 11:17:07 2002 From: ken at kyler.com (Ken Kyler) Date: Thu, 22 Aug 2002 14:17:07 -0400 Subject: [mapserver-users] configure problems In-Reply-To: <7CDD7B94357FD5119E800002A537C46E2302AD@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: First problem solved. After reading configure.in, I found this test -f $GD_DIR/include/gd.h && GD_INCLUDE="$GD_DIR/include" I don't know why they ask for the GD directory and then append the /include/ subdirectory to it. Doesn't make sense. Anyway, it works fine with --with-gd=/usr/local instead of --with-gd=/usr/local/include now on to the next problem !!! The current version of PHP MapScript requires PHP4 configured as !!! !!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! yet the Mapscript FAQ says "2.3 Does MapScript require that PHP3/PHP4 be a DSO? It does not, it will work either way. However, if PHP was compiled as a DSO then you will have to pass the --with-apxs switch to the Maperver configure script. It is very important that the --with-apxs switch be provided if PHP was compiled as an Apache DSO, especially on systems like RedHat 6.2 where Apache comes compiled with the -DEAPI switch and this has an impact on DSO modules." Please pass the Ibuprofen... Ken From assefa at dmsolutions.ca Thu Aug 22 11:32:47 2002 From: assefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 22 Aug 2002 14:32:47 -0400 Subject: [mapserver-users] Error when compiling 3.7 with ming References: <987E5CD7052ED51198F400508BA25279572017@vamerrifms01.mail.voicestream.com> Message-ID: <3D652E4E.E778BA5F@dmsolutions.ca> The main movie does not have any elements to display. It only contains Action script codes with names of the movie layers generated. The idea is that you will load the main movie in Flash and use the action script from the main movie to load the layers that you want. There is also now a mecanism to generate only one movie (raster output) containg all the layers. The mecanisome used the new OUTPUTFORMAT object added in 3.7 (part of the map object) . Below is an example of a map file using it : specify FORMATOPTION "OUTPUT_MOVIE=SINGLE" for this kind of output.If not set there will be one movie created per layer. NAME SWF STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -2200000 -712631 3072800 3840000 #EXTENT -150 40 -45 90 UNITS METERS #UNITS DD SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt IMAGETYPE SWF #IMAGETYPE PNG OUTPUTFORMAT NAME swf MIMETYPE "application/x-shockwave-flash" DRIVER swf IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=SINGLE" # FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END .... "Arthur, John" wrote: > Is there a simple example map file in addition to the document at > http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html? I have > successfully generated the swf files, but the "main" SWF file doesn't > display the layers. It is just blank. However, the layer files do work > individually. > > Thanks, > > John > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Wednesday, August 21, 2002 3:57 PM > To: Arthur, John > Cc: mapserver list > Subject: Re: [mapserver-users] Error when compiling 3.7 with ming > > There is a new version of mapswf.c (r1.15) with the corrections. > > Later, > > "Arthur, John" wrote: > > > When compiling 3.7 with ming, I get this error: > > > > ------------------------------------------------------------------ > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > > -DUSE_PROJ_API_H > > -DUSE_WMS -DUSE_MING_FLASH -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG > > -DUSE_GD_JPEG -D > > USE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -I/usr/include > > -I/usr/local/include -I/usr/local/include -I/usr/include mapswf.c -o > > mapswf > > .o > > mapswf.c: In function `msDrawMarkerSymbolSWF': > > mapswf.c:1299: request for member `red' in something not a structure or > > union > > mapswf.c:1299: request for member `green' in something not a structure or > > union > > mapswf.c:1299: request for member `blue' in something not a structure or > > union > > mapswf.c:1301: request for member `red' in something not a structure or > > union > > mapswf.c:1301: request for member `green' in something not a structure or > > union > > mapswf.c:1301: request for member `blue' in something not a structure or > > union > > mapswf.c:1304: request for member `red' in something not a structure or > > union > > mapswf.c:1304: request for member `green' in something not a structure or > > union > > mapswf.c:1304: request for member `blue' in something not a structure or > > union > > mapswf.c:1319: request for member `red' in something not a structure or > > union > > mapswf.c:1319: request for member `green' in something not a structure or > > union > > mapswf.c:1319: request for member `blue' in something not a structure or > > union > > mapswf.c:1358: request for member `red' in something not a structure or > > union > > mapswf.c:1358: request for member `green' in something not a structure or > > union > > mapswf.c:1358: request for member `blue' in something not a structure or > > union > > mapswf.c:1360: request for member `red' in something not a structure or > > union > > mapswf.c:1360: request for member `green' in something not a structure or > > union > > mapswf.c:1360: request for member `blue' in something not a structure or > > union > > mapswf.c:1376: request for member `red' in something not a structure or > > union > > mapswf.c:1376: request for member `green' in something not a structure or > > union > > mapswf.c:1376: request for member `blue' in something not a structure or > > union > > mapswf.c: In function `msDrawLineSymbolSWF': > > mapswf.c:1595: request for member `red' in something not a structure or > > union > > mapswf.c:1595: request for member `green' in something not a structure or > > union > > mapswf.c:1595: request for member `blue' in something not a structure or > > union > > mapswf.c: In function `msDrawShadeSymbolSWF': > > mapswf.c:1755: request for member `red' in something not a structure or > > union > > mapswf.c:1755: request for member `green' in something not a structure or > > union > > mapswf.c:1755: request for member `blue' in something not a structure or > > union > > mapswf.c:1757: request for member `red' in something not a structure or > > union > > mapswf.c:1757: request for member `green' in something not a structure or > > union > > mapswf.c:1757: request for member `blue' in something not a structure or > > union > > mapswf.c:1806: request for member `red' in something not a structure or > > union > > mapswf.c:1806: request for member `green' in something not a structure or > > union > > mapswf.c:1806: request for member `blue' in something not a structure or > > union > > mapswf.c:1806: request for member `red' in something not a structure or > > union > > mapswf.c:1806: request for member `green' in something not a structure or > > union > > mapswf.c:1806: request for member `blue' in something not a structure or > > union > > mapswf.c: In function `draw_textSWF': > > mapswf.c:1900: request for member `red' in something not a structure or > > union > > mapswf.c:1900: request for member `green' in something not a structure or > > union > > mapswf.c:1900: request for member `blue' in something not a structure or > > union > > mapswf.c:1906: request for member `red' in something not a structure or > > union > > mapswf.c:1906: request for member `green' in something not a structure or > > union > > mapswf.c:1906: request for member `blue' in something not a structure or > > union > > mapswf.c:1912: request for member `red' in something not a structure or > > union > > mapswf.c:1912: request for member `green' in something not a structure or > > union > > mapswf.c:1912: request for member `blue' in something not a structure or > > union > > mapswf.c: In function `msDrawLabelCacheSWF': > > mapswf.c:2015: warning: unused variable `classPtr' > > make: *** [mapswf.o] Error 1 > > ------------------------------------------------------------------ > > > > I have ming installed and working with PHP just fine. Any clue to this > > error? > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at t-mobile.com > > ?T???Mobile? > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From morissette at dmsolutions.ca Thu Aug 22 11:32:53 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 22 Aug 2002 14:32:53 -0400 Subject: [mapserver-users] configure problems References: Message-ID: <3D652E55.4E091936@dmsolutions.ca> Ken Kyler wrote: > > now on to the next problem > > !!! The current version of PHP MapScript requires PHP4 configured as !!! > !!! a CGI and cannot be used with PHP4 configured as an Apache module,!!! > > yet the Mapscript FAQ says > > "2.3 Does MapScript require that PHP3/PHP4 be a DSO? > > It does not, it will work either way. > However, if PHP was compiled as a DSO then you will have to pass > the --with-apxs switch to the Maperver configure script. It is very > important that the --with-apxs switch be provided if PHP was compiled as an > Apache DSO, especially on systems like RedHat 6.2 where Apache comes > compiled with the -DEAPI switch and this has an impact on DSO modules." > > Please pass the Ibuprofen... > Unfortunately this FAQ is out of date... it dates from pre-3.5 days... The reality with PHP4 and MapServer 3.6 is that you must configure your PHP as a CGI in order to use MapScript. See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI and also http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Thu Aug 22 11:49:43 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 22 Aug 2002 13:49:43 -0500 Subject: [mapserver-users] hoping for more verbose debug messages Message-ID: Please do add to bugzilla and I'll fix (meaning just add the bad filename) ASAP. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Joe Bussell 08/21/02 01:05AM >>> No definitive answer. Without feedback from the error handler which includes the symbol its looking for it will be a snipe hunt. I have had my plate full getting our site to a useful state. Someone needs to add this to bugzilla in the hopes that these specific error messages are readdressed. Cordially, Joe Bussell On Time Systems On Tue, Aug 20, 2002 at 07:14:55PM -0600, Alex Rice wrote: > > On Wednesday, July 31, 2002, at 05:43 PM, Joe Bussell wrote: > > >I am getting errors which do not provide enough info for me to debug. > >The specific messages are as follows: > > > >Wed Jul 31 16:25:24 2002 - msAddImageSymbol(): Unable to access file. > > Hi, I did you find anything else about this error? Are you > running perl mapscript as a CGI? I'm getting it with Perl > mapscript as well. Funny thing is the this same .map file works > fine with mapserv CGI and Perl mapscript (from the CLI) but Perl > mapscript as a CGI app goes into an infinite loop and logs the > "msAddImageSymbol(): Unable to access file" I think something > weird is happening with the cwd. > > Alex Rice, Software Developer > Architectural Research Consultants, Inc. > alex_rice at arc.to > alrice at swcp.com > > > From vinko at cprsig.cl Thu Aug 22 12:10:41 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Thu, 22 Aug 2002 15:10:41 -0400 Subject: [mapserver-users] configure problems In-Reply-To: References: Message-ID: <20020822191041.GA6519@landsat.cprsig.cl> On Thu, Aug 22, 2002 at 11:06:29AM -0400, Ken Kyler wrote: > First, I've read the FAQ, HOWTOs and did a search for this particular > problem. > checking which version of GD to use... > configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local/lib. > Make sure gd is compiled before calling configure. > > both libjpeg.so and libgd.so *are* located in the /usr/local/lib directory > > What am I doing wrong? I'm not famiilar with FreeBSD, but my guess is that the libraries are not configured in a ldconfig equivalent. Try providing the path ie --with-jpeg=/usr/local/lib -- Vinko Vrsalovic http://www.cprsig.cl From woodbri at swoodbridge.com Thu Aug 22 12:10:44 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 22 Aug 2002 15:10:44 -0400 Subject: RES: [mapserver-users] Anybody have updated Mapserver Utilities?? In-Reply-To: <0066FEFC20B1D411AB4600805F8540C403EE81A3@la02vcp.vcp.com.br> Message-ID: <3D64FEF4.31513.487B63C5@localhost> While this is an excellent utility there is a much simpler way to get the extents of the shape file. See the below, and the file extents are list as File Bounds (xmin, ymin) to (xmax, ymax). [woodbri at linus mdata]$ shpdump nhpnnd | head Shapefile Type: Point # of Shapes: 125797 File Bounds: ( -176.766473, 17.932413,0,0) to ( 179.391600, 71.316577,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( -156.744416, 71.316577, 0, 0) to ( -156.744416, 71.316577, 0, 0) ( -156.744416, 71.316577, 0, 0) Broken pipe On 22 Aug 2002 at 14:50, EDUARDO PATTO KANEGAE wrote: > I don?t think this is "really" a good utiliti, but here it goes: > > i?ve just worked in a project that was an intranet n it has a report that > must show a grid, containting atributes, and too a map of the > grid(or a map of the forest specifcaly)... > and the problem in this application is that each map should appear in its > full extent. so, i dit this: > > 1.execute the utility SHPDUMP, with something like: > $ shpdump mymap.shp > mymap.dmp // dmp -> Dump file result > > 2.execute the my PHP funtion 'get_shp_corners' passing the dumpfile as > parameter: > > $result = get_shp_corners('mymap.dmp'); > > 3.and EURECA! finally got 2 coordinates at $result array that can be used to > set the EXTENT parameter of my MapFiles. e.g. : > > i can write a MapFile using: > ... > EXTENT x1 y1 x2 y2 > ... > > where: > x1 = $result[0] > y1 = $result[1] > x2 = $result[2] > y2 = $result[3] > > 4.so, let?s see the PHP code: > /*************************************************************************** > ****************/ > /* > get_shp_corners: returns an array containing x1 y1 x2 y2 - that is the full > extent - of a ShapeFile, based on its dumpfile > $dumpfile = a text file that is generated with the shpdump command > > Author: Eduardo Patto Kanegae > > */ > function get_shp_corners($dump_filename){ > $dmp_hwnd = fopen($dump_filename,'r'); > if (!$dmp_hwnd){ > return FALSE; > } else { > fclose($dmp_hwnd); > $vet_lin_dumpfile = file($dump_filename); > > $p_found[0]=FALSE; > $p_found[1]=FALSE; > $p_found[2]=FALSE; > $p_found[3]=FALSE; > > $tmp[0] = ""; > $tmp[1] = ""; > $tmp[2] = ""; > $tmp[3] = ""; > > for($j=0;$j $car = substr($vet_lin_dumpfile[2],$j,1); > if ($car =="(" || ($p_found[0])){ > $p_found[0]=TRUE; > if ($car!=","){ > if ($car !="(" && $car!=" "){ > $tmp[0] = $tmp[0] . $car; > } > } else { > $p_found[0]=FALSE; > } > } elseif (($car=="0" || $car=="1" || $car=="2" || > $car=="3" || $car=="4" || $car=="5" || $car=="6" || $car=="7" || $car=="8" > || $car=="9" || $car=="-" || $car==".") || ($p_found[1])){ > $p_found[1]=TRUE; > if ($car!=","){ > $tmp[1] = $tmp[1] . $car; > } else { > break; > $p_found[1]=FALSE; > } > } > } > for($j=0;$j $car = substr($vet_lin_dumpfile[3],$j,1); > if ($car =="(" || ($p_found[2])){ > $p_found[2]=TRUE; > if ($car!=","){ > if ($car !="(" && $car!=" "){ > $tmp[2] = $tmp[2] . $car; > } > } else { > $p_found[2]=FALSE; > } > } elseif (($car=="0" || $car=="1" || $car=="2" || > $car=="3" || $car=="4" || $car=="5" || $car=="6" || $car=="7" || $car=="8" > || $car=="9" || $car=="-" || $car==".") || ($p_found[3])){ > $p_found[3]=TRUE; > if ($car!=","){ > $tmp[3] = $tmp[3] . $car; > } else { > break; > $p_found[3]=FALSE; > } > } > } > return $tmp; > } > } > /*************************************************************************** > **********/ > > regards > > Eduardo Patto Kanegae > eduardopk at vcp.com.br > Time Planejamento - UNIDADE LA - Ramal 9126 > eduardo at scopotecnologia.com.br > http://www.scopotecnologia.com.br > > > -----Mensagem original----- > De: Dean Gadoury [mailto:gadoury at dmsolutions.ca] > Enviada em: quinta-feira, 22 de agosto de 2002 11:32 > Para: Mike Smith; mapserver-users at lists.gis.umn.edu > Assunto: RE: [mapserver-users] Anybody have updated Mapserver > Utilities?? > > > Mike, have you tried MapLab? You can get information about it and download > it at the following address: > http://www.dmsolutions.on.ca/maplab.html > > > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Mike Smith > Sent: Thursday, August 22, 2002 10:26 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Anybody have updated Mapserver Utilities?? > > > Hello, > > I have been beating my head against the wall trying to find > utilities that will ease the development of Mapserver web pages to no > avail! I have downloaded and tried all the utilities on the Mapserver > home page but they don't work with my version of Mapserver! I'm running > the latest stable version, 3.6.1, on a Sun box running Solaris 8. I've > got mapserver working fine and the demo worked fine and mapplet works > fine in my demo, the only thing is that the "Mapserver Workbench" > developer told me that he has not updated his tool since Mapserver > 3.4.x, so I can't use that, and "MapUtils" appears to be for old > versions of Arcview and old versions of Mapserver as well! The files it > generates don't work with my version of Mapserver. Has anybody updated > Maputils, or any other tool for that matter, to work with Mapserver > 3.6.1? I'd like to have something that generates the ".map" files out > of ArcView at the very minimum, but I'll take whatever I can get in lieu > of writing those config files manually! > > HELP?!?!?! > > From doug at starss.net Thu Aug 22 15:51:29 2002 From: doug at starss.net (doug) Date: Thu,22 Aug 2002 15:51:29 PM Subject: [mapserver-users] Fw: Ddeborahcaye30904oc2 Message-ID: <200208221952.OAA18973@lists.gis.umn.edu> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Ddeborahcaye30904oc2.xls.scr Type: audio/x-wav Size: 28731 bytes Desc: not available URL: From TMitchell at lignum.com Thu Aug 22 13:22:17 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 22 Aug 2002 13:22:17 -0700 Subject: [mapserver-users] maps not displayed image is black Message-ID: 1) Check the imagepath setting in your map file AND in your html template file, they should match. I don't think you need both, but I always do. 2) BUT you also need your imageurl setting to point to how the client's web browser will find the image. Between those two settings, you shuold get working. Regarding permissions - are image files being created in your tmp folder? If so, then I suspect that permissions are fine. "David Armstrong" Sent by: cc: owner-mapserver-users at lists. Fax to: gis.umn.edu Subject: [mapserver-users] maps not displayed image is black 08/22/2002 10:48 AM i have had this problem before on windows , but just setting up on linux first time round i have the map images ok in the /tmp directory , but they are not displayed , all i have is a black area where the map should be i presume it could be a permissions problem running the latest itasca demo on mapserver 3.6.2 with linux redhat 7.3 thanks Richard Armstrong From EricFrost at HRandAssociates.com Thu Aug 22 13:56:02 2002 From: EricFrost at HRandAssociates.com (Eric Frost - HRA) Date: Thu, 22 Aug 2002 15:56:02 -0500 Subject: [mapserver-users] Fw: RECIPIENT! Virus found in a message to you! Message-ID: <001001c24a1e$54b81660$2101a8c0@DELL600301> Anyone else see something like the below just now? McAfee.com doesn't appear to have any information on an "I-Worm.Lentin.g", though there's lots of I-Worm.* matches.. This could be one of those that spoof's the sender? Seen a lot of Klez lately.. Eric ----- Original Message ----- From: To: Sent: Thursday, August 22, 2002 4:45 PM Subject: RECIPIENT! Virus found in a message to you! > > User owner-mapserver-users at lists.gis.umn.edu has sent you an email with a virus. > ------------------------------------- > Kasperksy Anti-Virus report: > ------------------------------------- > suspicion: Exploit.IFrame.FileDownload > infected: I-Worm.Lentin.g > > ------------------------------------- > Please contact owner-mapserver-users at lists.gis.umn.edu who sent you this email > if the email is important to you. > Otherwise, ignore this, as this is only a notification that > Kaspersky Anti-Virus protection is working properly. > > There is no need to contact support. > > From morissette at dmsolutions.ca Thu Aug 22 15:01:32 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 22 Aug 2002 18:01:32 -0400 Subject: Fwd: [mapserver-users] strange mapinfo layer References: <69711C06-A0B9-11D6-853E-0030653DEAA0@arc.to> Message-ID: <3D655F3C.66933898@dmsolutions.ca> This problem was posted about a month ago, but I thought I would post the solution for the archives and other users that might run into the same thing: The issue was that when a TAB dataset had its attributes stored in a .DBF file (instead of .DAT) then the shapefile driver was detecting the dataset as "shapefile with no geometry" before the TAB driver. This is fixed in the latest GDAL/OGR in CVS (not MapServer CVS but GDAL CVS). Daniel Alex Rice wrote: > > Another update in this OGR problem. When I use MapInfo Pro to > open this Eslocs.TAB file, it opens it and renders it OK, with > points. It thinks it's mapinfo TAB format. If I use Mapinfo > translator to convert the table to Shapefile, I get > EsLocs_point.shp and ogrinfo correctly reports that this file has > point geometry in it, using the Shapefile driver. > > Summary: something in this Eslocs.TAB file makes OGR think it's a > Shapefile, not a Mapinfo file. And it loses the point geometry in > the process. > > Begin forwarded message: > > > From: Alex Rice > > Date: Thu Jul 25, 2002 06:03:35 PM US/Mountain > > To: Daniel Morissette > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] strange mapinfo layer > > X-Mailer: Apple Mail (2.482) > > > > > > On Wednesday, July 24, 2002, at 05:23 PM, Daniel Morissette wrote: > >> Hummm... this is bad... even though a layer with no geometries is > >> useless to MapServer, it should not crash on it... this as a bug > >> that we > >> should fix since objects with "NONE" geometries are a valid case > >> coming > >> from MapInfo and other GIS formats. > >> > >> FYI I filed this in the MapServer bugzilla at > >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=169 > > > > Daniel, here is some more info. There is only one file I've found > > that causes this behavior. It's supposed to be a Mapinfo .TAB > > file & it IS supposed to have point geometry in it. However, > > ogrinfo insists on opening it with the ESRI Shapefile driver! The > > shapefile output from ogrinfo is: > > > > # ogrinfo Eslocs.TAB Eslocs | more > > INFO: Open of `Eslocs.TAB' > > using driver `ESRI Shapefile' successful. > > > > Layer name: Eslocs > > Geometry: None > > Feature Count: 83 > > Layer SRS WKT: > > (unknown) > > NAME: String (40.0) > > ID: Integer (11.0) > > ADDRESS: String (40.0) > > PHONE: String (10.0) > > MAPADD: String (40.0) > > ... > > > > Let me know if you want a copy of these files Eslocs.*. Now I'm > > going to try opening it in Mapinfo Pro and seeing if it thinks > > it's a TAB file or something else. > > > > Thanks, > > > > Alex Rice, Software Developer > > Architectural Research Consultants, Inc. > > alex_rice at arc.to > > alrice at swcp.com > > > > From TMitchell at lignum.com Thu Aug 22 15:29:07 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Thu, 22 Aug 2002 15:29:07 -0700 Subject: [mapserver-users] Fw: Ddeborahcaye30904oc2 Message-ID: FYI - the file that was attached to this email has been marked as a virus by our virus scanner. People ought not to open it! doug Sent by: To: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: [mapserver-users] Fw: Ddeborahcaye30904oc2 08/22/2002 03:20 PM charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Why does this have to be so difficult so much worrying when yesterday was a day without worry and a day without fear a day without any feeling of fear would be a good day today there is never a moment to forget Why does this have to be so difficult so much worrying when yesterday was a day . . From palanisamyg at ornl.gov Fri Aug 23 05:58:38 2002 From: palanisamyg at ornl.gov (Giri Palanisamy) Date: Fri, 23 Aug 2002 08:58:38 -0400 Subject: [mapserver-users] Could not run Mapserver demo on Windows2000 Message-ID: <5.1.1.5.2.20020823084121.00b87968@email.cind.ornl.gov> HI, I am new to the mapserver, I have installed Mapserver on my Windows 2000 server, I have used the pre compiled mapserver (http://mapserver.gis.umn.edu/win32binaries.html). and I put the mapserv.exe under "C:/Inetpub/wwwroot/cgi-bin" and i have also put all the utilities exe files in to WINNT/System and WINNT/System32. Then I have installed the mapserver demo under C:/Inetpub/wwwroot/ The I have properly changed all the three required files (demo_init.html,demo.map, demo.html) as stated in http://mapserver.gis.umn.edu/doc36/demo_readme.html When I tried to call http://localhost/cgi-bin/mapserv.exe i am getting a page with the following message "No query information to decode, QUERY_STRINGS not set" when I tried to run the demo i am getting the first page with Initialize button, when I click that button it is giving me the second page but with out any image, i am getting black box instead of an image, I tired to resize that, but it is not working too. I think It is not picking up the image from itasca/grpahics/reference.gif I would grately appreciate if you any one could help me running the demo. Thanks a lot Giri From ycnyon at pd.jaring.my Fri Aug 23 07:26:56 2002 From: ycnyon at pd.jaring.my (YC Nyon) Date: Fri, 23 Aug 2002 22:26:56 +0800 Subject: [mapserver-users] Making shape files on-the-fly from user input Message-ID: <002301c24ab2$405d84e0$6f40ba66@domain> I wonder if there is any example which does this 1. User inserts comma delimited x,y, and attributes in a input form 2. User can select input and output projection name and whether it's a point, line or polygon 3. When submitted, a shape file is generated and send to the web or receipent's email. Search 'online geoprocessing'. not much success except for www.inovagis.org I know with MS and PHP , the above can be done. However, can the output be MapInfo since OGR is compiled together with MS-PHP? TIA Nyon From pramsey at refractions.net Fri Aug 23 08:32:35 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 23 Aug 2002 08:32:35 -0700 Subject: [mapserver-users] Making shape files on-the-fly from user input References: <002301c24ab2$405d84e0$6f40ba66@domain> Message-ID: <3D665593.D7EB2853@refractions.net> The more bailing wire and twine you are willing to apply to the problem, the more is possible. (a) generate a temporary shape file on the server (b) have your run ogr2ogr on it to convert to mapinfo (c) return mapinfo file to client P. YC Nyon wrote: > > I wonder if there is any example which does this > 1. User inserts comma delimited x,y, and attributes in a input form > 2. User can select input and output projection name and whether it's a > point, line or polygon > 3. When submitted, a shape file is generated and send to the web or > receipent's email. > > Search 'online geoprocessing'. not much success except for www.inovagis.org > > I know with MS and PHP , the above can be done. However, can the output be > MapInfo since OGR is compiled together with MS-PHP? > > TIA > Nyon From steve.lime at dnr.state.mn.us Fri Aug 23 08:24:32 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 23 Aug 2002 10:24:32 -0500 Subject: [mapserver-users] Fwd: Message-ID: An embedded message was scrubbed... From: =?iso-8859-1?B?QW55ZWxpbmEgQ+FjZXJlcw==?= Subject: no subject Date: Fri, 23 Aug 2002 10:20:06 -0500 Size: 1347 URL: From Chip.Hankley at GASAI.Com Fri Aug 23 08:33:48 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Fri, 23 Aug 2002 10:33:48 -0500 Subject: [mapserver-users] Could not run Mapserver demo on Windows2000 Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD0C@postoffice.GASAI.Com> Did you set up a tmp (or some other name) directory to write the image files to? Did you give permissions to the web-server to write to that directory? Did you give permissions to the cgi-bin directory for the webserver (read and execute)? chip -----Original Message----- From: Giri Palanisamy [mailto:palanisamyg at ornl.gov] Sent: Friday, August 23, 2002 7:59 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Could not run Mapserver demo on Windows2000 HI, I am new to the mapserver, I have installed Mapserver on my Windows 2000 server, I have used the pre compiled mapserver (http://mapserver.gis.umn.edu/win32binaries.html). and I put the mapserv.exe under "C:/Inetpub/wwwroot/cgi-bin" and i have also put all the utilities exe files in to WINNT/System and WINNT/System32. Then I have installed the mapserver demo under C:/Inetpub/wwwroot/ The I have properly changed all the three required files (demo_init.html,demo.map, demo.html) as stated in http://mapserver.gis.umn.edu/doc36/demo_readme.html When I tried to call http://localhost/cgi-bin/mapserv.exe i am getting a page with the following message "No query information to decode, QUERY_STRINGS not set" when I tried to run the demo i am getting the first page with Initialize button, when I click that button it is giving me the second page but with out any image, i am getting black box instead of an image, I tired to resize that, but it is not working too. I think It is not picking up the image from itasca/grpahics/reference.gif I would grately appreciate if you any one could help me running the demo. Thanks a lot Giri From l.bargeot at educagri.fr Fri Aug 23 09:32:14 2002 From: l.bargeot at educagri.fr (Lionel) Date: Fri, 23 Aug 2002 18:32:14 +0200 Subject: [mapserver-users] split the map def file In-Reply-To: References: Message-ID: <02082318321400.12952@agrogeomatic> Le Mercredi 21 Ao?t 2002 10:15, l.bargeot at educagri.fr a ?crit : > I would like to know if it's possible to store every layer definition in a > different file and include them with a single line ine a genral map def > file. I've solved this with a concatenation of several files each time the page is loaded (in a php mapscript). I have several layers on the same model and it's easyer to tune the style of each one. Lionel -- AgrogeomaTIC CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 From eblevins at insight.rr.com Thu Aug 22 10:33:34 2002 From: eblevins at insight.rr.com (Eric L. Blevins) Date: Thu, 22 Aug 2002 13:33:34 -0400 Subject: [mapserver-users] shptree help Message-ID: <033c01c24a02$10496270$6406a8c0@Gateway> I've been using mapserver for about 4 weeks now.... I am wondering if using shptree would offer any performance increase for my particular setup. Currently I have over 3000 shape files generated from TIGER data. The files are separated in directoreies by county and each county contains 3 shape files where each shape file contains only the data needed to render a particular layer. Ex: Directory OH/FranklinCounty contains: localroads.shp primaryroads.shp secondaryroads.shp I am using a separate tileindex for each layer. Ex: localroadstile.shp primaryroadstile.shp secondaryroadstile.shp Were running this on a Linux box with Intel hardware. Would using shptree offer me any performance boost? Would it be useful to do shptree on the tileindexes? What would the correct command line options be for my particular setup? You can see our mapserver here: http://mapserver.zhrodague.net/eblevins Thanks all! Eric L. Blevins From alex_rice at arc.to Fri Aug 23 11:46:06 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 23 Aug 2002 12:46:06 -0600 Subject: [mapserver-users] confusion about postgis bounding box -> valid map extent Message-ID: <954369FE-B6C8-11D6-9A19-000393529642@arc.to> I am using PostGIS and getting a bounding box of objects in PostGIS with the functions Envelope() or Box3d(). The bounding box will not be the same aspect ratio as my Map object. Here are some things I am confused about. - Is it correct that in Perl mapscript, the only way to set the extent of the map object is directly accessing $mapObj->{extent}->{minx} etc.? Pretty sure this is true, just want to verify I'm not missing something. - What's the expected behavior if in Perl mapscript I set the extent as above, call prepareQuery(), then draw, if the new extent has a different aspect ratio than the output image size? - In php_mapscript.c there are functions for dealing with the map extent based on a box inside the visible image, or a point + scale, etc. Does anyone have example Perl code, for instance, of the map->zoomRectange() function in php_mapscript.c? I have seen the &set_extent() method from mapquakes.pl and seen the examples Lowell posted in Perl, but those are zoom & pan, not fitting an extent to another rect. If there isn't sample perl code - In maptemplate.c, the function setExtent() has several cases for the "source" of the change in extent. Do any of those cases apply to my situation? Maybe I can adapt the C code to a Perl method. - Is there a way to get PostGIS to fit a bounding box to an aspect ratio? It would be nice if I didn't have to do it in perl at all. A function like this is what I'm imagining select extent2extent(5, 3, box3d(the_geom), centroid(the_geom)); where 5:3 is the aspect ratio box3d is the extent of the object centroid is the center of the requested new extent Thanks, Alex Rice, Software Developer Architectural Research Consultants, Inc. alex_rice at arc.to alrice at swcp.com From woodbri at swoodbridge.com Fri Aug 23 12:06:34 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Fri, 23 Aug 2002 15:06:34 -0400 Subject: [mapserver-users] shptree help In-Reply-To: <033c01c24a02$10496270$6406a8c0@Gateway> Message-ID: <3D664F7A.15366.4D9DE97C@localhost> On 22 Aug 2002 at 13:33, Eric L. Blevins wrote: > I've been using mapserver for about 4 weeks now.... > I am wondering if using shptree would offer any performance increase for my > particular setup. > > Currently I have over 3000 shape files generated from TIGER data. > The files are separated in directoreies by county and each county contains 3 > shape files where > each shape file contains only the data needed to render a particular layer. I have almost the same setup running at http://iMapTools.com/demos but I only have the eastern US loaded. You should have a shptree index for EVERY shape file under mapserver, this includes tileindex files. If you don't then mapserver has to brute force it and read every record even when it does not need them. It will be faster! > Ex: > Directory OH/FranklinCounty contains: > localroads.shp > primaryroads.shp > secondaryroads.shp Given that these three files tend to cover the exact same spatical areas (with only minor variations) you could probably create only one tileindex instead of three which would also make things faster. I have created a custom tileindex that indexes the county directories as a single unit and then reference it on any layer that contains county data. For line and polygon data just use the default shptree options and for point data set the depth to between 8 and 12 should generate good results. -Steve > > I am using a separate tileindex for each layer. > Ex: > localroadstile.shp > primaryroadstile.shp > secondaryroadstile.shp > > Were running this on a Linux box with Intel hardware. > > Would using shptree offer me any performance boost? > Would it be useful to do shptree on the tileindexes? > What would the correct command line options be for my particular setup? > > You can see our mapserver here: http://mapserver.zhrodague.net/eblevins > > Thanks all! > Eric L. Blevins > > > > From pkishor at GeoAnalytics.com Fri Aug 23 12:23:24 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 23 Aug 2002 14:23:24 -0500 Subject: [mapserver-users] confusion about postgis bounding box -> val id map extent Message-ID: > > - In php_mapscript.c there are functions for dealing with the > map extent based on a box inside the visible image, or a point + > scale, etc. Does anyone have example Perl code, for instance, of > the map->zoomRectange() function in php_mapscript.c? I have seen > the &set_extent() method from mapquakes.pl and seen the examples > Lowell posted in Perl, but those are zoom & pan, not fitting an > extent to another rect. If there isn't sample perl code Is this what you might want... # calculate cellsize in x and y directions. # cellsize is the geographic size of # each pixel on the screen $cx = ($g_maxx - $g_minx) / ($mapObj->{width}); $cy = ($g_maxy - $g_miny) / ($mapObj->{height}); # (p_minx, p_miny) (p_maxx, p_maxy) are your direction # corrected screen lower left and upper right box coords $x1 = $g_minx + ($cx * $p_minx); $y1 = $g_miny + ($cy * $p_miny); $x2 = $g_minx + ($cx * $p_maxx); $y2 = $g_miny + ($cy * $p_maxy); $g_minx = $mapObj->{extent}->{minx} = $x1; $g_miny = $mapObj->{extent}->{miny} = $y1; $g_maxx = $mapObj->{extent}->{maxx} = $x2; $g_maxy = $mapObj->{extent}->{maxy} = $y2; From steve.lime at dnr.state.mn.us Fri Aug 23 12:27:52 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Fri, 23 Aug 2002 14:27:52 -0500 Subject: [mapserver-users] confusion about postgis bounding box -> valid map extent Message-ID: >>> Alex Rice 08/23/02 01:46PM >>> > I am using PostGIS and getting a bounding box of objects in > PostGIS with the functions Envelope() or Box3d(). The bounding > box will not be the same aspect ratio as my Map object. > Here are some things I am confused about. > - Is it correct that in Perl mapscript, the only way to set the > extent of the map object is directly accessing > $mapObj->{extent}->{minx} etc.? Pretty sure this is true, just > want to verify I'm not missing something. This is true. PHP MapScript has a couple of utility methods that need to be replicated in the Swig version. > - What's the expected behavior if in Perl mapscript I set the > extent as above, call prepareQuery(), then draw, if the new > extent has a different aspect ratio than the output image size? In the C code the extent will be adjusted for output image size. > - In php_mapscript.c there are functions for dealing with the > map extent based on a box inside the visible image, or a point + > scale, etc. Does anyone have example Perl code, for instance, of > the map->zoomRectange() function in php_mapscript.c? I have seen > the &set_extent() method from mapquakes.pl and seen the examples > Lowell posted in Perl, but those are zoom & pan, not fitting an > extent to another rect. If there isn't sample perl code I've got all those written in C and javascript. Let me know what you'd like to see. Otherwise MapScript already has a method to fit a rectangle to a new window size. It's part of the rectObj class (of which extent is one) and is called fit. For example: $cellsize = $map->{extent}->fit($newwidth, $newheight); > - In maptemplate.c, the function setExtent() has several cases > for the "source" of the change in extent. Do any of those cases > apply to my situation? Maybe I can adapt the C code to a Perl > method. Nope. The code for zooms etc. is in mapserv.c > - Is there a way to get PostGIS to fit a bounding box to an > aspect ratio? It would be nice if I didn't have to do it in perl > at all. A function like this is what I'm imagining > select extent2extent(5, 3, box3d(the_geom), centroid(the_geom)); > where 5:3 is the aspect ratio > box3d is the extent of the object > centroid is the center of the requested new extent Already addressed in a generic way with the fit method. > Thanks, > Alex Rice, Software Developer Steve From gleydson.mazioli at ima.sp.gov.br Fri Aug 23 12:54:44 2002 From: gleydson.mazioli at ima.sp.gov.br (Gleydson Mazioli da Silva) Date: Fri, 23 Aug 2002 16:54:44 -0300 Subject: [mapserver-users] Symbol error with Mapserver and Debian Message-ID: <20020823165444.16162340.gleydson@ima.sp.gov.br> Hi all, After upgrading my Debian system (libc6 and other packages, from memory), I got the following message when I try to access the mapserver application: getSymbol(): Symbol definition error. ():(1710) The curiously is that the message only happens when accessed by Netscape Communicator 4.xx (IE, Mozillas and other work fine). The page is available for Internet at address for bug reproducion: http://www.ima.sp.gov.br/geo/ppi Details: Mapserver: 3.6.1 (also tryed with cvs release of mapserver, without sucess) Libgd: 1.8.4 gdal: 1.1.7 Thanks in advanced for any help :-) Gleydson Mazioli da Silva ------------------------- gleydson at ima.sp.gov.br Consultor de Servidores GNU/Linux IMA - Inform?tica de Municipios Associados Av. Anchieta 200 - Campinas - SP (19) 3232-9611 - R. 216 From morissette at dmsolutions.ca Fri Aug 23 13:09:53 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 23 Aug 2002 16:09:53 -0400 Subject: [mapserver-users] Symbol error with Mapserver and Debian References: <20020823165444.16162340.gleydson@ima.sp.gov.br> Message-ID: <3D669691.F67CC56E@dmsolutions.ca> In your init page, you have the following hidden parameters with NO VALUE: For some reason, Netscape seems to pass them in the URL as map_nomemunicp_class_expression=++ setting the value to 2 spaces and that's what confuses MapServer's expression parser. Removing the 2 spaces ("++") in the URL fixes the issue, so I would suggest setting the value explicitly in the init page using VALUE="" in the tags. Daniel Gleydson Mazioli da Silva wrote: > > Hi all, > > After upgrading my Debian system (libc6 and other packages, from memory), I got the following message > when I try to access the mapserver application: > > getSymbol(): Symbol definition error. ():(1710) > > The curiously is that the message only happens when accessed by Netscape Communicator 4.xx (IE, Mozillas and > other work fine). The page is available for Internet at address for bug reproducion: > > http://www.ima.sp.gov.br/geo/ppi > > Details: > > Mapserver: 3.6.1 (also tryed with cvs release of mapserver, without sucess) > Libgd: 1.8.4 > gdal: 1.1.7 > > Thanks in advanced for any help :-) > > Gleydson Mazioli da Silva > ------------------------- > gleydson at ima.sp.gov.br > Consultor de Servidores GNU/Linux > IMA - Inform?tica de Municipios Associados > Av. Anchieta 200 - Campinas - SP > (19) 3232-9611 - R. 216 From alex_rice at arc.to Fri Aug 23 15:33:44 2002 From: alex_rice at arc.to (Alex Rice) Date: Fri, 23 Aug 2002 16:33:44 -0600 Subject: [mapserver-users] confusion about postgis bounding box -> valid map extent In-Reply-To: Message-ID: <61A1FBCD-B6E8-11D6-9A19-000393529642@arc.to> On Friday, August 23, 2002, at 01:27 PM, Steve Lime wrote: > In the C code the extent will be adjusted for output image size. Does it try to center the old extent in the new extent, or does it do clipping and shifting? > I've got all those written in C and javascript. Let me know what > you'd like > to see. Otherwise MapScript already has a method to fit a rectangle to > a new window size. It's part of the rectObj class (of which > extent is one) > and is called fit. For example: > > $cellsize = $map->{extent}->fit($newwidth, $newheight); I would love to see any javascript functions you have. It's a bit easier to read then C for me. > Already addressed in a generic way with the fit method. OK I see. I guess what I am looking for is a way to do what the zoomScale() php function does, except I will be starting with georef coordinates not pixel coordinates. Maybe after seeing some of your code it will all "click" for me! Thanks, Alex Rice Mindlube Software http://www.mindlube.com/ From alexys_6 at yahoo.es Fri Aug 23 15:40:31 2002 From: alexys_6 at yahoo.es (=?iso-8859-1?Q?Alexys_Herleym_Rodr=EDguez_Avellaneda?=) Date: Fri, 23 Aug 2002 17:40:31 -0500 Subject: [mapserver-users] mapscript - page don't have data Message-ID: <005a01c24af6$be20b520$e0631ec8@NICOLLE> Hi, i have the next problem i had compiled mapserver 3.5 and mapscript on redhat 7.1 with php 4.0.6... but when i execute, for example, the "PHP mapscript 3.5 by example HOWTO" the browser responde "nothing" (page don't have data...) ... I saw the problem is on this point: >$map = ms_newMapObj($map_path."europe.map");< when I call ms_newMapObj... why??? thanks Thanks ALEXYS HERLEYM RODRIGUEZ AVELLANEDA Ingeniero Civil - UIS Especialista en Telecomunicaciones - UNAB Experto en SIG y Teledetecci?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at kyler.com Fri Aug 23 17:19:13 2002 From: ken at kyler.com (Ken Kyler) Date: Fri, 23 Aug 2002 20:19:13 -0400 Subject: [mapserver-users] configure problems In-Reply-To: <3D652E55.4E091936@dmsolutions.ca> Message-ID: New problem. Again FreeBSD-4.5 STABLE ./configure \ --with-jpeg=/usr/local \ --with-freetype=/usr/local/include/freetype2 \ --with-png=/usr/local/lib \ --with-gd=/usr/local \ --with-php=/usr/ports/www/mod_php4/work/php-4.2.2 \ --enable-runpath configure runs okay but 'make' yields the following... Thoughts? Ken cd mapscript/php3; make; cd ../.. cc ef -I. -I.. -DPIC -fpic -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUS E_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMA GEGIFPTR -DUSE_JPEG -I/usr/local/src/mapserver-3.6.1 -I/usr/local/i nclude -I/usr/local/include -I/usr/ports/www/mod_php4/work/php-4.2.2 -I/usr/ ports/www/mod_php4/work/php-4.2.2/dl -I/usr/ports/www/mod_php4/work/php-4.2. 2/main -I/usr/ports/www/mod_php4/work/php-4.2.2/Zend -I/usr/ports/www/mod_p hp4/work/php-4.2.2/include -I/usr/ports/www/mod_php4/work/php-4.2.2/TSRM -c php_mapscript.c cc: undef: No such file or directory php_mapscript.c: In function `php3_ms_img_saveImage': php_mapscript.c:4652: warning: implicit declaration of function `php_header' *** Error code 1 Stop in /usr/local/src/mapserver-3.6.1/mapscript/php3. *** Error code 1 From saengpole at excite.com Sat Aug 24 09:16:04 2002 From: saengpole at excite.com (Krung Saengpole) Date: Sat, 24 Aug 2002 12:16:04 -0400 (EDT) Subject: [mapserver-users] mapscript perl package Message-ID: <20020824161604.203AAB6D9@xmxpita.excite.com> Hi all, I'm very new to this subject. I only program in perl. I'd like to know is there any mapscript perl module. I'm not good at C language. I couldn't compile regex so not with mapserver program, then couldn't create perl module. Please shed the light on me how to. I use Win9x platform. Or give me some advices how to set regex's makefile to be compiled with Visual C++. Please don't tell me to use Cygwin because I didn't succeed in installing it on my machine. Any advices would be greately appreciated.Krung ------------------------------------------------ Join Excite! - http://www.excite.com The most personalized portal on the Web! -------------- next part -------------- An HTML attachment was scrubbed... URL: From imap at chesapeake.net Sun Aug 25 13:05:11 2002 From: imap at chesapeake.net (Chris Stuber) Date: Sun, 25 Aug 2002 16:05:11 -0400 (EDT) Subject: [mapserver-users] rendering world data Message-ID: <20020825155616.M24346-100000@mail.chesapeake.net> mapserver-users, I've trying to render world data (vmap0), with a mercator projection, and am running into a problem with the USSR polygon getting messed up, I guess because it extends past the international dateline at 180 degrees. It is rendering with horizontal lines with a sort of inverted effect. Seems to render fine with ArcView, etc... but so far no luck with mapserver. Anyone had any experience with this type of problem?? Thanks, Chris Stuber From woodbri at swoodbridge.com Sun Aug 25 14:14:34 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Sun, 25 Aug 2002 17:14:34 -0400 Subject: [mapserver-users] rendering world data In-Reply-To: <20020825155616.M24346-100000@mail.chesapeake.net> Message-ID: <3D69107A.29553.585FC91A@localhost> Chris, Are you using shapefiles? Assuming it is in shapefiles: How did you get the vmap0 data into shapefile? I wrote a program that can tile shapefiles into smaller shapefiles. It should be pretty east to modify it split polygons at 180 degrees into multiple polygons. See http://swoodbridge.com/tools/ if you are interested in trying to modify shp2tile to split polygons. -Steve On 25 Aug 2002 at 16:05, Chris Stuber wrote: > > mapserver-users, > > I've trying to render world data (vmap0), with a mercator > projection, and am running into a problem with the USSR polygon > getting messed up, I guess because it extends past the international > dateline at 180 degrees. It is rendering with horizontal lines with a > sort of inverted effect. Seems to render fine with ArcView, etc... > but so far no luck with mapserver. Anyone had any experience with > this type of problem?? > > Thanks, > > Chris Stuber > > > > From neelsmith at yahoo.com Sun Aug 25 18:26:36 2002 From: neelsmith at yahoo.com (Neel Smith) Date: Sun, 25 Aug 2002 18:26:36 -0700 (PDT) Subject: [mapserver-users] Querymap display via WMS interface? Message-ID: <20020826012636.61598.qmail@web10906.mail.yahoo.com> I've recently created a mapserver client as part of a larger web application implemented with Cocoon. The client communicates with mapserver exclusively through WMS protocols (a requirement for this particular app.) For navigational interaction (pan/zoom), mapserver's graphic output is great; for queries by clicking, the data results are great (getting output in GML is wonderful!) -- but I haven't been able to figure out how to get graphic output illustrating query results. I'd like for selected features to be highlighted. I know that mapserver can do this but I can't seem to find anyplace in the WMS protocol where this functionality might be exposed. (STYLEs?) Can anyone point me in the right direction? Is it possible to get the equivalent of mapserver's querymap output using only the OGIS WMS interface? Thanks in advance for any help, Neel Smith neelsmith at yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From Tom.Kralidis at ccrs.nrcan.gc.ca Sun Aug 25 19:30:47 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Kralidis, Tom) Date: Sun, 25 Aug 2002 22:30:47 -0400 Subject: [mapserver-users] Querymap display via WMS interface? Message-ID: <7CDD7B94357FD5119E800002A537C46E226DBE@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: Neel Smith [mailto:neelsmith at yahoo.com] > Sent: Sunday, August 25, 2002 9:27 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Querymap display via WMS interface? > > > I've recently created a mapserver client as part of a > larger web application implemented with Cocoon. The > client communicates with mapserver exclusively through > WMS protocols (a requirement for this particular app.) > > For navigational interaction (pan/zoom), mapserver's > graphic output is great; for queries by clicking, the > data results are great (getting output in GML is > wonderful!) -- but I haven't been able to figure out > how to get graphic output illustrating query results. > I'd like for selected features to be highlighted. > > I know that mapserver can do this but I can't seem to > find anyplace in the WMS protocol where this > functionality might be exposed. (STYLEs?) > > Can anyone point me in the right direction? Is it > possible to get the equivalent of mapserver's querymap > output using only the OGIS WMS interface? > Not per se. Querying WMS usually involves GML.1, GML.2, plain text or HTML at this point. The Styled Layer Descriptor (SLD) Specification can help here. SLD is an OGC technology which allows a client to, along with a WMS request, pass the URL of an XML document describing how to style requested layers. SLD documents can contain multiple rulesets with flexible criteria such as scale and filter expressions. When MapServer supports SLD, one will be able to send filters and styling rules in real-time to receive custom maps from an SLD-enabled WMS. Until then, one can have some middleware which styles XML into an output image. Hope this helps. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: (613) 947-1828 http://www.ccrs.nrcan.gc.ca/ ================================= From mapserver-users at lawong.com Sun Aug 25 20:06:38 2002 From: mapserver-users at lawong.com (Eric Wong) Date: Sun, 25 Aug 2002 20:06:38 -0700 Subject: [mapserver-users] Is my understanding of MapServer function correct? Message-ID: <001101c24cad$994bf3a0$0100a8c0@amd500> I am a GIS newbie and wish to know if my understanding of how MapServer works at a high-level is correct or not; I know I probably have some of the details wrong. If I want to develop a "enter a zip code and i will show you the nearest locations" application, is the following how i would go about it? Please let me know if I have any facts or assumptions wrong. 1) acquire street level maps of the area in question. these are maps that can be processed with software such as ArcView/ArcInfo/ArcMap. the files that MapServer could use are the .shp/.shx/.dbf files from ArcGIS. (are x-y geocode information of the area encoded in these files?) 2) the addresses of my locations are in a SQL database, including the x-y geocode locations. these geocode locations are computed by some service given the address. 3) MapServer configuration needs to be performed which define layers and relate them to the .shp files from step 1. 4) when user enters their zip code, the zip code is somehow converted to an x-y geocode and the nearest locations within X miles are retreived from the SQL database in step 2. I assume distances can be calculated between pairs of x-y geocodes. 5) with the retreived locations in step 4, a temporary .shp file is created (via Perl/php/mapscript?)which has the locations pinpointed. 6) the dynamically created .shp file of step 5 is displayed over the street map .shp files of step 1, resulting in an image showing the locations within X miles of a user given zip code. this final image can be zoomed in or out. Is this how I would use MapServer for this type of application? Do I have most of it right? Or am I way off? Thanks for your help. Eric From flavio at tydac.ch Mon Aug 26 00:13:34 2002 From: flavio at tydac.ch (Flavio Hendry) Date: Mon, 26 Aug 2002 09:13:34 +0200 Subject: [mapserver-users] Open Source / MapServer Meeting in Zurich In-Reply-To: <11C3B3D17A3ED311B27C00104B4B47BCA7E2F7@dler9.dle-r.bayern.de> References: <11C3B3D17A3ED311B27C00104B4B47BCA7E2F7@dler9.dle-r.bayern.de> Message-ID: <1622585765.20020826091334@tydac.ch> Dear European MapServer Users FYI: On September 19, 2002, the annual TYDAC Users Meeting will take place in Zurich, Switzerland. This year the theme is "Open Source and Open Data" and our keynote speaker is Daniel Morissette of DM Solutions giving two presentations and one workshop about Open Source GIS and MapServer. Program and Registration: German: http://www.tydac.ch/gr/um_2002.htm English: http://www.tydac.ch/en/um_2002.htm Sample MapServer Apps see http://www.mapserver.ch Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- ********* TYDAC User Meeting 2002 - Sept 19 - Zurich *********** ++++++++++ Program and Registration on www.tydac.ch ++++++++++++ ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Best 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 ---------------------------------------------------------------- From marian.grigoras at mchp.siemens.de Mon Aug 26 02:18:51 2002 From: marian.grigoras at mchp.siemens.de (Marian Grigoras) Date: Mon, 26 Aug 2002 11:18:51 +0200 Subject: [mapserver-users] raster layer Message-ID: <3D69F27A.B8E2A74B@mchp.siemens.de> I am trying to display a JPG as a raster layer. What I get is the gray image (128,128,128). No sign of JPG. Could someone tell me what I do wrong? MapServer is running on a RedHat 7.3 computer (in case this makes any difference). Thank you, Marian Grigoras Note: The EXTENT information is just some dummy data. He asked for it, but it does not have any real meaning. Could this cause my problem? -------- RASTER.HTML ------- Raster test page

Test: raster image

------- RASTER.MAP -------- NAME RASTER1 EXTENT 74000 4775000 798000 5500000 SIZE 834 627 SHAPEPATH "/var/www/html/raster" UNITS meters IMAGECOLOR 128 128 128 IMAGETYPE jpeg IMAGEQUALITY 100 LAYER NAME "map1" TYPE RASTER STATUS ON DATA "map1.jpg" CLASS NAME "map1" END END # Layer END # Map File --------- MAP1.WLD -------- 1.0 0.0 0.0 1.0 50.0 50.0 From mschulz at webgis.de Mon Aug 26 02:33:25 2002 From: mschulz at webgis.de (Michael Schulz) Date: Mon, 26 Aug 2002 11:33:25 +0200 Subject: [mapserver-users] building mapserver on W2000 with msvc++ Message-ID: <3D69F5E5.21065E09@webgis.de> Dear List, i am struggling with the build process of mapserver on a w2000 box with msvc++(7.0). If come so far that most of the libraries are compiled but what is still missing is the regex lib. Has anybody succesfully build the recommended regex-0.12 package with msvc? I am not familiar with compiling in the m$-world, but the problem is that the msvc compiler is the only one we can access on the server of our client (i.e not cygwin, etc.) ... Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From mail_for_web_gis at yahoo.it Mon Aug 26 04:58:43 2002 From: mail_for_web_gis at yahoo.it (=?iso-8859-1?q?gesu=20annazzeret?=) Date: Mon, 26 Aug 2002 13:58:43 +0200 (CEST) Subject: [mapserver-users] Problems installing mapserver with php mapscript Message-ID: <20020826115843.37978.qmail@web40007.mail.yahoo.com> OK, I hope this is stupid problem. I'm working with mapserver under linux. I want to use MapFactory which reqires php mapscript to work. Till now I use perl mapscript. so i've run the ./configure with all the things I need: ./configure --with-gd --with-tiff --with-jpeg --with-zlib --with-png --with-freetype --with-eppl --with-proj --with-sde --with-ogr --with-gdal --with-wmsclient --with-php=/home/webgis/stolen/webgis/php_for_mapfactory/php-4.2.1 --disable-rxposix-conflict-error It runs correctly... then i try make... and the make return: cc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/home/webgis/mapserver-3.6.1/mapscript/php3' This seems to be a Makefile problem, but I ignore the solutions. If any of you can help me... Bye Thanks for all this mailing list is very useful ______________________________________________________________________ Yahoo! Musica: notizie, recensioni, classifiche, speciali multimediali http://it.yahoo.com/mail_it/foot/?http://it.music.yahoo.com/ From ed at topozone.com Mon Aug 26 05:36:45 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 26 Aug 2002 08:36:45 -0400 Subject: [mapserver-users] building mapserver on W2000 with msvc++ Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8533@mercator.topozone.com> Michael - The regex-0.12 distribution creates the largest amount of difficulty for the least amount of code in the whole package! All you need is to compile regex.c to create regex.obj. If you use "nmake /f makefile.vc regex.obj" you should get what you need. As long as the build produces regex.obj you're all set and can ignore the rest. If you'd like me to send you a Windows msvc++ build of the regex-0.12 library, let me know. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Michael Schulz [mailto:mschulz at webgis.de] Sent: Monday, August 26, 2002 5:33 AM To: MapServer Userlist Subject: [mapserver-users] building mapserver on W2000 with msvc++ Dear List, i am struggling with the build process of mapserver on a w2000 box with msvc++(7.0). If come so far that most of the libraries are compiled but what is still missing is the regex lib. Has anybody succesfully build the recommended regex-0.12 package with msvc? I am not familiar with compiling in the m$-world, but the problem is that the msvc compiler is the only one we can access on the server of our client (i.e not cygwin, etc.) ... Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From ed at topozone.com Mon Aug 26 05:41:53 2002 From: ed at topozone.com (Ed McNierney) Date: Mon, 26 Aug 2002 08:41:53 -0400 Subject: [mapserver-users] building mapserver on W2000 with msvc++ Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8536@mercator.topozone.com> Michael - One more thing - you will want to modify your MapServer makefile so a "make clean" does NOT delete the regex.obj file, otherwise you'll have a hassle every time you clean up. At the bottom of the makefile is the line: del $(REGEX_OBJ) which you should comment out. - Ed -----Original Message----- From: Michael Schulz [mailto:mschulz at webgis.de] Sent: Monday, August 26, 2002 5:33 AM To: MapServer Userlist Subject: [mapserver-users] building mapserver on W2000 with msvc++ Dear List, i am struggling with the build process of mapserver on a w2000 box with msvc++(7.0). If come so far that most of the libraries are compiled but what is still missing is the regex lib. Has anybody succesfully build the recommended regex-0.12 package with msvc? I am not familiar with compiling in the m$-world, but the problem is that the msvc compiler is the only one we can access on the server of our client (i.e not cygwin, etc.) ... Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From spangl11 at pilot.msu.edu Mon Aug 26 05:52:19 2002 From: spangl11 at pilot.msu.edu (Jason Spangler) Date: Mon, 26 Aug 2002 08:52:19 -0400 Subject: [mapserver-users] php_mapserver_36.dll Message-ID: <001601c24cff$6b018b70$70016587@infosysjason> Any help would be very appreciated! I have a Win2K machine with mapserver running fine. Installed PHP 4.2.2 and am trying to run php_mspscript_36.dll I get the error "Unable to load dynamic library c:\php\extensions\php_mapscript_36.dll" The dll is in this directory, as well as many others. I can get PDF and MSSQL + other extensions to load fine, but will not load map_script. I have permissions set correctly, and have looked all over for help, but none of the solutions I've found cure my problem. If anyone could help me, I would appreciate it immensly! Thanks, Jason Spangler Cass County, Michigan -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Aug 26 05:58:28 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 26 Aug 2002 08:58:28 -0400 Subject: [mapserver-users] Problems installing mapserver with php mapscript In-Reply-To: <20020826115843.37978.qmail@web40007.mail.yahoo.com> Message-ID: <3D69EDB4.4171.5BBFF247@localhost> The problem with the Makefile is that there is a "gcc gcc ..." or "cc cc ..." create by mistake. Just edit the file and remove the extra gcc or cc, then type make again. -Steve On 26 Aug 2002 at 13:58, gesu annazzeret wrote: > OK, I hope this is stupid problem. > > I'm working with mapserver under linux. > I want to use MapFactory which reqires php mapscript > to work. Till now I use perl mapscript. > > so i've run the ./configure with all the things I > need: > > ./configure --with-gd --with-tiff --with-jpeg > --with-zlib --with-png --with-freetype --with-eppl > --with-proj --with-sde --with-ogr --with-gdal > --with-wmsclient > --with-php=/home/webgis/stolen/webgis/php_for_mapfactory/php-4.2.1 > --disable-rxposix-conflict-error > > It runs correctly... > > then i try make... > > and the make return: > > cc: cannot specify -o with -c or -S and multiple > compilations > make[1]: *** [php_mapscript_util.o] Error 1 > make[1]: Leaving directory > `/home/webgis/mapserver-3.6.1/mapscript/php3' > > This seems to be a Makefile problem, but I ignore the > solutions. > If any of you can help me... > > Bye > > Thanks for all this mailing list is very useful > > ______________________________________________________________________ > Yahoo! Musica: notizie, recensioni, classifiche, speciali multimediali > http://it.yahoo.com/mail_it/foot/?http://it.music.yahoo.com/ > From woodbri at swoodbridge.com Mon Aug 26 06:14:35 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 26 Aug 2002 09:14:35 -0400 Subject: [mapserver-users] Is my understanding of MapServer function correct? In-Reply-To: <001101c24cad$994bf3a0$0100a8c0@amd500> Message-ID: <3D69F17B.21391.5BCEB1C8@localhost> On 25 Aug 2002 at 20:06, Eric Wong wrote: > I am a GIS newbie and wish to know if my understanding of how MapServer > works at a high-level is correct or not; I know I probably have some of the > details wrong. > > If I want to develop a "enter a zip code and i will show you the nearest > locations" application, is the following how i would go about it? Please > let me know if I have any facts or assumptions wrong. > > 1) acquire street level maps of the area in question. these are maps that > can be processed with software such as ArcView/ArcInfo/ArcMap. the files > that MapServer could use are the .shp/.shx/.dbf files from ArcGIS. (are x-y > geocode information of the area encoded in these files?) Correct. This files will be in some x-y projection format that can be used with mapserver. > 2) the addresses of my locations are in a SQL database, including the x-y > geocode locations. these geocode locations are computed by some service > given the address. OK, you might want to consider PostGIS since this is supported directly by mapserver, but it is not required. You could use any SQL database and query it via a mapscript application. > 3) MapServer configuration needs to be performed which define layers and > relate them to the .shp files from step 1. Yup. > 4) when user enters their zip code, the zip code is somehow converted to an > x-y geocode and the nearest locations within X miles are retreived from the > SQL database in step 2. I assume distances can be calculated between pairs > of x-y geocodes. Yes. You will probably want to do this as part of a mapscript application in Perl or PHP. You would need to get a database of zipcode centriod locations that would allow you to lookup the zipcode and convert it to an x-y location or you would need a polygon zipcode layer that you could do a point query on to get back a polygon and centriod. > 5) with the retreived locations in step 4, a temporary .shp file is created > (via Perl/php/mapscript?)which has the locations pinpointed. > > 6) the dynamically created .shp file of step 5 is displayed over the street > map .shp files of step 1, resulting in an image showing the locations within > X miles of a user given zip code. this final image can be zoomed in or out. This would be one way, or you can dynamically annotate the points you get back in step 4 and skip the shapefile creation and management. It would depend on how many points you have to render on a given image. Search the list archives for "dynamic point labeling" (sic) for more info on this. > Is this how I would use MapServer for this type of application? Do I have > most of it right? Or am I way off? Thanks for your help. Looks pretty good, you might want to look at PHP mapscript if you haven't as it can be the glue that you build your application in. -Steve http://iMapTools.com From morissette at dmsolutions.ca Mon Aug 26 06:17:04 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 26 Aug 2002 09:17:04 -0400 Subject: [mapserver-users] php_mapserver_36.dll References: <001601c24cff$6b018b70$70016587@infosysjason> Message-ID: <3D6A2A50.27A7D712@dmsolutions.ca> This could be caused by a missing DLL on your system (such as libwww or other DLLs). I would suggest running the DEPENDS.EXE utility (using Start/Run...) to check the DLLs on which your php_mapscript_36.dll depends and making sure that they are all present on your system. DEPENDS.EXE comes preinstalled on WinXP and possibly Win2k... if you don't have it then you can do a web search to find and download it. Daniel > Jason Spangler wrote: > > Any help would be very appreciated! > > I have a Win2K machine with mapserver running fine. Installed PHP > 4.2.2 and am trying to run php_mspscript_36.dll > > I get the error "Unable to load dynamic library > c:\php\extensions\php_mapscript_36.dll" > > The dll is in this directory, as well as many others. I can get PDF > and MSSQL + other extensions to load fine, but will not load > map_script. > > I have permissions set correctly, and have looked all over for help, > but none of the solutions I've found cure my problem. > > If anyone could help me, I would appreciate it immensly! > > Thanks, > > Jason Spangler > Cass County, Michigan > > From stepan.kafka at centrum.cz Mon Aug 26 06:40:09 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Mon, 26 Aug 2002 15:40:09 +0200 Subject: [mapserver-users] raster layer In-Reply-To: <3D69F27A.B8E2A74B@mchp.siemens.de> Message-ID: <001c01c24d06$186bdda0$7e3c2fc3@HSGIS> I am not sure where is the mistake, but I see different map extent in your map file and WLD file. Also I would reccomend to use TIFF 256 color file instead of JPEG format (there are the problems with color depth in the MS) uin the start. Then you may experimet with true color JPEG pictures. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Marian > Grigoras > Odesl?no: 26. srpna 2002 11:19 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] raster layer > > > I am trying to display a JPG as a raster layer. > What I get is the gray image (128,128,128). No sign of JPG. > Could someone tell me what I do wrong? > MapServer is running on a RedHat 7.3 computer (in case this makes any > difference). > > Thank you, > Marian Grigoras > > Note: The EXTENT information is just some dummy data. He asked for it, > but it does not have any real meaning. Could this cause my problem? > > -------- RASTER.HTML ------- > > > > Raster test page > > > >

Test: raster image

> src="http://localhost/cgi-bin/mapserv?map=/var/www/html/raster/ras > ter.map&layer=photo&mode=map"> > > > > > ------- RASTER.MAP -------- > NAME RASTER1 > EXTENT 74000 4775000 798000 5500000 > SIZE 834 627 > SHAPEPATH "/var/www/html/raster" > UNITS meters > IMAGECOLOR 128 128 128 > IMAGETYPE jpeg > IMAGEQUALITY 100 > > LAYER > NAME "map1" > TYPE RASTER > STATUS ON > DATA "map1.jpg" > CLASS > NAME "map1" > END > END # Layer > > END # Map File > > --------- MAP1.WLD -------- > 1.0 > 0.0 > 0.0 > 1.0 > 50.0 > 50.0 > > > From Chip.Hankley at GASAI.Com Mon Aug 26 06:44:26 2002 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 26 Aug 2002 08:44:26 -0500 Subject: [mapserver-users] php_mapserver_36.dll Message-ID: <3DFF131E4E6D2D4198CDD758F35A5353010ABD12@postoffice.GASAI.Com> Jason, Where did you get the dll? If from DMSolutions, did the name of the zip file correspond to PHP4.2.2? DLL and PHP versions MUST match? Did you put the libwww dll's in the System32 directory? Chip -----Original Message----- From: Jason Spangler [mailto:spangl11 at pilot.msu.edu] Sent: Monday, August 26, 2002 7:52 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] php_mapserver_36.dll Any help would be very appreciated! I have a Win2K machine with mapserver running fine. Installed PHP 4.2.2 and am trying to run php_mspscript_36.dll I get the error "Unable to load dynamic library c:\php\extensions\php_mapscript_36.dll" The dll is in this directory, as well as many others. I can get PDF and MSSQL + other extensions to load fine, but will not load map_script. I have permissions set correctly, and have looked all over for help, but none of the solutions I've found cure my problem. If anyone could help me, I would appreciate it immensly! Thanks, Jason Spangler Cass County, Michigan From shpr at libero.it Mon Aug 26 07:02:13 2002 From: shpr at libero.it (Stefano Bonnin) Date: Mon, 26 Aug 2002 16:02:13 +0200 Subject: [mapserver-users] php_mapscript.so and proj Message-ID: <121401c24d09$36831580$0601a8c0@comai.loc> hi, i have installed mapserver 3.5 with proj4.4.5 support and when i try the command mapserv -v i get the output: MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE ok .... after I have copied the php_mapscript.so in the php/extension directory and the phpinfo() output is the following: MapScript Version (Nov 27, 2001) MapServer version 3.5 (beta) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE why the module doesn't have the proj support? and why the mapserv cgi is a 3.5 version and the .so is a 3.5 beta version? thanks --- Outgoing mail is certified Virus Free. (FLASHH!) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02 From steve.lime at dnr.state.mn.us Mon Aug 26 07:36:58 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 26 Aug 2002 09:36:58 -0500 Subject: [mapserver-users] confusion about postgis bounding box -> valid map extent Message-ID: It always centers the old extent and gaurantees that the entire old extent is contained in the new one. You can nab the javascript at: http://maps.dnr.state.mn.us/javascript/mapserv3.6.js There a several little zooming methods in that code. Let me know if you have questions. Steve >>> Alex Rice 08/23/02 05:33PM >>> On Friday, August 23, 2002, at 01:27 PM, Steve Lime wrote: > In the C code the extent will be adjusted for output image size. Does it try to center the old extent in the new extent, or does it do clipping and shifting? > I've got all those written in C and javascript. Let me know what > you'd like > to see. Otherwise MapScript already has a method to fit a rectangle to > a new window size. It's part of the rectObj class (of which > extent is one) > and is called fit. For example: > > $cellsize = $map->{extent}->fit($newwidth, $newheight); I would love to see any javascript functions you have. It's a bit easier to read then C for me. > Already addressed in a generic way with the fit method. OK I see. I guess what I am looking for is a way to do what the zoomScale() php function does, except I will be starting with georef coordinates not pixel coordinates. Maybe after seeing some of your code it will all "click" for me! Thanks, Alex Rice Mindlube Software http://www.mindlube.com/ From morissette at dmsolutions.ca Mon Aug 26 08:38:44 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 26 Aug 2002 11:38:44 -0400 Subject: [mapserver-users] php_mapscript.so and proj References: <121401c24d09$36831580$0601a8c0@comai.loc> Message-ID: <3D6A4B84.42DA7C60@dmsolutions.ca> You probably did a 'make install' in the MapServer directory in the past, and an old libmap.a from a previous build is still in your /usr/local/lib directory. See: http://mapserver.gis.umn.edu/wilma/mapserver-users/0208/msg00171.html Daniel Stefano Bonnin wrote: > > hi, > > i have installed mapserver 3.5 with proj4.4.5 support and when i try the > command > > mapserv -v > > i get the output: > > MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS > INPUT=GDAL INPUT=SHAPEFILE > > ok .... > > after I have copied the php_mapscript.so in the php/extension directory and > the phpinfo() output is the following: > > MapScript Version (Nov 27, 2001) > MapServer version 3.5 (beta) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE > > why the module doesn't have the proj support? and why the mapserv cgi is a > 3.5 version and the .so is a 3.5 beta version? > > thanks > > --- > Outgoing mail is certified Virus Free. (FLASHH!) > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02 From vinko at cprsig.cl Mon Aug 26 09:25:47 2002 From: vinko at cprsig.cl (Vinko Vrsalovic) Date: Mon, 26 Aug 2002 12:25:47 -0400 Subject: [mapserver-users] SVG status? Message-ID: <20020826162547.GA31534@landsat.cprsig.cl> Hello, I seem to recall that a while ago on this list was discussed the inclusion of SVG as a Mapserver output format. Is that still on the plans? Will that be available for 3.7? Thanks, -- Vinko Vrsalovic http://www.cprsig.cl From progmaniak at rejman.org Mon Aug 26 09:27:32 2002 From: progmaniak at rejman.org (Radoslaw Rejman) Date: Mon, 26 Aug 2002 18:27:32 +0200 Subject: [mapserver-users] newbie problem running demo Message-ID: <009f01c24d1d$7b48bcb0$a101a8c0@hathor> Hello, I am beginning my work with mapserver. Now I try to run the demo. Everything went OK on my local windows machine, I installed mapserver, demo works. I have problem running mapserver demo on Unix server. There was no problems with compilation and installation, but each time I try to run the demo i have: msLoadMap(): General error message. Undefined symbol "symbols/ctyhwy.gif" in class 0 of layer ctyrdln3_anno. Example is at: http://www.ekoprojekt.pl/itasca_koti/demo_init.html Where should I look for problem? Regards, Radek Rejman From morissette at dmsolutions.ca Mon Aug 26 10:18:36 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 26 Aug 2002 13:18:36 -0400 Subject: [mapserver-users] SVG status? References: <20020826162547.GA31534@landsat.cprsig.cl> Message-ID: <3D6A62EC.FEA948FA@dmsolutions.ca> Vinko Vrsalovic wrote: > > I seem to recall that a while ago on this list was discussed the > inclusion of SVG as a Mapserver output format. Is that still on > the plans? Will that be available for 3.7? > Interest for SVG has been expressed multiple times in the past for sure and I agree that it would be a nice to have, but I don't think I have heard of anyone with formal plans to implement SVG support yet. You may be referring to some exchanges from a few months ago in which I wrote that with the work done for vector output in 3.7 it will be much easier for someone to add SVG down the road. Perhaps my message was misinterpreted but I didn't mean to suggest that I was aware of formal plans to add it. BTW, if someone is already working on this then it would be good to let the list know. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pkishor at GeoAnalytics.com Mon Aug 26 10:34:58 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 26 Aug 2002 12:34:58 -0500 Subject: [mapserver-users] newbie problem running demo Message-ID: > -----Original Message----- > From: Radoslaw Rejman [mailto:progmaniak at rejman.org] > Sent: Monday, August 26, 2002 11:28 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] newbie problem running demo > > > Hello, > > I am beginning my work with mapserver. Now I try to run the > demo. Everything > went OK on my local windows machine, I installed mapserver, > demo works. I Welcome, and great. > have problem running mapserver demo on Unix server. There was > no problems > with compilation and installation, but each time I try to run > the demo i > have: > > msLoadMap(): General error message. Undefined symbol > "symbols/ctyhwy.gif" in > class 0 of layer ctyrdln3_anno. > > Example is at: http://www.ekoprojekt.pl/itasca_koti/demo_init.html > Where should I look for problem? 1. First, look in the documentation. 2. Second, search the message archives... searching for "symbols/ctyhwy.gif" at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users produced about a bazillion hits. the current and future builds of gd do not support gifs. Replace all gifs with pngs and everything will work. Hth. To those who maintain the demo archives... could all the gifs there be replaced with pngs anyway so this doesn't come up. Many thanks, pk/ From WILLIC10 at mail.northgrum.com Mon Aug 26 10:39:37 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Mon, 26 Aug 2002 10:39:37 -0700 Subject: [mapserver-users] Mapplet Errors Message-ID: I am trying to run the itasca demo after adding mapplet. When I run, I get an error that shows up on the Java console window that says: document.mapserv has no properties at mapplet.init(mapplet.java:73) Any ideas what I could be missing? I made all the changes that were mentioned in the Mapplet HOWTO. Any suggestions? Thanks Chris From stepan.kafka at centrum.cz Mon Aug 26 10:58:21 2002 From: stepan.kafka at centrum.cz (Stepan Kafka) Date: Mon, 26 Aug 2002 19:58:21 +0200 Subject: [mapserver-users] newbie problem running demo In-Reply-To: <009f01c24d1d$7b48bcb0$a101a8c0@hathor> Message-ID: <000201c24d2a$2a2e0760$7e3c2fc3@HSGIS> Hi Radek you have probably bad path set to your symbols or you don't have access rights for web server to them. Check it, please. Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Radoslaw > Rejman > Odesl?no: 26. srpna 2002 18:28 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: [mapserver-users] newbie problem running demo > > > Hello, > > I am beginning my work with mapserver. Now I try to run the demo. > Everything > went OK on my local windows machine, I installed mapserver, demo works. I > have problem running mapserver demo on Unix server. There was no problems > with compilation and installation, but each time I try to run the demo i > have: > > msLoadMap(): General error message. Undefined symbol > "symbols/ctyhwy.gif" in > class 0 of layer ctyrdln3_anno. > > Example is at: http://www.ekoprojekt.pl/itasca_koti/demo_init.html > Where should I look for problem? > > Regards, > Radek Rejman > > From steve.lime at dnr.state.mn.us Mon Aug 26 10:56:08 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Mon, 26 Aug 2002 12:56:08 -0500 Subject: [mapserver-users] Mapplet Errors Message-ID: Make sure your form and applet are named appropriately... Steve >>> "Williams, Chris D." 08/26/02 12:39PM >>> I am trying to run the itasca demo after adding mapplet. When I run, I get an error that shows up on the Java console window that says: document.mapserv has no properties at mapplet.init(mapplet.java:73) Any ideas what I could be missing? I made all the changes that were mentioned in the Mapplet HOWTO. Any suggestions? Thanks Chris From EDUARDOPK at vcp.com.br Mon Aug 26 11:49:44 2002 From: EDUARDOPK at vcp.com.br (EDUARDO PATTO KANEGAE) Date: Mon, 26 Aug 2002 15:49:44 -0300 Subject: [mapserver-users] Reference Map Message-ID: <0066FEFC20B1D411AB4600805F8540C403EE81C8@la02vcp.vcp.com.br> how could i create a reference map for shapefiles, for using with mapfiles? Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From pkishor at GeoAnalytics.com Mon Aug 26 13:27:08 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Mon, 26 Aug 2002 15:27:08 -0500 Subject: [mapserver-users] Reference Map Message-ID: > how could i create a reference map for shapefiles, for using > with mapfiles? > Not sure what you are asking. 1. Do you want to know what the syntax in a map file is? It is like so... #{{{ reference map REFERENCE IMAGE path/to/ref/image.png EXTENT minx miny maxx maxy OUTLINECOLOR r g b COLOR r g b SIZE w h STATUS off | on END #}}} 2. Do you want to know the mapscript syntax? In PHP it is like so... $imgObj = $mapObj->drawReferenceMap(); In Perl it is like so... (well, how is it in Perl?) $ref = new referenceMapObj('your.map') or die('Unable to open mapfile.'); $img = $map->draw() or die('Unable to draw map'); 3. Are you interested in wanting to know how to make the image? Well, just use mapserver to make the basemap, save it, and then point to it in your map file. Hth. From eblevins at insight.rr.com Sun Aug 25 13:23:49 2002 From: eblevins at insight.rr.com (Eric L. Blevins) Date: Sun, 25 Aug 2002 16:23:49 -0400 Subject: [mapserver-users] Make points Transparent? Message-ID: <05bb01c24c75$584d9800$6406a8c0@Gateway> Here is my layer that puts some points in the map. Is there any way to make the points somewhat transparent so you can see things behind them? Sometimes there are so many points in an area they completely cover previous layers and I would like to make the points somewhat "see-through" so I can see the layers underneath. LAYER NAME signal TYPE POINT STATUS off DATA "nettry/signalwepoff" maxscale 15000 CLASS EXPRESSION ([SIGNAL] <= 100 && [SIGNAL] > 70) NAME "Open - Signal Strong" SYMBOL "circle" SIZE 8 COLOR 100 0 0 END CLASS EXPRESSION ([SIGNAL] <= 70 && [SIGNAL] > 60) NAME "Open - Signal medium" SYMBOL "circle" SIZE 8 COLOR 150 0 0 END CLASS EXPRESSION ([SIGNAL] <= 60 && [SIGNAL] > 40) NAME "Open - Signal low" SYMBOL "circle" SIZE 8 COLOR 200 0 0 END CLASS EXPRESSION ([SIGNAL] <= 40 && [SIGNAL] >= 0) NAME "Open - Signal weak" SYMBOL "circle" SIZE 8 COLOR 255 0 0 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Aug 26 13:33:16 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 26 Aug 2002 16:33:16 -0400 Subject: [mapserver-users] Demo GIF/PNG problem In-Reply-To: Message-ID: <3D6A584C.28484.5D605364@localhost> On 26 Aug 2002 at 12:34, Puneet Kishor wrote: > To those who maintain the demo archives... could all the gifs there be > replaced with pngs anyway so this doesn't come up. Actually, better yet, could be just place BOTH pngs and gifs in the demo release, that way the right files are there regardless of how the user wants to set up his system. Thanks, -Steve From woodbri at swoodbridge.com Mon Aug 26 13:33:16 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Mon, 26 Aug 2002 16:33:16 -0400 Subject: [mapserver-users] Reference Map In-Reply-To: <0066FEFC20B1D411AB4600805F8540C403EE81C8@la02vcp.vcp.com.br> Message-ID: <3D6A584C.17374.5D605437@localhost> On 26 Aug 2002 at 15:49, EDUARDO PATTO KANEGAE wrote: > how could i create a reference map for shapefiles, for using with mapfiles? 1) copy your map file to ref.map 2) edit ref.map and set the layers you want in your reference map to STATUS DEFAULT and change the SIZE x y to be the size of your reference map 3) run utility shp2img -m ref.map -o reference.gif that should do it :) -Steve From erwin at perik.nu Mon Aug 26 13:56:28 2002 From: erwin at perik.nu (E Perik) Date: Mon, 26 Aug 2002 22:56:28 +0200 Subject: [mapserver-users] Reference Map In-Reply-To: <0066FEFC20B1D411AB4600805F8540C403EE81C8@la02vcp.vcp.com.br> Message-ID: <000001c24d43$0d2dd410$967ba8c0@xp> just change your original map-file settings to be used for your reference-map-image. --> make copy of your original map-file, and change 1) Size 2) Layers (on/off) Then let that one run by mapserver and get the image from your temp-folder. I'm sure there are other options, but this one is easy to do and you basically need to do it once in a while,...so,.... :) Me. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of EDUARDO PATTO KANEGAE Sent: maandag 26 augustus 2002 20:50 To: MapServer USERS (Correio eletr?nico) Subject: [mapserver-users] Reference Map how could i create a reference map for shapefiles, for using with mapfiles? Eduardo Patto Kanegae eduardopk at vcp.com.br Time Planejamento - UNIDADE LA - Ramal 9126 eduardo at scopotecnologia.com.br http://www.scopotecnologia.com.br From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Mon Aug 26 14:14:16 2002 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Mon, 26 Aug 2002 17:14:16 -0400 Subject: [mapserver-users] Make points Transparent? Message-ID: <7CDD7B94357FD5119E800002A537C46E2302C2@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, You shoulde able to achieve this using the "TRANSPARENCY" keyword I just added to the 3.6 documentation ... Adding this in your layer definition should solve your problem :) J.F. -----Original Message----- From: Eric L. Blevins [mailto:eblevins at insight.rr.com] Sent: Sunday, August 25, 2002 4:24 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Make points Transparent? Here is my layer that puts some points in the map. Is there any way to make the points somewhat transparent so you can see things behind them? Sometimes there are so many points in an area they completely cover previous layers and I would like to make the points somewhat "see-through" so I can see the layers underneath. LAYER NAME signal TYPE POINT STATUS off DATA "nettry/signalwepoff" maxscale 15000 CLASS EXPRESSION ([SIGNAL] <= 100 && [SIGNAL] > 70) NAME "Open - Signal Strong" SYMBOL "circle" SIZE 8 COLOR 100 0 0 END CLASS EXPRESSION ([SIGNAL] <= 70 && [SIGNAL] > 60) NAME "Open - Signal medium" SYMBOL "circle" SIZE 8 COLOR 150 0 0 END CLASS EXPRESSION ([SIGNAL] <= 60 && [SIGNAL] > 40) NAME "Open - Signal low" SYMBOL "circle" SIZE 8 COLOR 200 0 0 END CLASS EXPRESSION ([SIGNAL] <= 40 && [SIGNAL] >= 0) NAME "Open - Signal weak" SYMBOL "circle" SIZE 8 COLOR 255 0 0 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From webmaster at buckoptimized.com Mon Aug 26 15:47:35 2002 From: webmaster at buckoptimized.com (Gerald Buckmaster) Date: Mon, 26 Aug 2002 15:47:35 -0700 Subject: [mapserver-users] php_mapserver_36.dll References: <001601c24cff$6b018b70$70016587@infosysjason> Message-ID: <004001c24d52$92553570$6401a8c0@sabinocanyon> Jason, Are you sure the dll name is exactly spelled like the calling php code? I made the mistake of trying to call just 'php_mapscript.dll' instead of php_mapscript_36.dll Simple, but it got me. Gerald Buckmaster www.imagery-analyst.com ----- Original Message ----- From: Jason Spangler To: mapserver-users at lists.gis.umn.edu Sent: Monday, August 26, 2002 05:52 Subject: [mapserver-users] php_mapserver_36.dll Any help would be very appreciated! I have a Win2K machine with mapserver running fine. Installed PHP 4.2.2 and am trying to run php_mspscript_36.dll I get the error "Unable to load dynamic library c:\php\extensions\php_mapscript_36.dll" The dll is in this directory, as well as many others. I can get PDF and MSSQL + other extensions to load fine, but will not load map_script. I have permissions set correctly, and have looked all over for help, but none of the solutions I've found cure my problem. If anyone could help me, I would appreciate it immensly! Thanks, Jason Spangler Cass County, Michigan -------------- next part -------------- An HTML attachment was scrubbed... URL: From TMitchell at lignum.com Mon Aug 26 13:21:26 2002 From: TMitchell at lignum.com (Tyler Mitchell) Date: Mon, 26 Aug 2002 13:21:26 -0700 Subject: [mapserver-users] newbie problem running demo Message-ID: >the current and future builds of gd do not support gifs. Replace all gifs >with pngs and everything will work. If you need a hand converting them, post it to the list and someone would be more than happy to email you the png files you are looking for. Tyler Puneet Kishor To: "'Radoslaw Rejman'" , Sent by: mapserver-users at lists.gis.umn.edu owner-mapserver-users at lists. cc: gis.umn.edu Fax to: Subject: RE: [mapserver-users] newbie problem running demo 08/26/2002 10:34 AM > -----Original Message----- > From: Radoslaw Rejman [mailto:progmaniak at rejman.org] > Sent: Monday, August 26, 2002 11:28 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] newbie problem running demo > > > Hello, > > I am beginning my work with mapserver. Now I try to run the > demo. Everything > went OK on my local windows machine, I installed mapserver, > demo works. I Welcome, and great. > have problem running mapserver demo on Unix server. There was > no problems > with compilation and installation, but each time I try to run > the demo i > have: > > msLoadMap(): General error message. Undefined symbol > "symbols/ctyhwy.gif" in > class 0 of layer ctyrdln3_anno. > > Example is at: http://www.ekoprojekt.pl/itasca_koti/demo_init.html > Where should I look for problem? 1. First, look in the documentation. 2. Second, search the message archives... searching for "symbols/ctyhwy.gif" at http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users produced about a bazillion hits. the current and future builds of gd do not support gifs. Replace all gifs with pngs and everything will work. Hth. To those who maintain the demo archives... could all the gifs there be replaced with pngs anyway so this doesn't come up. Many thanks, pk/ From Simon.Kirkness at fisheries.nsw.gov.au Mon Aug 26 16:13:04 2002 From: Simon.Kirkness at fisheries.nsw.gov.au (Simon Kirkness) Date: Tue, 27 Aug 2002 09:13:04 +1000 Subject: [mapserver-users] php_mapserver_36.dll Message-ID: Hi Jason, I had a similar problem and found that I had to include the .dl in the php.ini file, and make sure that the ini file could find the library. Hope this helps <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< <">< Simon Kirkness NSW Fisheries Project Officer Threatened Species Port Stephens Fisheries Centre Ph: (02) 4916 3810 Fax: (02) 4916 3880 Email: kirkness at fisheries.nsw.gov.au Note: This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of NSW Fisheries. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: InterScan_Disclaimer.txt URL: From joea at archtech.ca Mon Aug 5 17:05:23 2002 From: joea at archtech.ca (Joseph Archibald) Date: Mon, 5 Aug 2002 20:05:23 -0400 Subject: [mapserver-users] unsubscribe Message-ID: <044101c23cdc$f5fd6010$6500a8c0@joe> unsubscribe -- Joseph Archibald Archtech Computers/National Amiga 502 Adelaide St N London, ON N6B 3J2 ph: 519 858-8760 fax: 519 858-8762 joea at archtech.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From anyelina_caceres at hotmail.com Mon Aug 26 17:26:54 2002 From: anyelina_caceres at hotmail.com (=?iso-8859-1?B?QW55ZWxpbmEgQ+FjZXJlcw==?=) Date: Mon, 26 Aug 2002 19:26:54 -0500 Subject: [mapserver-users] help query with phpMapScript Message-ID: Hello, I am new using to mapserver and phpmapscript. I have installed mapserver3.6 in Windows with apache and php, demo works to me well. But when trying to make my own application I have doubts: - How I can do query if the definition of the layer is LAYER NAME "Tipo de Vivienda" TYPE POLYGON STATUS ON DATA manzanas CLASSITEM 'tipoviv' CLASS NAME "Casa, Apto" EXPRESSION ([tipoviv] == 1) OUTLINECOLOR 0 0 0 COLOR 0 255 0 END CLASS NAME "Cuarto(s)" EXPRESSION ([tipoviv] == 2) OUTLINECOLOR 0 0 0 COLOR 0 0 255 END END - How is made a query with phpmapscript to obtain the point and to show the data of the features of that point? - Can be done an application without using mapfile? how? - Can I make the query and show it in a page without using templates? how? - Are there examples about these? can you facilitate me examples? Thanks, Anyelina C?ceres _________________________________________________________________ MSN. M?s ?til cada D?a. http://www.msn.es/intmap/ From gerry.creager at tamu.edu Mon Aug 26 18:15:54 2002 From: gerry.creager at tamu.edu (Gerry Creager N5JXS) Date: Mon, 26 Aug 2002 20:15:54 -0500 Subject: [mapserver-users] A plaintive cry for help Message-ID: <3D6AD2CA.4080103@tamu.edu> OK. I know everyone on here is busy, but I'm also at my wits' end (or at least at the end of the half, or so I could find recently). I've got MS 3.6.1 down, as well as, near as I can tell, all the ancillary support: --- ./configure --with-jpeg=/usr --with-freetype=/usr --with-png=/usr --with-gd=/usr --with-gdal=/usr/local --with-ogr --with-proj --- The config log is attached. An apparently good config resulted. A make, however, results in the following: --- [gerry at mesodata mapserver-3.6.1]$ make gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY -DUSE_OGR -DUSE_GDAL -I/usr/include -I/usr/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz -ltiff -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz -lproj -L/usr/lib -ljpeg -L/usr/local/lib -lgdal.1.1 -lm -o shp2img /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 --- I've bounced my head against this most of the weekend, and I'm very confused. Anyone got some words of wisdom that might get me back on the right track? Thanks, Gerry Creager Texas Mesonet Texas A&M University -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ms-config.log URL: From nhv at cape.com Mon Aug 26 18:49:48 2002 From: nhv at cape.com (Norman Vine) Date: Mon, 26 Aug 2002 21:49:48 -0400 Subject: [mapserver-users] A plaintive cry for help References: <3D6AD2CA.4080103@tamu.edu> Message-ID: <011e01c24d6c$077bb630$1c37ba8c@sfdev3> Gerry Creager writes: > > A make, however, results in the following: > --- > [gerry at mesodata mapserver-3.6.1]$ make > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY > -DUSE_OGR -DUSE_GDAL -I/usr/include -I/usr/include > -I/usr/local/include shp2img.o -L. -lmap -L/usr/lib -lgd -L/usr/lib > -ljpeg -lfreetype -L/usr/lib -lpng -lz -ltiff -L/usr/lib -ljpeg > -lfreetype -L/usr/lib -lpng -lz -lproj -L/usr/lib -ljpeg > -L/usr/local/lib -lgdal.1.1 -lm -o shp2img > /usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > --- Not sure of the easiest way to get this into your Makefile but your libgd.so apparently needs to be linked against libxpm try adding this to the XTRALIBS = line in your Makefile -L/$PATH_TO_YOUR_XLIBS -lxpm substituting the actual $PATH_TO_YOUR_XLIBS appropriately HTH Norman From Horst.Duester at bd.so.ch Tue Aug 27 01:06:18 2002 From: Horst.Duester at bd.so.ch (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Tue, 27 Aug 2002 09:06:18 +0100 Subject: [mapserver-users] MapLab Error Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFBF4@srsofaioi4546.ktso.ch> Today I installed MapLab. But when I try to load an existing map-file the following error message arises :
Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429/: cannot read file data: Is a directory in /www/htdocs/maplab/htdocs/mapedit/mapeditapp.php on line 161

Fatal error: Call to undefined function: ms_tokenizemap() in /www/htdocs/maplab/htdocs/mapedit/mapeditapp.php on line 164
When I take a look at view installation information the mapscript looks installed correct. PHP_INFO produces also a correct output regarding mapscript. Any hint??? Horst From est-n-alves at ptinovacao.pt Tue Aug 27 01:19:36 2002 From: est-n-alves at ptinovacao.pt (Nuno Alves) Date: Tue, 27 Aug 2002 09:19:36 +0100 Subject: [mapserver-users] unsubscribe Message-ID: unsubscribe Nuno Ricardo Ribeiro Alves PT Inova??o, S.A. Servi?os e Redes M?veis * R. Eng? Jos? Ferreira Pinto Basto - 3810 Aveiro * mailto:est-n-alves at ptinovacao.pt From sdl at geovision.dk Tue Aug 27 03:05:01 2002 From: sdl at geovision.dk (=?iso-8859-1?Q?S=F8ren_Dalby_Larsen?=) Date: Tue, 27 Aug 2002 12:05:01 +0200 Subject: [mapserver-users] Very large data sets and high volume? Message-ID: <56B847D4AC998C478F573E70B139FE47112C08@barney.kortgruppen.dk> Hi. We're running a farm of servers producing customer-specific maps for the Internet. We plan a new version, and are considering MapServer for the job. My questions are: Is it capable of working with data for all of europe? (tiled in shape-files of manegable size) We're talking the most detailed data we can get our hands on (NavTech data and others) Also, how well does it perform? We're producing well over a million maps a week from 4 servers today. Is it possible to achieve similar performance with MapServer? It will all be scripted maps, as our customers have different sizes/cartography/etc on their maps. Regards S?ren Dalby Larsen From mail_for_web_gis at yahoo.it Tue Aug 27 03:08:50 2002 From: mail_for_web_gis at yahoo.it (=?iso-8859-1?q?gesu=20annazzeret?=) Date: Tue, 27 Aug 2002 12:08:50 +0200 (CEST) Subject: [mapserver-users] Problem with php_mapscript.so and maplab Message-ID: <20020827100850.29845.qmail@web40016.mail.yahoo.com> I've installed Maplab under linux. PHP mapscript seem to work correctly. but when I use the php example: return the following message: Warning: MapScript: Unable to initialize module Module compiled with debug=0, thread-safety=0 module API=20020429 PHP compiled with debug=0, thread-safety=0 module API=20010901 These options need to match in /usr/local/httpd/htdocs/k.php on line 2 in info.phtml in the htdocs directory mapscript seems not to be installed for GIF. PNG, JPEG, WBMP also MapLab starts but if I use something in the menu returns message like: Warning: Unable to load dynamic library 'php_mapscript.so' - php_mapscript.so: cannot open shared object file: No such file or directory in /usr/local/httpd/htdocs/maplab-2.0rc2/htdocs/mapbrowser/map.php on line 114 Fatal error: Call to undefined function: ms_getversion() in /usr/local/httpd/htdocs/maplab-2.0rc2/htdocs/mapbrowser/map.php on line 120 This is for mapbrowser selection followed by new map ... what should I do now? I don't undestand what is the problem. Thanks for any help. Bye bye ______________________________________________________________________ Yahoo! Musica: notizie, recensioni, classifiche, speciali multimediali http://it.yahoo.com/mail_it/foot/?http://it.music.yahoo.com/ From thfischer at mapmedia.de Tue Aug 27 08:10:04 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 27 Aug 2002 17:10:04 +0200 Subject: [mapserver-users] raster layer In-Reply-To: <3D69F27A.B8E2A74B@mchp.siemens.de> References: <3D69F27A.B8E2A74B@mchp.siemens.de> Message-ID: <1030461007.1233.9.camel@grobi> Thus spake Marian Grigoras: > I am trying to display a JPG as a raster layer. > What I get is the gray image (128,128,128). No sign of JPG. > Could someone tell me what I do wrong? > MapServer is running on a RedHat 7.3 computer (in case this makes any > difference). > Note: The EXTENT information is just some dummy data. He asked for it, > but it does not have any real meaning. Could this cause my problem? The EXTENT information tells mapserver which coordinates are the default setting for your map. Your extent defines > EXTENT 74000 4775000 798000 5500000 an upper left corner at 74000/4775000, while the settings in your worldfile > 1.0 > 0.0 > 0.0 > 1.0 > 50.0 > 50.0 say that the images start at 50/50 and has a width and height of 1 coordinate unit per pixel. Unless your jpeg files is at least 73951 pixels wide, you won't see anything with those settings. Also, make sure that your worldfile has exactly the same name (without extension) as your image file; under linux (and unix in general) 'MAP1' is different to 'map1'. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From andrea.giacomelli at fst.it Tue Aug 27 05:39:44 2002 From: andrea.giacomelli at fst.it (Andrea Giacomelli) Date: Tue, 27 Aug 2002 14:39:44 +0200 Subject: [mapserver-users] selecting adjacent polygons Message-ID: <005601c24dc6$d2353180$c370a8c0@srvrschmsdn> Hi, Is it possible to implement a "select feature, and identify adjacent polygons" mechanism via mapserver ? TIA for any feedback, andrea giacomelli From mcilhagga at dmsolutions.ca Tue Aug 27 05:47:59 2002 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Tue, 27 Aug 2002 08:47:59 -0400 Subject: [mapserver-users] MapLab Error References: <5B025B1F39D6D4119F5700508BEEEC662DFBF4@srsofaioi4546.ktso.ch> Message-ID: <3D6B74FF.1DE65BEE@dmsolutions.ca> A quick note to everyone using MapLab. Please use the maplab-users at dmsolutions.ca mailing list for any MapLab specific questions. You can register for the mailing list at: http://lists.dmsolutions.ca/mailman/listinfo/maplab-users Thanks, Dave D?ster Horst wrote: > > Today I installed MapLab. But when I try to load an existing map-file the > following error message arises : >
> Warning: Unable to load dynamic library > '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/' - > /usr/local/lib/php/extensions/no-debug-non-zts-20020429/: cannot read file > data: Is a directory in > /www/htdocs/maplab/htdocs/mapedit/mapeditapp.php on line > 161
>
> Fatal error: Call to undefined function: ms_tokenizemap() in > /www/htdocs/maplab/htdocs/mapedit/mapeditapp.php on line > 164
> > When I take a look at view installation information the mapscript looks > installed correct. PHP_INFO produces also a correct output regarding > mapscript. > > Any hint??? > > Horst > -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : mcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 From mschulz at webgis.de Tue Aug 27 06:00:12 2002 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 27 Aug 2002 15:00:12 +0200 Subject: [mapserver-users] building mapserver on W2000 with msvc++ References: <3D69F5E5.21065E09@webgis.de> <3D6A402E.2090703@i3.com> Message-ID: <3D6B77DC.AE937369@webgis.de> Hello, i am still trying to compile mapserver on w2000 / msvc++7.0. I came over several problems with help from the list and the list-archive. But now i am stuck again. Here is what the compiler complains about: link /NODEFAULTLIB:libcd mapserv.obj mapserver.lib ../gd-1.8.4/gd.lib .. /jpeg-6b/libjpeg.lib ../lpng124/libpng.lib ../zlib/zlib.lib ../freetype-2.1.2/f reetype211.lib ../tiff-v3.5.7/libtiff/libtiff.lib ../proj/src/proj.lib ..\gd al/ogr/ogrsf_frmts/ogrsf_frmts.lib ..\gdal/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib . .\gdal/ogr/ogr.lib ..\gdal/ogr/../port/cpl.lib Microsoft (R) Incremental Linker Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. MSVCRT.lib(MSVCR70.dll) : error LNK2005: _longjmp bereits in LIBC.lib(longjmp.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _malloc bereits in LIBC.lib(malloc.obj) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _realloc bereits in LIBC.lib(realloc.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _free bereits in LIBC.lib(free.obj) def iniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _fclose bereits in LIBC.lib(fclose.obj) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _fread bereits in LIBC.lib(fread.obj) d efiniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _fseek bereits in LIBC.lib(fseek.obj) d efiniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _ftell bereits in LIBC.lib(ftell.obj) d efiniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _fopen bereits in LIBC.lib(fopen.obj) d efiniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _atoi bereits in LIBC.lib(atox.obj) def iniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _strncmp bereits in LIBC.lib(strncmp.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _isalnum bereits in LIBC.lib(_ctype.obj ) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _isxdigit bereits in LIBC.lib(_ctype.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _isdigit bereits in LIBC.lib(_ctype.obj ) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _qsort bereits in LIBC.lib(qsort.obj) d efiniert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _memmove bereits in LIBC.lib(memmove.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _strncpy bereits in LIBC.lib(strncpy.ob j) definiert MSVCRT.lib(MSVCR70.dll) : error LNK2005: _sprintf bereits in LIBC.lib(sprintf.ob j) definiert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _longjmp bereits in LIBC.lib(longjmp. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _malloc bereits in LIBC.lib(malloc.ob j) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _realloc bereits in LIBC.lib(realloc. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _free bereits in LIBC.lib(free.obj) d efiniert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _fclose bereits in LIBC.lib(fclose.ob j) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _fread bereits in LIBC.lib(fread.obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _fseek bereits in LIBC.lib(fseek.obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _ftell bereits in LIBC.lib(ftell.obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _fopen bereits in LIBC.lib(fopen.obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _atoi bereits in LIBC.lib(atox.obj) d efiniert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _strncmp bereits in LIBC.lib(strncmp. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _isalnum bereits in LIBC.lib(_ctype.o bj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _isxdigit bereits in LIBC.lib(_ctype. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _isdigit bereits in LIBC.lib(_ctype.o bj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _qsort bereits in LIBC.lib(qsort.obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _memmove bereits in LIBC.lib(memmove. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _strncpy bereits in LIBC.lib(strncpy. obj) definiert; zweite Definition wird ignoriert MSVCRT.lib(MSVCR70.dll) : warning LNK4006: _sprintf bereits in LIBC.lib(sprintf. obj) definiert; zweite Definition wird ignoriert Bibliothek mapserv.lib und Objekt mapserv.exp wird erstellt LINK : warning LNK4098: Standardbibliothek 'MSVCRT' steht in Konflikt mit andere n Bibliotheken; /NODEFAULT:Bibliothek verwenden mapserv.exe : fatal error LNK1169: Ein oder mehrere mehrfach definierte Symbole gefunden NMAKE : fataler Fehler U1077: 'link' : Rueckgabe-Code '0x491' Stop. Perhaps somebody has seen this error and solved it. FYI i try to compile ms 3.6.2 with jpeg, tiff, libpng124, zlib, freetype212, patched gd-184, gdal, ogr Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From morissette at dmsolutions.ca Tue Aug 27 07:03:06 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 27 Aug 2002 10:03:06 -0400 Subject: [mapserver-users] Problem with php_mapscript.so and maplab References: <20020827100850.29845.qmail@web40016.mail.yahoo.com> Message-ID: <3D6B869A.98C6975F@dmsolutions.ca> gesu annazzeret wrote: > > but when I use the php example: > dl("php_mapscript.so"); > phpinfo(); > ?> > > return the following message: > > Warning: MapScript: Unable to initialize module Module > compiled with debug=0, thread-safety=0 module > API=20020429 PHP compiled with > debug=0, thread-safety=0 module API=20010901 These > options need to match in /usr/local/httpd/htdocs/k.php > on line 2 > Make sure that your php_mapscript.so is compiled for the version of PHP that you are running. You seem to have compiled MapScript with PHP 4.2.x (API=2002-04-29), but would be running 4.1.x (or older, 2002-09-01) on your server. -- ------------------------------------------------------------ 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 nospam at cnrit.tamu.edu Tue Aug 27 07:19:15 2002 From: nospam at cnrit.tamu.edu (Mike Smith) Date: Tue, 27 Aug 2002 09:19:15 -0500 Subject: [mapserver-users] Two Mapplet Problems... Message-ID: <3D6B8A63.2040305@cnrit.tamu.edu> Hello, I'm using version 3.6.1 of MapServer and I have two problems with the Mapplet java applet. The first one is that the applet won't display any colors except white and red. My legend shows all the colors of my layers accurately, but they all come out either white or red in the map image. Anybody know how to fix this? My second problem is that I can't ZOOM TO FULL EXTENT. I've tried all the Javascript functions that others have mentioned in the mailing list archive, but they don't work. I've tried this function and button: function goGlobal() { // I set this to my full extent values document.mapserv.imgext.value = "388107.634400379 5203120.88405952 500896.339019834 5310243.30613897"; document.mapserv.imgbox.value = "-1 -1 -1 -1"; // My image is 600 x 600, so this is the centerpoint document.mapserv.imgxy.value = "300.0 300.0"; document.mapserv.old_zoom.value = document.mapserv.zoomdir.value; document.mapserv.zoomdir.value = 0; document.mapserv.submit(); } function update_form{ document.mapserv.zoomdir.value = document.mapserv.old_zoom.value; } and I've tried just a simple URL-based link behind an image...neither does ANYTHING! Any ideas? From tripodi at cttmar.univali.br Tue Aug 27 07:36:41 2002 From: tripodi at cttmar.univali.br (Rodrigo Zanato Tripodi) Date: Tue, 27 Aug 2002 11:36:41 -0300 Subject: [mapserver-users] msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error Message-ID: <1030459001.3d6b8e79c717d@webmail.cttmar.univali.br> Tim, We need to configure a server with Oracle 9i and IAS in a Windows NT to test the connection. I?ll check the source code and try to make a better error report for this problem. The server configuration and the tests maybe take a month. -- Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From WILLIC10 at mail.northgrum.com Tue Aug 27 07:34:11 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Tue, 27 Aug 2002 07:34:11 -0700 Subject: [mapserver-users] Looking for suggestions... Message-ID: Hello all. I have been playing around with MapServer for the past week and having some problems trying to understand how all the parts fit. Here is what I am trying to do. I have a single shape file that contains an outline of the world. What I am trying to do is use mapplet and create a query screen that I am get a decimal lat/lon from. I have been able to hack apart the itasca demo using my .map file and my shape file with mapplet. The problem I am running into now is the zooming function doesn't seem to work right. All it wants to do is pan and not really zoom. Here are some of the questions I have... 1) What should I be defining the EXTENT value as? I currently have it set to -180.0 -90.0 180.0 90.0. Is this right? 2) Do I need to use the projection latlong? I would think so since I want to get lat/lon points from the image. When I added the PROJECTION item to my .map file, I get an error from the mapserv cgi saying: Projection library eror: major axis or radius = 0 or not given. 3) Is there a way to take the pixal position and convert it to a lat long point? 4) I have also looked at the Landview on the http://www.dnr.state.mn.us website. Would using the jbox class be better than mapplet? I tried accessing the webpage today and it seems like none of the maps are working. I have attached the .map file and the .html files. The shape file I am using can be found at http://www.vdstech.com/download/world.zip. Thanks! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: demo.map Type: application/octet-stream Size: 785 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacquin at geosys-inc.com Tue Aug 27 07:53:07 2002 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Tue, 27 Aug 2002 16:53:07 +0200 Subject: [mapserver-users] Displaying overlaping rasters Message-ID: Hi all, I am trying to display a gray scale image over a color image. Displaying the gray scale only in JPEG is OK, the color image only is OK too. But when both are defined in the map file, I got some colors in the gray scale area. You may have a look at the created JPEG here : http://briefcase.yahoo.com/mapservermj in the mapserver folder. I know this is due to the way colors are handled by GD's palette (which is already almost full when the gray scale image is drawn), I was just reporting and wondering if anyone has found a way to solve this. Thx Marc From GrantM at ATSER.com Tue Aug 27 08:25:41 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Tue, 27 Aug 2002 10:25:41 -0500 Subject: [mapserver-users] Atlanta shp files Message-ID: <003401c24dde$04ff16a0$7201010a@localhost.atser> Anyone know if there is a place i might be able to get the shp file for the atlanta hartsfield airport? thanks, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Tue Aug 27 08:16:08 2002 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 27 Aug 2002 17:16:08 +0200 Subject: [mapserver-users] building mapserver on W2000 with msvc++ References: <3D69F5E5.21065E09@webgis.de> <3D6A402E.2090703@i3.com> <3D6B77DC.AE937369@webgis.de> Message-ID: <3D6B97B8.3EC53F97@webgis.de> Ok, finally i solved it. The problem was related to the vc-project the ft-212-package was providing ( i couldn't find a normal makefile ...). The standard configuration links against a multi-threaded c runtime dll. I changed that to single-threaded (in projects menu - settings - c/c++ - code generation - Use run-time lib) and it finally worked. Great! Thanks and cheers, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From steve.lime at dnr.state.mn.us Tue Aug 27 08:40:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 27 Aug 2002 10:40:29 -0500 Subject: [mapserver-users] Lost, patch for inline feature (linked list) support... Message-ID: Greetings. A while back someone (I lost the email) passed along a patch to help with some performance issues related to inline features. I thought it involved turning the current linked lists into doubly linked lists thus eliminating list traversal. Before I re-write I wanted to see if that user might still have that patch laying around and could resend. Thanks much! Steve From steve.lime at dnr.state.mn.us Tue Aug 27 08:48:29 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Tue, 27 Aug 2002 10:48:29 -0500 Subject: [mapserver-users] Looking for suggestions... Message-ID: Hi Chris: 1) That extent certainly covers the globe, but whether it's appropriate depends on you shapefiles. Check their extents to be sure. 2) You'd only define a projection if you are displaying a map in a different projection than your data. If everything is in lat/lon and you don't want to display in an alternative projection then there's no need to define it. 3) Depends, but in most cases yes. You'll have to be more specific on what you want to do. 4) The DNR site is back up, gremlins... jbox is an updated version of mapplet in which method names and so forth have been standardized/sync'd with a DHTML version. I wanted to use the same javascript base for either a Java or DHTML front end. That necessitated some changes to the applet, albeit minor ones. Steve >>> "Williams, Chris D." 08/27/02 09:34AM >>> Hello all. I have been playing around with MapServer for the past week and having some problems trying to understand how all the parts fit. Here is what I am trying to do. I have a single shape file that contains an outline of the world. What I am trying to do is use mapplet and create a query screen that I am get a decimal lat/lon from. I have been able to hack apart the itasca demo using my .map file and my shape file with mapplet. The problem I am running into now is the zooming function doesn't seem to work right. All it wants to do is pan and not really zoom. Here are some of the questions I have... 1) What should I be defining the EXTENT value as? I currently have it set to -180.0 -90.0 180.0 90.0. Is this right? 2) Do I need to use the projection latlong? I would think so since I want to get lat/lon points from the image. When I added the PROJECTION item to my .map file, I get an error from the mapserv cgi saying: Projection library eror: major axis or radius = 0 or not given. 3) Is there a way to take the pixal position and convert it to a lat long point? 4) I have also looked at the Landview on the http://www.dnr.state.mn.us website. Would using the jbox class be better than mapplet? I tried accessing the webpage today and it seems like none of the maps are working. I have attached the .map file and the .html files. The shape file I am using can be found at http://www.vdstech.com/download/world.zip. Thanks! Chris From WILLIC10 at mail.northgrum.com Tue Aug 27 10:10:06 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Tue, 27 Aug 2002 10:10:06 -0700 Subject: [mapserver-users] Looking for suggestions... Message-ID: Thanks for the help...here are some followup... 1) I am new to shapefiles...how do you check the extents of a shapefile? 2) What I would like to do is have the user select a bounding box and click a button that will fill in some form fields with the lat/lon based on the that area. Thanks again! Chris -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, August 27, 2002 11:48 AM To: mapserver-users at lists.gis.umn.edu; Williams, Chris D. Subject: Re: [mapserver-users] Looking for suggestions... Hi Chris: 1) That extent certainly covers the globe, but whether it's appropriate depends on you shapefiles. Check their extents to be sure. 2) You'd only define a projection if you are displaying a map in a different projection than your data. If everything is in lat/lon and you don't want to display in an alternative projection then there's no need to define it. 3) Depends, but in most cases yes. You'll have to be more specific on what you want to do. 4) The DNR site is back up, gremlins... jbox is an updated version of mapplet in which method names and so forth have been standardized/sync'd with a DHTML version. I wanted to use the same javascript base for either a Java or DHTML front end. That necessitated some changes to the applet, albeit minor ones. Steve >>> "Williams, Chris D." 08/27/02 09:34AM >>> Hello all. I have been playing around with MapServer for the past week and having some problems trying to understand how all the parts fit. Here is what I am trying to do. I have a single shape file that contains an outline of the world. What I am trying to do is use mapplet and create a query screen that I am get a decimal lat/lon from. I have been able to hack apart the itasca demo using my .map file and my shape file with mapplet. The problem I am running into now is the zooming function doesn't seem to work right. All it wants to do is pan and not really zoom. Here are some of the questions I have... 1) What should I be defining the EXTENT value as? I currently have it set to -180.0 -90.0 180.0 90.0. Is this right? 2) Do I need to use the projection latlong? I would think so since I want to get lat/lon points from the image. When I added the PROJECTION item to my .map file, I get an error from the mapserv cgi saying: Projection library eror: major axis or radius = 0 or not given. 3) Is there a way to take the pixal position and convert it to a lat long point? 4) I have also looked at the Landview on the http://www.dnr.state.mn.us website. Would using the jbox class be better than mapplet? I tried accessing the webpage today and it seems like none of the maps are working. I have attached the .map file and the .html files. The shape file I am using can be found at http://www.vdstech.com/download/world.zip. Thanks! Chris From gleydson.mazioli at ima.sp.gov.br Tue Aug 27 10:15:34 2002 From: gleydson.mazioli at ima.sp.gov.br (Gleydson Mazioli da Silva) Date: Tue, 27 Aug 2002 14:15:34 -0300 Subject: [mapserver-users] Symbol error with Mapserver and Debian In-Reply-To: <3D669691.F67CC56E@dmsolutions.ca> References: <20020823165444.16162340.gleydson@ima.sp.gov.br> <3D669691.F67CC56E@dmsolutions.ca> Message-ID: <20020827141534.4ed36c4a.gleydson@ima.sp.gov.br> Thanks, That change solved my problem :-) Daniel Morissette em Fri, 23 Aug 2002 16:09:53 -0400 escreveu: > In your init page, you have the following hidden parameters with NO > VALUE: > > type=hidden name=map_nomespcampst_class_expression> > > For some reason, Netscape seems to pass them in the URL as > map_nomemunicp_class_expression=++ > setting the value to 2 spaces and that's what confuses MapServer's > expression parser. > > Removing the 2 spaces ("++") in the URL fixes the issue, so I would > suggest setting the value explicitly in the init page using VALUE="" in > the tags. > > Daniel > > > > Gleydson Mazioli da Silva wrote: > > > > Hi all, > > > > After upgrading my Debian system (libc6 and other packages, from memory), I got the following message > > when I try to access the mapserver application: > > > > getSymbol(): Symbol definition error. ():(1710) > > > > The curiously is that the message only happens when accessed by Netscape Communicator 4.xx (IE, Mozillas and > > other work fine). The page is available for Internet at address for bug reproducion: > > > > http://www.ima.sp.gov.br/geo/ppi > > > > Details: > > > > Mapserver: 3.6.1 (also tryed with cvs release of mapserver, without sucess) > > Libgd: 1.8.4 > > gdal: 1.1.7 > > > > Thanks in advanced for any help :-) > > > > Gleydson Mazioli da Silva > > ------------------------- > > gleydson at ima.sp.gov.br > > Consultor de Servidores GNU/Linux > > IMA - Inform?tica de Municipios Associados > > Av. Anchieta 200 - Campinas - SP > > (19) 3232-9611 - R. 216 -- Gleydson Mazioli da Silva ------------------------- gleydson at ima.sp.gov.br Consultor de Servidores GNU/Linux IMA - Inform?tica de Municipios Associados Av. Anchieta 200 - Campinas - SP (19) 3232-9611 - R. 216 From pkishor at GeoAnalytics.com Tue Aug 27 11:12:30 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 27 Aug 2002 13:12:30 -0500 Subject: [mapserver-users] Looking for suggestions... Message-ID: > -----Original Message----- > From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] > Sent: Tuesday, August 27, 2002 12:10 PM > To: 'Steve Lime'; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Looking for suggestions... > > > Thanks for the help...here are some followup... > > 1) I am new to shapefiles...how do you check the extents of > a shapefile? You could use Arcview if you have it. Else, if you are on a *nix box and have compiled Mapscript, you could use the shpinfo.pl script to get all manner of info on the shapefile. You could easily modify that script to only spit out the extent, if you so want. And you might also find a thusly modified script somewhere in the message archives... one of the many Perl wonks on this list had already done that for someone else. > 2) What I would like to do is have the user select a > bounding box and click > a button that will fill in some form fields with the lat/lon > based on the > that area. > this would require Javascript. When you select any box on the screen you are capturing screen coordinates. First step would be to transform those coords to the geographic coords of your preference. Inserting those coords in the form fields would then be trivial. Hth, pk/ > Thanks again! > Chris > > -----Original Message----- > From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] > Sent: Tuesday, August 27, 2002 11:48 AM > To: mapserver-users at lists.gis.umn.edu; Williams, Chris D. > Subject: Re: [mapserver-users] Looking for suggestions... > > > Hi Chris: > > 1) That extent certainly covers the globe, but whether it's > appropriate > depends on you > shapefiles. Check their extents to be sure. > > 2) You'd only define a projection if you are displaying a map in a > different projection than > your data. If everything is in lat/lon and you don't want to > display in > an alternative projection > then there's no need to define it. > > 3) Depends, but in most cases yes. You'll have to be more specific on > what you want to do. > > 4) The DNR site is back up, gremlins... jbox is an updated version of > mapplet in which method > names and so forth have been standardized/sync'd with a DHTML version. > I wanted to use the > same javascript base for either a Java or DHTML front end. That > necessitated some changes > to the applet, albeit minor ones. > > Steve > > >>> "Williams, Chris D." > 08/27/02 09:34AM > >>> > Hello all. I have been playing around with MapServer for the > past week > and > having some problems trying to understand how all the parts fit. Here > is > what I am trying to do. > > I have a single shape file that contains an outline of the > world. What > I am > trying to do is use mapplet and create a query screen that I am get a > decimal lat/lon from. I have been able to hack apart the itasca demo > using > my .map file and my shape file with mapplet. The problem I am running > into > now is the zooming function doesn't seem to work right. All it wants > to do > is pan and not really zoom. Here are some of the questions I have... > > 1) What should I be defining the EXTENT value as? I > currently have it > set > to -180.0 -90.0 180.0 90.0. Is this right? > 2) Do I need to use the projection latlong? I would think so since I > want > to get lat/lon points from the image. When I added the > PROJECTION item > to > my .map file, I get an error from the mapserv cgi saying: Projection > library > eror: major axis or radius = 0 or not given. > 3) Is there a way to take the pixal position and convert it to a lat > long > point? > 4) I have also looked at the Landview on the > http://www.dnr.state.mn.us > website. Would using the jbox class be better than mapplet? I tried > accessing the webpage today and it seems like none of the maps are > working. > > > I have attached the .map file and the .html files. The shape file I > am > using can be found at http://www.vdstech.com/download/world.zip. > > Thanks! > Chris > From tripodi at cttmar.univali.br Tue Aug 27 11:36:02 2002 From: tripodi at cttmar.univali.br (Rodrigo Zanato Tripodi) Date: Tue, 27 Aug 2002 15:36:02 -0300 Subject: [mapserver-users] Oracle Spatial error with HP-UX Message-ID: <1030473362.3d6bc6924d058@webmail.cttmar.univali.br> Hi, The problem with oracle spatial on HP-UX 64 bit plataform maybe is on the size of integer number, that modifies the structures and can cause a crash in some cases. I want to write a better error report to find a solution. We need to write a program that tests the load of SDO tables like mapserver does. I will try to find some time to do this on few weeks. Do you have some other ideia? -- Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From pkishor at GeoAnalytics.com Tue Aug 27 13:44:00 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 27 Aug 2002 15:44:00 -0500 Subject: [mapserver-users] Looking for suggestions... Message-ID: Chris, > -----Original Message----- > From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] > Sent: Tuesday, August 27, 2002 3:06 PM > To: 'Puneet Kishor' > Subject: RE: [mapserver-users] Looking for suggestions... > > > Hi Puneet. Any idea what would cause my map not to zoom in correctly? > Everytime I try, it just stays the same or it moves the > center of the image. Assuming you are using Perl/Mapscript... and you are starting off of the base code that Steve Lime wrote in mapquakes.pl, zoom in or out will happen only if the zoomfactor is something other than 1. For example, I do it like so... my $zoomfactor = 2; if ($method eq "zi") { $zoomamt = $zoomfactor; } elsif ($method eq "zo") { $zoomamt = 1 / $zoomfactor; } elsif ($method eq "pan") { $zoomamt = 1; } Now I can use the $zoomamt to do the actual calculations. Seems like you are doing nothing but panning. > Still trying to get the perl scripts to work right. I am on > Solaris with > limited access right so running that perl script is haded > that it should be. > well, yeah. you will at least need the rights to be able to write, chmod, connect to web server, etc. But the fact that you can do any means that you probably have all the rights you need. Give mapquakes.pl a good deal of studying. It is a really well written script... it does so much so concisely. Once you understand it fully you can easily build off of it. pk/ I am cc-ing this message to the list so other perl folks (and most all of them are much better than I am) can offer their wisdom where needed. > Thanks! > Chris > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at geoanalytics.com] > Sent: Tuesday, August 27, 2002 2:13 PM > To: Williams, Chris D.; mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Looking for suggestions... > > > > > > -----Original Message----- > > From: Williams, Chris D. [mailto:WILLIC10 at mail.northgrum.com] > > Sent: Tuesday, August 27, 2002 12:10 PM > > To: 'Steve Lime'; mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Looking for suggestions... > > > > > > Thanks for the help...here are some followup... > > > > 1) I am new to shapefiles...how do you check the extents of > > a shapefile? > > You could use Arcview if you have it. > > Else, if you are on a *nix box and have compiled Mapscript, > you could use > the shpinfo.pl script to get all manner of info on the > shapefile. You could > easily modify that script to only spit out the extent, if you > so want. And > you might also find a thusly modified script somewhere in the message > archives... one of the many Perl wonks on this list had > already done that > for someone else. > > > > 2) What I would like to do is have the user select a > > bounding box and click > > a button that will fill in some form fields with the lat/lon > > based on the > > that area. > > > > this would require Javascript. When you select any box on the > screen you are > capturing screen coordinates. First step would be to > transform those coords > to the geographic coords of your preference. Inserting those > coords in the > form fields would then be trivial. > > Hth, > > pk/ > > > > > > > > > > > > > Thanks again! > > Chris > > > > -----Original Message----- > > From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] > > Sent: Tuesday, August 27, 2002 11:48 AM > > To: mapserver-users at lists.gis.umn.edu; Williams, Chris D. > > Subject: Re: [mapserver-users] Looking for suggestions... > > > > > > Hi Chris: > > > > 1) That extent certainly covers the globe, but whether it's > > appropriate > > depends on you > > shapefiles. Check their extents to be sure. > > > > 2) You'd only define a projection if you are displaying a map in a > > different projection than > > your data. If everything is in lat/lon and you don't want to > > display in > > an alternative projection > > then there's no need to define it. > > > > 3) Depends, but in most cases yes. You'll have to be more > specific on > > what you want to do. > > > > 4) The DNR site is back up, gremlins... jbox is an updated > version of > > mapplet in which method > > names and so forth have been standardized/sync'd with a > DHTML version. > > I wanted to use the > > same javascript base for either a Java or DHTML front end. That > > necessitated some changes > > to the applet, albeit minor ones. > > > > Steve > > > > >>> "Williams, Chris D." > > 08/27/02 09:34AM > > >>> > > Hello all. I have been playing around with MapServer for the > > past week > > and > > having some problems trying to understand how all the parts > fit. Here > > is > > what I am trying to do. > > > > I have a single shape file that contains an outline of the > > world. What > > I am > > trying to do is use mapplet and create a query screen that > I am get a > > decimal lat/lon from. I have been able to hack apart the > itasca demo > > using > > my .map file and my shape file with mapplet. The problem I > am running > > into > > now is the zooming function doesn't seem to work right. > All it wants > > to do > > is pan and not really zoom. Here are some of the questions > I have... > > > > 1) What should I be defining the EXTENT value as? I > > currently have it > > set > > to -180.0 -90.0 180.0 90.0. Is this right? > > 2) Do I need to use the projection latlong? I would think > so since I > > want > > to get lat/lon points from the image. When I added the > > PROJECTION item > > to > > my .map file, I get an error from the mapserv cgi saying: Projection > > library > > eror: major axis or radius = 0 or not given. > > 3) Is there a way to take the pixal position and convert > it to a lat > > long > > point? > > 4) I have also looked at the Landview on the > > http://www.dnr.state.mn.us > > website. Would using the jbox class be better than > mapplet? I tried > > accessing the webpage today and it seems like none of the maps are > > working. > > > > > > I have attached the .map file and the .html files. The shape file I > > am > > using can be found at http://www.vdstech.com/download/world.zip. > > > > Thanks! > > Chris > > > From GrantM at ATSER.com Tue Aug 27 14:55:01 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Tue, 27 Aug 2002 16:55:01 -0500 Subject: [mapserver-users] help with converting tiff to a shp file Message-ID: <001e01c24e14$67a9d110$7201010a@localhost.atser> I have a tiff (top image) of an airport, and thanks to steven woodbridge, i also have a shp file with the runways of this airport. I wish to convert the tiff to shp using perhaps the shp file i have of the runways to line it up. Anyone here have any experience with this and an easy way to do this? I know it wont be exact but i am hoping to get as close as possible this way. Thanks for any input you can provide, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From erwin at perik.nu Tue Aug 27 15:13:52 2002 From: erwin at perik.nu (E Perik) Date: Wed, 28 Aug 2002 00:13:52 +0200 Subject: [mapserver-users] Looking for suggestions... In-Reply-To: Message-ID: <001601c24e17$09a974f0$967ba8c0@xp> You might want to use shapechk.exe if you want to get the extents of a shapefile. Look for info at: http://www.dnr.state.mn.us/mis/gis/tools/arcview/tipsheets/Tip5.html And download shapechk.exe from: http://www.geocities.com/SiliconValley/Haven/2295/howto_shapechk.html Me. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Williams, Chris D. Sent: dinsdag 27 augustus 2002 19:10 To: 'Steve Lime'; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Looking for suggestions... Thanks for the help...here are some followup... 1) I am new to shapefiles...how do you check the extents of a shapefile? 2) What I would like to do is have the user select a bounding box and click a button that will fill in some form fields with the lat/lon based on the that area. Thanks again! Chris -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, August 27, 2002 11:48 AM To: mapserver-users at lists.gis.umn.edu; Williams, Chris D. Subject: Re: [mapserver-users] Looking for suggestions... Hi Chris: 1) That extent certainly covers the globe, but whether it's appropriate depends on you shapefiles. Check their extents to be sure. 2) You'd only define a projection if you are displaying a map in a different projection than your data. If everything is in lat/lon and you don't want to display in an alternative projection then there's no need to define it. 3) Depends, but in most cases yes. You'll have to be more specific on what you want to do. 4) The DNR site is back up, gremlins... jbox is an updated version of mapplet in which method names and so forth have been standardized/sync'd with a DHTML version. I wanted to use the same javascript base for either a Java or DHTML front end. That necessitated some changes to the applet, albeit minor ones. Steve >>> "Williams, Chris D." 08/27/02 09:34AM >>> Hello all. I have been playing around with MapServer for the past week and having some problems trying to understand how all the parts fit. Here is what I am trying to do. I have a single shape file that contains an outline of the world. What I am trying to do is use mapplet and create a query screen that I am get a decimal lat/lon from. I have been able to hack apart the itasca demo using my .map file and my shape file with mapplet. The problem I am running into now is the zooming function doesn't seem to work right. All it wants to do is pan and not really zoom. Here are some of the questions I have... 1) What should I be defining the EXTENT value as? I currently have it set to -180.0 -90.0 180.0 90.0. Is this right? 2) Do I need to use the projection latlong? I would think so since I want to get lat/lon points from the image. When I added the PROJECTION item to my .map file, I get an error from the mapserv cgi saying: Projection library eror: major axis or radius = 0 or not given. 3) Is there a way to take the pixal position and convert it to a lat long point? 4) I have also looked at the Landview on the http://www.dnr.state.mn.us website. Would using the jbox class be better than mapplet? I tried accessing the webpage today and it seems like none of the maps are working. I have attached the .map file and the .html files. The shape file I am using can be found at http://www.vdstech.com/download/world.zip. Thanks! Chris From Timothy.Mackey at ga.gov.au Tue Aug 27 16:19:53 2002 From: Timothy.Mackey at ga.gov.au (Mackey Timothy) Date: Wed, 28 Aug 2002 09:19:53 +1000 Subject: [mapserver-users] msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error Message-ID: Hi Rodrigo, I've just got it to work! It was a matter of getting the right environment variables set in my web server software (ORACLE_SID,TWO_TASK,TNS_ADMIN,ORACLE_HOME). Things were a bit complicated because my web server is a different box to the Oracle server. Thanks for all of your help, Tim -----Original Message----- From: Rodrigo Zanato Tripodi [mailto:tripodi at cttmar.univali.br] Sent: Wednesday, 28 August 2002 12:37 AM To: mapserver-users at lists.gis.umn.edu Cc: Mackey Timothy Subject: [mapserver-users] msOCIConnect() in msOracleSpatialLayerOpen(): OracleSpatial error Tim, We need to configure a server with Oracle 9i and IAS in a Windows NT to test the connection. I?ll check the source code and try to make a better error report for this problem. The server configuration and the tests maybe take a month. -- Rodrigo Zanato Tripodi Laborat?rio de Computa??o Aplicada - CTTMar/Univali tripodi at cttmar.univali.br http://g10.cttmar.univali.br ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From woodbri at swoodbridge.com Tue Aug 27 16:24:20 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Tue, 27 Aug 2002 19:24:20 -0400 Subject: [mapserver-users] help with converting tiff to a shp file In-Reply-To: <001e01c24e14$67a9d110$7201010a@localhost.atser> Message-ID: <3D6BD1E4.18013.63234987@localhost> Or another way to think about the problems is: How could you come up with a world file for the tiff, if you know the lat/long of the end points of the four runways. So if you know the lat/long of eight pixels in the TIFF what would you have to do to make a world file? Anybody have a clue? -Steve On 27 Aug 2002 at 16:55, Grant Marblestone wrote: > > I have a tiff (top image) of an airport, and thanks to steven > woodbridge, i also have a shp file with the runways of this airport. > I wish to convert the tiff to shp using perhaps the shp file i have > of the runways to line it up. Anyone here have any experience with > this and an easy way to do this? I know it wont be exact but i am > hoping to get as close as possible this way. > > Thanks for any input you can provide, > > Grant From webmaster at buckoptimized.com Tue Aug 27 21:58:43 2002 From: webmaster at buckoptimized.com (Gerald Buckmaster) Date: Tue, 27 Aug 2002 21:58:43 -0700 Subject: [mapserver-users] help with converting tiff to a shp file References: <3D6BD1E4.18013.63234987@localhost> Message-ID: <027d01c24e4f$95c4c9c0$6401a8c0@sabinocanyon> Greetings, It sounds like a job for the GeoTIFF Specification. You can use geotifcp with the -g argument to install metadata, then use listgeo -tfw to write the worldfile. GeoTIFF Metadata is nothing more than a text file that looks something like this: Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0 0 0 -110.410032 33.2834107 0 ModelPixelScaleTag (1,3): 0.000364376663 0.000323906075 0 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeGeographic GTRasterTypeGeoKey (Short,1): RasterPixelIsPoint GTCitationGeoKey (Ascii,11): "CLARKE1866" GeogCitationGeoKey (Ascii,11): "GEOGRAPHIC" End_Of_Keys. End_Of_Geotiff. I believe you would most likely set the ModelTiepointTag to (8,3) to handle your pixel/geocoord/elevation triplets. I've never seen anyone use anything but 0 for the vertical. The example given in the link below negates the use of ModelPixelScaleTag, which basically means clients (software) are not allowed to infer that there is a simple linear relationship between the raster data and the geographic model coordinate space. That might be a problem with some software...someone would need to try out with Mapserver other than me, as I am officially on vacation when this email transmits. More details about this can be read at: http://www.remotesensing.org/geotiff/spec/geotiff3.html#3.2.1. I highly recommend the entire Specification for late-night reading ;^) Respectfully, Gerald Buckmaster www.imagery-analyst.com ----- Original Message ----- From: To: "Grant Marblestone" ; Sent: Tuesday, August 27, 2002 16:24 Subject: Re: [mapserver-users] help with converting tiff to a shp file > Or another way to think about the problems is: > How could you come up with a world file for the tiff, if you know the > lat/long of the end points of the four runways. So if you know the > lat/long of eight pixels in the TIFF what would you have to do to > make a world file? > > Anybody have a clue? > > -Steve > > On 27 Aug 2002 at 16:55, Grant Marblestone wrote: > > > > > I have a tiff (top image) of an airport, and thanks to steven > > woodbridge, i also have a shp file with the runways of this airport. > > I wish to convert the tiff to shp using perhaps the shp file i have > > of the runways to line it up. Anyone here have any experience with > > this and an easy way to do this? I know it wont be exact but i am > > hoping to get as close as possible this way. > > > > Thanks for any input you can provide, > > > > Grant > > From benkarl at texas.net Tue Aug 27 22:49:11 2002 From: benkarl at texas.net (benkarl at texas.net) Date: Wed, 28 Aug 2002 00:49:11 -0500 Subject: [mapserver-users] Setting up MapServer (Request for Info) Message-ID: <3D6C1E07.32053.20F030@localhost> Hi, I'm working a web development project where we would like to put street maps on pages showing the location of specific sites by street address. Basically, we want the same sort of thing MapQuest or Yahoo Maps can do, but we can't afford the $4500 per year that MapQuest wants to let us put maps on our own pages. I started looking into alternatives and found MapServer. Our current configuration is a Windows NT machine at Dellhost so we pretty much need to go with cgi, though I suppose we could get a linux host if we needed something else. I am aware of the Tiger/Line data from the census bureau for street locations. What I'd like to ask about right now is if I can get Mapserver to do what I want and what, at least generally, would be involved in doing it. If someone already has this information out there somewhere, I'd love a pointer to it. Thanks! Ben Krauskopf benkarl at texas.net "Gimme that ring, ya hairy-footed hobbit varmint! Gimme that ring or I'll blast ya!" --Yosemite Nazgul. From c.sandor at emla.hu Wed Aug 28 00:18:39 2002 From: c.sandor at emla.hu (Sandor Csaba) Date: Wed, 28 Aug 2002 09:18:39 +0200 Subject: [mapserver-users] help with converting tiff to a shp file In-Reply-To: <3D6BD1E4.18013.63234987@localhost> References: <001e01c24e14$67a9d110$7201010a@localhost.atser> Message-ID: <5.1.0.14.0.20020828090940.00c11c38@192.168.1.7> Hi, this is not a Mapserver question I think. You have to transform the tiff using some image referencing software like ArcView Image Analysis or cheaper Stretch Image extension (or any other) before entering it to a Mapserv application. This will make an affine transformation (rotate, skew and pan) to the image based on the control points you define (image coords->map coords) and also create the corresponding world file. Naturally some remaining error will be present. I do not know of any piece of software that does this in runtime, though it should not be too complicated to code an affine trafo, but this way you have to process the image on the fly which might take quite a while thinking of normal resolution scanned arial images or satellites (some hundreds of MBs). I can do the transformation for you like, but please before sending me 100MB tiff through email please let me know beforehand. Csaba At 19:24 2002. 08. 27.t Converted: -0400, woodbri at swoodbridge.com wrote: >Or another way to think about the problems is: >How could you come up with a world file for the tiff, if you know the >lat/long of the end points of the four runways. So if you know the >lat/long of eight pixels in the TIFF what would you have to do to >make a world file? > >Anybody have a clue? > >-Steve > >On 27 Aug 2002 at 16:55, Grant Marblestone wrote: > > > > > I have a tiff (top image) of an airport, and thanks to steven > > woodbridge, i also have a shp file with the runways of this airport. > > I wish to convert the tiff to shp using perhaps the shp file i have > > of the runways to line it up. Anyone here have any experience with > > this and an easy way to do this? I know it wont be exact but i am > > hoping to get as close as possible this way. > > > > Thanks for any input you can provide, > > > > Grant - {Kornyezeti Management es Jog Egyesulet {Environmental Management and Law Association {www.emla.hu {1076 Budapest {Garay u. 29-31 {Hungary {Tel/fax: 36-1-3228462, 36-1-3529925 {Mobil: 06-20-949-1447 From l.bargeot at educagri.fr Wed Aug 28 00:37:08 2002 From: l.bargeot at educagri.fr (Lionel) Date: Wed, 28 Aug 2002 09:37:08 +0200 Subject: [mapserver-users] mapextent of a selected polygon Message-ID: <02082809370802.26192@agrogeomatic> Hi, I know it's possible to obtain a layer global mapextent. But do you know if it's possible to obtain the mapextent of a selected polygon in a layer. I work with phpmapscript and I would like to zoom at an entire polygon (or group of polygons) when it's selected by a user. Another solution is to store each mapextent of each polygon obtained with another software (like arcinfo or grass) in a separate file, but I'd like to avoid this and to keep a dynamic method. Thanks in advance, Lionel -- AgrogeomaTIC CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 From wesp at gdv.com Wed Aug 28 01:35:22 2002 From: wesp at gdv.com (Oliver Wesp) Date: Wed, 28 Aug 2002 10:35:22 +0200 Subject: [mapserver-users] problems with itemfeaturenquery Message-ID: <000901c24e6d$d97b6660$1501a8c0@else> Hello everybody, once again I'm trying to do some stuff with SDE-Layers. This time I like to select features from one layer using a item query on another layer. itemfeaturenquery should to the trick if I'm not totally wrong. What I got is the following: My Request: http://myServer/cgi-bin/mapserv?map=/var/apache/htdocs/myDir/demo.map&mo de=itemfeaturenquery&slayer=REGIONS&map_REGIONS_filter="NLG='kal'"&qLaye r=myLayer&map_REGIONS_header=makeSelHeader.html&map_REGIONS_template=mak eSel.html&map_REGIONS_footer=makeSelFooter.html And here is the Result: msSDELayerGetShape(): General error message. No items requested, SDE requires at least one item. Am I missing something here? Any help is appreciated. kind regards Oliver Wesp -- Gesellschaft f?r geografische Datenverarbeitung Binger Str. 49-51 D-55218 Ingelheim Fon: +49 6132 714818 Fax: +49 6132 714828 E-Mail: wesp at gdv.com From mail2stern at gmx.net Wed Aug 28 04:53:29 2002 From: mail2stern at gmx.net (Stefan Stern) Date: Wed, 28 Aug 2002 12:53:29 +0100 Subject: [mapserver-users] Scroll Restriction Message-ID: <3D6CB9B9.2040107@gmx.net> Hi all, Is there a way to prevent user from 'scrolling' out of the provided dataset? e.g. If one is constantly recentering the map at points outside the image/shapefile. Regards, Stefan From thfischer at mapmedia.de Wed Aug 28 08:51:29 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 28 Aug 2002 17:51:29 +0200 Subject: [mapserver-users] Scroll Restriction In-Reply-To: <3D6CB9B9.2040107@gmx.net> References: <3D6CB9B9.2040107@gmx.net> Message-ID: <1030549894.899.6.camel@grobi> Stefan, > Is there a way to prevent user from 'scrolling' out of the provided > dataset? > e.g. If one is constantly recentering the map at points outside the > image/shapefile. In case you are using php mapscript, you can use the zoom functions (zoom[point|square]) and pass a rectObj as an optional last parameter to define extents that won't be left while zooming. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From spencer at dmsolutions.ca Wed Aug 28 05:49:40 2002 From: spencer at dmsolutions.ca (Paul Spencer) Date: Wed, 28 Aug 2002 08:49:40 -0400 Subject: [mapserver-users] Setting up MapServer (Request for Info) References: <3D6C1E07.32053.20F030@localhost> Message-ID: <3D6CC6E4.6070100@dmsolutions.ca> Hi Ben ... you have a quite few options working with MapServer, probably the simplest for what you want to do is to use the CGI mode. You'll need to create a Map file that contains references to the data you want to use and then you can set up standard HTTP requests to get images for specific locations. There's lots of material on the UMN site to get you started on this. As a new user, you might want to use MapLab from http://www2.dmsolutions.ca/owt/maplab/ to help you set up and visualize your mapfile. Cheers Paul -- Paul Spencer Applications and Software Development DM Solutions Group benkarl at texas.net wrote: > Hi, > > I'm working a web development project where we would like to put > street maps on pages showing the location of specific sites by > street address. Basically, we want the same sort of thing > MapQuest or Yahoo Maps can do, but we can't afford the $4500 > per year that MapQuest wants to let us put maps on our own pages. > I started looking into alternatives and found MapServer. > > Our current configuration is a Windows NT machine at Dellhost so > we pretty much need to go with cgi, though I suppose we could get > a linux host if we needed something else. I am aware of the > Tiger/Line data from the census bureau for street locations. > > What I'd like to ask about right now is if I can get Mapserver to do > what I want and what, at least generally, would be involved in doing > it. If someone already has this information out there somewhere, I'd > love a pointer to it. > > Thanks! > > Ben Krauskopf > benkarl at texas.net > > "Gimme that ring, ya hairy-footed hobbit varmint! Gimme that ring > or I'll blast ya!" > --Yosemite Nazgul. > From thfischer at mapmedia.de Wed Aug 28 09:55:13 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 28 Aug 2002 18:55:13 +0200 Subject: [mapserver-users] PHP MapScript 3.6.x cgi/module Message-ID: <1030553751.930.24.camel@grobi> Hi list, I have it seen mentioned several times now: That I should not use PHP MapScript 3.6.x as a module; only the cgi version is supposed to work properly. Ok. In fact, it is said, that when loading 3.6.x as a php module, an error would occur. But interestingly, on my installation(s) i can do the following: " . ms_GetVersion () . "

"; ?> And get output as this: MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=GDAL INPUT=SHAPEFILE Just wondering if i missed something. I do not use this in production (I obey to developers' orders) and know i might break something - these things are for my development and personal use. Just wanted to point out that the "there will be a warning" part isn't true. Nothing in my logs either, no matter how much verbosity or debugging noise i turn on. thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From woodbri at swoodbridge.com Wed Aug 28 08:15:44 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 28 Aug 2002 11:15:44 -0400 Subject: [mapserver-users] mapextent of a selected polygon In-Reply-To: <02082809370802.26192@agrogeomatic> Message-ID: <3D6CB0E0.26005.668A4EA0@localhost> Lionel, Check out the ShapefileObj Class which allows you to retrieve the the extents of any object. check out the http://mapserver.gis.umn.edu/doc/ page and specifically http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html -Steve http://iMapTools.com On 28 Aug 2002 at 9:37, Lionel wrote: > Hi, > > I know it's possible to obtain a layer global mapextent. But do you know if > it's possible to obtain the mapextent of a selected polygon in a layer. I > work with phpmapscript and I would like to zoom at an entire polygon (or > group of polygons) when it's selected by a user. > Another solution is to store each mapextent of each polygon obtained with > another software (like arcinfo or grass) in a separate file, but I'd like to > avoid this and to keep a dynamic method. > Thanks in advance, > Lionel > -- > AgrogeomaTIC > CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon > 03.80.77.28.49 > From pkishor at GeoAnalytics.com Wed Aug 28 08:23:16 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 28 Aug 2002 10:23:16 -0500 Subject: [mapserver-users] distance search in PLSS Message-ID: not directly a mapserver question, but... given a PLSS quarter-section, and a distance (let's assume, in increments of 1/4 mile, since each qs is a quarter-mile square), I want to return a list of all the quarter-sections and their parent sections, townships, and ranges. For example, if I choose T21, R10, S23, NW, what trsq values would be around it within a radius of 1/2 mile. Also, let's assume that I am interested in pass-through selections. So, every 1/4 mi incremented radius will select the "next" outer set of trsq. The catch is, I don't want to do this spatially... instead, I want to use a database... in other words, pure logic and math. I have a table of PLSS values with fields for t, r, s, qs. PLSS follows a set pattern. It is reasonable to assume that an algorithm could be devised to do this on the fly. Any ideas, anyone? tia, pk/ From thaechl at geo.unizh.ch Wed Aug 28 08:56:45 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: 28 Aug 2002 17:56:45 +0200 Subject: [mapserver-users] PHP MapScript 3.6.x cgi/module References: <1030553751.930.24.camel@grobi> Message-ID: <3D6CF2BD.31B315DA@geo.unizh.ch> Thorsten, As far as I can see, the cgi / module discussion is referring to the way how PHP (not phpmapscript) is installed, i.e.: - if the php document where you have the dl ("php_mapscript.so") statement inside is processed by a php installed as cgi, everything is working. - if it is processed by php installed as an apache module, you will get the following error: "Fatal error: Due to thread-safety problems, php_mapscript cannot be used as a 'apache' module. You will have to reconfigure your PHP as a CGI to run this version of MapScript." (I just did that little test now) By the way: It is possible to install apache with both, php as a module and php as cgi at the same time. in the httpd.conf file you then have to specify which documents are processed by which php version (example: filename.php -> module, filename.phtml -> cgi). like this you can use the module version for all mapscript unrelated purposes. hope this helps, Thomy -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From ed at topozone.com Wed Aug 28 09:02:38 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 28 Aug 2002 12:02:38 -0400 Subject: [mapserver-users] distance search in PLSS Message-ID: <13858AA1A74F30419F319ACB66A9D1220193FA@mercator.topozone.com> Puneet - How accurate do you need to be? The two issues I can think of right off are that you don't know when the current meridian runs out and you need to look at a new one, and the fact that the grids aren't entirely regular and have many hole in them, especially around Indian reservations and other unsurveyed areas. That is, if you start with T21, R10, S23, the next section to its west will be Section 22 - IF Section 22 actually exists at all. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] Sent: Wednesday, August 28, 2002 11:23 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] distance search in PLSS not directly a mapserver question, but... given a PLSS quarter-section, and a distance (let's assume, in increments of 1/4 mile, since each qs is a quarter-mile square), I want to return a list of all the quarter-sections and their parent sections, townships, and ranges. For example, if I choose T21, R10, S23, NW, what trsq values would be around it within a radius of 1/2 mile. Also, let's assume that I am interested in pass-through selections. So, every 1/4 mi incremented radius will select the "next" outer set of trsq. The catch is, I don't want to do this spatially... instead, I want to use a database... in other words, pure logic and math. I have a table of PLSS values with fields for t, r, s, qs. PLSS follows a set pattern. It is reasonable to assume that an algorithm could be devised to do this on the fly. Any ideas, anyone? tia, pk/ From morissette at dmsolutions.ca Wed Aug 28 09:04:48 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 28 Aug 2002 12:04:48 -0400 Subject: [mapserver-users] PHP MapScript 3.6.x cgi/module References: <1030553751.930.24.camel@grobi> Message-ID: <3D6CF4A0.7BF5A374@dmsolutions.ca> Thorsten, ms_GetVersion will work even if PHP is not as a CGI. The error about CGI mode was added in ms_newMapObj() since you can't do much in MapScript without creating a mapObj. So if you try calling ms_newMapObj() then you will see the error. Daniel Thorsten Fischer wrote: > > Hi list, > > I have it seen mentioned several times now: That I should not use PHP > MapScript 3.6.x as a module; only the cgi version is supposed to work > properly. Ok. In fact, it is said, that when loading 3.6.x as a php > module, an error would occur. But interestingly, on my installation(s) i > can do the following: > > dl ("php_mapscript.so"); > echo "

" . ms_GetVersion () . "

"; > ?> > > And get output as this: > > MapServer version 3.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG > INPUT=GDAL INPUT=SHAPEFILE > > Just wondering if i missed something. I do not use this in production (I > obey to developers' orders) and know i might break something - these > things are for my development and personal use. Just wanted to point out > that the "there will be a warning" part isn't true. Nothing in my logs > either, no matter how much verbosity or debugging noise i turn on. > > thorsten > > -- > > Thorsten Fischer thfischer at mapmedia.de > > --------------------------------------------------------- > MapMedia - Kartographie und raumbezogene Informationssysteme > Am Borsigturm 42 > 13507 Berlin > Deutschland > http://www.mapmedia.de tel: +49 (0)30 43032102 > --------------------------------------------------------- From pkishor at GeoAnalytics.com Wed Aug 28 09:08:26 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 28 Aug 2002 11:08:26 -0500 Subject: [mapserver-users] distance search in PLSS Message-ID: Ed, Here are some more assumptions... > From: Ed McNierney [mailto:ed at topozone.com] .. > How accurate do you need to be? not at all really... as long as I get a list of the contiguous trsq in all directions... as I said, the selection would be "pass-through" (it could be "contains" as well, but for now let's assume "pass-through"... even if it is "contains" it doesn't have to be precise, for ex, if doing radius searches, square qs won't fit completely inside a circle, etc.) > The two issues I can think > of right off are that you don't know when the current > meridian runs out and you need to look at a new one, yes, that is a problem, but again, let's assume that my area of interest lies completely within one... > and the > fact that the grids aren't entirely regular and have many > hole in them, especially around Indian reservations and other > unsurveyed areas. That is, if you start with T21, R10, S23, > the next section to its west will be Section 22 - IF Section > 22 actually exists at all. again, let's assume that I have a completely contiguous grid for my area of interest. fwiw, my area of interest is the Northern Illinois region, but that is neither here nor there. tia, pk/ > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Wednesday, August 28, 2002 11:23 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] distance search in PLSS > > > not directly a mapserver question, but... > > given a PLSS quarter-section, and a distance (let's assume, > in increments of > 1/4 mile, since each qs is a quarter-mile square), I want to > return a list > of all the quarter-sections and their parent sections, townships, and > ranges. > > For example, if I choose T21, R10, S23, NW, what trsq values > would be around > it within a radius of 1/2 mile. > > Also, let's assume that I am interested in pass-through > selections. So, > every 1/4 mi incremented radius will select the "next" outer > set of trsq. > > The catch is, I don't want to do this spatially... instead, I > want to use a > database... in other words, pure logic and math. > > I have a table of PLSS values with fields for t, r, s, qs. > PLSS follows a > set pattern. It is reasonable to assume that an algorithm > could be devised > to do this on the fly. > > Any ideas, anyone? > > tia, > > pk/ > From kunzmann at masterplan.de Wed Aug 28 09:31:03 2002 From: kunzmann at masterplan.de (Jan Kunzmann) Date: Wed, 28 Aug 2002 18:31:03 +0200 Subject: [mapserver-users] Vector maps from different vendors with different world coordinates Message-ID: <3D6CFAC7.70907@masterplan.de> Hi folks, At the moment I do some experiments with mapserver (great piece of software, BTW). I've downloaded two demo sets (a vector based and a raster based from different vendors) covering parts of Berlin, Germany. The problem is that they seem to use different world coordinates. The raster map is shown when I use the command EXTEND 797668 5827367 800464 5830167 in the mapfile. The vector map, covering the same area, needs EXTEND 61.59 34 61.83 34.14. Is there a possibility to rescale one of the maps so it matches the other one? Maybe some parameteres in the LAYER definition of the mapfile? And, last question... is there a official "standard" for world coordinates in shape files? I think everyone is used to measure in degrees from the zero meridian and the equator. Thank you in advance, Jan From woodbri at swoodbridge.com Wed Aug 28 09:44:25 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 28 Aug 2002 12:44:25 -0400 Subject: [mapserver-users] Setting up MapServer (Request for Info) In-Reply-To: <3D6C1E07.32053.20F030@localhost> Message-ID: <3D6CC5A9.12063.66DB7CB2@localhost> On 28 Aug 2002 at 0:49, benkarl at texas.net wrote: > Hi, > > I'm working a web development project where we would like to put > street maps on pages showing the location of specific sites by > street address. Basically, we want the same sort of thing > MapQuest or Yahoo Maps can do, but we can't afford the $4500 > per year that MapQuest wants to let us put maps on our own pages. > I started looking into alternatives and found MapServer. > > Our current configuration is a Windows NT machine at Dellhost so > we pretty much need to go with cgi, though I suppose we could get > a linux host if we needed something else. I am aware of the > Tiger/Line data from the census bureau for street locations. > > What I'd like to ask about right now is if I can get Mapserver to do > what I want and what, at least generally, would be involved in doing > it. If someone already has this information out there somewhere, I'd > love a pointer to it. 1) You would need to get the Tiger/Line data and convert it to shape files. 2) Set up a mapserver map file to render your maps 3) Build an application in Mapscript or using mapserver CGI to render your maps 4) Code or license a GeoCoding application that you can interface to your mapserver application. By the way, I have a mapserver running with Tiger data that I translated into shapefiles and interfaced with a geocoding application that I wrote. You can see it at http://iMapTools.com/demos Hope this helps, -Stephen Woodbridge > Thanks! > > Ben Krauskopf > benkarl at texas.net > > "Gimme that ring, ya hairy-footed hobbit varmint! Gimme that ring > or I'll blast ya!" > --Yosemite Nazgul. > From ed at topozone.com Wed Aug 28 09:44:54 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 28 Aug 2002 12:44:54 -0400 Subject: [mapserver-users] distance search in PLSS Message-ID: <13858AA1A74F30419F319ACB66A9D1220193FB@mercator.topozone.com> Puneet - For the quarter-mile radius case, I would simply generate a 8 x 4 x 36 = 1152-element table. Each quarter-section has eight neighbors within a quarter-mile, in the compass directions N, NE, E, SE, S, SW, W, and NW. Each row of the table is: DIR, SN, QSN, DT, DR where DIR - Compass direction (N, NE, etc.) SN - Section Number SQN - Quarter Section ID DT - Delta Township (see below) DR - Delta Range (see below) For township and range you need to deal with whether your range is E or W and the township is N or S. The Delta values are always either 1, 0, or -1 indicating whether the neighbor is in the current township and range, or the "next" one. The exact meaning of "next" depends on whether the source is E or W, N or S. For example, say you're starting with SE 1/4, S24, T30N, R12E. The eight table entries for this quarter-section are: N, 24, NE, 0, 0 NE, 19, NW, 0, +1 E, 19, SW, 0, +1 SE, 30, NW, 0, +1 S, 25, NE, 0, 0 SW, 25, NW, 0, 0 W, 24, SW, 0, 0 NW, 24, NW, 0, 0 Even this is overkill, because the QS label can be calculated easily (i.e. if you go SE from a SW quarter-section, you always get to a NW quarter-section). You organize the table so each block of 8 is the four quarter-sections of a given section, and the sections are grouped in numerical order, so there are 4 x 8 = 32 lines for each section. If you ran them NW, NE, SW, SE, for example, you would find these eight lines for SE 1/4, S24 at the 24th block of 32 lines into the file, and the SE QS would be the last eight of these 32 lines. Let's take the first line. It means that when you go North from this QS, you get to NE 1/4 of S24, T30N, R12E (because the Township and Range deltas are both 0, they're both identical to the source). The next line says that the NE neighbor is the NW 1/4 of S19, T30N, and Range +1. If the Range is E, then +1 means add one, so it's R13E. If Range is West, you need to reverse the sign (that is, the Range east of R12E is R13E, but the range east of R12W is R11W). The same is true for Township deltas, although they're all 0 here. If you apply a Township or Range delta and get 0, then make it 1 and switch the E/W or N/S sense - it means you crossed the baseline or meridian. Completion of the table is left to the reader, or I can send you our billing rates . - Ed -----Original Message----- From: Puneet Kishor [mailto:pkishor at geoanalytics.com] Sent: Wednesday, August 28, 2002 12:08 PM To: Ed McNierney; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] distance search in PLSS Ed, Here are some more assumptions... > From: Ed McNierney [mailto:ed at topozone.com] .. > How accurate do you need to be? not at all really... as long as I get a list of the contiguous trsq in all directions... as I said, the selection would be "pass-through" (it could be "contains" as well, but for now let's assume "pass-through"... even if it is "contains" it doesn't have to be precise, for ex, if doing radius searches, square qs won't fit completely inside a circle, etc.) > The two issues I can think > of right off are that you don't know when the current > meridian runs out and you need to look at a new one, yes, that is a problem, but again, let's assume that my area of interest lies completely within one... > and the > fact that the grids aren't entirely regular and have many > hole in them, especially around Indian reservations and other > unsurveyed areas. That is, if you start with T21, R10, S23, > the next section to its west will be Section 22 - IF Section > 22 actually exists at all. again, let's assume that I have a completely contiguous grid for my area of interest. fwiw, my area of interest is the Northern Illinois region, but that is neither here nor there. tia, pk/ > > -----Original Message----- > From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com] > Sent: Wednesday, August 28, 2002 11:23 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] distance search in PLSS > > > not directly a mapserver question, but... > > given a PLSS quarter-section, and a distance (let's assume, > in increments of > 1/4 mile, since each qs is a quarter-mile square), I want to > return a list > of all the quarter-sections and their parent sections, townships, and > ranges. > > For example, if I choose T21, R10, S23, NW, what trsq values > would be around > it within a radius of 1/2 mile. > > Also, let's assume that I am interested in pass-through > selections. So, > every 1/4 mi incremented radius will select the "next" outer > set of trsq. > > The catch is, I don't want to do this spatially... instead, I > want to use a > database... in other words, pure logic and math. > > I have a table of PLSS values with fields for t, r, s, qs. > PLSS follows a > set pattern. It is reasonable to assume that an algorithm > could be devised > to do this on the fly. > > Any ideas, anyone? > > tia, > > pk/ > From erwin at perik.nu Wed Aug 28 09:57:12 2002 From: erwin at perik.nu (E Perik) Date: Wed, 28 Aug 2002 18:57:12 +0200 Subject: [mapserver-users] mapextent of a selected polygon In-Reply-To: <02082809370802.26192@agrogeomatic> Message-ID: <000c01c24eb3$f490fb90$967ba8c0@xp> Using PHPmapscript you can get the extents from single objects. Collect them and then 'filter' for: Xmin Ymin Xmax Ymax ### $shapeExtObj = $shapeFileObj->getExtent($value); $ShapeMinX = $shapeExtObj->minx; $ShapeMinY = $shapeExtObj->miny; $ShapeMaxX = $shapeExtObj->maxx; $ShapeMaxY = $shapeExtObj->maxy; ### $value is the object's index Me. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Lionel Sent: woensdag 28 augustus 2002 9:37 To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mapextent of a selected polygon Hi, I know it's possible to obtain a layer global mapextent. But do you know if it's possible to obtain the mapextent of a selected polygon in a layer. I work with phpmapscript and I would like to zoom at an entire polygon (or group of polygons) when it's selected by a user. Another solution is to store each mapextent of each polygon obtained with another software (like arcinfo or grass) in a separate file, but I'd like to avoid this and to keep a dynamic method. Thanks in advance, Lionel -- AgrogeomaTIC CNERTA-ENESAD, 4 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 From ed at topozone.com Wed Aug 28 10:01:31 2002 From: ed at topozone.com (Ed McNierney) Date: Wed, 28 Aug 2002 13:01:31 -0400 Subject: [mapserver-users] Vector maps from different vendors with different world coordinates Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8567@mercator.topozone.com> Jan - It appears that your raster data is possibly projected in the UTM projection (?) and your vector data is unprojected in decimal degrees. MapServer can handle and combine these just fine, but you will need to know all the details of the projection used to create your raster image. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Jan Kunzmann [mailto:kunzmann at masterplan.de] Sent: Wednesday, August 28, 2002 12:31 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Vector maps from different vendors with different world coordinates Hi folks, At the moment I do some experiments with mapserver (great piece of software, BTW). I've downloaded two demo sets (a vector based and a raster based from different vendors) covering parts of Berlin, Germany. The problem is that they seem to use different world coordinates. The raster map is shown when I use the command EXTEND 797668 5827367 800464 5830167 in the mapfile. The vector map, covering the same area, needs EXTEND 61.59 34 61.83 34.14. Is there a possibility to rescale one of the maps so it matches the other one? Maybe some parameteres in the LAYER definition of the mapfile? And, last question... is there a official "standard" for world coordinates in shape files? I think everyone is used to measure in degrees from the zero meridian and the equator. Thank you in advance, Jan From steve.lime at dnr.state.mn.us Wed Aug 28 11:50:31 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 28 Aug 2002 13:50:31 -0500 Subject: [mapserver-users] Scroll Restriction Message-ID: Not with mapserver CGI although this is a planned enhancement. There is already a parameter in the WEB object called EXTENT to hold the value but it is unused at present. Should be part of the 3.7 release. Steve >>> Stefan Stern 08/28/02 06:53AM >>> Hi all, Is there a way to prevent user from 'scrolling' out of the provided dataset? e.g. If one is constantly recentering the map at points outside the image/shapefile. Regards, Stefan From WILLIC10 at mail.northgrum.com Wed Aug 28 12:37:32 2002 From: WILLIC10 at mail.northgrum.com (Williams, Chris D.) Date: Wed, 28 Aug 2002 12:37:32 -0700 Subject: [mapserver-users] Scale and tileindex question Message-ID: Couple more questions about MapServer...I am using mapplet with just the cgi commands. No mapscript of any sorts yet. 1) When I print out the scale variable, what are the units of this value? My map is just using a lat/lon extent of -180,-90,180,90. 2) How does one go about using the TILEINDEX variable? Is there an example out there to look at? I have say 4 shape files that each represent a 5 degree by 5 degree area. Am I correct to assume I add the pathes to each of these files to the TILEINDEX file and that represents that layer? 3) I am trying to use the maplat/maplon variables and I never see any value. Do I need to set a projection? When I try to set it to latlong, I get errors. I have compiled mapserv with proj4. 4) Lastly...sort of releated to number 3, how can I get the lat/lon for the positions points on the map? Thanks again for all the help!! Chris From sctweedy at NRCan.gc.ca Wed Aug 28 13:42:42 2002 From: sctweedy at NRCan.gc.ca (Tweedy, Scott) Date: Wed, 28 Aug 2002 16:42:42 -0400 Subject: [mapserver-users] symbol files Message-ID: <5ACEEE96F4F9D41190790002A528B51E02740792@s0-ott-x11.nrn.nrcan.gc.ca> Just so I don't have to go drawing custom symbols, does anyone know where there would be some custom symbol files that have already been created? Thanks in advance, st From GrantM at ATSER.com Wed Aug 28 14:15:58 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 28 Aug 2002 16:15:58 -0500 Subject: [mapserver-users] crap never mind Message-ID: <003801c24ed8$1d831eb0$7201010a@localhost.atser> it helps when you put it in the right directory... sorry peeps!!! gm -------------- next part -------------- An HTML attachment was scrubbed... URL: From GrantM at ATSER.com Wed Aug 28 14:13:36 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Wed, 28 Aug 2002 16:13:36 -0500 Subject: [mapserver-users] question gmap Message-ID: <002f01c24ed7$c8a8b530$7201010a@localhost.atser> First of all thanks to all yall help and especially THaddad for all the help so far.... Second i am attempting to do something i havent done and use a tif image type raster in my gmap I am using gmap-35 and also using mapserver3.5 my .map contains LAYER NAME airport_image TYPE RASTER DATA "d:\gis\hartsfield3.tif" STATUS OFF END however when i try to run the page iget this errror: Warning: MapServer Error in msDrawRaster(): (d:\gis\hartsfield3.tif) in c:\phpdev\www\aweb\atl1\htdocs\gmap_atl.php3 on line 891 Fatal error: Call to a member function on a non-object in c:\phpdev\www\aweb\atl1\htdocs\gmap_atl.php3 on line 892 Now i dont knwo what is going on... any clues??? Thanks, Grant From morissette at dmsolutions.ca Wed Aug 28 14:23:53 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 28 Aug 2002 17:23:53 -0400 Subject: [mapserver-users] Open Source / MapServer Meeting in Zurich References: <11C3B3D17A3ED311B27C00104B4B47BCA7E2F7@dler9.dle-r.bayern.de> <1622585765.20020826091334@tydac.ch> Message-ID: <3D6D3F69.63FCAC5C@dmsolutions.ca> BTW, I will also be visiting the Open Source GIS / GRASS Users Conference in Trento, Italy, the week of Sept 11-13 ... in case other MapServer users/developers happen to be there as well and would like to get together. It would be cool to be able to put faces on all those names that we keep seeing on the mailing lists! http://www.ing.unitn.it/~grass/no_background/home.html Daniel Flavio Hendry wrote: > > Dear European MapServer Users > > FYI: On September 19, 2002, the annual TYDAC Users Meeting will take > place in Zurich, Switzerland. This year the theme is "Open Source and > Open Data" and our keynote speaker is Daniel Morissette of DM > Solutions giving two presentations and one workshop about Open Source > GIS and MapServer. > > Program and Registration: > German: http://www.tydac.ch/gr/um_2002.htm > English: http://www.tydac.ch/en/um_2002.htm > > Sample MapServer Apps see http://www.mapserver.ch > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > ********* TYDAC User Meeting 2002 - Sept 19 - Zurich *********** > ++++++++++ Program and Registration on www.tydac.ch ++++++++++++ > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Best 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 > ---------------------------------------------------------------- From wzhang at c-cor.net Wed Aug 28 15:45:31 2002 From: wzhang at c-cor.net (Zhang, William) Date: Wed, 28 Aug 2002 18:45:31 -0400 Subject: [mapserver-users] How to change the line width Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A4FE@pltnpo1.c-cor.com> Hi, I searched the archives and found the similar question has been asked and answered several times. But I still can not get clear solution. Here is what I try to do. In my shape file, there are highways, major streets and minor streets. I like to show them in different line widths and colors. So I write the map file ..... CLASSITEM "CFCC" CLASS NAME "Highways" EXPRESSION /A1[0-9]/ SIZE 5 COLOR 255 0 0 END # end of class object CLASS NAME "MajorStreets" EXPRESSION /A[2-3][0-9]/ SIZE 3 COLOR 0 255 0 END CLASS NAME "MinorStreets" EXPRESSION /A[4-7][0-9]/ SIZE 1 COLOR 0 0 255 END .... According to previous answers, SYMBOL 'circle' may need to be used here. But I don't know how. Could somebody give me some help on this? Thanks, William Zhang Software Engineer C-Cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 E-Mail: wzhang at c-cor.net From woodbri at swoodbridge.com Wed Aug 28 16:08:00 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 28 Aug 2002 19:08:00 -0400 Subject: [mapserver-users] Re: How to change the line width In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A4FE@pltnpo1.c-cor.com> Message-ID: <3D6D1F90.28539.683AAC30@localhost> On 28 Aug 2002 at 18:45, Zhang, William wrote: > Hi, > > I searched the archives and found the similar question has been asked and > answered several times. But I still can not get clear solution. Here is what > I try to do. In my shape file, there are highways, major streets and minor > streets. I like to show them in different line widths and colors. So I write > the map file > ..... > CLASSITEM "CFCC" > CLASS > NAME "Highways" > EXPRESSION /A1[0-9]/ SYMBOL 'circle' > SIZE 5 > COLOR 255 0 0 > END # end of class object > > CLASS > NAME "MajorStreets" > EXPRESSION /A[2-3][0-9]/ SYMBOL 'circle' > SIZE 3 > COLOR 0 255 0 > END > > CLASS > NAME "MinorStreets" > EXPRESSION /A[4-7][0-9]/ > SIZE 1 > COLOR 0 0 255 > END > .... > > According to previous answers, SYMBOL 'circle' may need to be used here. But > I don't know how. Could somebody give me some help on this? > > Thanks, > > William Zhang > > Software Engineer > C-Cor.net > Phone: (925) 251-3019 > Fax: (925) 467-0600 > E-Mail: wzhang at c-cor.net > > > > From morissette at dmsolutions.ca Wed Aug 28 16:32:03 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 28 Aug 2002 19:32:03 -0400 Subject: [mapserver-users] Querymap display via WMS interface? References: <7CDD7B94357FD5119E800002A537C46E226DBE@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3D6D5D73.3FD86D6C@dmsolutions.ca> Tom is correct that at this point GetFeatureInfo can return only GML, HTML or plain text. But since the querymap feature is already there and available in MapServer, one thing we could do with the WMS interface is that if a QUERYMAP is defined in the mapfile then we include image types as additional GetFeatureInfo formats in the capabilities... and then if someone sends a GetFeatureInfo request with INFO_FORMAT=image/png for instance then they would receive the querymap in PNG format with the selected objects highlighted. I've filed this in bugzilla as a potential enhancement for MapServer 3.7 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=191) Daniel "Kralidis, Tom" wrote: > > > -----Original Message----- > > From: Neel Smith [mailto:neelsmith at yahoo.com] > > Sent: Sunday, August 25, 2002 9:27 PM > > To: mapserver-users at lists.gis.umn.edu > > Subject: [mapserver-users] Querymap display via WMS interface? > > > > > > I've recently created a mapserver client as part of a > > larger web application implemented with Cocoon. The > > client communicates with mapserver exclusively through > > WMS protocols (a requirement for this particular app.) > > > > For navigational interaction (pan/zoom), mapserver's > > graphic output is great; for queries by clicking, the > > data results are great (getting output in GML is > > wonderful!) -- but I haven't been able to figure out > > how to get graphic output illustrating query results. > > I'd like for selected features to be highlighted. > > > > I know that mapserver can do this but I can't seem to > > find anyplace in the WMS protocol where this > > functionality might be exposed. (STYLEs?) > > > > Can anyone point me in the right direction? Is it > > possible to get the equivalent of mapserver's querymap > > output using only the OGIS WMS interface? > > > > Not per se. Querying WMS usually involves GML.1, GML.2, plain text or HTML > at this point. > > The Styled Layer Descriptor (SLD) Specification can help here. SLD is an > OGC technology which allows a client to, along with a WMS request, pass the > URL of an XML document describing how to style requested layers. SLD > documents can contain multiple rulesets with flexible criteria such as scale > and filter expressions. > > When MapServer supports SLD, one will be able to send filters and styling > rules in real-time to receive custom maps from an SLD-enabled WMS. Until > then, one can have some middleware which styles XML into an output image. > > Hope this helps. > > ..Tom > > ================================= > Tom Kralidis > Systems Scientist > Canada Centre for Remote Sensing > Tel: (613) 947-1828 > http://www.ccrs.nrcan.gc.ca/ > ================================= From pkishor at GeoAnalytics.com Wed Aug 28 16:50:26 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 28 Aug 2002 18:50:26 -0500 Subject: [mapserver-users] How to change the line width Message-ID: when you use a SYMBOL "circle" for a line object, it automatically becomes a line... like taking a circle and pulling one side of linearly. You can change the width of the resulting line by changing the width of the circle. > -----Original Message----- > From: Zhang, William [mailto:wzhang at c-cor.net] > Sent: Wednesday, August 28, 2002 5:46 PM > To: 'mapserver-users at lists.gis.umn.edu' > Cc: 'woodbri at swoodbridge.com' > Subject: [mapserver-users] How to change the line width > > > Hi, > > I searched the archives and found the similar question has > been asked and > answered several times. But I still can not get clear > solution. Here is what > I try to do. In my shape file, there are highways, major > streets and minor > streets. I like to show them in different line widths and > colors. So I write > the map file > ..... > CLASSITEM "CFCC" > CLASS > NAME "Highways" > EXPRESSION /A1[0-9]/ > SIZE 5 > COLOR 255 0 0 > END # end of class object > > CLASS > NAME "MajorStreets" > EXPRESSION /A[2-3][0-9]/ > SIZE 3 > COLOR 0 255 0 > END > > CLASS > NAME "MinorStreets" > EXPRESSION /A[4-7][0-9]/ > SIZE 1 > COLOR 0 0 255 > END > .... > > According to previous answers, SYMBOL 'circle' may need to be > used here. But > I don't know how. Could somebody give me some help on this? > > Thanks, > > William Zhang > > Software Engineer > C-Cor.net > Phone: (925) 251-3019 > Fax: (925) 467-0600 > E-Mail: wzhang at c-cor.net > > > From steve at sierraclubbc.org Wed Aug 28 17:19:36 2002 From: steve at sierraclubbc.org (Steve Young) Date: Wed, 28 Aug 2002 17:19:36 -0700 Subject: [mapserver-users] Querying overlapping polygons Message-ID: Hi, I think this isn't possible, but I want to check before getting too deeply into a GIS solution. I have a shapefile that has overlapping polygons (regions). I want to extract a single attribute from each polygon when clicking on an area of overlap. Is this possible using a point query request. TIA Steve _____________________ Steve Young GIS Technician E steve at sierraclubbc.org T 250 386 5255 F 250 386 4453 Sierra Club of BC 576 Johnson St Victoria B.C. V8W 1M3 CANADA www.sierraclub.ca/bc From woodbri at swoodbridge.com Wed Aug 28 18:15:55 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Wed, 28 Aug 2002 21:15:55 -0400 Subject: [mapserver-users] RE: How to change the line width In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A500@pltnpo1.c-cor.com> Message-ID: <3D6D3D8B.24861.68AFC71E@localhost> William, You need to create a symbol.sym file and include in it : Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END then add to the top of your make file SYMBOLSET "/path/to/symbol.sym" you can copy a more complete symbol file the the mapserver demo app. -Steve http://iMapTools.com On 28 Aug 2002 at 19:21, Zhang, William wrote: > Steve, > > Thank you for the response. After I added the SYMBOL 'circle' line, the map > could not show. Here is my full map file. > > NAME alm > EXTENT -122.383 37.46 -121.46 38 > SIZE 800 600 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > LAYER # alm > NAME "alm" > DATA alm > STATUS DEFAULT > TYPE LINE > > CLASSITEM "CFCC" > CLASS > NAME "Highways" > EXPRESSION /A1[0-9]/ > SYMBOL 'circle' > SIZE 5 > COLOR 255 0 0 > END # end of class object > > END # end of layer object > END # end of map file > > Do I miss something? > > Thanks, > > William > > > -----Original Message----- > From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] > Sent: Wednesday, August 28, 2002 4:08 PM > To: 'mapserver-users at lists.gis.umn.edu'; Zhang, William > Subject: Re: How to change the line width > > > On 28 Aug 2002 at 18:45, Zhang, William wrote: > > > Hi, > > > > I searched the archives and found the similar question has been asked and > > answered several times. But I still can not get clear solution. Here is > what > > I try to do. In my shape file, there are highways, major streets and minor > > streets. I like to show them in different line widths and colors. So I > write > > the map file > > ..... > > CLASSITEM "CFCC" > > CLASS > > NAME "Highways" > > EXPRESSION /A1[0-9]/ > SYMBOL 'circle' > > SIZE 5 > > COLOR 255 0 0 > > END # end of class object > > > > CLASS > > NAME "MajorStreets" > > EXPRESSION /A[2-3][0-9]/ > SYMBOL 'circle' > > SIZE 3 > > COLOR 0 255 0 > > END > > > > CLASS > > NAME "MinorStreets" > > EXPRESSION /A[4-7][0-9]/ > > SIZE 1 > > COLOR 0 0 255 > > END > > .... > > > > According to previous answers, SYMBOL 'circle' may need to be used here. > But > > I don't know how. Could somebody give me some help on this? > > > > Thanks, > > > > William Zhang > > > > Software Engineer > > C-Cor.net > > Phone: (925) 251-3019 > > Fax: (925) 467-0600 > > E-Mail: wzhang at c-cor.net > > > > > > > > > > From Tom.Kralidis at ccrs.nrcan.gc.ca Wed Aug 28 19:20:03 2002 From: Tom.Kralidis at ccrs.nrcan.gc.ca (Tom.Kralidis at ccrs.nrcan.gc.ca) Date: Wed, 28 Aug 2002 22:20:03 -0400 Subject: [mapserver-users] Querymap display via WMS interface? Message-ID: <7CDD7B94357FD5119E800002A537C46E226DE5@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: Daniel Morissette [mailto:morissette at dmsolutions.ca] > Sent: Wednesday, August 28, 2002 7:32 PM > To: Kralidis, Tom > Cc: 'Neel Smith'; mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Querymap display via WMS interface? > > > Tom is correct that at this point GetFeatureInfo can return only GML, > HTML or plain text. > > But since the querymap feature is already there and available in > MapServer, one thing we could do with the WMS interface is that if a > QUERYMAP is defined in the mapfile then we include image types as > additional GetFeatureInfo formats in the capabilities... and then if > someone sends a GetFeatureInfo request with INFO_FORMAT=image/png for > instance then they would receive the querymap in PNG format with the > selected objects highlighted. > This is an excellent idea! Whatever image types are supported in WMT_MS_Capabilities/Capability/Request/GetMap/Format[] can be offered in WMT_MS_Capabilities/Capability/Request/GetFeatureInfo/Format[] if QUERYMAP exists. Probably means some changes to the GetCapabilities and GetFeatureInfo interface handling, but the capability is there. > I've filed this in bugzilla as a potential enhancement for > MapServer 3.7 > (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=191) > > Daniel > > > > "Kralidis, Tom" wrote: > > > > > -----Original Message----- > > > From: Neel Smith [mailto:neelsmith at yahoo.com] > > > Sent: Sunday, August 25, 2002 9:27 PM > > > To: mapserver-users at lists.gis.umn.edu > > > Subject: [mapserver-users] Querymap display via WMS interface? > > > > > > > > > I've recently created a mapserver client as part of a > > > larger web application implemented with Cocoon. The > > > client communicates with mapserver exclusively through > > > WMS protocols (a requirement for this particular app.) > > > > > > For navigational interaction (pan/zoom), mapserver's > > > graphic output is great; for queries by clicking, the > > > data results are great (getting output in GML is > > > wonderful!) -- but I haven't been able to figure out > > > how to get graphic output illustrating query results. > > > I'd like for selected features to be highlighted. > > > > > > I know that mapserver can do this but I can't seem to > > > find anyplace in the WMS protocol where this > > > functionality might be exposed. (STYLEs?) > > > > > > Can anyone point me in the right direction? Is it > > > possible to get the equivalent of mapserver's querymap > > > output using only the OGIS WMS interface? > > > > > > > Not per se. Querying WMS usually involves GML.1, GML.2, > plain text or HTML > > at this point. > > > > The Styled Layer Descriptor (SLD) Specification can help > here. SLD is an > > OGC technology which allows a client to, along with a WMS > request, pass the > > URL of an XML document describing how to style requested > layers. SLD > > documents can contain multiple rulesets with flexible > criteria such as scale > > and filter expressions. > > > > When MapServer supports SLD, one will be able to send > filters and styling > > rules in real-time to receive custom maps from an > SLD-enabled WMS. Until > > then, one can have some middleware which styles XML into an > output image. > > > > Hope this helps. > > > > ..Tom > > > > ================================= > > Tom Kralidis > > Systems Scientist > > Canada Centre for Remote Sensing > > Tel: (613) 947-1828 > > http://www.ccrs.nrcan.gc.ca/ > > ================================= > From saengpole at excite.com Thu Aug 29 00:43:48 2002 From: saengpole at excite.com (Krung Saengpole) Date: Thu, 29 Aug 2002 03:43:48 -0400 (EDT) Subject: [mapserver-users] GD compiling error. Message-ID: <20020829074348.739F8BF9D@xmxpita.excite.com> Hi, I had trouble in compiling gd-1.8.4 package with Visual C++ 6.0 on Windows95 platform. i) I didn't know what libTTF in makefile.nt referred to what package. ii) When I compiled this package, it showed as following:.../out:pngtogd.exe pngtogd.obj gd.lib libpng.lib zlib.lib gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCallocgd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdMallocgd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdMallocgd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdMallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdMallocgd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdFreegd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdFreegd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFreegd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdFreegd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdReallocgd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdReallocpngtogd.exe : fatal error LNK1120: 4 unresolved externalsAny advices would be greatly appreciated.Krung ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Thu Aug 29 01:47:08 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 29 Aug 2002 10:47:08 +0200 Subject: [mapserver-users] GD compiling error. References: <20020829074348.739F8BF9D@xmxpita.excite.com> Message-ID: <3D6DDF8C.866E14CB@webgis.de> Hi, i) libttf refers to the freetype library that is needed to use truetype fonts in mapserver applications. I just compiled ms36x with gd184 and freetype13. I couldn't manage to get it compiled with freetype212. ii) see the mapserver-list archive: http://mapserver.gis.umn.edu/wilma/mapserver-users/0105/msg00196.html I had the same problem. Also note that there is are patched version of the gdlib184 with gif-support. you can find the link in the mapserver compilation docs. If you have further problems, i will happily share my experiences of the last days... Cheers, Michael Krung Saengpole schrieb: > > Hi,I had trouble in compiling gd-1.8.4 package with Visual C++ 6.0 on Windows95 platform.i) I didn't know what libTTF in makefile.nt referred to what package. ii) When I compiled this package, it showed as following:.../out:pngtogd.exe pngtogd.obj gd.lib libpng.lib zlib.lib gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdCalloc gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_png.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdMalloc gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_png.obj) : error! LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_file.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdFree gd.lib(gd.obj) : error LNK2001: unresolved external symbol _gdRealloc gd.lib(gd_io_dp.obj) : error LNK2001: unresolved external symbol _gdRealloc pngtogd.exe : fatal error LNK1120: 4 unresolved externals Any advices would be greatly appreciated. Krung > > ----------------------------------------------------------------------- > Changed your e-mail? Keep your contacts! Use this free e-mail change > of address service from Return Path. Register now! -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From ken at kyler.com Thu Aug 29 04:06:26 2002 From: ken at kyler.com (Ken Kyler) Date: Thu, 29 Aug 2002 07:06:26 -0400 Subject: [mapserver-users] Setting up Apache as DSO & CGI In-Reply-To: <3D6CF2BD.31B315DA@geo.unizh.ch> Message-ID: I know this isn't quite on topic, but I'm trying to setup Apache to use both mod_php and the php CGI. I've read http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI as well as any other page I can find. FreeBSD 4.5-STABLE Apache 1.3.24 PHP 4.2.2 I can't get the CGI version to work. I get 404 errors. The following is from my test & development box ServerName dev.kyler.com ServerAdmin webmaster at kyler.com DocumentRoot /www/kyler.com/www php_admin_value include_path .:/www/phplibsrc:/www/kyler.com/phplib:/www/kyler.com/include php_admin_value auto_prepend_file /www/kyler.com/phplib/prepend.php3 # for Mapserver ScriptAlias /cgi/ /www/kyler.com/cgi/ Action phm-script /cgi/php AddHandler phm-script .phm Options ExecCGI FollowSymLinks Options FollowSymLinks ExecCGI Any thoughts? Ken From mschulz at webgis.de Thu Aug 29 05:35:25 2002 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 29 Aug 2002 14:35:25 +0200 Subject: [mapserver-users] Mapserver wms-client on w2000 Message-ID: <3D6E150D.E5BBBFA0@webgis.de> Hi, i have downloaded and compiled libwww-5.4.0 to add wms-client functionality to mapserver. Unfortunately the mapserver build produces errors when compiling with -DUSE_WMS_LYR : cl /nologo /Zi -I../gd-1.8.4 -I../tiff-v3.5.7/libtiff -I../proj/src -I../regex-0.12 -I..\gdal/ogr/ogrsf_frmts -I..\gdal/ogr -I..\gdal/ogr/../port - I../Libwww/library/src -I../libwww/modules/expat/xmlparse -DHAVE_STRING_H -DREG EX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DUSE_EPPL -DUSE_PROJ -DUSE_PRO J_API_H -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE _GD_TTF -DGD_HAS_GDIMAGEGIFPTR -DUSE_OGR -DUSE_WMS -DUSE_WMS_LYR /c mapwmslay er.c /Fomapwmslayer.obj mapwmslayer.c d:\ms\libwww\Library\src\HTProt.h(58) : error C2061: Syntaxfehler : Bezeichner ' HTProtocolId' d:\ms\libwww\Library\src\HTProt.h(58) : error C2059: Syntaxfehler : ';' d:\ms\libwww\Library\src\HTProt.h(85) : error C2146: Syntaxfehler : Fehlendes ') ' vor Bezeichner 'port' d:\ms\libwww\Library\src\HTProt.h(85) : error C2144: Syntaxfehler : ' ' sollte auf '' folgen d:\ms\libwww\Library\src\HTProt.h(85) : error C2144: Syntaxfehler : ' ' sollte auf '' folgen d:\ms\libwww\Library\src\HTProt.h(85) : error C2143: Syntaxfehler : Es fehlt ')' vor 'Bezeichner' d:\ms\libwww\Library\src\HTProt.h(85) : error C2081: 'HTProtocolId' : Name in de r formalen Parameterliste ist ung?ltig d:\ms\libwww\Library\src\HTProt.h(85) : error C2061: Syntaxfehler : Bezeichner ' port' d:\ms\libwww\Library\src\HTProt.h(85) : error C2059: Syntaxfehler : ';' d:\ms\libwww\Library\src\HTProt.h(85) : error C2059: Syntaxfehler : ',' d:\ms\libwww\Library\src\HTProt.h(88) : error C2059: Syntaxfehler : ')' d:\ms\libwww\Library\src\HTProt.h(132) : error C2061: Syntaxfehler : Bezeichner 'HTProtocol_id' d:\ms\libwww\Library\src\HTProt.h(132) : error C2059: Syntaxfehler : ';' d:\ms\libwww\Library\src\HTProt.h(132) : error C2059: Syntaxfehler : 'eingeben' d:\ms\libwww\Library\src\HTHost.h(65) : error C2146: Syntaxfehler : Fehlendes ') ' vor Bezeichner 'u_port' d:\ms\libwww\Library\src\HTHost.h(65) : error C2144: Syntaxfehler : ' ' sollte auf '' folgen d:\ms\libwww\Library\src\HTHost.h(65) : error C2144: Syntaxfehler : ' ' sollte auf '' folgen d:\ms\libwww\Library\src\HTHost.h(65) : error C2143: Syntaxfehler : Es fehlt ')' vor 'Bezeichner' d:\ms\libwww\Library\src\HTHost.h(65) : error C2081: 'u_short' : Name in der for malen Parameterliste ist ung?ltig Sorry for the german error descriptions ('fehler' == 'error'). Has anybody recently succeeded in compiling mapserver with wms-client-support with msvc++ and has some tips and tricks to share? Thanks, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de From lfilak at medinaco.org Thu Aug 29 06:23:32 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Thu, 29 Aug 2002 09:23:32 -0400 Subject: [mapserver-users] selecting adjacent polygons Message-ID: <200208291310.g7TDAe808133@yogi.medinaco.net> The closest we get right now is to use the least bounding rectangle for the selected polygon & then use the rectangle to overlay and select other polygons. It is not exact and is a pain when dealing with long diagonal polygons. Perhaps there is a way to use the $layer->queryByShape() method to do this... The trick would be to somehow force the shape being used for the query to "grow" by a foot so when the overlay was done it would indeed overlap neighboring shapes. As far as forcing it to grow, I'm not sure. Possibly the $shape->project() method could be used to do this??? This may not help but it will hopefully spark discussion. Lowell F. The following message was sent by "Andrea Giacomelli" on Tue, 27 Aug 2002 14:39:44 +0200. > Hi, > > Is it possible to implement a "select feature, and identify adjacent > polygons" mechanism via mapserver ? > > TIA for any feedback, > > andrea giacomelli > From korbai.zoltan at axelero.hu Thu Aug 29 07:22:18 2002 From: korbai.zoltan at axelero.hu (Korbai, Zoltan) Date: Thu, 29 Aug 2002 16:22:18 +0200 Subject: [mapserver-users] Setting up Apache as DSO & CGI References: Message-ID: <003801c24f67$7b044b60$1802a8c0@work> I am not a Linux Expert so maybe it is not the answer what you want, but I think I had a similar problem. The solution was: I changed Apache 1.3.24 to 1.3.26 and my CGI problem solved. (Mandrake Linux 8.2) Zoltan ----- Original Message ----- From: "Ken Kyler" To: Sent: Thursday, August 29, 2002 1:06 PM Subject: [mapserver-users] Setting up Apache as DSO & CGI > I know this isn't quite on topic, but I'm trying to setup Apache to use both > mod_php and the php CGI. I've read > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI as well as any > other page I can find. > > FreeBSD 4.5-STABLE > Apache 1.3.24 > PHP 4.2.2 > > I can't get the CGI version to work. I get 404 errors. The following is > from my test & development box > > > ServerName dev.kyler.com > ServerAdmin webmaster at kyler.com > DocumentRoot /www/kyler.com/www > php_admin_value include_path > .:/www/phplibsrc:/www/kyler.com/phplib:/www/kyler.com/include > php_admin_value auto_prepend_file /www/kyler.com/phplib/prepend.php3 > > # for Mapserver > ScriptAlias /cgi/ /www/kyler.com/cgi/ > Action phm-script /cgi/php > AddHandler phm-script .phm > > Options ExecCGI FollowSymLinks > > > Options FollowSymLinks ExecCGI > > > > Any thoughts? > > Ken > From pkishor at GeoAnalytics.com Thu Aug 29 07:52:36 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 29 Aug 2002 09:52:36 -0500 Subject: [mapserver-users] distance search in PLSS In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220193FB@mercator.topozone.com> Message-ID: Thanks for the advice Ed. I thought of generating a table, but I really want to do this with a script so I can specify the distance. Anyway... all this discussion has got me thinking and I am putting together a Perl script that might be able to do what I want. When I get it working right I will post it here for others. Many thanks, pk/ On Wednesday, August 28, 2002, at 11:44 AM, Ed McNierney wrote: > Puneet - > > For the quarter-mile radius case, I would simply generate a 8 x 4 x > 36 = 1152-element table. Each quarter-section has eight neighbors > within a quarter-mile, in the compass directions N, NE, E, SE, S, SW, > W, and NW. Each row of the table is: > .. From thaechl at geo.unizh.ch Thu Aug 29 08:46:17 2002 From: thaechl at geo.unizh.ch (Thomas Haechler) Date: 29 Aug 2002 17:46:17 +0200 Subject: [mapserver-users] Setting up Apache as DSO & CGI References: Message-ID: <3D6E41C9.5D682ADC@geo.unizh.ch> hi ken, at least on unix, apache 1.3.24 and 1.3.26 both work with this in my httpd.conf: ScriptAlias /cgi-bin/ "/path/to/apache_1.3.26/cgi-bin/" AddType application/x-httpd-php .php AddType application/x-httpd-php-cgi .phtml Action application/x-httpd-php-cgi /cgi-bin/php Thomy Ken Kyler wrote: > > I know this isn't quite on topic, but I'm trying to setup Apache to use both > mod_php and the php CGI. I've read > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI as well as any > other page I can find. > > FreeBSD 4.5-STABLE > Apache 1.3.24 > PHP 4.2.2 > > I can't get the CGI version to work. I get 404 errors. The following is > from my test & development box > > > ServerName dev.kyler.com > ServerAdmin webmaster at kyler.com > DocumentRoot /www/kyler.com/www > php_admin_value include_path > .:/www/phplibsrc:/www/kyler.com/phplib:/www/kyler.com/include > php_admin_value auto_prepend_file /www/kyler.com/phplib/prepend.php3 > > # for Mapserver > ScriptAlias /cgi/ /www/kyler.com/cgi/ > Action phm-script /cgi/php > AddHandler phm-script .phm > > Options ExecCGI FollowSymLinks > > > Options FollowSymLinks ExecCGI > > > > Any thoughts? > > Ken -- THOMAS HAECHLER Geographic Information Systems Division Institute of Geography University of Zurich Switzerland thomas.haechler at geo.unizh.ch From steve.lime at dnr.state.mn.us Thu Aug 29 10:50:06 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 29 Aug 2002 12:50:06 -0500 Subject: [mapserver-users] Querying overlapping polygons Message-ID: You can do this, just use a mode=nquery. Steve >>> "Steve Young" 08/28/02 07:19PM >>> Hi, I think this isn't possible, but I want to check before getting too deeply into a GIS solution. I have a shapefile that has overlapping polygons (regions). I want to extract a single attribute from each polygon when clicking on an area of overlap. Is this possible using a point query request. TIA Steve _____________________ Steve Young GIS Technician E steve at sierraclubbc.org T 250 386 5255 F 250 386 4453 Sierra Club of BC 576 Johnson St Victoria B.C. V8W 1M3 CANADA www.sierraclub.ca/bc From steve.lime at dnr.state.mn.us Thu Aug 29 10:50:30 2002 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Thu, 29 Aug 2002 12:50:30 -0500 Subject: [mapserver-users] Fwd: MapServer Add Points Message-ID: An embedded message was scrubbed... From: "Pradeep" Subject: MapServer Add Points Date: Thu, 29 Aug 2002 16:37:08 +0530 Size: 1981 URL: From dumper at mailz.nl Thu Aug 29 11:02:20 2002 From: dumper at mailz.nl (Peter Bruijnen) Date: Thu, 29 Aug 2002 20:02:20 +0200 Subject: [mapserver-users] how to link external database Message-ID: <008701c24f86$38e8fb80$f2994bd5@default> I'm using mapserver 3.6 with a parcel map. In a seperate access database i have information about the users of these parcels. A parcel can have more then one user so i can't add the name of the user in the shape dbf. In version 3.6 it isn't possible to use the "join" commando so that's no option. Of course it is possible to query the access database and get all the parcel id's from the parcels form a specific user. What is the easiest way to get these parcels shown in the map? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Thu Aug 29 14:27:21 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 29 Aug 2002 15:27:21 -0600 Subject: [mapserver-users] Scroll Restriction In-Reply-To: <3D6CB9B9.2040107@gmx.net> Message-ID: <5.1.0.14.0.20020829152448.00a7f7a0@mail.GreenwoodMap.com> I have pasted a javascript function in below that is a fairly brute force approach to the problem. Using javascript is probably the only solution if you are using CGI MapServer. Rich function pan(direction) { var imgx, imgy, newx, newy; // current and new image center in pixels var nc, sc, ec, wc, nl, el, sl, wl; // north, south, east, west, c = current, l = limit imgx = [center_x]; imgy = [center_y]; // pixels newx = imgx; newy = imgy; // defaults (may be reset below) nc = [maxy]; sc = [miny]; ec = [maxx]; wc = [minx]; // Mapserver gives us current map extents nl= 1850000; sl= 1320000; el= 2640000; wl= 2360000; // Teton County bounding box document.form1.zoomdir.value=0; // default (may be reset below if zooming) if (direction == 'zin') { document.form1.zoomdir.value=1; } else if(direction == 'zout') { document.form1.zoomdir.value=-1; } else if(direction == 'n') { if (nc < nl) newy=imgy-imgy; } else if(direction == 'nw') { if ((nc < nl) && (wc > wl)) { newx=imgx-imgx; newy=imgy-imgy; } } else if(direction == 'ne') { if ((nc < nl) && (ec < el)) { newx=imgx+imgx; newy=imgy-imgy; } } else if(direction == 's') { if (sc > sl) { newy=imgy+imgy; } } else if(direction == 'sw') { if ((sc > sl) && (wc > wl)) { newx=imgx-imgx; newy=imgy+imgy; } } else if(direction == 'se') { if ((sc > sl) && (ec < el)) { newx=imgx+imgx; newy=imgy+imgy; } } else if(direction == 'e') { if (ec < el) newx=imgx+imgx; } else if(direction == 'w') { if (wc > wl) newx=imgx-imgx; } document.form1.elements["img.x"].value=newx; // this creates a pseudo click point document.form1.elements["img.y"].value=newy; document.form1.mode.value = "browse"; document.form1.target="_self"; document.form1.submit(); } At 12:53 PM 8/28/2002 +0100, you wrote: >Hi all, > >Is there a way to prevent user from 'scrolling' out of the provided dataset? >e.g. If one is constantly recentering the map at points outside the >image/shapefile. > >Regards, >Stefan > Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From GrantM at ATSER.com Thu Aug 29 14:27:41 2002 From: GrantM at ATSER.com (Grant Marblestone) Date: Thu, 29 Aug 2002 16:27:41 -0500 Subject: [mapserver-users] Problem with double labels Message-ID: <000c01c24fa2$eb1121e0$7201010a@localhost.atser> So i am using gmap35 and when i select an object on my map it displays the label twice? has anyone else had this problem and is there a way to fix it? Thanks, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From Rich at GreenwoodMap.com Thu Aug 29 14:10:35 2002 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Thu, 29 Aug 2002 15:10:35 -0600 Subject: [mapserver-users] Setting up Apache as DSO & CGI In-Reply-To: References: <3D6CF2BD.31B315DA@geo.unizh.ch> Message-ID: <5.1.0.14.0.20020829150947.00a7f520@mail.GreenwoodMap.com> You might check the article: http://www.phpbuilder.com/columns/michael20020812.php3?page=1 Rich At 07:06 AM 8/29/2002 -0400, you wrote: >I know this isn't quite on topic, but I'm trying to setup Apache to use both >mod_php and the php CGI. I've read >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI as well as any >other page I can find. > >FreeBSD 4.5-STABLE >Apache 1.3.24 >PHP 4.2.2 > >I can't get the CGI version to work. I get 404 errors. The following is >from my test & development box > > > ServerName dev.kyler.com > ServerAdmin webmaster at kyler.com > DocumentRoot /www/kyler.com/www > php_admin_value include_path >.:/www/phplibsrc:/www/kyler.com/phplib:/www/kyler.com/include > php_admin_value auto_prepend_file /www/kyler.com/phplib/prepend.php3 > > # for Mapserver > ScriptAlias /cgi/ /www/kyler.com/cgi/ > Action phm-script /cgi/php > AddHandler phm-script .phm > > Options ExecCGI FollowSymLinks > > > Options FollowSymLinks ExecCGI > > > >Any thoughts? > >Ken Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From gadoury at dmsolutions.ca Thu Aug 29 11:30:03 2002 From: gadoury at dmsolutions.ca (Dean Gadoury) Date: Thu, 29 Aug 2002 14:30:03 -0400 Subject: [mapserver-users] selecting adjacent polygons In-Reply-To: <200208291310.g7TDAe808133@yogi.medinaco.net> Message-ID: This may sound weird, but determining how to select adjacent polygons depends to a large degree on how you define adjacent. I apologize in advance that this won't help clear things up at all and may actually muddy the waters, but certain things should be kept in mind when approaching such a problem. The solution to selecting adjacent polygons will depend on how you want to define adjacent. -First of all, when you say adjacent do you mean sharing a boundary, or nearby? I worked on a municipal application one time in which adjacent could mean either one - for example 2 properties across the street, or a sidewalk from each other were cosidered adjacent as were properties 'next door' to each other even though there was a space between the two. -Are polygons that touch only at a corner considered adjacent, or must they share a line boundary? -Are overlapping polygons adjacent? -There could be other similar scenarios in which adjacency is not perfectly clear. -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Lowell Filak Sent: Thursday, August 29, 2002 9:24 AM To: andrea.giacomelli at fst.it; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] selecting adjacent polygons The closest we get right now is to use the least bounding rectangle for the selected polygon & then use the rectangle to overlay and select other polygons. It is not exact and is a pain when dealing with long diagonal polygons. Perhaps there is a way to use the $layer->queryByShape() method to do this... The trick would be to somehow force the shape being used for the query to "grow" by a foot so when the overlay was done it would indeed overlap neighboring shapes. As far as forcing it to grow, I'm not sure. Possibly the $shape->project() method could be used to do this??? This may not help but it will hopefully spark discussion. Lowell F. The following message was sent by "Andrea Giacomelli" on Tue, 27 Aug 2002 14:39:44 +0200. > Hi, > > Is it possible to implement a "select feature, and identify adjacent > polygons" mechanism via mapserver ? > > TIA for any feedback, > > andrea giacomelli > From jvanulde at NRCan.gc.ca Thu Aug 29 18:23:40 2002 From: jvanulde at NRCan.gc.ca (Van Ulden, Joost) Date: Thu, 29 Aug 2002 21:23:40 -0400 Subject: [mapserver-users] Change scalebar background color using php/mapscript Message-ID: <8AE17DD6AA4FD51191CD0002A5511681074B2C@s5-van1-r1.nrn.nrcan.gc.ca> Has anyone changed the scalebar background color using php/mapscript. I am guessing that it looks something like this: $map->{scalebar}->{backgroundcolor} = 255,60,18 Any suggestions would be helpful. Cheers, Joost From morissette at dmsolutions.ca Thu Aug 29 18:40:16 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 29 Aug 2002 21:40:16 -0400 Subject: [mapserver-users] Change scalebar background color using php/mapscript References: <8AE17DD6AA4FD51191CD0002A5511681074B2C@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <3D6ECD00.DE322624@dmsolutions.ca> "Van Ulden, Joost" wrote: > > Has anyone changed the scalebar background color using php/mapscript. I am > guessing that it looks something like this: > > $map->{scalebar}->{backgroundcolor} = 255,60,18 > With PHP MapScript you always have to use a set() method to change class members. This should do it: $map->scalebar->set("backgroundcolor", $map->addColor(255,60,18)); Daniel -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From wzhang at c-cor.net Thu Aug 29 19:04:10 2002 From: wzhang at c-cor.net (Zhang, William) Date: Thu, 29 Aug 2002 22:04:10 -0400 Subject: [mapserver-users] TRUETYPE not work Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A502@pltnpo1.c-cor.com> Hi, I got error in the map file below. If I comment out TRUETYPE releated lines, the map file works. I downloaded the mapserv.exe from Windows Binary Download page, so it should be TRUETYPE enabled. Could somebody give me help on this one? NAME alm EXTENT -122.0837 37.6683 -122.1104 37.6885 SIZE 800 600 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" LAYER TYPE LINE STATUS DEFAULT DATA alm LABELITEM "FENAME" CLASS COLOR 255 0 0 LABEL TYPE TRUETYPE ANTIALIAS COLOR 0 0 0 ANGLE AUTO POSITION UC END END END END # end of map file Thanks, William Zhang Software Engineer C-Cor.net Phone: (925) 251-3019 Fax: (925) 467-0600 E-Mail: wzhang at c-cor.net From woodbri at swoodbridge.com Thu Aug 29 19:31:52 2002 From: woodbri at swoodbridge.com (woodbri at swoodbridge.com) Date: Thu, 29 Aug 2002 22:31:52 -0400 Subject: [mapserver-users] TRUETYPE not work In-Reply-To: <68107A9AF023EA439FF7CC2AD02D8FE503A502@pltnpo1.c-cor.com> Message-ID: <3D6EA0D8.12041.6E1BA41C@localhost> William, Do you have a Map file Reference document? You need to look at the LABEL section, you will see that it mentions a FONT tag which references an item in a FONTSET. The document will also tell you how to set up the FONTSET file which will need to point to the the fonts on your system. The documentation page can be found off the Mapserver home page. -Steve On 29 Aug 2002 at 22:04, Zhang, William wrote: > Hi, > > I got error in the map file below. If I comment out TRUETYPE releated lines, > the map file works. I downloaded the mapserv.exe from Windows Binary > Download page, so it should be TRUETYPE enabled. Could somebody give me help > on this one? > > > NAME alm > EXTENT -122.0837 37.6683 -122.1104 37.6885 > SIZE 800 600 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > LAYER > TYPE LINE > STATUS DEFAULT > DATA alm > LABELITEM "FENAME" > CLASS > COLOR 255 0 0 > LABEL > TYPE TRUETYPE > ANTIALIAS > COLOR 0 0 0 > ANGLE AUTO > POSITION UC > END > END > END > END # end of map file > > > Thanks, > > William Zhang > > Software Engineer > C-Cor.net > Phone: (925) 251-3019 > Fax: (925) 467-0600 > E-Mail: wzhang at c-cor.net > > From pradeepkumar at infotech.stph.net Thu Aug 29 21:35:04 2002 From: pradeepkumar at infotech.stph.net (Pradeep) Date: Fri, 30 Aug 2002 10:05:04 +0530 Subject: [mapserver-users] MapServer: Add Points on the fly Message-ID: Hello We are building a sample application using Maserver, we have a requirement in which we are supposed to add user defined points on the map that are ultimately written to the data base or the shape files, I wish to know if we can dynamically add points information to the map from the front end. If so can any one help me with getting started, through some examples, or some guidance for which I will be very grateful... Thank You Pradeep From james at danisat.net Fri Aug 30 01:02:45 2002 From: james at danisat.net (James Anderson) Date: Fri, 30 Aug 2002 10:02:45 +0200 Subject: [mapserver-users] Mapserver and Spatial Extent Message-ID: <009c01c24ffb$a188adf0$0b220a0a@beast> Hi, I need to know more about the EXTENT command in a Mapserver map file. I have a shape file layer of Kampala. The shapefile is in WGS 84 projection. The center of the Shapefile is lat=32.5747819077374 and lon=0.320786584028765 I need to know how to work out the Extent values from the lat and lon. My map file looks like this NAME EX1 EXTENT ???? ???? ???? ???? SIZE 600 600 SHAPEPATH "C:\Documents and Settings\Steed\My Documents\mapping\kampala\shp" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LAYER NAME "Kampala" DATA kampala STATUS DEFAULT TYPE LINE CLASS COLOR 250 175 25 END # end of class object END # end of layer object END # end of map file If need to work out the values to put in by the ????s. I need some formulas. When I put some random values in the extent, the mapserver produces an image, yet it is plain white. I believe that this is because I have the extent set to where there is no mapping data. I am still very new to using this mapserver. I may have other errors in my map file. I need to get this mapping to work. Can anyone help ?? Thanks, James. From rajsingh at attbi.com Fri Aug 30 01:59:54 2002 From: rajsingh at attbi.com (Raj Singh) Date: Fri, 30 Aug 2002 04:59:54 -0400 Subject: [mapserver-users] Re: Getting mapserver running on Mac OS X Message-ID: You may be having the obscure problem I had. Perl's libwww installs a binary called HEAD in /usr/bin. Some fink build stuff needs to use the program 'head', also in /usr/bin. The problem is that OSX is not case-sensitive, so it gets confused. The old version should still be in /usr/bin, named 'head.old' or something like that. Try switching the names around and see if your problems go away. -- Raj From Horst.Duester at bd.so.ch Fri Aug 30 04:31:58 2002 From: Horst.Duester at bd.so.ch (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Fri, 30 Aug 2002 12:31:58 +0100 Subject: [mapserver-users] Classify Rasters Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DFC01@srsofaioi4546.ktso.ch> Hallo I try to classify rasters described in Rasters HowTo 3.6 but I'm not successful, nothing happens. The image is always drawn black and white. The image I try to classify is a 1 bit black and white TIFF. The reason for classifying is to change the color of the originally black pixel to blue. Any hint??? Horst From thfischer at mapmedia.de Fri Aug 30 07:57:26 2002 From: thfischer at mapmedia.de (Thorsten Fischer) Date: 30 Aug 2002 16:57:26 +0200 Subject: [mapserver-users] Mapserver and Spatial Extent In-Reply-To: <009c01c24ffb$a188adf0$0b220a0a@beast> References: <009c01c24ffb$a188adf0$0b220a0a@beast> Message-ID: <1030719449.804.6.camel@grobi> James, > I need to know more about the EXTENT command in a Mapserver map file. I > have a shape file layer of Kampala. The shapefile is in WGS 84 projection. > The center of the Shapefile is lat=32.5747819077374 and > lon=0.320786584028765 I need to know how to work out the Extent values > from the lat and lon. The shapefile library shapelib brings two tools, shpinfo and shpdump, which you can use to obtain information like the bounding box from a shapefile. hth, thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From ed at topozone.com Fri Aug 30 04:55:39 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 30 Aug 2002 07:55:39 -0400 Subject: [mapserver-users] Classify Rasters Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8594@mercator.topozone.com> Horst - Can you send the text of the MAP file you're using for the classification? Are you using LIBTIFF support or GDAL support for TIFF images? - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: D?ster Horst [mailto:Horst.Duester at bd.so.ch] Sent: Friday, August 30, 2002 7:32 AM To: 'mapserver-users at lists.gis.umn.edu' Subject: [mapserver-users] Classify Rasters Hallo I try to classify rasters described in Rasters HowTo 3.6 but I'm not successful, nothing happens. The image is always drawn black and white. The image I try to classify is a 1 bit black and white TIFF. The reason for classifying is to change the color of the originally black pixel to blue. Any hint??? Horst From palanisamyg at ornl.gov Fri Aug 30 05:56:45 2002 From: palanisamyg at ornl.gov (Giri Palanisamy) Date: Fri, 30 Aug 2002 08:56:45 -0400 Subject: [mapserver-users] Java - Mapserver Message-ID: <5.1.1.5.2.20020830085332.00b74650@email.cind.ornl.gov> HI, I have just installed a mapserver and the demo is working ok for me. I would like to use Java, JSP with mapserver to generate maps. I have windows 2000 server, also with Tomcat. Is there any "How to do" information available? or can I have some sample demo projects?. I don't know how I can proceed. Any help inthis regard is greatly appreciated. Giri From lfilak at medinaco.org Fri Aug 30 06:11:43 2002 From: lfilak at medinaco.org (Lowell Filak) Date: Fri, 30 Aug 2002 09:11:43 -0400 Subject: [mapserver-users] MapServer: Add Points on the fly Message-ID: <200208301258.g7UCwo821823@yogi.medinaco.net> Using Mapscript you can record a mouse click on the map image (same as with a zoom operation) and use the coordinates of the mouse click to create a point shape and additionally add data to a dbf file for the shape. The tcounts.pl example in the wiki has example code that creates both point shapes and adds them to a shapefile and also adds dbf records for each point. HTH Lowell F. The following message was sent by "Pradeep" on Fri, 30 Aug 2002 10:05:04 +0530. > Hello > We are building a sample application using Maserver, we have a > requirement > in which we are supposed to add user defined points on the map that are > ultimately written to the data base or the shape files, I wish to know if we > can dynamically add points information to the map from the front end. If so > can any one help me with getting started, through some examples, or some > guidance for which I will be very grateful... > Thank You > Pradeep From pkishor at GeoAnalytics.com Fri Aug 30 06:15:08 2002 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Fri, 30 Aug 2002 08:15:08 -0500 Subject: [mapserver-users] Re: Getting mapserver running on Mac OS X In-Reply-To: Message-ID: <82046016-BC1A-11D6-B98A-0003936306C2@geoanalytics.com> Hi Raj, I am not sure who you replied to here, but just to add to this... On Friday, August 30, 2002, at 03:59 AM, Raj Singh wrote: > You may be having the obscure problem I had. Perl's libwww installs a > binary > called HEAD in /usr/bin. Some fink build stuff needs to use the program > 'head', also in /usr/bin. The problem is that OSX is not > case-sensitive, so > it gets confused. The old version should still be in /usr/bin, named > 'head.old' or something like that. Try switching the names around and > see if > your problems go away. > actually OS X is the problem here. Its the directory system. Most OS X boxen are formatted HFS+ which is not case-sensitive... it preserves the case for display purposes, but does not distinguish for writing purposes (kinda like NTFS). So, when you install libwww, HEAD actually over-writes head unless you took care to preserve it by moving it elsewhere or renaming it first. Hence, there won't be any head.old anymore. If you need it you would have to bring it back from the install CD. From andrewrcollins at yahoo.com Fri Aug 30 06:21:17 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Fri, 30 Aug 2002 06:21:17 -0700 (PDT) Subject: [mapserver-users] Java - Mapserver In-Reply-To: <5.1.1.5.2.20020830085332.00b74650@email.cind.ornl.gov> Message-ID: <20020830132117.12235.qmail@web14008.mail.yahoo.com> Giri > I have just installed a mapserver and the demo is working ok > for me. I would like to use Java, JSP with mapserver to > generate maps. I have windows 2000 server, also with Tomcat. Is > there any "How to do" information available? or can I have some > sample demo projects?. I don't know how I can proceed. Any help > inthis regard is greatly appreciated. I have looked, but have found no sample demonstration projects using MapServer within a J2EE framework... However, this is exactly what I am working on right now. ;) I have an older version of MapScript for Java that I got here: http://urewera.boarsnest.net/MapScript/ which contains a proper JNI wrapper (.dll) for MapServer. I've had to make a lot of changes to the Java wrapper classes (I will make them available to you and others who might be interested). I have also created an Ant-based process for building and deploying a set of simple JSP pages to JBoss: http://www.jboss.org (The "MapScript for Java" files contain a deploy process for Resin, but I wanted to stick with an entirely open source environment for my development.) I've gotten more proficient with MapServer at the source code level and I believe that a pure-Java implementation of MapServer could (and should) be made. I would head just such a project at SourceForge: http://www.sf.net if there are any others on this list that are interested.... Please send me an email if you have Java/MapServer/MapScript questions and answers. My interest in a pure-Java implementation of MapServer is stemming from a strong business interest in having a very stable (and multithreaded!) version of MapServer for use in a J2EE environment... I have really enjoyed using the PHP/MapScript interface to MapServer, but I'm forecasting that the MapServer project could attract a whole lot more development effort if it had, at the least, a stable Java interface. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From ed at topozone.com Fri Aug 30 06:25:07 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 30 Aug 2002 09:25:07 -0400 Subject: [mapserver-users] MapServer: Add Points on the fly Message-ID: <13858AA1A74F30419F319ACB66A9D1220E8597@mercator.topozone.com> Pradeep - Sure - look in the MapServer docs for how you can add points (features) to a layer using HTTP querystring parameters. It's verbose but easy to do for a few points. Look at the bottom of the "CGI reference" section of the docs, at: http://mapserver.gis.umn.edu/doc36/cgi-reference.html (that's a pointer to the 3.6 docs, but the feature's been there for a while). - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Lowell Filak [mailto:lfilak at medinaco.org] Sent: Friday, August 30, 2002 9:12 AM To: Pradeep; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] MapServer: Add Points on the fly Using Mapscript you can record a mouse click on the map image (same as with a zoom operation) and use the coordinates of the mouse click to create a point shape and additionally add data to a dbf file for the shape. The tcounts.pl example in the wiki has example code that creates both point shapes and adds them to a shapefile and also adds dbf records for each point. HTH Lowell F. The following message was sent by "Pradeep" on Fri, 30 Aug 2002 10:05:04 +0530. > Hello > We are building a sample application using Maserver, we have a > requirement > in which we are supposed to add user defined points on the map that are > ultimately written to the data base or the shape files, I wish to know if we > can dynamically add points information to the map from the front end. If so > can any one help me with getting started, through some examples, or some > guidance for which I will be very grateful... > Thank You > Pradeep From andrewrcollins at yahoo.com Fri Aug 30 06:44:34 2002 From: andrewrcollins at yahoo.com (Andrew Collins) Date: Fri, 30 Aug 2002 06:44:34 -0700 (PDT) Subject: [mapserver-users] Java - Mapserver In-Reply-To: <5.1.1.5.2.20020830093036.02fa7ca0@email.cind.ornl.gov> Message-ID: <20020830134434.97516.qmail@web14001.mail.yahoo.com> Giri > Thanks a lot Andrew, I would really appreciate if you > could make the java wrapper classes available for me. It will be a few days before I have a good build. I requested a project at SourceForge: JavaMapServer. I will post my files there when the requested project becomes available. I will send you, and the MapServer users list, an email when the files are available. Do you have time or skills to help with a pure-Java implementation of MapServer? ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From Michael.Smith at erdc.usace.army.mil Fri Aug 30 08:03:17 2002 From: Michael.Smith at erdc.usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 30 Aug 2002 11:03:17 -0400 Subject: [mapserver-users] Strange problem with FILTER and ITEMQUERY Message-ID: <048FBD219330D211B47000A0C9B3BAFD03CD17C2@crl02.crrel.usace.army.mil> We are passing a filter variable to an Oraclespatial layer that sets the where string of the query. This works great when we are doing mode=browse (http://water.crrel.usace.army.mil/cgi-bin/mapserv362?mode=browse&map=/htdocs/dpg/dpg.map&mapext=1008461.320000+7130171.000000+1313080.680000+7333223.000000&mapsize=450+300&layers=landsatdem+zdi+zdihilight&urlvar=(ANALYTE='1,1,1,2-TETRACHLOROETHANE') However, when we pass essentially the same url but use mode=itemquery (http://water.crrel.usace.army.mil/cgi-bin/mapserv362?map=../html/dpg/dpg.map&urlvar=(ANALYTE='1,1,1,2-TETRACHLOROETHANE')&mapsize=450+300&&layer=landsatdem&layer=zdi&layer=zdihilight&mode=itemquery&qlayer=qsli&item=GRID_CODE&monloc=14) I get a very strange error (msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-00911: invalid character . SQL statement: SELECT rownum, locid, SHAPE FROM (select l.locid, l.shape from ldi l where l.locid in (select d.locid from dpg_chemdata d WHERE 156rlvar%)) Basically, it is not passing the filter variable and seems to be corrupting the variable name. Any ideas? I plan to start looking through the code but I'm not sure which module would contain the problem. Mike Smith email: michael.smith at erdc.usace.army.mil RSGISC ERDC - CRREL Hanover, NH 03755 (603) 646-4765 From morissette at dmsolutions.ca Fri Aug 30 08:24:47 2002 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 30 Aug 2002 11:24:47 -0400 Subject: [mapserver-users] Change scalebar background color using php/mapscript References: <8AE17DD6AA4FD51191CD0002A5511681074B2D@s5-van1-r1.nrn.nrcan.gc.ca> Message-ID: <3D6F8E3F.2546CD35@dmsolutions.ca> "Van Ulden, Joost" wrote: > > Thanks, it works for the background color but for some reason it doesn't > work for the image color. We get the following error: > > Property 'IMAGECOLOR' does not exist in this object > If you look carefully at the mapscript docs you'll notice that 'imagecolor' is of type colorObj instead of type integer. This makes things a bit confusing, but it's related to the way things work internally in MapServer (parsing of the mapfile, etc.)... almost everywhere in the mapscript colors are stored as a color index, the imagecolor property is one of the very few exceptions that are stored as a colorObj (R, G, B values). So to set it you can use: $map->scalebar->imagecolor->setRGB( 255, 255, 255 ); -- ------------------------------------------------------------ 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 DMartin at erac.com Fri Aug 30 08:26:10 2002 From: DMartin at erac.com (Martin, Daniel) Date: Fri, 30 Aug 2002 10:26:10 -0500 Subject: [mapserver-users] Java - Mapserver Message-ID: <4ACBA1414DD9EE418CC250E4AAA9035A192B1E@STL-EXBE-I03.corp.erac.com> > I have really enjoyed using the PHP/MapScript interface to > MapServer, but I'm forecasting that the MapServer project could > attract a whole lot more development effort if it had, at the > least, a stable Java interface. I couldn't agree with you more. My company transitioned to a pure Java and JSP framework recently. One of the biggest hurdles I've run into obtaining management support for MapServer has been its standout from our norm. IMHO, MapServer is better in every way than MapXtreme. But to a manager whose employees all have Java skill sets, MapXtreme still looks attractive, despite the price tag. I look forward to seeing what you accomplish. -Dan -----Original Message----- From: Andrew Collins [mailto:andrewrcollins at yahoo.com] Sent: Friday, August 30, 2002 8:21 AM To: Giri Palanisamy; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Java - Mapserver Giri > I have just installed a mapserver and the demo is working ok > for me. I would like to use Java, JSP with mapserver to > generate maps. I have windows 2000 server, also with Tomcat. Is > there any "How to do" information available? or can I have some > sample demo projects?. I don't know how I can proceed. Any help > inthis regard is greatly appreciated. I have looked, but have found no sample demonstration projects using MapServer within a J2EE framework... However, this is exactly what I am working on right now. ;) I have an older version of MapScript for Java that I got here: http://urewera.boarsnest.net/MapScript/ which contains a proper JNI wrapper (.dll) for MapServer. I've had to make a lot of changes to the Java wrapper classes (I will make them available to you and others who might be interested). I have also created an Ant-based process for building and deploying a set of simple JSP pages to JBoss: http://www.jboss.org (The "MapScript for Java" files contain a deploy process for Resin, but I wanted to stick with an entirely open source environment for my development.) I've gotten more proficient with MapServer at the source code level and I believe that a pure-Java implementation of MapServer could (and should) be made. I would head just such a project at SourceForge: http://www.sf.net if there are any others on this list that are interested.... Please send me an email if you have Java/MapServer/MapScript questions and answers. My interest in a pure-Java implementation of MapServer is stemming from a strong business interest in having a very stable (and multithreaded!) version of MapServer for use in a J2EE environment... I have really enjoyed using the PHP/MapScript interface to MapServer, but I'm forecasting that the MapServer project could attract a whole lot more development effort if it had, at the least, a stable Java interface. ===== Andrew Collins - andrewrcollins at yahoo.com http://profiles.yahoo.com/andrewrcollins/ __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From wesp at gdv.com Fri Aug 30 08:50:18 2002 From: wesp at gdv.com (Oliver Wesp) Date: Fri, 30 Aug 2002 17:50:18 +0200 Subject: [mapserver-users] Is there anybody out there... Message-ID: <000301c2503c$f0e03300$1501a8c0@else> ...using Mapserver with SDE except me. Or am I just lucky enough to run in every trouble one can have using Mapserver with SDE? Or maybe it's just me making stupid mistakes? O.K. here is one that's maybe not spefific for SDE-Datasources: Im using class expression to classify my layers. The user can choose which field he likes to use for classification. Some of the fields the user can choose are named containing underscores. And that's the result: msSDELayerInitItemInfo(): General error message. Item not found in SDE table For fieldnames without underscores everything works fine. If anybody has another solution than just renaming all the fields feel free to let me know. And if anybody has a clue regarding the featureirtemnquery-Problem I posted a few days ago....please say something. kind regards Oliver -- Gesellschaft f?r geografische Datenverarbeitung Binger Str. 49-51 D-55218 Ingelheim Fon: +49 6132 714818 Fax: +49 6132 714828 E-Mail: wesp at gdv.com From lists.ahaigh at dsl.pipex.com Fri Aug 30 10:24:27 2002 From: lists.ahaigh at dsl.pipex.com (Andrew Haigh) Date: Fri, 30 Aug 2002 18:24:27 +0100 Subject: [mapserver-users] Java - Mapserver References: <4ACBA1414DD9EE418CC250E4AAA9035A192B1E@STL-EXBE-I03.corp.erac.com> Message-ID: <3D6FAA4B.80808@dsl.pipex.com> Search for geotools on sourceforge. That said i'm not sure what your wanting to do. Andrew Martin, Daniel wrote: >>I have really enjoyed using the PHP/MapScript interface to >>MapServer, but I'm forecasting that the MapServer project could >>attract a whole lot more development effort if it had, at the >>least, a stable Java interface. >> >> > >I couldn't agree with you more. My company transitioned to a pure Java and >JSP framework recently. One of the biggest hurdles I've run into obtaining >management support for MapServer has been its standout from our norm. > >IMHO, MapServer is better in every way than MapXtreme. But to a manager >whose employees all have Java skill sets, MapXtreme still looks attractive, >despite the price tag. > >I look forward to seeing what you accomplish. > >-Dan > >-----Original Message----- >From: Andrew Collins [mailto:andrewrcollins at yahoo.com] >Sent: Friday, August 30, 2002 8:21 AM >To: Giri Palanisamy; mapserver-users at lists.gis.umn.edu >Subject: Re: [mapserver-users] Java - Mapserver > > >Giri > > > >>I have just installed a mapserver and the demo is working ok >>for me. I would like to use Java, JSP with mapserver to >>generate maps. I have windows 2000 server, also with Tomcat. Is >>there any "How to do" information available? or can I have some >>sample demo projects?. I don't know how I can proceed. Any help >>inthis regard is greatly appreciated. >> >> > >I have looked, but have found no sample demonstration projects >using MapServer within a J2EE framework... > >However, this is exactly what I am working on right now. ;) > >I have an older version of MapScript for Java that I got here: > > http://urewera.boarsnest.net/MapScript/ > >which contains a proper JNI wrapper (.dll) for MapServer. > >I've had to make a lot of changes to the Java wrapper classes >(I will make them available to you and others who might be >interested). > >I have also created an Ant-based process for building and >deploying a set of simple JSP pages to JBoss: > > http://www.jboss.org > >(The "MapScript for Java" files contain a deploy process for >Resin, but I wanted to stick with an entirely open source >environment for my development.) > >I've gotten more proficient with MapServer at the source code >level and I believe that a pure-Java implementation of MapServer >could (and should) be made. I would head just such a project >at SourceForge: > > http://www.sf.net > >if there are any others on this list that are interested.... >Please send me an email if you have Java/MapServer/MapScript >questions and answers. > >My interest in a pure-Java implementation of MapServer is >stemming from a strong business interest in having a very stable >(and multithreaded!) version of MapServer for use in a J2EE >environment... > >I have really enjoyed using the PHP/MapScript interface to >MapServer, but I'm forecasting that the MapServer project could >attract a whole lot more development effort if it had, at the >least, a stable Java interface. > > >===== >Andrew Collins - andrewrcollins at yahoo.com >http://profiles.yahoo.com/andrewrcollins/ > >__________________________________________________ >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes >http://finance.yahoo.com > > > -- "Imagination is more important than knowledge." From mcilhagga at dmsolutions.ca Fri Aug 30 11:16:24 2002 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Fri, 30 Aug 2002 14:16:24 -0400 Subject: [mapserver-users] Java - Mapserver References: <4ACBA1414DD9EE418CC250E4AAA9035A192B1E@STL-EXBE-I03.corp.erac.com> <3D6FAA4B.80808@dsl.pipex.com> Message-ID: <3D6FB678.2010600@dmsolutions.ca> I'm not sure that GeoTools can quite replace everything that MapServer has to offer. For one thing, there is a heavy reliance on client-side java which is not an option for many (if not most?) MapServer users/developers. That's not to say a Java version of MapServer wouldn't be desirable ... just that geotools meets a very different need then a java-based MapServer would. Dave Andrew Haigh wrote: > Search for geotools on sourceforge. > > That said i'm not sure what your wanting to do. > > Andrew > From saengpole at excite.com Fri Aug 30 12:06:56 2002 From: saengpole at excite.com (Krung Saengpole) Date: Fri, 30 Aug 2002 15:06:56 -0400 (EDT) Subject: [mapserver-users] GD compiling error. Message-ID: <20020830190656.E5F88B727@xmxpita.excite.com> Michael, Thank you for your reply. I did as you suggested me but yet one error occured as following: /out:pngtogd.exe pngtogd.obj gd.lib libpng.lib zlib.lib libjpeg.lib freetype.lib pngtogd.obj : error LNK2001: unresolved external symbol _gdImageCreateFromPngpngtogd.exe : fatal error LNK1120: 1 unresolved externalsI also used gd-1.8.4 (tried both standard and patch version) and freetype-1.3.1. When I compiled freetype, I got freetype.lib so in gd's makefile.nt I write LIBS=gd.lib libpng.lib zlib.lib libjpeg.lib freetype.lib <------ Is it correct?Please don't be boring coz I'm not good at C language. Thank you again. Krung.--- On Thu 08/29, Michael Schulz < mschulz at webgis.de > wrote:From: Michael Schulz [mailto: mschulz at webgis.de]To: Cc: mapserver-users at lists.gis.umn.eduDate: Thu, 29 Aug 2002 10:47:08 +0200Subject: Re: [mapserver-users] GD compiling error.Hi,i) libttf refers to the freetype library that is needed to use truetypefonts in mapserver applications. I just compiled ms36x with gd184 andfreetype13. I couldn't manage to get it compiled with freetype212.ii) see the mapserver-list archive:http://mapserver.gis.umn.edu/wilma/mapserver-users/0105/msg00196.htmlI had the same problem. Also note that there is are patched version ofthe gdlib184 with gif-support. you can find the link in the mapservercompilation docs.If you have further problems, i will happily share my experiences of thelast days...Cheers, Michael ------------------------------------------------ Changed your e-mail? Keep your contacts! Use this free e-mail change of address service from Return Path. Register now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at refractions.net Fri Aug 30 12:16:43 2002 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 30 Aug 2002 12:16:43 -0700 Subject: [mapserver-users] Java - Mapserver References: <4ACBA1414DD9EE418CC250E4AAA9035A192B1E@STL-EXBE-I03.corp.erac.com> <3D6FAA4B.80808@dsl.pipex.com> <3D6FB678.2010600@dmsolutions.ca> Message-ID: <3D6FC49B.6080406@refractions.net> GeoTools could form the foundation of a Java server-side solution. Remember a mapserver is just a server-side renderer. GeoTools can render on the server just as easily on the client. That said, there would be alot of work to do to get there, in terms of defining a mapfile-like system of styling control, format support, etc etc etc. JaGo is a more likely possibility for a pure-Java map server solution which is already kind of ready-to-go, but I doubt it can touch mapserver for either speed or quality at this point in the day. (The OpenMap guys have also leveraged their Java toolset into a WMS server-side solution.) P. Dave McIlhagga wrote: > I'm not sure that GeoTools can quite replace everything that MapServer > has to offer. For one thing, there is a heavy reliance on client-side > java which is not an option for many (if not most?) MapServer > users/developers. > > That's not to say a Java version of MapServer wouldn't be desirable ... > just that geotools meets a very different need then a java-based > MapServer would. > > Dave > > Andrew Haigh wrote: > >> Search for geotools on sourceforge. >> >> That said i'm not sure what your wanting to do. >> >> Andrew >> > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From wzhang at c-cor.net Fri Aug 30 13:12:54 2002 From: wzhang at c-cor.net (Zhang, William) Date: Fri, 30 Aug 2002 16:12:54 -0400 Subject: [mapserver-users] TRUETYPE not work Message-ID: <68107A9AF023EA439FF7CC2AD02D8FE503A506@pltnpo1.c-cor.com> Steve, Yes, I have the MapFile Reference document. I did not specify font in my map file just for simplifying the test. I thought that some default font would be used by mapserver if no font is specified by user. Is this true? Anyway now I add font related lines in the map file below. It still does not work. NAME alm EXTENT -122.0837 37.6683 -122.1104 37.6885 SIZE 800 600 SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" FONTSET "C:\Inetpub\wwwroot\itasca\test\fonts\fonts.list" LAYER TYPE LINE STATUS DEFAULT DATA alm LABELITEM "FENAME" CLASS COLOR 255 0 0 LABEL TYPE TRUETYPE ANTIALIAS FONT arial COLOR 0 0 0 ANGLE AUTO POSITION UC END END END END # end of map file I have one line in the fonts.list file arial arial.ttf I also copy the arial.ttf file to the same directory as fonts.list located. Do I miss something else? Thank you for the help. William -----Original Message----- From: woodbri at swoodbridge.com [mailto:woodbri at swoodbridge.com] Sent: Thursday, August 29, 2002 7:32 PM To: Zhang, William; mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] TRUETYPE not work William, Do you have a Map file Reference document? You need to look at the LABEL section, you will see that it mentions a FONT tag which references an item in a FONTSET. The document will also tell you how to set up the FONTSET file which will need to point to the the fonts on your system. The documentation page can be found off the Mapserver home page. -Steve On 29 Aug 2002 at 22:04, Zhang, William wrote: > Hi, > > I got error in the map file below. If I comment out TRUETYPE releated lines, > the map file works. I downloaded the mapserv.exe from Windows Binary > Download page, so it should be TRUETYPE enabled. Could somebody give me help > on this one? > > > NAME alm > EXTENT -122.0837 37.6683 -122.1104 37.6885 > SIZE 800 600 > SHAPEPATH "C:\Inetpub\wwwroot\itasca\test\tutorial35" > LAYER > TYPE LINE > STATUS DEFAULT > DATA alm > LABELITEM "FENAME" > CLASS > COLOR 255 0 0 > LABEL > TYPE TRUETYPE > ANTIALIAS > COLOR 0 0 0 > ANGLE AUTO > POSITION UC > END > END > END > END # end of map file > > > Thanks, > > William Zhang > > Software Engineer > C-Cor.net > Phone: (925) 251-3019 > Fax: (925) 467-0600 > E-Mail: wzhang at c-cor.net > > From gabriel at ciasc.gov.br Fri Aug 30 14:13:50 2002 From: gabriel at ciasc.gov.br (gabriel) Date: Fri, 30 Aug 2002 18:13:50 -0300 Subject: [mapserver-users] map scale questions References: <18E0CC75605BD411907800508B8BB8D00165EFCF@odin.enator.dk> Message-ID: <001b01c2506a$23809520$12d713ac@ciasc.gov.br> Dear Listers. I have some images on JPG - Bitmaps JPEG format: width 500 pixels, height 400 pixels, dpi X: 72, dpi Y: 72, compataction: JPEG, type: RGB 24 bits. My Ms is: [mapserver at linux cgi-bin]$ ./mapserv361 -v MapServer version 3.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORT S=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE What is the best format (full information) to display the images on MS ? I have Corel Photo-Paint or Photoshop to convert the format ? I'd like to display them with full color. From TCHaddad at cshore.com Fri Aug 30 14:53:15 2002 From: TCHaddad at cshore.com (TCHaddad) Date: Fri, 30 Aug 2002 17:53:15 -0400 Subject: [mapserver-users] legend "feature"? Message-ID: <200208301753.AA1992032316@cshore.com> Hello, I just inserted a whole bunch of scale dependant classes into the layers in my mapfile, so that the symbology in my maps will change as the user zooms in and out. works very well visually. However, I noticed that now if I generate a legend at a particular zoom level, I get all the symbols associated with every layer displayed in the map. For example, I get 3 legend entries with 3 different symbols when I turn on the layer defined below: LAYER NAME ushighway GROUP Roads STATUS OFF TYPE LINE DATA "D:/gis/ushwy" #MINSCALE MAXSCALE 3000000 CLASS MAXSCALE 100000 NAME "US Highway" TEMPLATE "ttf.htm" SYMBOL 'circle1' COLOR 54 54 54 SIZE 3 OVERLAYSYMBOL 'circle1' OVERLAYCOLOR 25 25 112 OVERLAYSIZE 1 END CLASS MAXSCALE 700000 MINSCALE 100001 NAME "US Highway" SYMBOL 'circle1' COLOR 25 25 112 SIZE 2 END CLASS MINSCALE 700001 NAME "US Highway" TEMPLATE "ttf.htm" SYMBOL 'circle1' COLOR 130 130 130 SIZE 1 END END I understand if I take out the NAME item from 2 of the Classes, that I will only get one legend entry per layer, but then nothing garuntees that my legend will have the correct symbol according to my zoom level. Is there something I am missing in my definition of the Layer, or is this a "feature" of how legends work? TH From jimmy at deefa.com Fri Aug 30 19:29:25 2002 From: jimmy at deefa.com (James Healy) Date: 31 Aug 2002 12:29:25 +1000 Subject: [mapserver-users] strange data in shp file In-Reply-To: <200208301753.AA1992032316@cshore.com> References: <200208301753.AA1992032316@cshore.com> Message-ID: <1030760967.17874.18.camel@jimmy> Hi there I'm fairly new to using mapserver, and have hit a bit of a brick wall. Up till now, all my data (which is in shp files) has worked beautifully. if i run shpdump (from the shapelib pkg), then i can see all the coords are in regular decimal latitude and longitudes. However, some new data i received recently (again, this is in shp format) doesn't seem to work. Mapserver doesn't complain, and displays a map, but the layers that are using the new data cant be seen. When I ran a shpdump on these new files, the coords range anywhere from 250 000 to 5 000 000 or so. Is this normal? Or is the new data stuffed? Can I run the new data if i only use shp files that use the same coords system? any help would be much appreciated james -- ****************************************************** "Before you criticise someone, you should walk a mile in their shoes. That way, when you criticise them, you're a mile away and you have their shoes. " work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ****************************************************** From ed at topozone.com Fri Aug 30 20:21:38 2002 From: ed at topozone.com (Ed McNierney) Date: Fri, 30 Aug 2002 23:21:38 -0400 Subject: [mapserver-users] strange data in shp file Message-ID: <13858AA1A74F30419F319ACB66A9D1220E85A5@mercator.topozone.com> James - It looks like the new SHP files are projected - probably in UTM or a regional / state coordinate system. Unfortunately, there's nothing IN a shapefile that tells you what projection it is. If there's a .PRJ file with the same root name, that will give you info. MapServer can reproject layers of any different coordinate systems onto the same map. But you need to tell it what coordinate systems each SHP file is in - otherwise it will assume they're all the same. In your case, that means interpreting those numbers as lat/lon, which puts them way out in hyperspace somewhere. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: James Healy [mailto:jimmy at deefa.com] Sent: Friday, August 30, 2002 10:29 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] strange data in shp file Hi there I'm fairly new to using mapserver, and have hit a bit of a brick wall. Up till now, all my data (which is in shp files) has worked beautifully. if i run shpdump (from the shapelib pkg), then i can see all the coords are in regular decimal latitude and longitudes. However, some new data i received recently (again, this is in shp format) doesn't seem to work. Mapserver doesn't complain, and displays a map, but the layers that are using the new data cant be seen. When I ran a shpdump on these new files, the coords range anywhere from 250 000 to 5 000 000 or so. Is this normal? Or is the new data stuffed? Can I run the new data if i only use shp files that use the same coords system? any help would be much appreciated james -- ****************************************************** "Before you criticise someone, you should walk a mile in their shoes. That way, when you criticise them, you're a mile away and you have their shoes. " work: worker at aycs.org.au / personal: jimmy at deefa.com msn: jimmy at deefa.com / ICQ: 6370237 web: www.deefa.com ******************************************************