From D.Stone at ED.AC.UK Mon May 1 02:54:09 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Mon, 1 May 2006 02:54:09 -0700 Subject: Legend problem Message-ID: I've noticed the legend on my inline map is behaving oddly. If I call up MapServer with 2 layers (boundaries + annotation) I get the legend for their classes, as expected. If I select a third layer which puts dots on the map generated from a PostGIS table (as well as the original 2), the dot layer legend doesn't appear. Any ideas what might be going on? The boundary (polygon) layer has STATUS ON in the map file, the annotation and 'dot' layers have STATUS OFF. Dave -- View this message in context: http://www.nabble.com/Legend-problem-t1535639.html#a4172218 Sent from the Mapserver - User forum at Nabble.com. From David.Fawcett at STATE.MN.US Mon May 1 05:25:20 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 1 May 2006 07:25:20 -0500 Subject: Mouseover with php mapscript Message-ID: If you are interested in the imagemap route, take a look at the Imagemap HowTO: http://mapserver.gis.umn.edu/docs/howto/imagemaps David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Sunday, April 30, 2006 2:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mouseover with php mapscript You can do that using an imagemap. It is one of the output formats of Mapserver. Alternatively, you could look into Chameleon's MapTips widget which does a similar thing using PHP/Mapscript. Best regards, Bart igor pinheiro wrote: > Hello, > How can i implement a mouseover javascript so that it open a text box > with information about the point above the mouse point (without click)? > Thanks > Igor > > Abra sua conta no Yahoo! Mail > > - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente > eficaz. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From David.Fawcett at STATE.MN.US Mon May 1 05:29:22 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 1 May 2006 07:29:22 -0500 Subject: Legend problem Message-ID: Dave, Does the class in your 'dot' layer have a name? If you don't specify a name for the class, it won't show up in the legend. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of DjwStone Sent: Monday, May 01, 2006 4:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Legend problem I've noticed the legend on my inline map is behaving oddly. If I call up MapServer with 2 layers (boundaries + annotation) I get the legend for their classes, as expected. If I select a third layer which puts dots on the map generated from a PostGIS table (as well as the original 2), the dot layer legend doesn't appear. Any ideas what might be going on? The boundary (polygon) layer has STATUS ON in the map file, the annotation and 'dot' layers have STATUS OFF. Dave -- View this message in context: http://www.nabble.com/Legend-problem-t1535639.html#a4172218 Sent from the Mapserver - User forum at Nabble.com. From D.Stone at ED.AC.UK Mon May 1 06:14:26 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Mon, 1 May 2006 14:14:26 +0100 Subject: Legend problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0597@s-sp22.pca.state.mn.us> Message-ID: Indeed it does -- map file snippet below illustrates: LAYER # query layer using the dedloc PostgreSQL view CONNECTIONTYPE postgis NAME saint_dedications CONNECTION "user=erdb13 dbname=stdraft" # Original DATA statement below doesn't work; gives blank query template # DATA "geom from dedloc using unique dr using SRID=27700" DATA "geom from dedloc using srid=27700" STATUS OFF DEBUG ON TYPE POINT FILTERITEM dedicationtype FILTER "dedicationtype='%dtype%'" TOLERANCE 25 HEADER "result_hdr.html" FOOTER "result_ftr.html" CLASS NAME "Dedications" MINSCALE 2000000 TEMPLATE "result.html" DEBUG ON The funny thing is, the 'Dedications' legend entry used to appear when the layer's mode was DEFAULT (in the map file) -- but only when the layer was NOT selected on the calling template. Dave Fawcett, David wrote: > Dave, > > Does the class in your 'dot' layer have a name? > > If you don't specify a name for the class, it won't show up in the > legend. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of DjwStone > Sent: Monday, May 01, 2006 4:54 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Legend problem > > > I've noticed the legend on my inline map is behaving oddly. > > If I call up MapServer with 2 layers (boundaries + annotation) I get the > legend for their classes, as expected. > > If I select a third layer which puts dots on the map generated from a > PostGIS table (as well as the original 2), the dot layer legend doesn't > appear. > > Any ideas what might be going on? > > The boundary (polygon) layer has STATUS ON in the map file, the > annotation and 'dot' layers have STATUS OFF. > > Dave > -- > View this message in context: > http://www.nabble.com/Legend-problem-t1535639.html#a4172218 > Sent from the Mapserver - User forum at Nabble.com. > From D.Stone at ED.AC.UK Mon May 1 07:57:45 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Mon, 1 May 2006 15:57:45 +0100 Subject: Legend problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0597@s-sp22.pca.state.mn.us> Message-ID: The old brain cells are a bit sluggish today, I'm afraid. Just noticed the layer has 2 classes, one named, the other not. I was invariably displaying the unnamed class ( MAXSCALE=...); when I tried the named class ( MINSCALE=...) and it showed in the legend, the penny finally dropped. Thanks for your help! Dave Fawcett, David wrote: > Dave, > > Does the class in your 'dot' layer have a name? > > If you don't specify a name for the class, it won't show up in the > legend. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of DjwStone > Sent: Monday, May 01, 2006 4:54 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Legend problem > > > I've noticed the legend on my inline map is behaving oddly. > > If I call up MapServer with 2 layers (boundaries + annotation) I get the > legend for their classes, as expected. > > If I select a third layer which puts dots on the map generated from a > PostGIS table (as well as the original 2), the dot layer legend doesn't > appear. > > Any ideas what might be going on? > > The boundary (polygon) layer has STATUS ON in the map file, the > annotation and 'dot' layers have STATUS OFF. > > Dave > -- > View this message in context: > http://www.nabble.com/Legend-problem-t1535639.html#a4172218 > Sent from the Mapserver - User forum at Nabble.com. > From naci0002 at UMN.EDU Mon May 1 09:49:37 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 1 May 2006 11:49:37 -0500 Subject: Fwd: help please Message-ID: Folks, Gary Watry is having problems with the MapServer-Users mailing list. We're looking at the problem but I thought I'd forward his questions to the list. So, if anyone has the answer... I'm sure he'll be happy to hear from you. -Perry >>> "Gary Watry" 5/1/2006 7:35 AM >>> Good Morning 1. I have lost the ability to post to the mapserver forum mapserver-users at lists.umn.edu 2. I need to be able to add a header (mapheader.php) to all my pages, I do not want to hardcode the header because as part of the header changes I would have to go to too many pages to update it. In the mapfile are several templates, A. if I load a template as follows, EMPTY "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurrempty.php" the header loads using B. if I load the template in the WEB portion TEMPLATE 'c:\inetpub\wwwroot\httpdocs\hurrtrac.php' The header does not load C. If I load the template in the Layer portion, TEMPLATE "c:\inetpub\wwwroot\httpdocs\templates\hurricane.php" The query loads but not the header D. If I load the template in the Layer portion, TEMPLATE "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurricane.php" The header loads but not the query data Any thoughts or suggestions? ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu ------------------------------------------------------- -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From btenbroeck at ITSERVE.COM Tue May 2 00:12:56 2006 From: btenbroeck at ITSERVE.COM (Bill Tenbroeck) Date: Tue, 2 May 2006 03:12:56 -0400 Subject: WMS passthru from Terraserver Message-ID: The current incarnation of Mapguide Opensource does not talk to Terraserver, but it is very happy to talk to Mapserver. Is there any mechanism to use Mapserver to consume Terraserver, and then turn around and serve that up via WMS? Basically, a passthru. -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue May 2 00:15:05 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 2 May 2006 09:15:05 +0200 Subject: WMS passthru from Terraserver Message-ID: Yes Mapserver can be a cascading WMS. Only thing you lose is GetFeatureInfo (attribute information). See: http://mapserver.gis.umn.edu/docs/howto/wms_client/ Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Bill Tenbroeck Verzonden: dinsdag 2 mei 2006 9:13 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS passthru from Terraserver The current incarnation of Mapguide Opensource does not talk to Terraserver, but it is very happy to talk to Mapserver. Is there any mechanism to use Mapserver to consume Terraserver, and then turn around and serve that up via WMS? Basically, a passthru. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Tue May 2 01:08:47 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Tue, 2 May 2006 10:08:47 +0200 Subject: Mapserver image filename length Message-ID: HI I'm developping a mapscript web server under .net and Mono. I generate swf files using ming library and i had the folowing problem with image filename. the output filename prfix is defined as String zUnique = (String)pSession.SessionID+"_"+DateTime.Now.Ticks.ToString(); which is about 60 cars long Under .net all works fine but under linux files are not welle created and more the site get down (oups !!) I'd like to know if this limit est due to Mono or Mapscript and if limit there is which is its value regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Tue May 2 02:37:40 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Tue, 2 May 2006 11:37:40 +0200 Subject: Mapserver image filename length Message-ID: Hi, I can see a 128 byte limitation for the filename length for swf, and the current implementation is not safe for multithreading that may be changed in the future. Are you using back slashes in your filename. Do you have any additional error messages? Could you post a code fragment to reproduce this issue? Best Regards Tamas Szekeres On Tue, 2 May 2006 10:08:47 +0200, Xavier Mauclaire wrote: > >HI >I'm developping a mapscript web server under .net and Mono. I generate swf >files using ming library and i had the folowing problem with image filename. > > >the output filename prfix is defined as >String zUnique = >(String)pSession.SessionID+"_"+DateTime.Now.Ticks.ToString(); > > which is about 60 cars long > >Under .net all works fine but under linux files are not welle created and >more the site get down (oups !!) > >I'd like to know if this limit est due to Mono or Mapscript and if limit >there is which is its value > >regards > > > _______________________________________________________________________________ A legjobb akci?s utaz?sok oldala, ahol most rengeteg nyerem?ny v?r R?d: http://ad.adverticum.net/b/cl,1,6022,99401,161631/click.prm From listario at GMAIL.COM Tue May 2 03:06:23 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 2 May 2006 12:06:23 +0200 Subject: Fwd: help please In-Reply-To: <200605011149.37809.naci0002@umn.edu> Message-ID: Hi Warty HTML iframes may be useful. You could insert an iframe in the MapServer template referencing the PHP header or vice versa, insert an iframe in the PHP header referencing the MapServer call. Best regards Jorge 2006/5/1, Pericles S. Nacionales : > Folks, > > Gary Watry is having problems with the MapServer-Users mailing list. We're > looking at the problem but I thought I'd forward his questions to the list. > So, if anyone has the answer... I'm sure he'll be happy to hear from you. > > -Perry > > >>> "Gary Watry" 5/1/2006 7:35 AM >>> > > Good Morning > 1. I have lost the ability to post to the mapserver forum > mapserver-users at lists.umn.edu > > 2. I need to be able to add a header (mapheader.php) to all my pages, I do > not want to hardcode the header because as part of the header changes I > would have to go to too many pages to update it. > > In the mapfile are several templates, > A. if I load a template as follows, > EMPTY "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurrempty.php" > the header loads using > include("http://indianocean.coaps.fsu.edu/httpdocs/mapheader.php"); > ?> > > B. if I load the template in the WEB portion > TEMPLATE 'c:\inetpub\wwwroot\httpdocs\hurrtrac.php' > The header does not load > > C. If I load the template in the Layer portion, > TEMPLATE "c:\inetpub\wwwroot\httpdocs\templates\hurricane.php" > The query loads but not the header > > D. If I load the template in the Layer portion, > TEMPLATE > "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurricane.php" > The header loads but not the query data > > Any thoughts or suggestions? > > ______________________________________________________________ > Gary L. Watry > > GIS Coordinator > Center for Ocean-Atmospheric Prediction Studies > FSU / COAPS > Johnson Building, RM 215 > 2035 East Paul Dirac Drive > Tallahassee, Florida 32306-2840 > > E-Mail: watry at coaps.fsu.edu > > ------------------------------------------------------- > > -- > Pericles S. Nacionales > Conservation Biology Program > University of Minnesota > e-mail: naci0002 at umn.edu > From listario at GMAIL.COM Tue May 2 03:13:40 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 2 May 2006 12:13:40 +0200 Subject: Fwd: help please In-Reply-To: <4ac992660605020306l7a6add9td4d50c0ff8e441be@mail.gmail.com> Message-ID: Warty: I have been too quick. I am not sure about the second option. The first (insert an iframe in the MapServer template referencing the PHP) looks better. Sorry Bests regards. Jorge 2006/5/2, J. Parapar : > Hi Warty > > HTML iframes may be useful. You could insert an iframe in the > MapServer template referencing the PHP header or vice versa, insert an > iframe in the PHP header referencing the MapServer call. > > Best regards > Jorge > > 2006/5/1, Pericles S. Nacionales : > > Folks, > > > > Gary Watry is having problems with the MapServer-Users mailing list. We're > > looking at the problem but I thought I'd forward his questions to the list. > > So, if anyone has the answer... I'm sure he'll be happy to hear from you. > > > > -Perry > > > > >>> "Gary Watry" 5/1/2006 7:35 AM >>> > > > > Good Morning > > 1. I have lost the ability to post to the mapserver forum > > mapserver-users at lists.umn.edu > > > > 2. I need to be able to add a header (mapheader.php) to all my pages, I do > > not want to hardcode the header because as part of the header changes I > > would have to go to too many pages to update it. > > > > In the mapfile are several templates, > > A. if I load a template as follows, > > EMPTY "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurrempty.php" > > the header loads using > > > include("http://indianocean.coaps.fsu.edu/httpdocs/mapheader.php"); > > ?> > > > > B. if I load the template in the WEB portion > > TEMPLATE 'c:\inetpub\wwwroot\httpdocs\hurrtrac.php' > > The header does not load > > > > C. If I load the template in the Layer portion, > > TEMPLATE "c:\inetpub\wwwroot\httpdocs\templates\hurricane.php" > > The query loads but not the header > > > > D. If I load the template in the Layer portion, > > TEMPLATE > > "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurricane.php" > > The header loads but not the query data > > > > Any thoughts or suggestions? > > > > ______________________________________________________________ > > Gary L. Watry > > > > GIS Coordinator > > Center for Ocean-Atmospheric Prediction Studies > > FSU / COAPS > > Johnson Building, RM 215 > > 2035 East Paul Dirac Drive > > Tallahassee, Florida 32306-2840 > > > > E-Mail: watry at coaps.fsu.edu > > > > ------------------------------------------------------- > > > > -- > > Pericles S. Nacionales > > Conservation Biology Program > > University of Minnesota > > e-mail: naci0002 at umn.edu > > > From s_jubeh at YAHOO.COM Tue May 2 03:14:28 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Tue, 2 May 2006 03:14:28 -0700 Subject: Displaying data located on another machine Message-ID: Hi guys I made a small network between two PCs the first one has the web server and the web pages "interface" and the second one has the data and the configuration files ".map" , the data format is HDF, I compiled MapServer via GDAL and i compiled GDAL via HDF. MapServer was able to render HDF file if mapserver excutable and the data are located on the same PC but when i tried to split the data on another PC i got this error. msDrawMap(): Image handling error. Failed to draw layer named 'result'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available i pass the map file like this in the address bar http://localhost:8017/cgi-bin/pg/mapserv.exe?mode=map&map=\\gislaptop\htdocs\2\isoteia.map and this is the map file map EXTENT 477701.230832 3927667.46741 478094.456912 3928005.705781 name 'raster' shapepath 'data' size 450 450 status on units meters scalebar backgroundcolor 255 255 0 color 255 255 255 imagecolor 255 255 255 intervals 4 outlinecolor 0 0 0 size 200 7 status on style 0 transparent true units meters label backgroundcolor 0 0 0 color 255 255 0 size tiny end end LAYER NAME 'result' DATA 'green.hdf' TYPE RASTER STATUS on PROCESSING 'SCALE=0,749' END END how can i fix this problem and why it is happenning. Thanks in advance --------------------------------- Yahoo! Mail goes everywhere you do. Get it on your phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Tue May 2 04:55:46 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Tue, 2 May 2006 13:55:46 +0200 Subject: Displaying data located on another machine Message-ID: Mapserver was not able to recognize your image format. Do you have USE_GDAL enabled? I think "drawEPP(): Image handling error. EPPL7 support is not available" is a bit confusing in this situation since you have't enabled EPPL support at all. Maybe a #define is missing and the EPPL test should be replaced by "The supplied image format cannot be recognized." or something like this. Best Regards, Tamas _______________________________________________________________________________ A legjobb akci?s utaz?sok oldala, ahol most rengeteg nyerem?ny v?r R?d: http://ad.adverticum.net/b/cl,1,6022,99401,161631/click.prm From xavier.mauclaire at GEOTER.FR Tue May 2 05:36:08 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Tue, 2 May 2006 14:36:08 +0200 Subject: Mapserver image filename length In-Reply-To: Message-ID: Hi, Here are piece of code // Sess HttpSessionState pSession = context.Session; String zUnique = (String)pSession.SessionID+"_"+DateTime.Now.Ticks.ToString(); imageObj pImg = pMap.draw(); //I'm generating swf files String zImageName = "carto_"+zUnique+".swf"; pImg.save(@"/srv/www/tmp/"+zImageName, null); ... I'm generating one swf file by layer The first layer file is created in the tmp directory with teh good name the others ones are created but in the site directory with a truncated filename. After that the site get down regards Xavier -----Message d'origine----- De : Szekeres Tam?s [mailto:szekeres.tamas at freemail.hu] Envoy? : mardi 2 mai 2006 11:38 ? : xavier.mauclaire at GEOTER.FR Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: Mapserver image filename length Hi, I can see a 128 byte limitation for the filename length for swf, and the current implementation is not safe for multithreading that may be changed in the future. Are you using back slashes in your filename. Do you have any additional error messages? Could you post a code fragment to reproduce this issue? Best Regards Tamas Szekeres On Tue, 2 May 2006 10:08:47 +0200, Xavier Mauclaire wrote: > >HI >I'm developping a mapscript web server under .net and Mono. I generate swf >files using ming library and i had the folowing problem with image filename. > > >the output filename prfix is defined as String zUnique = >(String)pSession.SessionID+"_"+DateTime.Now.Ticks.ToString(); > > which is about 60 cars long > >Under .net all works fine but under linux files are not welle created and >more the site get down (oups !!) > >I'd like to know if this limit est due to Mono or Mapscript and if limit >there is which is its value > >regards > > > ____________________________________________________________________________ ___ A legjobb akci?s utaz?sok oldala, ahol most rengeteg nyerem?ny v?r R?d: http://ad.adverticum.net/b/cl,1,6022,99401,161631/click.prm __________ Information NOD32 1.1516 (20060501) __________ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com From percyd at PDX.EDU Tue May 2 06:07:03 2006 From: percyd at PDX.EDU (Percy) Date: Tue, 2 May 2006 06:07:03 -0700 Subject: MAPSERVER-USERS Digest - 30 Apr 2006 to 1 May 2006 (#2006-121) In-Reply-To: Message-ID: Gary, you just need to include a little chunk of PHP at the top of your page, like this This will put the contents of that file at the top of your webpage. This does not happen in the Mapfile! Hope this helps, Percy PSU Geology > Date: Mon, 1 May 2006 11:49:37 -0500 > From: "Pericles S. Nacionales" > Subject: Fwd: help please > > Folks, > > Gary Watry is having problems with the MapServer-Users mailing list. We're > looking at the problem but I thought I'd forward his questions to the list. > So, if anyone has the answer... I'm sure he'll be happy to hear from you. > > -Perry > > >>> "Gary Watry" 5/1/2006 7:35 AM >>> > > Good Morning > 1. I have lost the ability to post to the mapserver forum > mapserver-users at lists.umn.edu > > 2. I need to be able to add a header (mapheader.php) to all my pages, I do > not want to hardcode the header because as part of the header changes I > would have to go to too many pages to update it. > > In the mapfile are several templates, > A. if I load a template as follows, > EMPTY "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurrempty.php" > the header loads using > include("http://indianocean.coaps.fsu.edu/httpdocs/mapheader.php"); > ?> > > B. if I load the template in the WEB portion > TEMPLATE 'c:\inetpub\wwwroot\httpdocs\hurrtrac.php' > The header does not load > > C. If I load the template in the Layer portion, > TEMPLATE "c:\inetpub\wwwroot\httpdocs\templates\hurricane.php" > The query loads but not the header > > D. If I load the template in the Layer portion, > TEMPLATE > "http://indianocean.coaps.fsu.edu/httpdocs/templates/hurricane.php" > The header loads but not the query data > > Any thoughts or suggestions? > > ______________________________________________________________ > Gary L. Watry > > GIS Coordinator > Center for Ocean-Atmospheric Prediction Studies > FSU / COAPS > Johnson Building, RM 215 > 2035 East Paul Dirac Drive > Tallahassee, Florida 32306-2840 > > E-Mail: watry at coaps.fsu.edu > > ------------------------------------------------------- > > -- > Pericles S. Nacionales > Conservation Biology Program > University of Minnesota > e-mail: naci0002 at umn.edu > > ------------------------------ > > End of MAPSERVER-USERS Digest - 30 Apr 2006 to 1 May 2006 (#2006-121) > ********************************************************************* > > From D.Stone at ED.AC.UK Tue May 2 07:07:43 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Tue, 2 May 2006 07:07:43 -0700 Subject: Dynamic legend Message-ID: OK, I've got a legend now showing class-names for all selected layers, including the 'layer of dots' generated from a PostGIS table. At the moment, that layer has a fixed, generic class-name, but the layer is actually dynamic: its DATA statement is modified by a FILTER containing a substitution variable: FILTER "dedicationtype='%dtype%'" What I'd like is for the layer's class-name to mirror the dedication type, so if the user via the HTML template sets dedicationtype = Bell, the legend on the generated map should label the dots as 'Bell' rather than just the fixed 'Dedications'. I nearly achieve this with: in the template, but the order of processing is such that the first time the template is submitted, 'dtype' (the select list containing dedication types) has no value, and the map has to be redrawn again before 'Bell' appears in the legend. Is there a way to get the value of dtype selected on the 1st display of the template to update the class-name in the mapfile before it's used in generating the legend on the 2nd display? Hope that's intelligible -- if not, just shout! Dave -- View this message in context: http://www.nabble.com/Dynamic-legend-t1538507.html#a4179750 Sent from the Mapserver - User forum at Nabble.com. From diego.riofrio at GMAIL.COM Tue May 2 07:19:29 2006 From: diego.riofrio at GMAIL.COM (Diego Riofrio) Date: Tue, 2 May 2006 09:19:29 -0500 Subject: Runtime Error! In-Reply-To: Message-ID: Tamas, I did what you say about the dlls of mapscript in C#, I added the manifest with mt /manifest mapscript.dll.manifest /outputresource:mapscript.dll;#2, and it worked very well. I realized that some things are fixed, like draw line witch didn't work with the other version. I only have a problem while working on development ambient the dlls don't work in a computer with only Visual .Net 2005 installed, they also need Visual .Net 2003 installed. I don't know why but if Visual .Net 2005 is only installed an exception of mapscriptPINVOKE is thrown: "Unable to load dll ' mapscript.dll'". I haven't tested the application on a deployment ambient yet, but I will do it in a few days. I'm very grateful with your help. Best Regards, Diego Riofr?o -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredlucca at GMAIL.COM Tue May 2 07:58:08 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 11:58:08 -0300 Subject: Problems showing mapInfo text layer without OGR Message-ID: Hello all, I have a mapinfo text layer and i need to view it on the map. I use ogr2ogr to convert to esri shape format and put in my mapfile but i can't see the layer. I have a multi-thread environment, then i don't want to use OGR, because of mutex. LAYER NAME TB TYPE annotation #STYLEITEM "auto" #CONNECTIONTYPE ogr #CONNECTION "/var/www/maps/TB.TAB" DATA "/var/www/maps/shp/TB" STATUS DEFAULT MINSCALE 1 MAXSCALE 50000 CLASS COLOR 255 0 0 OUTLINECOLOR 171 158 137 END END Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Tue May 2 08:48:45 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Tue, 2 May 2006 17:48:45 +0200 Subject: Runtime Error! In-Reply-To: Message-ID: Diego, I will update the C# readme with this manifest embedding stuff, thanks for the feedback. I guess that some of the dependent libraries have been compiled with previous versions of Visual Sudio. You might want to select the libraries really needed to run your application and compile them using VS2005. Howard Butler's buildkit is the best option to have all of the sources to compile. By editing mapserver/nmake.opt you should enable only those libraries that are really used. It must be noted that using different compilers may cause that the modules have different CRT heaps and may result in heap corruption if the memory allocation and deallocation of the same segment occurs in different modules. I hope this situation may occur rarely by now. Compilation of some of the libraries with VS2005 may be a big fun ;) As far as I know the buildkit was originally compiled with VS2003 and the ms4w installation was released based on theese binaries. Tamas Diego Riofrio ?rta: > Tamas, > > I did what you say about the dlls of mapscript in C#, I added the manifest > with mt /manifest mapscript.dll.manifest /outputresource:mapscript.dll;#2, > and it worked very well. I realized that some things are fixed, like draw > line witch didn't work with the other version. > > I only have a problem while working on development ambient the dlls don't > work in a computer with only Visual .Net 2005 installed, they also need > Visual .Net 2003 installed. I don't know why but if Visual .Net 2005 is only > installed an exception of mapscriptPINVOKE is thrown: "Unable to load dll ' > mapscript.dll'". I haven't tested the application on a deployment ambient > yet, but I will do it in a few days. > > I'm very grateful with your help. > > Best Regards, > Diego Riofr?o > _______________________________________________________________________________ A legjobb akci?s utaz?sok oldala, ahol most rengeteg nyerem?ny v?r R?d: http://ad.adverticum.net/b/cl,1,6022,99401,161631/click.prm From fredlucca at GMAIL.COM Tue May 2 11:24:24 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 15:24:24 -0300 Subject: How do I create a new shapeObj from a list of shapeobj? In-Reply-To: <471ff29a0604271555y5e87d95u168dd5868536489b@mail.gmail.com> Message-ID: Bryon, I have something in java... public void addLine(double[] arg){ lineObj line = new lineObj(); for(int i=2;i wrote: > > I am retrieving a list of shapes from a line shapefile file using the > following code: > > for($x=0;$x { > $oSelectedShape = $oRelationLayer->getshape(-1, $oShapeList[$x]); > array_push($oShapeObjectList,$oSelectedShape); > } > > I want to merge this list of shapes into one shape (i.e. one line). I > thought I could do it using the following code but it returns a "Fatal > error: Object has an invalid _handle_ property": > > $oLine = ms_newShapeObj(MS_SHAPE_LINE); > For($x=0; $x { > $oLine->add($oShapeObjectList[$x]); > } > > The goal here is to create one line, then use the GEOS - buffer(width) > to create a polygon object that I can save to a new shapefile. > > Does anybody have any ideas? OR CODE!!! > > Sincerely, > Bryon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredlucca at GMAIL.COM Tue May 2 11:31:43 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 15:31:43 -0300 Subject: getFeature problem In-Reply-To: Message-ID: Myunghwa, try this... qlayer.queryByPoint(map, qpoint, ms.MS_MULTIPLE, -1) -1 allows to use the layer tolerance value Best regards, Fred On 4/23/06, Myunghwa Hwang wrote: > > I'm trying to retrieve attributed values for selected polygon. > By using python mapscript and postgis layer, I tried to get a feature by > querybypoint. > In the following code, a feature by getFeature has no bounding box. > The minimum x, y and the maximum x, y are all -1. > So any attribute was not retrieved. > Anybody has any idea of this problem? > > > def getNearFeat(qpoint, map): > # get query layer > qlayer = map.getLayerByName('blockgroup') > qlayer.template = 'query_result.html' > qlayer.tolerance = 1000 # Unit is meter > # query the query layer > qlayer.queryByPoint(map, qpoint, ms.MS_MULTIPLE, 1000) > numResults = qlayer.getNumResults() > results = qlayer.getResults() > # retrieve shape index for selected features > if (numResults > 0): > featAtts = [] > qlayer.open() > for i in range(numResults): > att = [] > query_result = results.getResult(i) > afeat = qlayer.getFeature(query_result.shapeindex, > query_result.tileindex) > if afeat: > for j in range(qlayer.numitems): > att.append(afeat.getValue(j)) > featAtts.append(att) > qlayer.close() > return featAtts > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Tue May 2 14:47:28 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 2 May 2006 20:47:28 -0100 Subject: Problems showing mapInfo text layer without OGR {Scanned} {Scanned} In-Reply-To: Message-ID: Hi Frederico, Tra something like this LAYER NAME "sample" DATA "path/to/your/shape" STATUS ON TYPE ANNOTATION LABELITEM "text_field_to_display" LABELMAXSCALE 8001 SYMBOLSCALE 2000 # you need it for scaleable labels CLASS LABEL COLOR 240 150 5 SIZE 7 POSITION CC FONT my_font # defined in your FONTSET file TYPE TRUETYPE ANGLE AUTO END END END I hope this helps you Zoltan On Tue, 2 May 2006, Frederico Lucca wrote: > Hello all, > > I have a mapinfo text layer and i need to view it on the map. > I use ogr2ogr to convert to esri shape format and put in my mapfile but i > can't see the layer. > I have a multi-thread environment, then i don't want to use OGR, because of > mutex. > > LAYER > NAME TB > TYPE annotation > #STYLEITEM "auto" > #CONNECTIONTYPE ogr > #CONNECTION "/var/www/maps/TB.TAB" > DATA "/var/www/maps/shp/TB" > STATUS DEFAULT > MINSCALE 1 > MAXSCALE 50000 > CLASS > COLOR 255 0 0 > OUTLINECOLOR 171 158 137 > END > END > > Thanks in advance. > > Fred > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > From julien.63 at FREE.FR Tue May 2 12:02:32 2006 From: julien.63 at FREE.FR (bessiere julien) Date: Tue, 2 May 2006 14:02:32 -0500 Subject: gdal-version.h Message-ID: Hi, i'm trying toi install mapserver-4.8.1 but running "make" i have an error message : mapogr.cpp:142:28: erreur: gdal_version.h : Aucun fichier ou r?pertoire de ce type mapogr.cpp: In function ?int msOGRLayerGetAutoStyle(mapObj*, layerObj*, classObj*, int, long int)?: mapogr.cpp:2185: attention : ?oPenColor$red? may be used uninitialized in this function mapogr.cpp:2185: attention : ?oPenColor$green? may be used uninitialized in this function mapogr.cpp:2185: attention : ?oPenColor$blue? may be used uninitialized in this function mapogr.cpp:2185: attention : ?oPenColor$pen? may be used uninitialized in this function make: *** [mapogr.o] Erreur 1 and i really can't find this gdal-version.h i tried : * www.pbone.net * [root at localhost julien]# yum provides gdal_version.h but, in vain... thanks julien From fredlucca at GMAIL.COM Tue May 2 12:32:35 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 16:32:35 -0300 Subject: Problems showing mapInfo text layer without OGR {Scanned} {Scanned} In-Reply-To: Message-ID: Thanks for the help, but I think the problem is that the text i have in my mapinfo file don't have a text field to display. The feature is a text. Maybe the problem is how to translate it to a shape file. I already try to use: ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB But I have always the same problem. Using OGR everything is ok... #STYLEITEM "auto" #CONNECTIONTYPE ogr #CONNECTION "/var/www/maps/TB.TAB" But according to Frank, I need a thread-safe environment and OGR is not really threadsafe. Thanks in advance, Fred On 5/2/06, Siki Zoltan wrote: > > Hi Frederico, > > Tra something like this > > LAYER > NAME "sample" > DATA "path/to/your/shape" > STATUS ON > TYPE ANNOTATION > LABELITEM "text_field_to_display" > LABELMAXSCALE 8001 > SYMBOLSCALE 2000 # you need it for scaleable labels > CLASS > LABEL > COLOR 240 150 5 > SIZE 7 > POSITION CC > FONT my_font # defined in your FONTSET file > TYPE TRUETYPE > ANGLE AUTO > END > END > END > > I hope this helps you > > Zoltan > > On Tue, 2 May 2006, Frederico Lucca wrote: > > > Hello all, > > > > I have a mapinfo text layer and i need to view it on the map. > > I use ogr2ogr to convert to esri shape format and put in my mapfile but > i > > can't see the layer. > > I have a multi-thread environment, then i don't want to use OGR, because > of > > mutex. > > > > LAYER > > NAME TB > > TYPE annotation > > #STYLEITEM "auto" > > #CONNECTIONTYPE ogr > > #CONNECTION "/var/www/maps/TB.TAB" > > DATA "/var/www/maps/shp/TB" > > STATUS DEFAULT > > MINSCALE 1 > > MAXSCALE 50000 > > CLASS > > COLOR 255 0 0 > > OUTLINECOLOR 171 158 137 > > END > > END > > > > Thanks in advance. > > > > Fred > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredlucca at GMAIL.COM Tue May 2 12:38:44 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 16:38:44 -0300 Subject: Problems showing mapInfo text layer without OGR {Scanned} {Scanned} In-Reply-To: Message-ID: Other information... # ogrinfo -al TB.TAB OGRFeature(TB):1734 Rotulo (String) = Style = LABEL(t:"TIRADENTES",a:0.000000,s:0.000403g ,c:#ff0000,p:1,f:"Arial") POINT (-39.302056999999998 -7.230767) I want the "TIRADENTES" string in my map, but it's a style in mapinfo file. Best regards, Fred On 5/2/06, Frederico Lucca wrote: > > Thanks for the help, but I think the problem is that the text i have in my > mapinfo file don't have a text field to display. The feature is a text. > Maybe the problem is how to translate it to a shape file. > I already try to use: > > ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB > ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB > > But I have always the same problem. > > Using OGR everything is ok... > > > #STYLEITEM "auto" > #CONNECTIONTYPE ogr > #CONNECTION "/var/www/maps/TB.TAB" > > But according to Frank, I need a thread-safe environment and OGR is not > really threadsafe. > > Thanks in advance, > > Fred > > > On 5/2/06, Siki Zoltan wrote: > > > > Hi Frederico, > > > > Tra something like this > > > > LAYER > > NAME "sample" > > DATA "path/to/your/shape" > > STATUS ON > > TYPE ANNOTATION > > LABELITEM "text_field_to_display" > > LABELMAXSCALE 8001 > > SYMBOLSCALE 2000 # you need it for scaleable labels > > CLASS > > LABEL > > COLOR 240 150 5 > > SIZE 7 > > POSITION CC > > FONT my_font # defined in your FONTSET file > > TYPE TRUETYPE > > ANGLE AUTO > > END > > END > > END > > > > I hope this helps you > > > > Zoltan > > > > On Tue, 2 May 2006, Frederico Lucca wrote: > > > > > Hello all, > > > > > > I have a mapinfo text layer and i need to view it on the map. > > > I use ogr2ogr to convert to esri shape format and put in my mapfile > > but i > > > can't see the layer. > > > I have a multi-thread environment, then i don't want to use OGR, > > because of > > > mutex. > > > > > > LAYER > > > NAME TB > > > TYPE annotation > > > #STYLEITEM "auto" > > > #CONNECTIONTYPE ogr > > > #CONNECTION "/var/www/maps/TB.TAB" > > > DATA "/var/www/maps/shp/TB" > > > STATUS DEFAULT > > > MINSCALE 1 > > > MAXSCALE 50000 > > > CLASS > > > COLOR 255 0 0 > > > OUTLINECOLOR 171 158 137 > > > END > > > END > > > > > > Thanks in advance. > > > > > > Fred > > > > > > -- > > > "Everything under the sun is in tune > > > But the sun is eclipsed by the moon" > > > > > > > > > > -- > > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From ericoneal at GMAIL.COM Tue May 2 12:53:39 2006 From: ericoneal at GMAIL.COM (Eric O'Neal) Date: Tue, 2 May 2006 15:53:39 -0400 Subject: image and jbox In-Reply-To: Message-ID: I'm new to mapserver and I am trying to get the jbox and Steve Lime's imagemap example to work together. I'd like to be able to zoom with the jbox and get mouseover tooltips. I have them both seperatly working fine, but I cant seem to make both work in the same map. Anyone have some code to show me? Thanks, Eric On 5/2/06, Eric Oneal wrote: > > DD: MESSAGE > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Tue May 2 13:07:03 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Tue, 2 May 2006 22:07:03 +0200 Subject: gdal-version.h In-Reply-To: <4457ACC8.2080906@free.fr> Message-ID: Le Mardi 2 Mai 2006 21:02, bessiere julien a ?crit?: > Hi, > i'm trying toi install mapserver-4.8.1 > but running "make" i have an error message : > > mapogr.cpp:142:28: erreur: gdal_version.h : Aucun fichier ou r?pertoire de > ce type mapogr.cpp: In function ?int msOGRLayerGetAutoStyle(mapObj*, > layerObj*, classObj*, int, long int)?: mapogr.cpp:2185: attention : > ?oPenColor$red? may be used uninitialized in this function mapogr.cpp:2185: > attention : ?oPenColor$green? may be used uninitialized in this function > mapogr.cpp:2185: attention : ?oPenColor$blue? may be used uninitialized in > this function mapogr.cpp:2185: attention : ?oPenColor$pen? may be used > uninitialized in this function make: *** [mapogr.o] Erreur 1 > > and i really can't find this gdal-version.h > > i tried : > * www.pbone.net > * [root at localhost julien]# yum provides gdal_version.h > but, in vain... > > thanks > julien Hi Julien Gdal is over there : http://www.gdal.org/ You can try with the rpm, but the source should compile well with simple "./configure + make + make install" sequence. Blaise From dmorissette at MAPGEARS.COM Tue May 2 13:24:36 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 2 May 2006 16:24:36 -0400 Subject: MapServer with MapInfo (WFS) In-Reply-To: <2b9c84c00604281401l10e0313csd3ef42e6f71417ec@mail.gmail.com> Message-ID: Francesco, Have you tried using a wrapper script to pass the map parameter via the MS_MAPFILE environment variable using one of the methods suggested in the WMS server howto at: http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url I would be interested to know if MapInfo works if the map path is passed this way. Daniel Francesco Antognini wrote: > Hello > I think I'm stuck on a similar problem and maybe I can give further > information. > I'm basically doing the same thing, testing the WFS service with Mapinfo > and while a GetFeature issued from a browser works fine, the same thing > done from Mapinfo doesn't work. (WMS works fine) > > After poking around with various tools, I start to believe this might be > a POST vs. GET issue. > A browser works with GET requests and appends parameters to the URL, > including the vital map path. This works fine. > However MapServer in GetCapabilities advertises the POST services too, > and some clients will indeed send their requests as POST of XML data. > Mapinfo does it for sure. > Now: no matter what workaround I use to bring the map into the request, > this will still appear as an URL parameter, while the rest of the > request is posted as XML. > My feeling is that mapserv.exe gets confused about this and thinks that > this is really a GET request and starts complaining in various ways > about lack of parameters. > > If that's the real issue, then I can think of some workarounds. The > first being how to reinject the map into the request without using a URL > parameter. Any idea? > > Hope I haven't been too confusing > TIA > F.Antognini > > > On 4/26/06, *L?veill?, James* > wrote: > > Hi all, > > I'm trying to test MapServer (v 4.8.3), the WFS service, with > MapInfo (v 8.0) and keep having this error message: > > *"The WFS Server returned data which was neither in the requested > format nor a recognized WFS service exception : POST body is short.* > *In response to a DescribeFeatureType request, the WFS Server > returned an invalid feature type."* > > The GetCapabilities looks fine, and the GetFeature works fine with > IE ... > Here is my (simple) MapFile. > > THANKS A LOT !!! > > > ................... > > > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > > > -- > Francesco Antognini > Computer Consultant > Switzerland > fantognini at gmail.com -- Daniel Morissette http://www.mapgears.com/ From siki at AGT.BME.HU Tue May 2 16:41:22 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 2 May 2006 22:41:22 -0100 Subject: Problems showing mapInfo text layer without OGR {Scanned} {Scanned} {Scanned} In-Reply-To: Message-ID: Shape file cannot store text features. When ogr2ogr convert mapinfo text features to shape file it changes text to point shape features. My layer definition is usefull if you have line features which gives the insertion points and directions of texts. I usually use MapInfo Universal translator to create such shapes :( Another solution could be to have point features and direction attribute beside the text to display. Unfortunatelly I cannot tell you how to reach that shape with ogr2ogr :( Zoltan On Tue, 2 May 2006, Frederico Lucca wrote: > Thanks for the help, but I think the problem is that the text i have in my > mapinfo file don't have a text field to display. The feature is a text. > Maybe the problem is how to translate it to a shape file. > I already try to use: > > ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB > ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB > > But I have always the same problem. > > Using OGR everything is ok... > > #STYLEITEM "auto" > #CONNECTIONTYPE ogr > #CONNECTION "/var/www/maps/TB.TAB" > > But according to Frank, I need a thread-safe environment and OGR is not > really threadsafe. > > Thanks in advance, > > Fred > > On 5/2/06, Siki Zoltan wrote: > > > > Hi Frederico, > > > > Tra something like this > > > > LAYER > > NAME "sample" > > DATA "path/to/your/shape" > > STATUS ON > > TYPE ANNOTATION > > LABELITEM "text_field_to_display" > > LABELMAXSCALE 8001 > > SYMBOLSCALE 2000 # you need it for scaleable labels > > CLASS > > LABEL > > COLOR 240 150 5 > > SIZE 7 > > POSITION CC > > FONT my_font # defined in your FONTSET file > > TYPE TRUETYPE > > ANGLE AUTO > > END > > END > > END > > > > I hope this helps you > > > > Zoltan > > > > On Tue, 2 May 2006, Frederico Lucca wrote: > > > > > Hello all, > > > > > > I have a mapinfo text layer and i need to view it on the map. > > > I use ogr2ogr to convert to esri shape format and put in my mapfile but > > i > > > can't see the layer. > > > I have a multi-thread environment, then i don't want to use OGR, because > > of > > > mutex. > > > > > > LAYER > > > NAME TB > > > TYPE annotation > > > #STYLEITEM "auto" > > > #CONNECTIONTYPE ogr > > > #CONNECTION "/var/www/maps/TB.TAB" > > > DATA "/var/www/maps/shp/TB" > > > STATUS DEFAULT > > > MINSCALE 1 > > > MAXSCALE 50000 > > > CLASS > > > COLOR 255 0 0 > > > OUTLINECOLOR 171 158 137 > > > END > > > END > > > > > > Thanks in advance. > > > > > > Fred > > > > > > -- > > > "Everything under the sun is in tune > > > But the sun is eclipsed by the moon" > > > > > > > > > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > From fredlucca at GMAIL.COM Tue May 2 13:56:43 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 2 May 2006 17:56:43 -0300 Subject: Problems showing mapInfo text layer without OGR {Scanned} {Scanned} {Scanned} In-Reply-To: Message-ID: Ok, thanks a lot. I found the solution using MapInfo Universal Translator as you describe and it creates 3 fields, with text, size and angle. With ogr2ogr I couldn't reach a usefully shape. Problem solved. Thanks again. Best Regards, Fred On 5/2/06, Siki Zoltan wrote: > > Shape file cannot store text features. When ogr2ogr convert mapinfo text > features to shape file it changes text to point shape features. > My layer definition is usefull if you have line features which gives the > insertion points and directions of texts. I usually use MapInfo Universal > translator to create such shapes :( > Another solution could be to have point features and direction attribute > beside the text to display. > > Unfortunatelly I cannot tell you how to reach that shape with ogr2ogr :( > > Zoltan > > On Tue, 2 May 2006, Frederico Lucca wrote: > > > Thanks for the help, but I think the problem is that the text i have in > my > > mapinfo file don't have a text field to display. The feature is a text. > > Maybe the problem is how to translate it to a shape file. > > I already try to use: > > > > ogr2ogr -f "ESRI Shapefile" -nlt POINT shp/TB.shp TB.TAB > > ogr2ogr -f "ESRI Shapefile" shp/TB.shp TB.TAB > > > > But I have always the same problem. > > > > Using OGR everything is ok... > > > > #STYLEITEM "auto" > > #CONNECTIONTYPE ogr > > #CONNECTION "/var/www/maps/TB.TAB" > > > > But according to Frank, I need a thread-safe environment and OGR is not > > really threadsafe. > > > > Thanks in advance, > > > > Fred > > > > On 5/2/06, Siki Zoltan wrote: > > > > > > Hi Frederico, > > > > > > Tra something like this > > > > > > LAYER > > > NAME "sample" > > > DATA "path/to/your/shape" > > > STATUS ON > > > TYPE ANNOTATION > > > LABELITEM "text_field_to_display" > > > LABELMAXSCALE 8001 > > > SYMBOLSCALE 2000 # you need it for scaleable labels > > > CLASS > > > LABEL > > > COLOR 240 150 5 > > > SIZE 7 > > > POSITION CC > > > FONT my_font # defined in your FONTSET file > > > TYPE TRUETYPE > > > ANGLE AUTO > > > END > > > END > > > END > > > > > > I hope this helps you > > > > > > Zoltan > > > > > > On Tue, 2 May 2006, Frederico Lucca wrote: > > > > > > > Hello all, > > > > > > > > I have a mapinfo text layer and i need to view it on the map. > > > > I use ogr2ogr to convert to esri shape format and put in my mapfile > but > > > i > > > > can't see the layer. > > > > I have a multi-thread environment, then i don't want to use OGR, > because > > > of > > > > mutex. > > > > > > > > LAYER > > > > NAME TB > > > > TYPE annotation > > > > #STYLEITEM "auto" > > > > #CONNECTIONTYPE ogr > > > > #CONNECTION "/var/www/maps/TB.TAB" > > > > DATA "/var/www/maps/shp/TB" > > > > STATUS DEFAULT > > > > MINSCALE 1 > > > > MAXSCALE 50000 > > > > CLASS > > > > COLOR 255 0 0 > > > > OUTLINECOLOR 171 158 137 > > > > END > > > > END > > > > > > > > Thanks in advance. > > > > > > > > Fred > > > > > > > > -- > > > > "Everything under the sun is in tune > > > > But the sun is eclipsed by the moon" > > > > > > > > > > > > > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkim at SCIENCES.SDSU.EDU Tue May 2 14:07:35 2006 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Tue, 2 May 2006 14:07:35 -0700 Subject: How to get Shapefile Attributes in PHP? Message-ID: I can draw a points layer just fine using PHP Mapscript. I'd like to access the attributes from PHP. I thought this would be easy but I don't find it documented anywhere and can't find any examples. Can someone clue me in? Thanks. John p.s. Is it just me or is the list archive website pretty ... weak? It's very slow and there's no way to see all the search results if there are more than 50. -------------- next part -------------- An HTML attachment was scrubbed... URL: From awilliams at RAPIDMAP.COM.AU Tue May 2 16:08:15 2006 From: awilliams at RAPIDMAP.COM.AU (Andrew Williams) Date: Wed, 3 May 2006 09:08:15 +1000 Subject: Problems showing mapInfo text layer without OGR Message-ID: Fred, I'm no master when it come to mapserver, but don't you need to define a font in the calss declaration? eg FONT Bitmap SIZE 2 We've recently ported our Mapserver environment from Linux (worked perfectly) to a Windows environment. We had and continue to have problems with fonts. We don't seem to be able to use true type fonts (I'm sure we'll sort it out). Hence my suggestion for Bitmap fonts. regards Andrew -----Original Message----- From: Frederico Lucca [mailto:fredlucca at GMAIL.COM] Sent: Wed 5/3/2006 12:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Problems showing mapInfo text layer without OGR Hello all, I have a mapinfo text layer and i need to view it on the map. I use ogr2ogr to convert to esri shape format and put in my mapfile but i can't see the layer. I have a multi-thread environment, then i don't want to use OGR, because of mutex. LAYER NAME TB TYPE annotation #STYLEITEM "auto" #CONNECTIONTYPE ogr #CONNECTION "/var/www/maps/TB.TAB" DATA "/var/www/maps/shp/TB" STATUS DEFAULT MINSCALE 1 MAXSCALE 50000 CLASS COLOR 255 0 0 OUTLINECOLOR 171 158 137 END END Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From bpicinbono at WORLDONLINE.FR Tue May 2 16:48:12 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Wed, 3 May 2006 01:48:12 +0200 Subject: gdal-version.h In-Reply-To: <4457C2C7.3070605@free.fr> Message-ID: Le Mardi 2 Mai 2006 22:36, bessiere julien a ?crit?: > Blaise a ?crit : > > Le Mardi 2 Mai 2006 21:02, bessiere julien a ?crit : > >> Hi, > >> i'm trying toi install mapserver-4.8.1 > >> but running "make" i have an error message : > >> > >> mapogr.cpp:142:28: erreur: gdal_version.h : Aucun fichier ou r?pertoire > >> de ce type mapogr.cpp: In function ?int msOGRLayerGetAutoStyle(mapObj*, > >> layerObj*, classObj*, int, long int)?: mapogr.cpp:2185: attention : > >> ?oPenColor$red? may be used uninitialized in this function > >> mapogr.cpp:2185: attention : ?oPenColor$green? may be used uninitialized > >> in this function mapogr.cpp:2185: attention : ?oPenColor$blue? may be > >> used uninitialized in this function mapogr.cpp:2185: attention : > >> ?oPenColor$pen? may be used uninitialized in this function make: *** > >> [mapogr.o] Erreur 1 > >> > >> and i really can't find this gdal-version.h > >> > >> i tried : > >> * www.pbone.net > >> * [root at localhost julien]# yum provides gdal_version.h > >> but, in vain... > >> > >> thanks > >> julien > > > > Hi Julien > > Gdal is over there : http://www.gdal.org/ > > You can try with the rpm, but the source should compile well with simple > > "./configure + make + make install" sequence. > > Blaise > > hi, > Sorry, maybe i was not very clear :/ > Actually, gdal is already installed. > I have the error message while running the mapserver make... > > On the gdal website, i found the content of gdal_version.h file. > I saw too, that the gdal.h has something which looks like the content of > gdal_version.h > /* -------------------------------------------------------------------- */ > /* GDAL Version Information. */ > /* -------------------------------------------------------------------- */ > #ifndef GDAL_VERSION_NUM > # define GDAL_VERSION_NUM 1230 > #endif > #ifndef GDAL_RELEASE_DATE > # define GDAL_RELEASE_DATE 20040825 > #endif > #ifndef GDAL_RELEASE_NAME > # define GDAL_RELEASE_NAME "1.2.3.0" > #endif > > Do you think i can try to make my own gdal_version.h by copying those line > ? > > thx > Julien > it 's : Julien, Please, reply to the list. How did you get gdal installed ? I just build it (1.3.2) from source, it creates some files in /usr/local/lib/ like libgdal.so , and others in /usr/local/include like gdal.h and gdal_version.h . Then I build mapserver (4.8.3) with the only flag : "--with-gdal" and the "make" completed without errors. If you didn't installed gdal from sources, you should find the above files somewhere in /usr/lib/ and /usr/include/ (perhaps /usr/lib/gdal/ and /usr/include/gdal/ ) ? Can you check where you have these files ? If they are somewhere in /usr/lib/ and /usr/include/, you could try to configure mapserver with this flag : "--with-gdal=/usr/lib" or this one : "--with-gdal=/usr". Blaise From warmerdam at POBOX.COM Tue May 2 17:39:22 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 2 May 2006 20:39:22 -0400 Subject: gdal-version.h In-Reply-To: <4457ACC8.2080906@free.fr> Message-ID: bessiere julien wrote: > Hi, > i'm trying toi install mapserver-4.8.1 > but running "make" i have an error message : > > mapogr.cpp:142:28: erreur: gdal_version.h : Aucun fichier ou r?pertoire > de ce type > mapogr.cpp: In function ?int msOGRLayerGetAutoStyle(mapObj*, layerObj*, > classObj*, int, long int)?: > mapogr.cpp:2185: attention : ?oPenColor$red? may be used uninitialized > in this function > mapogr.cpp:2185: attention : ?oPenColor$green? may be used uninitialized > in this function > mapogr.cpp:2185: attention : ?oPenColor$blue? may be used uninitialized > in this function > mapogr.cpp:2185: attention : ?oPenColor$pen? may be used uninitialized > in this function > make: *** [mapogr.o] Erreur 1 > > and i really can't find this gdal-version.h Julien, Please upgrade from GDAL 1.2.3 to GDAL 1.3.2 (or 1.3.1 possibly). I Appologise for making mapogr.cpp depend on gdal_version.h which is relatively recent. If you can't upgrade to the latest GDAL then making a gdal_version.h with the version info from gdal.h would be fine (or just include gdal.h in place of gdal_version.h in mapogr.cpp. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From David.Fawcett at STATE.MN.US Tue May 2 17:55:06 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 2 May 2006 19:55:06 -0500 Subject: Problems showing mapInfo text layer without OGR Message-ID: Andrew, Take a look at the case of the font names in fonts.list and the font file names. I ran into an issue where the file names in fonts.list were lowercase and the actual file names were mixed case. David. -----Original Message----- From: UMN MapServer Users List on behalf of Andrew Williams Sent: Tue 5/2/2006 6:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problems showing mapInfo text layer without OGR Fred, I'm no master when it come to mapserver, but don't you need to define a font in the calss declaration? eg FONT Bitmap SIZE 2 We've recently ported our Mapserver environment from Linux (worked perfectly) to a Windows environment. We had and continue to have problems with fonts. We don't seem to be able to use true type fonts (I'm sure we'll sort it out). Hence my suggestion for Bitmap fonts. regards Andrew -----Original Message----- From: Frederico Lucca [mailto:fredlucca at GMAIL.COM] Sent: Wed 5/3/2006 12:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Problems showing mapInfo text layer without OGR Hello all, I have a mapinfo text layer and i need to view it on the map. I use ogr2ogr to convert to esri shape format and put in my mapfile but i can't see the layer. I have a multi-thread environment, then i don't want to use OGR, because of mutex. LAYER NAME TB TYPE annotation #STYLEITEM "auto" #CONNECTIONTYPE ogr #CONNECTION "/var/www/maps/TB.TAB" DATA "/var/www/maps/shp/TB" STATUS DEFAULT MINSCALE 1 MAXSCALE 50000 CLASS COLOR 255 0 0 OUTLINECOLOR 171 158 137 END END Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From abe.gillespie at GMAIL.COM Tue May 2 20:00:20 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 2 May 2006 23:00:20 -0400 Subject: Ruby MapScript (again) Message-ID: Sorry about sending this again but no one responded earlier. I'm contemplating starting a new framework a la Chameleon but based on Ruby. I was hoping to confirm its feasibility before I got started. Thanks. -Abe [snip] Just curious if Ruby MapScript is susceptible to the threading issues like C# MapScript is when used in a web environment or if it's naturally protected from problems like PHP. [/snip] From porath at WEB.DE Wed May 3 01:16:58 2006 From: porath at WEB.DE (H. Porath) Date: Wed, 3 May 2006 10:16:58 +0200 Subject: Compiling Mapserver on Solaris Message-ID: Hello community, we are trying to compile Mapserver 4.8.3 on Solaris 8/Sparc. We used the following configure-options: ./configure \ --with-gd=/usr/local/gd-2.0.33 \ --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config The make aborts with the following symbol referencing error: ... ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapsvg.o mapregex.o mappluginlayer.o epplib.o ranlib libmap.a gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.o -L. -lmap -L/usr/local/gd-2.0.33/lib -lgd -ljpeg -lpng -lz -ljpeg -lpng -lz -ljpeg -L/usr/local/gdal-1.3.1/lib -lgdal -lc -lz -lm -o shp2img ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding: (file /usr/local/lib/libgcc_s.so.1 value=LOCL); Undefined first referenced symbol in file endl(ostream &) ./libmap.a(mapogr.o) ifstream::ios virtual table /usr/local/gdal-1.3.1/lib/libgdal.so ostream::operator<<(char const *) ./libmap.a(mapogr.o) __length_error(char const *) ./libmap.a(mapogr.o) fstreambase::fstreambase(int, char const *, int, int)/usr/local/gdal-1.3.1/lib/libgdal.so flush(ostream &) /usr/local/gdal-1.3.1/lib/libgdal.so cerr ./libmap.a(mapogr.o) __out_of_range(char const *) ./libmap.a(mapogr.o) ifstream::~ifstream(void) /usr/local/gdal-1.3.1/lib/libgdal.so istream::getline(char *, int, char) /usr/local/gdal-1.3.1/lib/libgdal.so istream::ios virtual table /usr/local/gdal-1.3.1/lib/libgdal.so fstreambase::close(void) /usr/local/gdal-1.3.1/lib/libgdal.so ios virtual table /usr/local/gdal-1.3.1/lib/libgdal.so ld: fatal: Symbol referencing errors. No output written to shp2img collect2: ld returned 1 exit status make: *** [shp2img] Error 1 GDAL was compiled: --with-mrsid --with-jp2mrsid=no --without-pcraster --without-static The GDAL-apps work fine, e.g. gdaltindex indexes mrsid files correctly. We are using gcc 2.95.3 If we configure mapserver without gdal, the make works, but we need the gdal-functions. It would be nice if anyone had an idea. We are working on this for weeks now. Thanks in advance. Holger _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From listuser at HERZSYS.DE Wed May 3 03:49:35 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Wed, 3 May 2006 12:49:35 +0200 Subject: How to get Shapefile Attributes in PHP? In-Reply-To: <04e901c66e2c$6f58ba20$efebbf82@jkim> Message-ID: John Kim wrote: >I can draw a points layer just fine using PHP Mapscript. I'd like to access the attributes from PHP. I thought this would be easy but I don't find it documented anywhere and can't find any examples. Can someone clue me in? > >Thanks. > >John > > > >p.s. Is it just me or is the list archive website pretty ... weak? It's very slow and there's no way to see all the search results if there are more than 50. > > Hi, if I remember correctly you have to: 1. get a layer 2. open the layer 3. get a feature from the layer with shape- and tileindex 4. get a value from the feature (loop through with the numvalues) 5. close the layer This should work for queries where you get the used shape- and tileindex from the resultobject. To access data from for example a shapefile without query you could use the php dbase functions if you have them compiled. Regards Norbert From tmelhuish at WEBINSIGHTSINC.COM Wed May 3 03:55:37 2006 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Wed, 3 May 2006 06:55:37 -0400 Subject: PDFLIB - using default PostScript fonts In-Reply-To: Message-ID: I can not get the default postscript fonts in pdflib to display in mapserver (i.e. Times-Roman). I read the ?PDF Output? document but don?t see how to make the link to the default PostScript fonts that the document describes. I assume Label->Type->Times-Roman but this doesn?t work. I am able to get TrueType fonts to work by calling them through the font.list which seams to be able to only call TrueType fonts. The TrueType fonts create a large pdf file and I was hoping to use postscript fonts to make the file smaller. I configured mapserver 4.8.3 as: ./configure --with-postgis=/usr/local/pgsql/bin/pg_config --with-proj --with -wmsclient --with-jpeg=/usr/local --with-gd=/usr/local --with-gdal=/usr/loca l/bin/gdal-config --with-php=/usr/local/include/php --with-pdf=/usr/local -- with-libwww=/usr/local --without-tiff --enable-debug --enable-force-freetype 1 I configure PDFlib-Lite-6.0.3 ./configure --prefix=/usr/local My mapfile layer is as follows: OUTPUTFORMAT NAME pdf DRIVER "pdf" MIMETYPE "application/pdf" IMAGEMODE RGB EXTENSION "pdf" END IMAGETYPE pdf LAYER NAME "parcel_anno" STATUS ON #Get data from Shapefile DATA "parcels" TYPE ANNOTATION CLASSITEM "tag" LABELITEM "tag" LABELMAXSCALE 1500 TEMPLATE "ttt.html" CLASS LABEL FONT Times-Roman #TYPE BITMAP (I tried this but had no effect) SIZE LARGE POSITION CC MINDISTANCE 150 MINFEATURESIZE 25 COLOR 0 102 0 END END END Thanks -- Tom From almudenarueda at INICIA.ES Wed May 3 05:07:46 2006 From: almudenarueda at INICIA.ES (almudena rueda) Date: Wed, 3 May 2006 14:07:46 +0200 Subject: Problem displaying svg polylines Message-ID: Hello all I've a problem with svg format, I use it to print the map. I generate the svg map and then I transform ir in pdf format so the user can download it and print it. When I print the lines it seams to be ok, but when a line is cut due to the zoom, it is displayed with a rect line between the two last points. How can I do to avoid this wrong functionality? I'm using mapserver v4.6.0 php script under linux. To see the error, go to www.munisig.com, here, go to Penagos's logo (on the bottom right side) After the display of the main map, select "Curvas de nivel" on the left side and select "Llanos" in "Ir a" on the center top side. You will see the map of contour lines. Now if you print it, you'll see the error on the bottom right side of the map. I attach the svg map generated by mapserver. Thanks in advance Almudena -------------- next part -------------- A non-text attachment was scrubbed... Name: map.svg Type: image/svg+xml Size: 47222 bytes Desc: not available URL: From warmerdam at POBOX.COM Wed May 3 05:59:53 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 3 May 2006 08:59:53 -0400 Subject: Compiling Mapserver on Solaris In-Reply-To: <525173011@web.de> Message-ID: H. Porath wrote: > Hello community, > > we are trying to compile Mapserver 4.8.3 on Solaris 8/Sparc. We used the following configure-options: > ./configure \ > --with-gd=/usr/local/gd-2.0.33 \ > --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config > > The make aborts with the following symbol referencing error: > ... > > ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapsvg.o mapregex.o mappluginlayer.o epplib.o > ranlib libmap.a > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.c -o shp2img.o > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.o -L. -lmap -L/usr/local/gd-2.0.33/lib -lgd -ljpeg -lpng -lz -ljpeg -lpng -lz -ljpeg -L/usr/local/gdal-1.3.1/lib -lgdal -lc -lz -lm -o shp2img > ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding: > (file /usr/local/lib/libgcc_s.so.1 value=LOCL); > Undefined first referenced > symbol in file > endl(ostream &) ./libmap.a(mapogr.o) ... > It would be nice if anyone had an idea. We are working on this for weeks now. Thanks in advance. Holger, The problem is that you are using gcc to link instead of g++, so no C++ support libraries are getting linked in. On linux I believe linking in the shared GDAL library would bring the c++ support library with it but that appears not to be happening in your Solaris build. Perhaps static libs ended up being used for some reason? Try modifying "LD = gcc" to "LD = g++" in the MapServer Makefile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From fantognini at GMAIL.COM Wed May 3 07:35:49 2006 From: fantognini at GMAIL.COM (Francesco Antognini) Date: Wed, 3 May 2006 16:35:49 +0200 Subject: MapServer with MapInfo (WFS) In-Reply-To: <4457C004.8030607@mapgears.com> Message-ID: Unfortunately I happened to read that page thoroughly only *after* posting to the list.... Anyway. Yes it works but with a list of caveat. First of all none of the solutions on that page were ideal for me since IIS is currently a requirement and I would need to serve more than just 1 wfs map file. The snippet of asp code is useless as it does not support POST requests or setting environment variables. So I wrote my own piece of php code which sets MS_MAPFILE and pipes the input body to mapserv.exe. That does the trick and makes it possible to serve several map files just by changing the URI. The second problem is more tricky. I really haven't done thorough testing on different platforms and versions, so it might be a specific issue with the windows version. Apparently mapserv.exe has a problem reading XML POST requests when lines are terminated by CR/LF. Depending on the setup/configuration, either it replies the messages "body is short" or just sits there waiting until it time outs. Unfortunately MapInfo seems to do just that, as it adds two CR/LF, one after the XML declaration, the other as the last characters. So I updated the same php script to strip CR from the POST body and reset the content-length header (actually a CGI environment variable). After that last change Mapinfo was able to successfully download the wfs layers into a local table. Hope this turns out to be helpful. Also, maybe someone can give a feedback on the CR/LF issue? Francesco On 5/2/06, Daniel Morissette wrote: > > Francesco, > > Have you tried using a wrapper script to pass the map parameter via the > MS_MAPFILE environment variable using one of the methods suggested in > the WMS server howto at: > > http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url > > I would be interested to know if MapInfo works if the map path is passed > this way. > > Daniel > > > Francesco Antognini wrote: > > Hello > > I think I'm stuck on a similar problem and maybe I can give further > > information. > > I'm basically doing the same thing, testing the WFS service with Mapinfo > > and while a GetFeature issued from a browser works fine, the same thing > > done from Mapinfo doesn't work. (WMS works fine) > > > > After poking around with various tools, I start to believe this might be > > a POST vs. GET issue. > > A browser works with GET requests and appends parameters to the URL, > > including the vital map path. This works fine. > > However MapServer in GetCapabilities advertises the POST services too, > > and some clients will indeed send their requests as POST of XML data. > > Mapinfo does it for sure. > > Now: no matter what workaround I use to bring the map into the request, > > this will still appear as an URL parameter, while the rest of the > > request is posted as XML. > > My feeling is that mapserv.exe gets confused about this and thinks that > > this is really a GET request and starts complaining in various ways > > about lack of parameters. > > > > If that's the real issue, then I can think of some workarounds. The > > first being how to reinject the map into the request without using a URL > > parameter. Any idea? > > > > Hope I haven't been too confusing > > TIA > > F.Antognini > > > > > > On 4/26/06, *L?veill?, James* < James.Leveille at mtq.gouv.qc.ca > > > wrote: > > > > Hi all, > > > > I'm trying to test MapServer (v 4.8.3), the WFS service, with > > MapInfo (v 8.0) and keep having this error message: > > > > *"The WFS Server returned data which was neither in the requested > > format nor a recognized WFS service exception : POST body is short.* > > *In response to a DescribeFeatureType request, the WFS Server > > returned an invalid feature type."* > > > > The GetCapabilities looks fine, and the GetFeature works fine with > > IE ... > > Here is my (simple) MapFile. > > > > THANKS A LOT !!! > > > > > > ................... > > > > > > > > __________________________________________ > > *James L?veill?* > > > > *Int?lec G?omatique* > > 420, boul. Charest Est > > Bureau 400 > > Qu?bec (QC), Canada > > G1K 8M4 > > > > Int?lec G?omatique: 418.687.5000 > > MTQ: 418.380.2005 (#227) > > > > > > -- > > Francesco Antognini > > Computer Consultant > > Switzerland > > fantognini at gmail.com > > > -- > Daniel Morissette > http://www.mapgears.com/ > -- Francesco Antognini Computer Consultant Switzerland fantognini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed May 3 07:50:29 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 3 May 2006 10:50:29 -0400 Subject: MapServer with MapInfo (WFS) In-Reply-To: <2b9c84c00605030735w511a876fwd87d0b8ceb81cec6@mail.gmail.com> Message-ID: Francesco Antognini wrote: > The second problem is more tricky. I really haven't done thorough > testing on different platforms and versions, so it might be a specific > issue with the windows version. > Apparently mapserv.exe has a problem reading XML POST requests when > lines are terminated by CR/LF. Depending on the setup/configuration, > either it replies the messages "body is short" or just sits there > waiting until it time outs. > Unfortunately MapInfo seems to do just that, as it adds two CR/LF, one > after the XML declaration, the other as the last characters. So I > updated the same php script to strip CR from the POST body and reset the > content-length header (actually a CGI environment variable). > > After that last change Mapinfo was able to successfully download the wfs > layers into a local table. > Hope this turns out to be helpful. > > Also, maybe someone can give a feedback on the CR/LF issue? Francesco, If you can provide details making it easy to reproduce this problem, then I imagine we can fix it in MapServer. An easy to reproduce problem might be a text file which when piped into mapserver with appropriate options or environment variables will trigger this problem. I think a literal capture of the posted request from mapinfo (make sure the CR's are preserved by zipping it!) when piped into mapserv.exe with the environment variable REQUEST set to POST *should* trigger the same behavior. If you can accomplish demonstrating the bug this way then please submit it in bugzilla and someone should be able to fix it pretty quickly. You can assign it to me if you wish. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ericoneal at GMAIL.COM Wed May 3 07:58:48 2006 From: ericoneal at GMAIL.COM (Eric O'Neal) Date: Wed, 3 May 2006 10:58:48 -0400 Subject: No subject Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at WEB.DE Wed May 3 08:55:21 2006 From: porath at WEB.DE (H. Porath) Date: Wed, 3 May 2006 17:55:21 +0200 Subject: Compiling Mapserver on Solaris Message-ID: Hi Frank, thanks for the hint, it worked. The next step for us is to include ogr which we tried with the following configure: ./configure \ --with-gd=/usr/local/gd-2.0.33 \ --with-ogr=/usr/local/gdal-1.3.1/bin/gdal-config \ --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config Now the make aborts with a new symbol referencing error: ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapsvg.o mapregex.o mappluginlayer.o epplib.o ranlib libmap.a gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.o -L. -lmap -L/usr/local/gd-2.0.33/lib -lgd -ljpeg -lpng -lz -ljpeg -lpng -lz -ljpeg -L/usr/local/gdal-1.3.1/lib -lgdal -lc -lz -lm -o shp2img ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding: (file /usr/local/lib/libgcc_s.so.1 value=LOCL); Undefined first referenced symbol in file dlsym ./libmap.a(mapcpl.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) dlerror ./libmap.a(mapcpl.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) dlopen ./libmap.a(mapcpl.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1) ld: fatal: Symbol referencing errors. No output written to shp2img collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Do you have an idea for this issue? Thanks. Holger -----Urspr?ngliche Nachricht----- Von: Frank Warmerdam Gesendet: 03.05.06 15:11:06 An: porath at WEB.DE CC: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Compiling Mapserver on Solaris H. Porath wrote: > Hello community, > > we are trying to compile Mapserver 4.8.3 on Solaris 8/Sparc. We used the following configure-options: > ./configure \ > --with-gd=/usr/local/gd-2.0.33 \ > --with-gdal=/usr/local/gdal-1.3.1/bin/gdal-config > > The make aborts with the following symbol referencing error: > ... > > ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapsvg.o mapregex.o mappluginlayer.o epplib.o > ranlib libmap.a > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.c -o shp2img.o > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_GDAL -DUSE_ICONV -DUSE_ZLIB -I/usr/local/gd-2.0.33/include -I/usr/local/gdal-1.3.1/include shp2img.o -L. -lmap -L/usr/local/gd-2.0.33/lib -lgd -ljpeg -lpng -lz -ljpeg -lpng -lz -ljpeg -L/usr/local/gdal-1.3.1/lib -lgdal -lc -lz -lm -o shp2img > ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding: > (file /usr/local/lib/libgcc_s.so.1 value=LOCL); > Undefined first referenced > symbol in file > endl(ostream &) ./libmap.a(mapogr.o) ... > It would be nice if anyone had an idea. We are working on this for weeks now. Thanks in advance. Holger, The problem is that you are using gcc to link instead of g++, so no C++ support libraries are getting linked in. On linux I believe linking in the shared GDAL library would bring the c++ support library with it but that appears not to be happening in your Solaris build. Perhaps static libs ended up being used for some reason? Try modifying "LD = gcc" to "LD = g++" in the MapServer Makefile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From mark at EDC.URI.EDU Wed May 3 09:05:46 2006 From: mark at EDC.URI.EDU (Mark Christiano) Date: Wed, 3 May 2006 12:05:46 -0400 Subject: WFS Problems Message-ID: Hi Everyone, My name is Mark Christiano, I am a research associate at the University of Rhode Island and we are working toward developing a WFS that conforms to the OGC standards. I do a lot with GIS but not so much with web design. Before I jump into getting to the OGC standards, I am having problems serving out the WFS data. I have been following the online document "WFS Servers with MapServer" And my map.doc look very similar to the on-line example. Except that it does not work. I think the problem maybe with the wfs_onlineresource. (I pretty much guess on that one) For example, if I were to use Gaia to view this WFS, I am not sure what to web address to type in to view the data. All of the tests to see if the MapServer is working have come back positive. The software seems to be configured correctly. I have pasted my Map File below. I was hoping someone could give me some direction. Thanks a lot! Mark MAP NAME "WFS" STATUS ON EXTENT 200000 22000 450000 370000 SIZE 400 600 SHAPEPATH "../../../../../../../..//maplab-2.2.1/data" SYMBOLSET "../../../../../../../..//maplab-2.2.1/tutorial/etc/symbols.sym" FONTSET "../../../../../../../..//maplab-2.2.1/tutorial/etc/fonts.txt" IMAGECOLOR 255 255 255 UNITS FEET WEB IMAGEPATH "/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:32130" "ows_schemas_location" "" END END PROJECTION "init=epsg:32130" END LAYER NAME "State" STATUS ON DATA "../..//maplab-2.2.1/data/state" TYPE POLYGON CONNECTIONTYPE LOCAL UNITS FEET SIZEUNITS FEET POSTLABELCACHE TRUE METADATA "wfs_title" "State" "gml_include_items" "all" END PROJECTION "init=epsg:32130" END DUMP TRUE CLASS NAME "Rhode Island" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END END Mark Christiano Research Associate Environmental Data Center University of Rhode Island 401-874-5054 Mark at edc.uri.edu From Tom.Kralidis at EC.GC.CA Wed May 3 09:28:36 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 3 May 2006 12:28:36 -0400 Subject: WFS Problems Message-ID: Hi Mark, What happens when you try: http://127.0.0.1/cgi-bin/mapserv.exe?map=$MAPFILE&version=1.0.0&service= WFS&request=GetCapabilities (where $MAPFILE is the file path to your .map file) Also, you might want to take a look at the MapServer OGC Web Services Workshop (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). Hope this helps. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Mark Christiano > Sent: Wednesday, May 03, 2006 12:06 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] WFS Problems > > > Hi Everyone, > > My name is Mark Christiano, I am a research associate at the > University of Rhode Island and we are working toward > developing a WFS that conforms to the OGC standards. I do a > lot with GIS but not so much with web design. > > Before I jump into getting to the OGC standards, I am having > problems serving out the WFS data. > > I have been following the online document "WFS Servers with > MapServer" And my map.doc look very similar to the on-line > example. Except that it does not work. > > I think the problem maybe with the wfs_onlineresource. (I > pretty much guess on that one) For example, if I were to use > Gaia to view this WFS, I am not sure what to web address to > type in to view the data. > > All of the tests to see if the MapServer is working have come > back positive. The software seems to be configured correctly. > > I have pasted my Map File below. I was hoping someone could > give me some direction. > > Thanks a lot! > > Mark > > MAP > NAME "WFS" > STATUS ON > EXTENT 200000 22000 450000 370000 > SIZE 400 600 > SHAPEPATH "../../../../../../../..//maplab-2.2.1/data" > SYMBOLSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/symbols.sym" > FONTSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/fonts.txt" > IMAGECOLOR 255 255 255 > UNITS FEET > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:32130" > "ows_schemas_location" "" > END > END > PROJECTION > "init=epsg:32130" > END > LAYER > NAME "State" > STATUS ON > DATA "../..//maplab-2.2.1/data/state" > TYPE POLYGON > CONNECTIONTYPE LOCAL > UNITS FEET > SIZEUNITS FEET > POSTLABELCACHE TRUE > METADATA > "wfs_title" "State" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:32130" > END > DUMP TRUE > CLASS > NAME "Rhode Island" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > END > > Mark Christiano > > Research Associate > Environmental Data Center > University of Rhode Island > 401-874-5054 > Mark at edc.uri.edu > From mark at EDC.URI.EDU Wed May 3 10:35:09 2006 From: mark at EDC.URI.EDU (Mark Christiano) Date: Wed, 3 May 2006 13:35:09 -0400 Subject: WFS Problems Message-ID: Hi Tom, I was hoping you could clarify for me the path name? The path on my computer is "C:/ms4w/apps/maplab-2.2.1/projects/gmf_projects/wfs_1.map" So all together it would be http://127.0.0.1/cgi-bin/mapserv.exe?map=C:/ms4w/apps/maplab-2.2.1/proje cts/gmf_projects/wfs_1.map&version=1.0.0&service=WFS&request=GetCapabili ties ? I tried this and got this as this error getSymbol(): Symbol definition error. Parsing error near (LOCAL):(line 29) Not sure where I am going wrong. Thanks for the help. Mark -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, May 03, 2006 12:29 PM To: Mark Christiano; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] WFS Problems Hi Mark, What happens when you try: http://127.0.0.1/cgi-bin/mapserv.exe?map=$MAPFILE&version=1.0.0&service= WFS&request=GetCapabilities (where $MAPFILE is the file path to your .map file) Also, you might want to take a look at the MapServer OGC Web Services Workshop (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). Hope this helps. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Mark Christiano > Sent: Wednesday, May 03, 2006 12:06 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] WFS Problems > > > Hi Everyone, > > My name is Mark Christiano, I am a research associate at the > University of Rhode Island and we are working toward > developing a WFS that conforms to the OGC standards. I do a > lot with GIS but not so much with web design. > > Before I jump into getting to the OGC standards, I am having > problems serving out the WFS data. > > I have been following the online document "WFS Servers with > MapServer" And my map.doc look very similar to the on-line > example. Except that it does not work. > > I think the problem maybe with the wfs_onlineresource. (I > pretty much guess on that one) For example, if I were to use > Gaia to view this WFS, I am not sure what to web address to > type in to view the data. > > All of the tests to see if the MapServer is working have come > back positive. The software seems to be configured correctly. > > I have pasted my Map File below. I was hoping someone could > give me some direction. > > Thanks a lot! > > Mark > > MAP > NAME "WFS" > STATUS ON > EXTENT 200000 22000 450000 370000 > SIZE 400 600 > SHAPEPATH "../../../../../../../..//maplab-2.2.1/data" > SYMBOLSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/symbols.sym" > FONTSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/fonts.txt" > IMAGECOLOR 255 255 255 > UNITS FEET > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:32130" > "ows_schemas_location" "" > END > END > PROJECTION > "init=epsg:32130" > END > LAYER > NAME "State" > STATUS ON > DATA "../..//maplab-2.2.1/data/state" > TYPE POLYGON > CONNECTIONTYPE LOCAL > UNITS FEET > SIZEUNITS FEET > POSTLABELCACHE TRUE > METADATA > "wfs_title" "State" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:32130" > END > DUMP TRUE > CLASS > NAME "Rhode Island" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > END > > Mark Christiano > > Research Associate > Environmental Data Center > University of Rhode Island > 401-874-5054 > Mark at edc.uri.edu > From fantognini at GMAIL.COM Wed May 3 10:49:34 2006 From: fantognini at GMAIL.COM (Francesco Antognini) Date: Wed, 3 May 2006 19:49:34 +0200 Subject: MapServer with MapInfo (WFS) In-Reply-To: <4458C335.7010609@pobox.com> Message-ID: On 5/3/06, Frank Warmerdam wrote: > > Francesco, > > If you can provide details making it easy to reproduce this problem, then > I imagine we can fix it in MapServer. An easy to reproduce problem might > be a text file which when piped into mapserver with appropriate options > or environment variables will trigger this problem. > > I think a literal capture of the posted request from mapinfo (make sure > the CR's are preserved by zipping it!) when piped into mapserv.exe with > the environment variable REQUEST set to POST *should* trigger the same > behavior. If you can accomplish demonstrating the bug this way then please > submit it in bugzilla and someone should be able to fix it pretty quickly. > You can assign it to me if you wish. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org > > I have quite a few of log files with samples from MapInfo, both original and CR stripped. As you can guess, it took a while to understand what was actually going on and needed test cases to ferret out the issue. I'm pretty much sure of what happens on windows, but I haven't had the chance yet to test it on other platforms, namely Linux. That's why I was hesitating before going to bugzilla. Francesco -- Francesco Antognini Computer Consultant Switzerland fantognini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpederse at NATURE.BERKELEY.EDU Wed May 3 11:11:16 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Wed, 3 May 2006 11:11:16 -0700 Subject: mapspork.js Message-ID: hi, i just finished up a project and out of it came what i hope may be a useful lightweight javascript library for others. i called it MapSpork, cause it's so simple it doesn't deserve a serious name it came from an idea here: http://maps.dnr.state.mn.us/eco/rsg/minnesota/test.html posted by (i think) David Bitner? MapSpork is an attempt to do that generically, with html classNames and id's to indicate what the map or button or any html element should do when clicked/selected/ changed. the library then uses javascript regexp's and such to manipulate the url to zoom/query/pan as appropriate. anyway, my crappy testpage and some explanatory text is here:http:// 128.32.253.220/mapspork/example.html and a prettier page gutted from the project here: http:// 128.32.253.220/naturetest/ and the javascript as mapspork.js in either of those directories. works on Firefox, opera, safari and IE 6. there are 3 classes: MapSpork. an HTML element with class=MapSpork and id='zoomin' when selected will indicate that the map should zoomin when clicked (just like the CGI). likewise for zoomout, and query. these are best as radio elements. NameSpork. an element with class=NameSpork and name='layers' when changed (onchange) or selected (onselect) will cause the map to be redrawn with whatever values come from layers (just like the CGI). but since the page is not redrawn, the state is maintained auto. NameSpork can be use on anything sent into the url. ClickSpork. ... class=ClickSpork and id='panne' will call the function MapSpork.panne when clicked. these are best on buttons. there is not too much functionality as is, because this is about the extent of my mapserver CGI knowledge, but it's easliy extended by creating a function MapSpork.whatever = function(){ alert ('whatever') } and then creating an html element with id='whatever' and the appropriate Spork class: -brent -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgis.lists at GMAIL.COM Wed May 3 11:24:41 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 3 May 2006 13:24:41 -0500 Subject: mapspork.js In-Reply-To: <4865D9C7-8A69-4129-8188-91701143AF69@nature.berkeley.edu> Message-ID: FYI... Post was made by Steve Lime > it came from an idea here: > http://maps.dnr.state.mn.us/eco/rsg/minnesota/test.html > posted by (i think) David Bitner? From dpinte at ITAE.BE Wed May 3 13:24:04 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 3 May 2006 22:24:04 +0200 Subject: getFeature problem In-Reply-To: Message-ID: Le samedi 22 avril 2006 ? 22:58 -0500, Myunghwa Hwang a ?crit : > I'm trying to retrieve attributed values for selected polygon. > By using python mapscript and postgis layer, I tried to get a feature by querybypoint. > In the following code, a feature by getFeature has no bounding box. > The minimum x, y and the maximum x, y are all -1. > So any attribute was not retrieved. > Anybody has any idea of this problem? > > > def getNearFeat(qpoint, map): > # get query layer > qlayer = map.getLayerByName('blockgroup') > qlayer.template = 'query_result.html' > qlayer.tolerance = 1000 # Unit is meter > # query the query layer > qlayer.queryByPoint(map, qpoint, ms.MS_MULTIPLE, 1000) > numResults = qlayer.getNumResults() > results = qlayer.getResults() > # retrieve shape index for selected features > if (numResults > 0): > featAtts = [] > qlayer.open() > for i in range(numResults): > att = [] > query_result = results.getResult(i) > afeat = qlayer.getFeature(query_result.shapeindex, query_result.tileindex) > if afeat: > for j in range(qlayer.numitems): > att.append(afeat.getValue(j)) > featAtts.append(att) > qlayer.close() > return featAtts FYI, i've tested your code. It's working fine with MapServer 4.4 but it does not with MapServer 4.8 ( 4.8.3-2 debian version). With the 4.8.2 version, the method getValue always return None, the query_result.shapeindex always return 0. The number of results only seems to work fine. It seems to be a bug but maybe i'm not aware of some new things in the api. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From jkim at SCIENCES.SDSU.EDU Wed May 3 13:23:19 2006 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Wed, 3 May 2006 13:23:19 -0700 Subject: How to get Shapefile Attributes in PHP? Message-ID: Norbert wrote: > if I remember correctly you have to: > 1. get a layer > 2. open the layer > 3. get a feature from the layer with shape- and tileindex > 4. get a value from the feature (loop through with the numvalues) > 5. close the layer Thanks Norbert. By fishing around the documentation and email archives (for way too long!) and by trial-and-error I figure out this code: $layer->open(); for ($i=0; $i<13; $i++) { $shp = $layer->getShape(-1, $i); echo $shp->getvalue($layer, "myfieldname"); } $layer->close(); I don't know how to obtain the number of ShapeObj's in the layer, so I just hardwired 13 in there because I knew there were 13 points in the layer I was accessing. But there must be some attribute to the LayerObj or a function call that returns that number? John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed May 3 13:48:44 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 May 2006 15:48:44 -0500 Subject: image and jbox Message-ID: Hi Eric: I don't know that you can get them to work together. jbox knows nothing about image maps and the browser knows nothing about what is going on in jbox. To get tool tips in jbox you'd need to feed the image map or similar data into the applet. There are applets that allow you to do this but you'd have to do the integration yourself. I had something similar working several years ago but I'm afraid it's from a *very* early version of dbox and wouldn't be of much use. It used an XML file to store the necessary shapes. So, short of writing java I think you're out of luck. Unless, of course, Rich Greenwood has done this already for jbox... Steve >>> Eric O'Neal 5/2/2006 2:53:39 PM >>> I'm new to mapserver and I am trying to get the jbox and Steve Lime's imagemap example to work together. I'd like to be able to zoom with the jbox and get mouseover tooltips. I have them both seperatly working fine, but I cant seem to make both work in the same map. Anyone have some code to show me? Thanks, Eric On 5/2/06, Eric Oneal wrote: > > DD: MESSAGE > From earevaloch at GMAIL.COM Wed May 3 14:12:58 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 3 May 2006 16:12:58 -0500 Subject: aid ... first steps Message-ID: there am the degree to install mapserver-4.8.3 now I want to use it that can give advice me to begin to use mapserver. -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Wed May 3 14:46:36 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 3 May 2006 16:46:36 -0500 Subject: aid ... first steps In-Reply-To: <95f68e530605031412o708f966cm894de71772c48ffc@mail.gmail.com> Message-ID: Eduardo Ar?valo wrote: > there am the degree to install mapserver-4.8.3 now I want to use it that > can give advice me to begin to use mapserver. This is what you want: http://mapserver.gis.umn.edu/new_users -Perry From Antti.Roppola at BRS.GOV.AU Wed May 3 17:07:09 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Thu, 4 May 2006 10:07:09 +1000 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] PDFLIB - using default Po stScript fonts Message-ID: Hi Tom, To achieve this a few versions ago, I modified mappdf.c to always use Helvetica and not embed it. The first 16 PS type1 fonts are to be supplied by the PDF client and need not be embedded in the PDF file. Here is a diff from MS 4.0.1, the last argument in the PDFLib function is whether to embed the font, and you can see that in MS 4.0.1, it was hard coded to "1" and therefore *always* embed fonts. I just had a look in 4.8.1 and this still appears to be the case. Diff output for 4.0.1, modified followed by original: 1391,1392c1363 < /* font = PDF_findfont(pdf, fontKey, "winansi",1); */ < font = PDF_findfont(pdf, "Helvetica", "winansi",0); --- > font = PDF_findfont(pdf, fontKey, "winansi",1); The non-lazy approach would have been to modify mappdf.c to recognise type1 fonts in fontKey and set embed accordingly. In pseudo-code something like: if (fonKey in type1list) { embed=0;} else {embed=1;} font = PDF_findfont(pdf, fontKey, "winansi", embed); Cheers, Antti P.S. There are other economies to be made in PDF output if you are willing to hack mappdf.c. For example, if you only want polygon boundaries in one line type, you can set the boundary line style on the polygon fill rather than rendering the polygon outline seperately. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tom Melhuish Sent: Wednesday, 3 May 2006 8:56 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] PDFLIB - using default PostScript fonts I can not get the default postscript fonts in pdflib to display in mapserver (i.e. Times-Roman). I read the "PDF Output" document but don't see how to make the link to the default PostScript fonts that the document describes. I assume Label->Type->Times-Roman but this doesn't work. I am able to ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From Jukka.Rahkonen at MMMTIKE.FI Wed May 3 23:10:50 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 4 May 2006 09:10:50 +0300 Subject: WFS Problems Message-ID: Hi Mark, First, the onlineresource should include the mapfile. Second, try to start with a most simple mapfile to see if the system works at all. I suppose something like this is close to the minimum: MAP NAME WFS-KARTTA STATUS ON EXTENT 2464000.000 6779500.000 2467000.000 6780000.000 SIZE 1000 800 UNITS METERS SHAPEPATH "d:/ms4w/apps/ms101/data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "d:/ms4w/apps/ms101/data" IMAGEURL "/MS_TMP/" METADATA "wfs_title" "JRA test WFS-server" "wfs_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map&" "wfs_srs" "EPSG:2392" END END PROJECTION "init=epsg:2392" END LAYER NAME jukka METADATA "wfs_title" "Jukan_lohkot" "gml_include_items" "all" END TYPE POLYGON DATA jukka.shp PROJECTION "init=epsg:2393" END DUMP TRUE STATUS DEFAULT CLASS NAME "jukka" OUTLINECOLOR 0 0 0 END END END Then you can start by sending WFS-request from browser, in my case this works: http://localhost:8060/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=jukka If you are receiving GML then you have quite a lot working correctly. Your browser may tell you that you are going to download "mapserv.exe", then just save it on a disk with some other name and open it with editor. Next step is to try some real client, but all of them won't work. One that works for me is Cadcorp SIS map browser, that is a free download. It works in http "GET" mode, "POST" mode does not work. I suppose that the error is in Mapserver, and folks seem to start working on this problem. See recent posts about Mapserver, MapInfo and WMS. So the URL to use with real clients is like: http://localhost:8060/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map& Regards, -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Mark Christiano L?hetetty: ke 3.5.2006 20:35 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] WFS Problems Hi Tom, I was hoping you could clarify for me the path name? The path on my computer is "C:/ms4w/apps/maplab-2.2.1/projects/gmf_projects/wfs_1.map" So all together it would be http://127.0.0.1/cgi-bin/mapserv.exe?map=C:/ms4w/apps/maplab-2.2.1/proje cts/gmf_projects/wfs_1.map&version=1.0.0&service=WFS&request=GetCapabili ties ? I tried this and got this as this error getSymbol(): Symbol definition error. Parsing error near (LOCAL):(line 29) Not sure where I am going wrong. Thanks for the help. Mark -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, May 03, 2006 12:29 PM To: Mark Christiano; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] WFS Problems Hi Mark, What happens when you try: http://127.0.0.1/cgi-bin/mapserv.exe?map=$MAPFILE&version=1.0.0&service= WFS&request=GetCapabilities (where $MAPFILE is the file path to your .map file) Also, you might want to take a look at the MapServer OGC Web Services Workshop (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). Hope this helps. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Mark Christiano > Sent: Wednesday, May 03, 2006 12:06 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] WFS Problems > > > Hi Everyone, > > My name is Mark Christiano, I am a research associate at the > University of Rhode Island and we are working toward > developing a WFS that conforms to the OGC standards. I do a > lot with GIS but not so much with web design. > > Before I jump into getting to the OGC standards, I am having > problems serving out the WFS data. > > I have been following the online document "WFS Servers with > MapServer" And my map.doc look very similar to the on-line > example. Except that it does not work. > > I think the problem maybe with the wfs_onlineresource. (I > pretty much guess on that one) For example, if I were to use > Gaia to view this WFS, I am not sure what to web address to > type in to view the data. > > All of the tests to see if the MapServer is working have come > back positive. The software seems to be configured correctly. > > I have pasted my Map File below. I was hoping someone could > give me some direction. > > Thanks a lot! > > Mark > > MAP > NAME "WFS" > STATUS ON > EXTENT 200000 22000 450000 370000 > SIZE 400 600 > SHAPEPATH "../../../../../../../..//maplab-2.2.1/data" > SYMBOLSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/symbols.sym" > FONTSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/fonts.txt" > IMAGECOLOR 255 255 255 > UNITS FEET > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:32130" > "ows_schemas_location" "" > END > END > PROJECTION > "init=epsg:32130" > END > LAYER > NAME "State" > STATUS ON > DATA "../..//maplab-2.2.1/data/state" > TYPE POLYGON > CONNECTIONTYPE LOCAL > UNITS FEET > SIZEUNITS FEET > POSTLABELCACHE TRUE > METADATA > "wfs_title" "State" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:32130" > END > DUMP TRUE > CLASS > NAME "Rhode Island" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > END > > Mark Christiano > > Research Associate > Environmental Data Center > University of Rhode Island > 401-874-5054 > Mark at edc.uri.edu > From b.vdeijnden at AGI.RWS.MINVENW.NL Thu May 4 00:12:41 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 4 May 2006 09:12:41 +0200 Subject: WFS Problems Message-ID: CONNECTIONTYPE LOCAL does not exist in Mapserver. Assuming your DATA is a shapefile, just leave out the CONNECTIONTYPE part of your LAYER definition at all. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Mark Christiano Verzonden: woensdag 3 mei 2006 19:35 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS Problems Hi Tom, I was hoping you could clarify for me the path name? The path on my computer is "C:/ms4w/apps/maplab-2.2.1/projects/gmf_projects/wfs_1.map" So all together it would be http://127.0.0.1/cgi-bin/mapserv.exe?map=C:/ms4w/apps/maplab-2.2.1/proje cts/gmf_projects/wfs_1.map&version=1.0.0&service=WFS&request=GetCapabili ties ? I tried this and got this as this error getSymbol(): Symbol definition error. Parsing error near (LOCAL):(line 29) Not sure where I am going wrong. Thanks for the help. Mark -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, May 03, 2006 12:29 PM To: Mark Christiano; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] WFS Problems Hi Mark, What happens when you try: http://127.0.0.1/cgi-bin/mapserv.exe?map=$MAPFILE&version=1.0.0&service= WFS&request=GetCapabilities (where $MAPFILE is the file path to your .map file) Also, you might want to take a look at the MapServer OGC Web Services Workshop (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). Hope this helps. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Mark Christiano > Sent: Wednesday, May 03, 2006 12:06 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] WFS Problems > > > Hi Everyone, > > My name is Mark Christiano, I am a research associate at the > University of Rhode Island and we are working toward > developing a WFS that conforms to the OGC standards. I do a > lot with GIS but not so much with web design. > > Before I jump into getting to the OGC standards, I am having > problems serving out the WFS data. > > I have been following the online document "WFS Servers with > MapServer" And my map.doc look very similar to the on-line > example. Except that it does not work. > > I think the problem maybe with the wfs_onlineresource. (I > pretty much guess on that one) For example, if I were to use > Gaia to view this WFS, I am not sure what to web address to > type in to view the data. > > All of the tests to see if the MapServer is working have come > back positive. The software seems to be configured correctly. > > I have pasted my Map File below. I was hoping someone could > give me some direction. > > Thanks a lot! > > Mark > > MAP > NAME "WFS" > STATUS ON > EXTENT 200000 22000 450000 370000 > SIZE 400 600 > SHAPEPATH "../../../../../../../..//maplab-2.2.1/data" > SYMBOLSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/symbols.sym" > FONTSET > "../../../../../../../..//maplab-2.2.1/tutorial/etc/fonts.txt" > IMAGECOLOR 255 255 255 > UNITS FEET > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:32130" > "ows_schemas_location" "" > END > END > PROJECTION > "init=epsg:32130" > END > LAYER > NAME "State" > STATUS ON > DATA "../..//maplab-2.2.1/data/state" > TYPE POLYGON > CONNECTIONTYPE LOCAL > UNITS FEET > SIZEUNITS FEET > POSTLABELCACHE TRUE > METADATA > "wfs_title" "State" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:32130" > END > DUMP TRUE > CLASS > NAME "Rhode Island" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END > END > > Mark Christiano > > Research Associate > Environmental Data Center > University of Rhode Island > 401-874-5054 > Mark at edc.uri.edu > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From dovidio at PLANETEK.IT Thu May 4 00:44:01 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 4 May 2006 09:44:01 +0200 Subject: Italian WMS Servers Message-ID: Does anyone tell me any Italian WMS Server in order to connect and take images ? Thank u so much ! ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From xavier.mauclaire at GEOTER.FR Thu May 4 00:48:51 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 4 May 2006 09:48:51 +0200 Subject: mapscript ShapeObj object with postgis layers with c# Message-ID: Hi I'm developping with VS 2003 for windows and mono with c# plateform i may have a question cencerning the shapeobj object : Can i use this object with objects coming from Postgis Layers ? If yes how can i get attributes values (all values are empty ) ? May the function like querybyshape using data from postgis be retunring wrong result (Numresults is wrong) . is there any problems with postgis layer ? On the other hand i may be mistaken using this function :-) Any help will be appreciated regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wolfgang.Qual at MUENCHEN.DE Thu May 4 02:33:22 2006 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Thu, 4 May 2006 11:33:22 +0200 Subject: Display direction of a line with truetype fonts? Message-ID: Hi list, I would like to display directions of lines using the mapserver. My idea was to create a suitable Truetype-Font (e.g. "A" for -->) I added the font to my fonts.list and created an entry for my symbolfile. However, when I look on the result, I see that the direction of the arrows does not match with the direction of digitizing (see this link [1]) Any ideas would be appreciated! Best regards, Wolfgang [1] http://dream.lrrl.arch.tu-muenchen.de/cgi/M3.cgi?map=testkarte_verkehrslage.dfo.map&start=1 -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From Jukka.Rahkonen at MMMTIKE.FI Thu May 4 02:36:10 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 4 May 2006 12:36:10 +0300 Subject: MapServer with MapInfo (WFS) Message-ID: On 5/3/06, Frank Warmerdam wrote: Francesco, If you can provide details making it easy to reproduce this problem, then I imagine we can fix it in MapServer. An easy to reproduce problem might be a text file which when piped into mapserver with appropriate options or environment variables will trigger this problem. I think a literal capture of the posted request from mapinfo (make sure the CR's are preserved by zipping it!) when piped into mapserv.exe with the environment variable REQUEST set to POST *should* trigger the same behavior. If you can accomplish demonstrating the bug this way then please submit it in bugzilla and someone should be able to fix it pretty quickly. You can assign it to me if you wish. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org Hi, I wonder if this problem might be related to that POST thing. I have been able to use my Mapserver WFS with some clients only, and if the client offers possibility to select using GET or POST, only GET has been working. I did not bother to struggle with this for long but started to use Geoserver WFS instead. Now I made one more short trial to reproduce the problem: I used a free Cadcorp SIS map browser as a WFS client because with that you can select if you would like to use GET of POST, in addition to other nice features like having spatial and feature filters. I made a very simple mapfile, and hided it by following the advise in http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url just to be sure that having "map=mywfs.map&" in request would not make any problems. However, I am pretty sure that this client accepts the mapfile parameter as a part of the connection URL. Now Cadcorp client is getting the WFS layer OK when in GET mode. If POST is selected, it gives the following error message: Invalid document structure at line 1, column 1 in file http://localhost:8060/cgi-bin/mywfs.exe?. deeJUMP is using POST and it can not connect to my Mapserver, perhaps for the same reason. By the way, Cadcorp browser has a "validate XML from server" tool which lists a few errors: Unknown element 'SFE_XMLSCHEMA' Element 'SFE_XMLSCHEMA' is not valid for content model:'(XMLSCHEMA,)' Unknown element 'GML3' Element 'GML3' is not valid for content model:'(GML2,)' I have no idea about the severity of these errors or if they are errors at all. Not many WFS services I have tried are accepted by this Cadcorp validation tool without any comments, but they may still be usable for the Map browser. My local Geoserver seem to be one of the few without any validation errors. Regards, -Jukka Rahkonen- From szekeres.tamas at FREEMAIL.HU Thu May 4 02:48:04 2006 From: szekeres.tamas at FREEMAIL.HU (=?ISO-8859-2?Q?Szekeres_Tam=E1s?=) Date: Thu, 4 May 2006 11:48:04 +0200 Subject: mapscript ShapeObj object with postgis layers with c# Message-ID: Hi, Here is a sample code should work for the postgis layers as well: private void DumpResults(layerObj layer) { resultCacheMemberObj res; shapeObj feature; using (resultCacheObj results = layer.getResults()) { if (results != null && results.numresults > 0) { // extracting the features found layer.open(); for (int j=0; j < results.numresults; j++) { res = results.getResult(j); feature = layer.getFeature(res.shapeindex, res.tileindex); if (feature != null) { Trace.WriteLine(layer.name + " (" + feature.index + ")"); for (int i = 0; i < feature.numvalues; i++) { Trace.WriteLine(layer.getItem(i) + "=" + feature.getValue(i)); } } } layer.close(); } } } public void QueryByShape(shapeObj shape) { if (shape != null) { Trace.WriteLine("The query shape is not specified."); return; } try { if (shape.type == MS_SHAPE_TYPE.MS_SHAPE_POLYGON) { map.queryByShape(shape); layerObj layer; for (int i = 0; i < map.numlayers; i++) { layer = map.getLayer(i); if (layer.status != mapscript.MS_OFF) { DumpResults(layer); } } } else { Trace.WriteLine("The query shape must be a polygon."); } } catch (Exception e) { Trace.WriteLine("QueryByShape error: " + e.Message); } } Best Regards, Tamas On Thu, 4 May 2006 09:48:51 +0200, Xavier Mauclaire wrote: >Hi >I'm developping with VS 2003 for windows and mono with c# plateform > >i may have a question cencerning the shapeobj object : Can i use this object >with objects coming from Postgis Layers ? > >If yes how can i get attributes values (all values are empty ) ? > >May the function like querybyshape using data from postgis be retunring >wrong result (Numresults is wrong) . is there any problems with postgis >layer ? >On the other hand i may be mistaken using this function :-) > >Any help will be appreciated > >regards > > >----------------------------------------- > >Xavier Mauclaire > >------------------------------------------------------- > > > > > > _______________________________________________________________________________ Any?k napja - ugye nem felejti el? http://www.bookline.hu/control/shlist?id=60&affiliate=freanykar2482 From xavier.mauclaire at GEOTER.FR Thu May 4 03:16:49 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Thu, 4 May 2006 12:16:49 +0200 Subject: mapscript ShapeObj object with postgis layers with c# In-Reply-To: Message-ID: Thanks you very well My code wasn't working because i've forgotten the layer.open() and layer.close() methods regards ----------------------------------------- Xavier Mauclaire ------------------------------------------------------- -----Message d'origine----- De : Szekeres Tam?s [mailto:szekeres.tamas at freemail.hu] Envoy? : jeudi 4 mai 2006 11:48 ? : xavier.mauclaire at GEOTER.FR Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: mapscript ShapeObj object with postgis layers with c# Hi, Here is a sample code should work for the postgis layers as well: private void DumpResults(layerObj layer) { resultCacheMemberObj res; shapeObj feature; using (resultCacheObj results = layer.getResults()) { if (results != null && results.numresults > 0) { // extracting the features found layer.open(); for (int j=0; j < results.numresults; j++) { res = results.getResult(j); feature = layer.getFeature(res.shapeindex, res.tileindex); if (feature != null) { Trace.WriteLine(layer.name + " (" + feature.index + ")"); for (int i = 0; i < feature.numvalues; i++) { Trace.WriteLine(layer.getItem(i) + "=" + feature.getValue(i)); } } } layer.close(); } } } public void QueryByShape(shapeObj shape) { if (shape != null) { Trace.WriteLine("The query shape is not specified."); return; } try { if (shape.type == MS_SHAPE_TYPE.MS_SHAPE_POLYGON) { map.queryByShape(shape); layerObj layer; for (int i = 0; i < map.numlayers; i++) { layer = map.getLayer(i); if (layer.status != mapscript.MS_OFF) { DumpResults(layer); } } } else { Trace.WriteLine("The query shape must be a polygon."); } } catch (Exception e) { Trace.WriteLine("QueryByShape error: " + e.Message); } } Best Regards, Tamas On Thu, 4 May 2006 09:48:51 +0200, Xavier Mauclaire wrote: >Hi >I'm developping with VS 2003 for windows and mono with c# plateform > >i may have a question cencerning the shapeobj object : Can i use this object >with objects coming from Postgis Layers ? > >If yes how can i get attributes values (all values are empty ) ? > >May the function like querybyshape using data from postgis be retunring >wrong result (Numresults is wrong) . is there any problems with postgis >layer ? >On the other hand i may be mistaken using this function :-) > >Any help will be appreciated > >regards > > >----------------------------------------- > >Xavier Mauclaire > >------------------------------------------------------- > > > > > > ____________________________________________________________________________ ___ Any?k napja - ugye nem felejti el? http://www.bookline.hu/control/shlist?id=60&affiliate=freanykar2482 __________ Information NOD32 1.1519 (20060504) __________ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com From Wolfgang.Qual at MUENCHEN.DE Thu May 4 03:58:43 2006 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Thu, 4 May 2006 12:58:43 +0200 Subject: Display direction of a line with truetype fonts? In-Reply-To: <4459CA62.9000200@muenchen.de> Message-ID: Dear list, I found the solution for my problem on the internet [2]. It was the option "-" in the GAP-Section of the symbolfile... Sorry that I was to quick with posting this to the list. Best regards, Wolfgang Qual [2] http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0310/msg00441.html Wolfgang Qual schrieb: > Hi list, > I would like to display directions of lines using the mapserver. My idea > was to create a suitable Truetype-Font (e.g. "A" for -->) > I added the font to my fonts.list and created an entry for my symbolfile. > However, when I look on the result, I see that the direction of the > arrows does not match with the direction of digitizing (see this link [1]) > > Any ideas would be appreciated! > > Best regards, > > Wolfgang > > [1] > http://dream.lrrl.arch.tu-muenchen.de/cgi/M3.cgi?map=testkarte_verkehrslage.dfo.map&start=1 > > > > -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From grabiel at MYWAY.COM Thu May 4 05:47:36 2006 From: grabiel at MYWAY.COM (grabiel) Date: Thu, 4 May 2006 08:47:36 -0400 Subject: Plz Help in OGR and MYSQL Message-ID: Hi I am still facing problems with OGR, mapfile and MySql. I have installed the GDAL/OGR and its working fine. Also from command line(using ogrinfo --) i can able to fetch the datas from mysql table. But when i try to connect MySql from mapfile i am getting an error. The error looks like--> > Warning:[Mapserver Error]: msogrfileopen(): ExecuteSql(SELECT * >FROM nsdata > left join 'MYSQL:test,host=localhost, user=root'.nsdata ON >n_state.st_nm=nsdata.name) failed > SELECT from table nsdata failed, no such table/feature class in >/usr/local/apache/htdocs/gmap/htdocs/gmap75.inc.php on line 506 >Warning:[Mapserver Error]: msQueryByPoint(): No Matching records >found. in /usr/local....../gmap.inc.ohp >on line 506 >Fatal Error: Call to a member function on a non object ..... What i am trying here is to connect the MySql table named nsdata(contains feature data) and relate it to the n_state.shp. My mapfile stuff now looks like-> layer name "n_state" Type point Status off classitem "st_nm" class name "Neighbouring state" expression /A*/ color 255 0 0 ... end connectiontype ogr connection "n_state.shp" DATA "SELECT * from nsdata left join 'MYSQL:test, host=localhost, user=root'.nsdata ON n_state.st_nm=nsdata.name" END END The error of mapserver suggests that, it is not getting the MySql table nsdata Any explanation/Explanation wil be highly appreciated. With regards Grabiel _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From warmerdam at POBOX.COM Thu May 4 05:53:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 May 2006 08:53:32 -0400 Subject: MapServer with MapInfo (WFS) In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Now Cadcorp client is getting the WFS layer OK when in GET mode. If POST is > selected, it gives the following error message: Invalid document structure > at line 1, column 1 in file http://localhost:8060/cgi-bin/mywfs.exe?. > deeJUMP is using POST and it can not connect to my Mapserver, perhaps for > the same reason. Jukka, Once again, if you can isolate this to a problem we can reproduce with mapserver on the commandline I am willing to dig into it. Discussion of various possibly related problems would be appropriate for the bug report as well, but I'm primarily interested in a post dataset and conditions that triggers the problem in isolation. > By the way, Cadcorp browser has a "validate XML from server" tool which > lists a few errors: Unknown element 'SFE_XMLSCHEMA' Element 'SFE_XMLSCHEMA' > is not valid for content model:'(XMLSCHEMA,)' Unknown element 'GML3' > Element 'GML3' is not valid for content model:'(GML2,)' > > I have no idea about the severity of these errors or if they are errors at > all. Not many WFS services I have tried are accepted by this Cadcorp > validation tool without any comments, but they may still be usable for the > Map browser. My local Geoserver seem to be one of the few without any > validation errors. I'm a bit suspicious about the presence of GML3 stuff in our WFS response, but this isn't my area of specialty. I'll leave it to Steve or whoever knows the GML generation well. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu May 4 06:04:31 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 4 May 2006 09:04:31 -0400 Subject: Plz Help in OGR and MYSQL In-Reply-To: <20060504124736.5127D2340A@mprdmxin.myway.com> Message-ID: grabiel wrote: > connectiontype ogr > connection "n_state.shp" > DATA "SELECT * from nsdata left join 'MYSQL:test, > host=localhost, user=root'.nsdata ON n_state.st_nm=nsdata.name" > END > END > Grabriel, I think you want: SELECT * from n_state LEFT JOIN ... The n_state player (from the shapefile) is the primary table. You should be able to test the left join from ogrinfo as well using the -sql command option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From earevaloch at GMAIL.COM Thu May 4 09:05:56 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Thu, 4 May 2006 11:05:56 -0500 Subject: error en http Message-ID: please help: http://10.1.6.46/cgi-bin/mapserv?map:/home/earevalo/mapserver-4.8.3/tests/test.map&layer=Testing&mode=map error loadMap(): Web application error. CGI variable "map" is not set. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gdavis at REFRACTIONS.NET Thu May 4 09:08:03 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Thu, 4 May 2006 09:08:03 -0700 Subject: error en http In-Reply-To: <95f68e530605040905yf7cb977s86f907ca7d67f0a1@mail.gmail.com> Message-ID: Try http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/test.map&layer=Testing&mode=map You need to use = and not : -- Graham Davis Refractions Research Inc. gdavis at refractions.net Eduardo Ar?valo wrote: > please help: > > http://10.1.6.46/cgi-bin/mapserv?map:/home/earevalo/mapserver-4.8.3/tests/test.map&layer=Testing&mode=map > > > error > > loadMap(): Web application error. CGI variable "map" is not set. > > From James.Leveille at MTQ.GOUV.QC.CA Thu May 4 09:09:38 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 4 May 2006 12:09:38 -0400 Subject: MapServer, IIS and Oracle Message-ID: Hi, I've been using MapServer (with Apache) with Oracle (10g) on Win XP. Everything use to work perfectly ... I'm now trying to make MapServer work on IIS, instead of Apache. I'm using the same computer, but Apache was removed. Here is what I did: - MS4W was downloaded and unzipped. - libmap.dll was downloaded and the original one was replaced (in ...\ms4w\Apache\cgi-bin). - 3 Env. vars were defined, as specified in (http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto/view ). - Full control was given (for now) to the internet user on the Oracle home directory. - getCapabilities looks OK (INPUT=ORACLESPATIAL) As I recall, I'm using the same computer, so the Oracle connection should be fine (it was working fine). But I get the following error when testing : The WMS Server issued the following exception: msDrawMap(): Image handling error. Failed to draw layer named 'MyLayer'. msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12154: TNS: could not resolve service name. Any solutions ?? Thanks __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From amokerk at POST.CZ Thu May 4 10:07:03 2006 From: amokerk at POST.CZ (Martin Krempl) Date: Thu, 4 May 2006 19:07:03 +0200 Subject: Error in drawning labels in SWF MULTIPLE format Message-ID: Hi, I?have got problems with drawing labels in SWF MULTIPLE format. I found that problem is in using truetype fonts, I know thate I have to use fdb fonts to draw labels. So I defined in my font.list some fdb font, and when I use this font to draw label there is the same result: Internal server error. Here are important fragments from my map file LAYER NAME zastavky DATA "the_geom from zastavky" STATUS ON TYPE POINT LABELITEM smer CLASS NAME "Zeleznice" COLOR 0 0 0 SYMBOL 'triangle' SIZE 10 LABEL COLOR 0 0 0 SIZE SMALL FONT arialfdb TYPE TRUETYPE END END END OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END Here is my font.list ******************** arial arial.ttf arial-bold arialbd.ttf verdana verdana.ttf tnr Times_New_Roman.fdb arialfdb Arial.fdb fonts are in the same directory as font.list. I have some idea that problem is, that I use incorrect fdb font set. Could you tell me, where I found actually correct fdb font set file, or some others ideas to fix my problem. Thanks Martin PS: I?m using MapServer 4.8.1, PHP 4.3.11, WinXP or Linux. From frottoli at TISCALI.IT Thu May 4 10:03:36 2006 From: frottoli at TISCALI.IT (frottoli@tiscali.it) Date: Thu, 4 May 2006 19:03:36 +0200 Subject: How to run Java Mapscript in a servlet ON WINDOWS on Tomcat 5.5 (MS4W 1.5.1)? Message-ID: Hi, I need help to run Java MapScript on Windows on Tomcat 5.5 (I'm a newbie about MapScript programming and about configuring servlet containers or similar). My problem is that I should build servlets or Java ServerPages that interact with MapServer through Java MapScript. I have downloaded MS4W 1.5.1 (that already includes Java MapScript, according to the documentation) but if I'm not wrong it cointains only Apache and not a servlet conainer, so I downloaded also Tomcat 5.5. But how have I to configure Tomcat 5.5 ON WINDOWS to run the version of Java MapScript included in MS4W? Can anyone suggest me where I have to put the files provided with MS4W (if it is necessary to change their position) and provide me the code necessary to run Java MapScript in a servlet? Please, I need detailed explanations because I have really no experience in these things, but I MUST early produce a running Java application for a very important assigment. Thanks to all. Rot Milioni di oggetti, impossibile non trovare quello che cerchi. Dallo spillo all'elefante, non ti stupire. Sei su eBay! http://adfarm.mediaplex.com/ad/ck/724-7199-4110-179?id=2 From David.Fawcett at STATE.MN.US Thu May 4 10:06:44 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 4 May 2006 12:06:44 -0500 Subject: error en http Message-ID: From rockwell_001 at YAHOO.COM Thu May 4 12:01:27 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 4 May 2006 12:01:27 -0700 Subject: New to WMS, need some help Message-ID: Hi i am trying to learn about WMS, so i read the documentation in the mapserver website, i was wondering like mapserver stores the jpeg file into a temp directory which we specify in the mapfile does WMS store the image i couldnt find the image stored in the temp directory .... Thanks for your time ... --------------------------------- Get amazing travel prices for air and hotel in one click on Yahoo! FareChase -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles.theobald at NCMAIL.NET Thu May 4 14:00:19 2006 From: charles.theobald at NCMAIL.NET (Charles Theobald) Date: Thu, 4 May 2006 17:00:19 -0400 Subject: MySQL join problems Message-ID: Hello, I'm having difficulties performing a join between a localhost shapefile and a remote Mysql table. The following command works, performs the join and display the results. /fgs/bin/ogrinfo /fgs/www/htdocs/stateplane/97service.shp -sql "SELECT * FROM 97service LEFT JOIN 'MYSQL:dreporting,host=mimir,user=****,password=*******,tables=sysstatus'.sysstatus ON 97service.ID = sysstatus.permit" However, I can't get the syntax right in my .map (or .ovf) file. Any suggestions? Thanks in advance. From fredlucca at GMAIL.COM Thu May 4 14:36:56 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 4 May 2006 18:36:56 -0300 Subject: Problems displaying a very large polygon Message-ID: Hello list, I have a layer with a single polygon, but it has 131570 points. It's the territory from brazil. When I try to export a gif showing only a small piece, like 1/30 from the total, this spends 30 seconds (attached). I observe that when the coast is more irregular this is slower to export. Other layers are very quick to export, something like 1 or 2 second. How I can deal with this problem? Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PICTURE.gif Type: image/gif Size: 2638 bytes Desc: not available URL: From woklist at KYNGCHAOS.COM Thu May 4 14:45:32 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 4 May 2006 16:45:32 -0500 Subject: MySQL join problems In-Reply-To: <445A6B63.3020608@ncmail.net> Message-ID: I posted a message about my experience with this a few weeks ago. Check the archives around Apr 11. On May 4, 2006, at 4:00 PM, Charles Theobald wrote: > Hello, > I'm having difficulties performing a join between a localhost > shapefile and a remote Mysql table. The following command works, > performs the join and display the results. /fgs/bin/ogrinfo /fgs/ > www/htdocs/stateplane/97service.shp -sql "SELECT * FROM 97service > LEFT JOIN > 'MYSQL:dreporting,host=mimir,user=****,password=*******,tables=sysstat > us'.sysstatus ON 97service.ID = sysstatus.permit" > > However, I can't get the syntax right in my .map (or .ovf) file. > Any suggestions? > Thanks in advance. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From fredlucca at GMAIL.COM Thu May 4 15:00:19 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 4 May 2006 19:00:19 -0300 Subject: How to run Java Mapscript in a servlet ON WINDOWS on Tomcat 5.5 (MS4W 1.5.1)? In-Reply-To: <6344000.1146762216463.JavaMail.root@ps23> Message-ID: Rot, I don't know about the application that you have downloaded, but you need 2 things to start. 1) A DLL file named libmapscript.so (linux) or libmapscript.dll (windows) 2) A JAR file named mapscript.jar The jar file has all references to access the dll file. Using the jar as a library in your jsp or servlet you can use mapserver. After this, you need to understand the mapfile structure. http://mapserver.gis.umn.edu/docs/reference/mapfile I'm sending a example application that read a mapfile and export a image. Good luck, Fred On 5/4/06, frottoli at tiscali.it wrote: > > Hi, > I need help to run Java MapScript on Windows on Tomcat 5.5 (I'm a > newbie about MapScript programming and about configuring servlet > containers or similar). > My problem is that I should build servlets or Java ServerPages that > interact with MapServer through Java MapScript. > I have downloaded MS4W 1.5.1 (that already includes Java MapScript, > according to the documentation) but if I'm not wrong it cointains only > Apache and not a servlet conainer, so I downloaded also Tomcat 5.5. > But how have I to configure Tomcat 5.5 ON WINDOWS to run the version > of Java MapScript included in MS4W? > Can anyone suggest me where I have to put the files provided with MS4W > (if it is necessary to change their position) and provide me the code > necessary to run Java MapScript in a servlet? > Please, I need detailed explanations because I have really no > experience in these things, but I MUST early produce a running Java > application for a very important assigment. > Thanks to all. > Rot > > > > > > Milioni di oggetti, impossibile non trovare quello che cerchi. > > Dallo spillo all'elefante, non ti stupire. > > Sei su eBay! > > http://adfarm.mediaplex.com/ad/ck/724-7199-4110-179?id=2 > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Thu May 4 15:54:45 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Thu, 4 May 2006 15:54:45 -0700 Subject: Problems displaying a very large polygon In-Reply-To: Message-ID: Fred, Can you simplify your polygon to reduce the number of points? I know Postgis has a simplify() function for that purpose which uses the Douglas-Peuker algorithm. There are probably other tools with a similar capability. Brock Frederico Lucca wrote: > Hello list, > > I have a layer with a single polygon, but it has 131570 points. It's > the territory from brazil. > When I try to export a gif showing only a small piece, like 1/30 from > the total, this spends 30 seconds (attached). > I observe that when the coast is more irregular this is slower to export. > Other layers are very quick to export, something like 1 or 2 second. > How I can deal with this problem? > > Thanks in advance. > > Fred > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > ------------------------------------------------------------------------ > From naci0002 at UMN.EDU Thu May 4 15:59:33 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 4 May 2006 17:59:33 -0500 Subject: PostGIS tile index example? Message-ID: Does anyone have a working example of a PostGIS-based tileindex? If so, would you care to share how you do it (provide an example mapfile)? I converted one of my shapefile-based tindex to PostGIS table and tried to use it but it didn't work. Would I need to implement the tindex as a spatio-temporal tindex (as implemented for WCS support)? Any help would be appreciated. Thanks, -Perry From fredlucca at GMAIL.COM Thu May 4 16:09:13 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 4 May 2006 20:09:13 -0300 Subject: Problems displaying a very large polygon In-Reply-To: <445A8795.4010200@refractions.net> Message-ID: Mark, Thanks for the explanation, but in this case why some sections of the polygon are processed faster than others? Best regards, Fred On 5/4/06, Mark Leslie wrote: > > Fred, > The problem with large polygons like this is that loading a small > section like you're doing still requires the entire polygon to be > processed. > One solution is to break the polygon into tiles closer to the size you > intend to display. This way the indexes can be used more effectively, > and only the areas you're displaying needs to be processed. > Mark > > Frederico Lucca wrote: > > Hello list, > > > > I have a layer with a single polygon, but it has 131570 points. It's the > > territory from brazil. > > When I try to export a gif showing only a small piece, like 1/30 from > the > > total, this spends 30 seconds (attached). > > I observe that when the coast is more irregular this is slower to > export. > > Other layers are very quick to export, something like 1 or 2 second. > > How I can deal with this problem? > > > > Thanks in advance. > > > > Fred > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > > > > > > ------------------------------------------------------------------------ > > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredlucca at GMAIL.COM Thu May 4 16:16:03 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 4 May 2006 20:16:03 -0300 Subject: Problems displaying a very large polygon In-Reply-To: <445A8635.8040606@refractions.net> Message-ID: Brock, Ok, i could try some simplification. But I was thinking that mapserver could deal with this kind of problem. Thanks. Best regards, Fred On 5/4/06, Brock Anderson wrote: > > Fred, > > Can you simplify your polygon to reduce the number of points? > > I know Postgis has a simplify() function for that purpose which uses the > Douglas-Peuker algorithm. There are probably other tools with a similar > capability. > > Brock > > Frederico Lucca wrote: > > > Hello list, > > > > I have a layer with a single polygon, but it has 131570 points. It's > > the territory from brazil. > > When I try to export a gif showing only a small piece, like 1/30 from > > the total, this spends 30 seconds (attached). > > I observe that when the coast is more irregular this is slower to > export. > > Other layers are very quick to export, something like 1 or 2 second. > > How I can deal with this problem? > > > > Thanks in advance. > > > > Fred > > > > -- > > "Everything under the sun is in tune > > But the sun is eclipsed by the moon" > > ------------------------------------------------------------------------ > > > > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at REFRACTIONS.NET Thu May 4 16:15:52 2006 From: mark at REFRACTIONS.NET (Mark Leslie) Date: Thu, 4 May 2006 16:15:52 -0700 Subject: Problems displaying a very large polygon In-Reply-To: Message-ID: It will always run slow since it always needs to look at the entire shape. It will run even slower for areas with a great deal of detail, such as the coastline in your example. Tiling it will reduce the time to find the appropriate section to render, but to speed the rendering, you need to simplify your data for the desired scale so that you aren't rendering dozens of points into a single pixel. Brock mentioned the PostGIS simplify function, which is what I typically use. Mark Frederico Lucca wrote: > Mark, > > Thanks for the explanation, but in this case why some sections of the > polygon are processed faster than others? > > Best regards, > > Fred > > On 5/4/06, Mark Leslie wrote: > >> >> Fred, >> The problem with large polygons like this is that loading a small >> section like you're doing still requires the entire polygon to be >> processed. >> One solution is to break the polygon into tiles closer to the size you >> intend to display. This way the indexes can be used more effectively, >> and only the areas you're displaying needs to be processed. >> Mark >> >> Frederico Lucca wrote: >> > Hello list, >> > >> > I have a layer with a single polygon, but it has 131570 points. It's >> the >> > territory from brazil. >> > When I try to export a gif showing only a small piece, like 1/30 from >> the >> > total, this spends 30 seconds (attached). >> > I observe that when the coast is more irregular this is slower to >> export. >> > Other layers are very quick to export, something like 1 or 2 second. >> > How I can deal with this problem? >> > >> > Thanks in advance. >> > >> > Fred >> > >> > -- >> > "Everything under the sun is in tune >> > But the sun is eclipsed by the moon" >> > >> > >> > >> ------------------------------------------------------------------------ >> > >> >> > > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > From jani.tiainen at KEYPRO.FI Thu May 4 22:32:21 2006 From: jani.tiainen at KEYPRO.FI (J. Tiainen) Date: Thu, 4 May 2006 22:32:21 -0700 Subject: Displaying dynamic dataset on layer Message-ID: I've struts-hibernate application that has very complex query page. I know result set (or I can loop through it). Now I would like to send that resultset as layer. I could use mapscript (or CGI Mapserver parameters) to send query filter but problem is to get that where clause from hibernate (it hides it). Is there any other solution than manually parse spatial data and feed them to layer with mapscript? -- View this message in context: http://www.nabble.com/Displaying-dynamic-dataset-on-layer-t1561858.html#a4241778 Sent from the Mapserver - User forum at Nabble.com. From bluecarto at GMAIL.COM Fri May 5 00:36:11 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Fri, 5 May 2006 09:36:11 +0200 Subject: Fwd: [UMN_MAPSERVER-USERS] Mouseover with php mapscript In-Reply-To: Message-ID: ---------- Forwarded message ---------- From: Pierre GIRAUD Date: May 5, 2006 9:35 AM Subject: Re: [UMN_MAPSERVER-USERS] Mouseover with php mapscript To: "Fawcett, David" You can also manage imagemaps with the [shpxy] template tag and the processQueryTemplate() method in mapscript. Pierre On 5/1/06, Fawcett, David wrote: > If you are interested in the imagemap route, take a look at the Imagemap HowTO: > > http://mapserver.gis.umn.edu/docs/howto/imagemaps > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) > Sent: Sunday, April 30, 2006 2:20 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mouseover with php mapscript > > > You can do that using an imagemap. It is one of the output formats of > Mapserver. > > Alternatively, you could look into Chameleon's MapTips widget which does > a similar thing using PHP/Mapscript. > > Best regards, > Bart > > igor pinheiro wrote: > > > Hello, > > How can i implement a mouseover javascript so that it open a text box > > with information about the point above the mouse point (without click)? > > Thanks > > Igor > > > > Abra sua conta no Yahoo! Mail > > > > - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente > > eficaz. > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From bartvde at XS4ALL.NL Fri May 5 00:39:44 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 5 May 2006 09:39:44 +0200 Subject: MapServer, IIS and Oracle In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E01BDFDF9@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: IIS only picks up new system environment variables after a reboot. Did you reboot? Best regards, Bart L?veill? wrote: > Hi, > > I've been using MapServer (with Apache) with Oracle (10g) on Win XP. > Everything use to work perfectly ... > > I'm now trying to make MapServer work on IIS, instead of Apache. > I'm using the same computer, but Apache was removed. > Here is what I did: > - MS4W was downloaded and unzipped. > - libmap.dll was downloaded and the original one was replaced (in > ...\ms4w\Apache\cgi-bin). > - 3 Env. vars were defined, as specified in ( > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto/view > ). > - Full control was given (for now) to the internet user on the Oracle > home directory. > - getCapabilities looks OK (INPUT=ORACLESPATIAL) > > As I recall, I'm using the same computer, so the Oracle connection > should be fine (it was working fine). > But I get the following error when testing : > > *The WMS Server issued the following exception: msDrawMap(): Image > handling error. Failed to draw layer named 'MyLayer'. > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. Check the connection string. Error: > ORA-12154: TNS: could not resolve service name.* > > Any solutions ?? > > Thanks > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Fri May 5 00:40:45 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 5 May 2006 09:40:45 +0200 Subject: New to WMS, need some help In-Reply-To: <20060504190127.65263.qmail@web36207.mail.mud.yahoo.com> Message-ID: Mapserver WMS does not store the map image in a temp dir. It is streamed back to the client. Best regards, Bart rock well wrote: > Hi i am trying to learn about WMS, so i read the documentation in the > mapserver website, i was wondering like mapserver stores the jpeg file > into a temp directory which we specify in the mapfile does WMS store > the image i couldnt find the image stored in the temp directory .... > Thanks for your time ... > > Get amazing travel prices for air and hotel in one click on Yahoo! > FareChase > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From matl.hedwig at UZR.AT Thu May 4 23:48:38 2006 From: matl.hedwig at UZR.AT (Hedwig Matl) Date: Fri, 5 May 2006 08:48:38 +0200 Subject: please help: .mdb access problem Message-ID: Hello! I'm new to mapserver and already somewhat at a loss. If I try to access a .mdb file (via map file and ogrinfo) I get following error: msOGRFileOpen(): OGR error. Open failed for OGR connection `c:\..\test.mdb'. File not found or unsupported format. I use ms4w v1.5.1. on Windows XP Pro. With ogrinfo I am able to access shape files etc., so I guess ogr works fine. I also checked if the ODBC format driver is loaded (it is). I can open the .mdb file with ArcView 8, so the file istn't corrupt. I double-checked the paths. I looked through all mailing lists/documentations I found but didn't find a solution. Maybe someone can help me, Thanks Hedwig From dark.peony at GMAIL.COM Fri May 5 02:53:30 2006 From: dark.peony at GMAIL.COM (d c) Date: Fri, 5 May 2006 11:53:30 +0200 Subject: Raster image doesn't show Message-ID: Hello, I just changed the EXTENT of my mapfile which was in METERS to DD. I just wrote down the corresponding decimals which were given by gdalinfo. BEFORE -------------- UNITS METERS EXTENT -3174450 -3225675 2867175 2815950 AFTER ----------- UNITS DD EXTENT -131.5 -56.5 134 -52.3 nb: the map is a raster im. of antarctica The PROBLEM now is that THE MAP DOESN'T SHOW. I don't get an error or anything, the map just doesn't show. Any suggestions? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Stone at ED.AC.UK Fri May 5 03:03:25 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 5 May 2006 03:03:25 -0700 Subject: PHP/MapScript: getLayerByName() Message-ID: I'm taking first faltering steps with PHP/MapScript so forgive if following question is dumb. A la classic MapServer tutorial example, I'm building an interactive map form which allows pan/zoom/layer selection. It's the last of these that's giving me difficulty. The HTML defines a select list of layers: > > >etc.,.... > >When the form is submitted, the PHP should tell MapServer which elements in >the list were selected. My code is: > >function retrieve_select(){ > for ($r=0; $r <= count($_POST['layers'])-1; $r++){ > // echo $_POST['layers'][$r]."
"; > $my_layer=getLayerByName($_POST['layers'][$r]); > $i = $my_layer->set($my_layer->status, MS_ON); > } >} > >However, PHP reports 'Call to undefined function getLayerByName()'. Since I >found the function in the PHP/MapScript Class Reference document, I'm >wondering if this is a deliberately misleading error message?! > >Any help gratefully acknowledged... > >Dave > > >-- >View this message in context: http://www.nabble.com/PHP-MapScript%3A-getLayerByName%28%29-t1562941.html#a4244464 >Sent from the Mapserver - User forum at Nabble.com. > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From James.Leveille at MTQ.GOUV.QC.CA Fri May 5 04:18:02 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 5 May 2006 07:18:02 -0400 Subject: [UMN_MAPSERVER-USERS] MapServer, IIS and Oracle Message-ID: Yes, I did reboot ... The real problem was that I had to give READ permissions on the "tnsnames.ora" and "Sqlnet.ora" files to the internet user. Now, its work fine. Thanks __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -----Message d'origine----- De : Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] Envoy? : 5 mai 2006 03:40 ? : L?veill?, James Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] MapServer, IIS and Oracle IIS only picks up new system environment variables after a reboot. Did you reboot? Best regards, Bart L?veill? wrote: > Hi, > > I've been using MapServer (with Apache) with Oracle (10g) on Win XP. > Everything use to work perfectly ... > > I'm now trying to make MapServer work on IIS, instead of Apache. I'm > using the same computer, but Apache was removed. Here is what I did: > - MS4W was downloaded and unzipped. > - libmap.dll was downloaded and the original one was replaced (in > ...\ms4w\Apache\cgi-bin). > - 3 Env. vars were defined, as specified in ( > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto/view > ). > - Full control was given (for now) to the internet user on the Oracle > home directory. > - getCapabilities looks OK (INPUT=ORACLESPATIAL) > > As I recall, I'm using the same computer, so the Oracle connection > should be fine (it was working fine). > But I get the following error when testing : > > *The WMS Server issued the following exception: msDrawMap(): Image > handling error. Failed to draw layer named 'MyLayer'. > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. Check the connection string. Error: > ORA-12154: TNS: could not resolve service name.* > > Any solutions ?? > > Thanks > > __________________________________________ > *James L?veill?* > > *Int?lec G?omatique* > 420, boul. Charest Est > Bureau 400 > Qu?bec (QC), Canada > G1K 8M4 > > Int?lec G?omatique: 418.687.5000 > MTQ: 418.380.2005 (#227) > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From ed at TOPOZONE.COM Fri May 5 07:05:03 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 5 May 2006 10:05:03 -0400 Subject: Raster image doesn't show Message-ID: D C - The UNITS and EXTENT in your mapfile need to correspond to the units used in the projection of your data. If they don't, then you're looking to reproject the data and there's some extra work you need to do. gdalinfo will tell you the units and extent in the data source's native projection. Changing those values in the mapfile won't change the input data, and you're simply requesting an output image that doesn't correspond to any part of your input data, so you (correctly) get nothing displayed. What is it you're trying to do? Are you trying to display the image in a different projection than the raster source image is using? If so, what projection does the raster use and what output projection do you want? - 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of d c Sent: Friday, May 05, 2006 5:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster image doesn't show Hello, I just changed the EXTENT of my mapfile which was in METERS to DD. I just wrote down the corresponding decimals which were given by gdalinfo. BEFORE -------------- UNITS METERS EXTENT -3174450 -3225675 2867175 2815950 AFTER ----------- UNITS DD EXTENT -131.5 -56.5 134 -52.3 nb: the map is a raster im. of antarctica The PROBLEM now is that THE MAP DOESN'T SHOW. I don't get an error or anything, the map just doesn't show. Any suggestions? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffrey.brown at NGC.COM Fri May 5 06:54:55 2006 From: jeffrey.brown at NGC.COM (Brown, Jeff (C2MS)) Date: Fri, 5 May 2006 09:54:55 -0400 Subject: Why do I get this error message when trying to access WFS? Message-ID: I get the following error message when I try to access my WFS resource: msOGRFileOpen(): OGR error. Open failed for OGR connection `/ms4w/tmp/ms_tmp/\7bb0d77657833c3f75a5de7149b5572f.tmp.gml'. File not found or unsupported format. The file is present in the \msw4\tmp\ms_tmp directory and can be read with the following command: C:\Program Files\FWTools1.0.0b2>ogrinfo C:\ms4w\tmp\ms_tmp\7bb0d77657833c3f75a5de7149b5572f.tmp.gml Here are the results: Had to open data source read-only. INFO: Open of `C:\ms4w\tmp\ms_tmp\7bb0d77657833c3f75a5de7149b5572f.tmp.gml' using driver `GML' successful. 1: envdat:envirodat Thanks! JAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri May 5 07:05:55 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 5 May 2006 10:05:55 -0400 Subject: please help: .mdb access problem In-Reply-To: <445AF546.60006@uzr.at> Message-ID: Hedwig Matl wrote: > Hello! > > I'm new to mapserver and already somewhat at a loss. > If I try to access a .mdb file (via map file and ogrinfo) I get > following error: > > msOGRFileOpen(): OGR error. Open failed for OGR connection > `c:\..\test.mdb'. File not found or unsupported format. Hedwig, Is this the literal error you are seeing, or have you edited the path out replacing it with ".."? If this is the literal error then it seems that the path to the file is being constructed improperly. It may be that mapserver is trying to apply a SHAPEPATH relative path. I would suggest you use an absolute path tot he file. What does your CONNECTION string look? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From dark.peony at GMAIL.COM Fri May 5 07:44:03 2006 From: dark.peony at GMAIL.COM (d c) Date: Fri, 5 May 2006 16:44:03 +0200 Subject: Raster image doesn't show In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDCD2@ptolemy.topozone.com> Message-ID: Ed, This is the extent of my map: EXTENT -3174450 -2816050 2867175 2406325 UNITS METERS I'm trying to display a point element on a geotiff raster file, as follows (Note the decimal degree format): LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS 56.5333333 -71.5 # <------- DD END TEXT "HELLO WORLD" END CLASS COLOR 255 0 0 SYMBOL 'cross' LABEL TYPE bitmap END END TOLERANCE 5 END The label, according to the coordinates given, sometimes appears, sometimes does not and most often on the same (erroneous) spot. I tried to change the EXTENT (and UNITS) to decimal degrees according to the output of gdalinfo which outputs corner coordinates both in meters and decimal degrees. I thought I could this way make Mapserver understand I was specifying the input in decimal degrees so it should output correctly the point I want to draw. The scalebar also revealed seriously confused. I did not mention that the map is of Antarctica. This apparently complicates the matter since the EXTENT values are different than on most maps. I'm new to this so I haven't got much knowledge about projections. The following two I have used successfully in displaying the map (but not the point): PROJECTION "proj=stere" "ellps=WGS84" "datum=WGS84" "lon_0=0" "lat_0=-90" "lat_ts=-71" "units=m" END PROJECTION "init=esri:102021" END Thanks for your help, Dan 2006/5/5, Ed McNierney : > > D C - > > The UNITS and EXTENT in your mapfile need to correspond to the units used > in the projection of your data. If they don't, then you're looking to > reproject the data and there's some extra work you need to do. > > gdalinfo will tell you the units and extent in the data source's native > projection. Changing those values in the mapfile won't change the input > data, and you're simply requesting an output image that doesn't correspond > to any part of your input data, so you (correctly) get nothing displayed. > > What is it you're trying to do? Are you trying to display the image in a > different projection than the raster source image is using? If so, what > projection does the raster use and what output projection do you want? > > - 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:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *d c > *Sent:* Friday, May 05, 2006 5:54 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Raster image doesn't show > > Hello, > > I just changed the EXTENT of my mapfile which was in METERS to DD. > I just wrote down the corresponding decimals which were given by gdalinfo. > > BEFORE > -------------- > UNITS METERS > EXTENT -3174450 -3225675 2867175 2815950 > > > AFTER > ----------- > > UNITS DD > EXTENT -131.5 -56.5 134 -52.3 > > nb: the map is a raster im. of antarctica > > The PROBLEM now is that THE MAP DOESN'T SHOW. > I don't get an error or anything, the map just doesn't show. > > Any suggestions? > > Thanks in advance. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri May 5 07:58:19 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 5 May 2006 10:58:19 -0400 Subject: Raster image doesn't show Message-ID: Dan - If you are going to mix different projections in a mapfile, you need to tell MapServer what's going on. It looks like you have a good PROJECTION description for your input raster layer, and you seem to want the same output projection used in the map image itself. That's fine. But you are now creating a point layer with a DIFFERENT projection, but you're not doing anything that would let MapServer know that. You need three PROJECTION blocks - one at the top level (just below the EXTENT and UNITS is fine) to tell MapServer what output projection you're using (the stereographic one you've defined below). And you need that same PROJECTION block in the raster layer to tell MapServer that that's the input projection for that layer. And you then need a third one in the point layer to tell MapServer that the coordinates you're using for that layer are NOT in the stereographic projection but are in lat/lon degrees. That is, a block like: PROJECTION "proj=latlong" "datum=WGS84' END Then MapServer will know that it needs to reproject that input projection to the same output projection used in the output 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of d c Sent: Friday, May 05, 2006 10:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Raster image doesn't show Ed, This is the extent of my map: EXTENT -3174450 -2816050 2867175 2406325 UNITS METERS I'm trying to display a point element on a geotiff raster file, as follows (Note the decimal degree format): LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS 56.5333333 -71.5 # <------- DD END TEXT "HELLO WORLD" END CLASS COLOR 255 0 0 SYMBOL 'cross' LABEL TYPE bitmap END END TOLERANCE 5 END The label, according to the coordinates given, sometimes appears, sometimes does not and most often on the same (erroneous) spot. I tried to change the EXTENT (and UNITS) to decimal degrees according to the output of gdalinfo which outputs corner coordinates both in meters and decimal degrees. I thought I could this way make Mapserver understand I was specifying the input in decimal degrees so it should output correctly the point I want to draw. The scalebar also revealed seriously confused. I did not mention that the map is of Antarctica. This apparently complicates the matter since the EXTENT values are different than on most maps. I'm new to this so I haven't got much knowledge about projections. The following two I have used successfully in displaying the map (but not the point): PROJECTION "proj=stere" "ellps=WGS84" "datum=WGS84" "lon_0=0" "lat_0=-90" "lat_ts=-71" "units=m" END PROJECTION "init=esri:102021" END Thanks for your help, Dan 2006/5/5, Ed McNierney : D C - The UNITS and EXTENT in your mapfile need to correspond to the units used in the projection of your data. If they don't, then you're looking to reproject the data and there's some extra work you need to do. gdalinfo will tell you the units and extent in the data source's native projection. Changing those values in the mapfile won't change the input data, and you're simply requesting an output image that doesn't correspond to any part of your input data, so you (correctly) get nothing displayed. What is it you're trying to do? Are you trying to display the image in a different projection than the raster source image is using? If so, what projection does the raster use and what output projection do you want? - 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of d c Sent: Friday, May 05, 2006 5:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster image doesn't show Hello, I just changed the EXTENT of my mapfile which was in METERS to DD. I just wrote down the corresponding decimals which were given by gdalinfo. BEFORE -------------- UNITS METERS EXTENT -3174450 -3225675 2867175 2815950 AFTER ----------- UNITS DD EXTENT -131.5 -56.5 134 -52.3 nb: the map is a raster im. of antarctica The PROBLEM now is that THE MAP DOESN'T SHOW. I don't get an error or anything, the map just doesn't show. Any suggestions? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri May 5 07:58:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 5 May 2006 10:58:47 -0400 Subject: Why do I get this error message when trying to access WFS? In-Reply-To: Message-ID: Brown, Jeff (C2MS) wrote: > I get the following error message when I try to access my WFS resource: > msOGRFileOpen(): OGR error. Open failed for OGR connection > `/ms4w/tmp/ms_tmp/\7bb0d77657833c3f75a5de7149b5572f.tmp.gml'. File not > found or unsupported format. Jeff, It looks like an extra "\" is getting inserted in the path somehow. You might want to check your temporary file path in the WEB object. Perhaps it is in there? Or perhaps you will need to drop the trailing forward slash from there (though that might cause other problems). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From assefa at DMSOLUTIONS.CA Fri May 5 08:31:15 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 5 May 2006 11:31:15 -0400 Subject: Error in drawning labels in SWF MULTIPLE format In-Reply-To: <445A34B7.9020505@post.cz> Message-ID: Martin, I tested the latest mapserver with my test data/fonts and did generate a valid swf with labels. If possible I would like you to send me directly map/data/font causing the crash and I will look into it. Best Regards, Martin Krempl wrote: > Hi, I?have got problems with drawing labels in SWF MULTIPLE format. I > found that problem is in using truetype fonts, I know thate I have to > use fdb fonts to draw labels. So I defined in my font.list some fdb > font, and when I use this font to draw label there is the same result: > Internal server error. > > Here are important fragments from my map file > > LAYER > NAME zastavky > DATA "the_geom from zastavky" > STATUS ON > TYPE POINT > LABELITEM smer > CLASS > NAME "Zeleznice" COLOR 0 0 0 > SYMBOL 'triangle' > SIZE 10 > LABEL > COLOR 0 0 0 > SIZE SMALL > FONT arialfdb > TYPE TRUETYPE > END END > END > > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" > END > > Here is my font.list > ******************** > arial arial.ttf > arial-bold arialbd.ttf > verdana verdana.ttf > tnr Times_New_Roman.fdb > arialfdb Arial.fdb > > fonts are in the same directory as font.list. I have some idea that > problem is, that I use incorrect fdb font set. Could you tell me, where > I found > actually correct fdb font set file, or some others ideas to fix my > problem. Thanks Martin > > PS: > I?m using MapServer 4.8.1, PHP 4.3.11, WinXP or Linux. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Fri May 5 10:38:51 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 5 May 2006 13:38:51 -0400 Subject: Problem displaying svg polylines Message-ID: Hi There, I saw you map.svg and I think what is happening is that your contour line is clipped at the both edges producing an svg poliline which is "corrupted". If that is the reason, you could avoid a clipping on the same line if you set FORMATOPTION "FULL_RESOLUTION=TRUE" in your map file for the svg outputformat. let me know if it works. Best regards. On Wed, 3 May 2006 14:07:46 +0200, almudena rueda wrote: >Hello all > >I've a problem with svg format, I use it to print the map. I generate the >svg map and then I transform ir in pdf format so the user can download it >and print it. > >When I print the lines it seams to be ok, but when a line is cut due to the >zoom, it is displayed with a rect line between the two last points. > >How can I do to avoid this wrong functionality? > >I'm using mapserver v4.6.0 php script under linux. > >To see the error, go to www.munisig.com, here, go to Penagos's logo (on the >bottom right side) >After the display of the main map, select "Curvas de nivel" on the left side >and select "Llanos" in "Ir a" on the center top side. You will see the map >of contour lines. Now if you print it, you'll see the error on the bottom >right side of the map. > >I attach the svg map generated by mapserver. > >Thanks in advance >Almudena > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dark.peony at GMAIL.COM Fri May 5 10:57:39 2006 From: dark.peony at GMAIL.COM (d c) Date: Fri, 5 May 2006 19:57:39 +0200 Subject: drawing a point in MapScript Message-ID: Hi, I'm having a problem with rendering a point with PHP Mapscript. I'm wondering what I'm doing wrong. I'm trying to simulate the following Mapfile code (which works well in Mapfile mode): LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS -64.4333333 -64.7833333 END TEXT "HELLO WORLD" END CLASS COLOR 255 0 0 SYMBOL 'cross' LABEL TYPE bitmap END END TOLERANCE 5 PROJECTION "proj=latlong" "datum=WGS84" END END /********* PHP CODE ***********/ $map = ms_newMapObj("Ant.map"); $layer = ms_newLayerObj($map); $layer->name = 'point'; $layer->type = MS_LAYER_POINT; $layer->status = MS_DEFAULT; $layer->setProjection("proj=latlong,datum=WGS84"); $pt = ms_newPointObj(); $pt->setXY(-64.4333333,-64.7833333); $ln = ms_newLineObj(); $ln->add($pt); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->text = 'HELLO WORLD'; $shp->add($ln); $layer->addFeature($shp); $class1 = ms_newClassObj($layer); $class1->name = 'pointclass'; $class1->label->type = MS_BITMAP; $class1->label->color->setRGB(255,0,0); $class1->label->set('position',MS_AUTO); $class1->status = MS_ON; $class1->settext = 'HELLO WORLD'; $style = ms_newStyleObj($class1); $style->symbolname = 'cross'; $style->color->setRGB(255,0,0); $style->size = 10; $style->outlinecolor->setRGB(255,255,255); $image=$map->draw(); $image->saveImage('C:/ms4w/Apache/htdocs/tmp/'.$image_name); I'm followig (except for the projection bit) the code proposed in Beginning Mapserver and a tutorial I found on the Net. The code seems identical. What am I doing wrong? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcifuentes at SIIGSA.CL Fri May 5 11:10:43 2006 From: pcifuentes at SIIGSA.CL (Patricio Cifuentes Ithal) Date: Fri, 5 May 2006 14:10:43 -0400 Subject: drawing a point in MapScript Message-ID: Hi all.... View my build proyects, in CHILE... with MapServer and Postgis... and more functions... is very goods. LINK.... http://datum.siigsa.cl the very important is ... the data catografics, is in repository "geo-datawarehouse".... postgres 7.4.8.... size 4,6 GB now. AND model relational oriented a objects data, after suscribe in the site and upload your shape, and contents. bye. -- Patricio Cifuentes Ithal Ingeniero en Inform?tica Inform?tica SIIGSA (56-2) 204 60 22 ----- Original Message ----- From: d c To: MAPSERVER-USERS at lists.umn.edu Sent: Friday, May 05, 2006 1:57 PM Subject: [UMN_MAPSERVER-USERS] drawing a point in MapScript Hi, I'm having a problem with rendering a point with PHP Mapscript. I'm wondering what I'm doing wrong. I'm trying to simulate the following Mapfile code (which works well in Mapfile mode): LAYER TYPE POINT STATUS DEFAULT FEATURE POINTS -64.4333333 -64.7833333 END TEXT "HELLO WORLD" END CLASS COLOR 255 0 0 SYMBOL 'cross' LABEL TYPE bitmap END END TOLERANCE 5 PROJECTION "proj=latlong" "datum=WGS84" END END /********* PHP CODE ***********/ $map = ms_newMapObj("Ant.map"); $layer = ms_newLayerObj($map); $layer->name = 'point'; $layer->type = MS_LAYER_POINT; $layer->status = MS_DEFAULT; $layer->setProjection("proj=latlong,datum=WGS84"); $pt = ms_newPointObj(); $pt->setXY(-64.4333333,-64.7833333); $ln = ms_newLineObj(); $ln->add($pt); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->text = 'HELLO WORLD'; $shp->add($ln); $layer->addFeature($shp); $class1 = ms_newClassObj($layer); $class1->name = 'pointclass'; $class1->label->type = MS_BITMAP; $class1->label->color->setRGB(255,0,0); $class1->label->set('position',MS_AUTO); $class1->status = MS_ON; $class1->settext = 'HELLO WORLD'; $style = ms_newStyleObj($class1); $style->symbolname = 'cross'; $style->color->setRGB(255,0,0); $style->size = 10; $style->outlinecolor->setRGB(255,255,255); $image=$map->draw(); $image->saveImage('C:/ms4w/Apache/htdocs/tmp/'.$image_name); I'm followig (except for the projection bit) the code proposed in Beginning Mapserver and a tutorial I found on the Net. The code seems identical. What am I doing wrong? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From cropwithdawn at COX.NET Fri May 5 13:07:33 2006 From: cropwithdawn at COX.NET (cropwithdawn) Date: Fri, 5 May 2006 16:07:33 -0400 Subject: Why do I get this error message when trying to access WFS? Message-ID: Frank I'm running MapServer on Windows 2000 Professional. I found out that msOWSBuildURLFilename() in mapows.c adds a backslash character. See following snippet: #ifdef _WIN32 sprintf(pszBuf, "%s\\", pszPath); #else sprintf(pszBuf, "%s/", pszPath); #endif I think this is what's messing things up. My mapfile works fine for WMS and the GML file mentioned in the error message is being created in the appropriate directory. Is this a bug? If so, what's the work around? If not, what am I doing wrong? Thanks! JAB ----- Original Message ----- From: "Brown, Jeff (C2MS)" To: Sent: Friday, May 05, 2006 11:12 AM Subject: For JAB: FW: [UMN_MAPSERVER-USERS] Why do I get this error message when trying to access WFS? -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Friday, May 05, 2006 10:59 AM To: Brown, Jeff (C2MS) Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Why do I get this error message when trying to access WFS? Brown, Jeff (C2MS) wrote: > I get the following error message when I try to access my WFS resource: > msOGRFileOpen(): OGR error. Open failed for OGR connection > `/ms4w/tmp/ms_tmp/\7bb0d77657833c3f75a5de7149b5572f.tmp.gml'. File not > found or unsupported format. Jeff, It looks like an extra "\" is getting inserted in the path somehow. You might want to check your temporary file path in the WEB object. Perhaps it is in there? Or perhaps you will need to drop the trailing forward slash from there (though that might cause other problems). Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Tim.Pascoe at EC.GC.CA Fri May 5 13:52:15 2006 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Fri, 5 May 2006 16:52:15 -0400 Subject: OGR and Filter Message-ID: I currently use a simple virtual layer produced using OGR, to map points in mapserver from a SQL-Server query. I seem to recall an e-mail I received some time ago, which indicated that the latest version of OGR, 1.3, provided for a filter parameter to be passed to limit the results returned. Unfortunately, I can't find the e-mail, so I'm unsure if I'm remembering incorrectly or not. If this is indeed the case, could someone perhaps give me a quick example as to how this could be achieved? I am currently using Mapserver 4.8, Chameleon 2.4, and OGR 1.3 in the application, running on a Windows 2003 server. Thanks, Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Fri May 5 14:17:08 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 5 May 2006 14:17:08 -0700 Subject: New to WMS, need some help In-Reply-To: <445B017D.7060500@xs4all.nl> Message-ID: Thanks for your reply bart, i have one more question, is there a way to store the map generated by wms for a later use .... Thanks again for your time ... "Bart van den Eijnden (OSGIS)" wrote: Mapserver WMS does not store the map image in a temp dir. It is streamed back to the client. Best regards, Bart rock well wrote: > Hi i am trying to learn about WMS, so i read the documentation in the > mapserver website, i was wondering like mapserver stores the jpeg file > into a temp directory which we specify in the mapfile does WMS store > the image i couldnt find the image stored in the temp directory .... > Thanks for your time ... > > Get amazing travel prices for air and hotel in one click on Yahoo! > FareChase > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dark.peony at GMAIL.COM Fri May 5 14:25:43 2006 From: dark.peony at GMAIL.COM (d c) Date: Fri, 5 May 2006 23:25:43 +0200 Subject: drawing a point in MapScript In-Reply-To: <000a01c6706e$799996a0$322111ac@siigsa.cl> Message-ID: Thanks for answering, Patricio, but that doesn't seem to resolve the problem. I adapted the minor differences and yet the point is not displayed... 2006/5/5, Patricio Cifuentes Ithal : > > Hi all.... > here a example.... > > php-mapscript.... PHP code > > > /*ms_ResetErrorList();*/ > /*LEYENDA DE CREDITOS**************************************************/ > $lay=ms_newLayerObj($map); > $lay->set("name", "CREDITOS"); > $lay->set("status",MS_ON); > $lay->set("transparency","100"); > $lay->set("transform",MS_TRUE); > $lay->set("type",MS_LAYER_ANNOTATION); > > $clas=ms_newClassObj($lay); > $clas->label->set("type",MS_TRUETYPE); > $clas->label->set("font","fritqat-bold"); > $clas->label->color->setRGB(0,130,150); > $clas->label->outlinecolor->setRGB(255,255,255); > //$clas->label->backgroundcolor->setRGB(245,245,245); > //$clas->label->backgroundshadowcolor->setRGB(110,110,110); > $clas->label->set("size",7); > $clas->label->set("position",MS_XY); > $clas->label->set("autoangle",MS_FALSE); > $clas->label->set("buffer",0); > $clas->label->set("antialias",MS_TRUE); > $clas->label->set("partials",MS_TRUE); > $clas->label->set("force",MS_TRUE); > $clas->label->set("wrap",1); > > //transfor the pixel to geografics pont > $p=pixelToGeo($map,5,$map->height - 5); > $pt=ms_newLineObj(); > $pt->addXY($p->x,$p->y); > ///or replace for coord... geografics ($pt->addXY($p->x,$p->y);) > > > $shp = ms_newShapeObj(MS_SHAPE_POINT); > $shp->set("text", GV_COPY); > $shp->add($pt); > > $lay->addFeature($shp); > > > -- > > Patricio Cifuentes Ithal > Ingeniero en Inform?tica > > Inform?tica > SIIGSA > (56-2) 204 60 22 > > ----- Original Message ----- > *From:* d c > *To:* MAPSERVER-USERS at lists.umn.edu > *Sent:* Friday, May 05, 2006 1:57 PM > *Subject:* [UMN_MAPSERVER-USERS] drawing a point in MapScript > > Hi, > > I'm having a problem with rendering a point with PHP Mapscript. > I'm wondering what I'm doing wrong. I'm trying to simulate the > following Mapfile code (which works well in Mapfile mode): > > LAYER > TYPE POINT > STATUS DEFAULT > FEATURE > POINTS > -64.4333333 -64.7833333 > END > TEXT "HELLO WORLD" > END > CLASS > COLOR 255 0 0 > SYMBOL 'cross' > LABEL > TYPE bitmap > END > END > TOLERANCE 5 > PROJECTION > "proj=latlong" > "datum=WGS84" > END > END > > > /********* PHP CODE ***********/ > > $map = ms_newMapObj("Ant.map"); > > $layer = ms_newLayerObj($map); > $layer->name = 'point'; > $layer->type = MS_LAYER_POINT; > $layer->status = MS_DEFAULT; > $layer->setProjection("proj=latlong,datum=WGS84"); > > $pt = ms_newPointObj(); > $pt->setXY(-64.4333333,-64.7833333); > $ln = ms_newLineObj(); > $ln->add($pt); > > $shp = ms_newShapeObj(MS_SHAPE_POINT); > $shp->text = 'HELLO WORLD'; > $shp->add($ln); > > $layer->addFeature($shp); > > > $class1 = ms_newClassObj($layer); > $class1->name = 'pointclass'; > $class1->label->type = MS_BITMAP; > $class1->label->color->setRGB(255,0,0); > $class1->label->set('position',MS_AUTO); > $class1->status = MS_ON; > $class1->settext = 'HELLO WORLD'; > > > $style = ms_newStyleObj($class1); > $style->symbolname = 'cross'; > $style->color->setRGB(255,0,0); > $style->size = 10; > $style->outlinecolor->setRGB(255,255,255); > > > $image=$map->draw(); > > $image->saveImage('C:/ms4w/Apache/htdocs/tmp/'.$image_name); > > I'm followig (except for the projection bit) the code proposed in > Beginning Mapserver and a tutorial I found on the Net. The code > seems identical. > > What am I doing wrong? > > Dan > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgis.lists at GMAIL.COM Fri May 5 16:52:52 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 5 May 2006 18:52:52 -0500 Subject: New to WMS, need some help In-Reply-To: <20060505211708.21746.qmail@web36207.mail.mud.yahoo.com> Message-ID: You could always right click on the image and click "save image as..." On 5/5/06, rock well wrote: > > Thanks for your reply bart, i have one more question, is there a way to > store the map generated by wms for a later use .... > > Thanks again for your time ... > > > > "Bart van den Eijnden (OSGIS)" wrote: > > Mapserver WMS does not store the map image in a temp dir. It is streamed > back to the client. > > Best regards, > Bart > > rock well wrote: > > > Hi i am trying to learn about WMS, so i read the documentation in the > > mapserver website, i was wondering like mapserver stores the jpeg file > > into a temp directory which we specify in the mapfile does WMS store > > the image i couldnt find the image stored in the temp directory .... > > Thanks for your time ... > > > > Get amazing travel prices for air and hotel in one click on Yahoo! > > FareChase > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > > > ________________________________ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1?/min. > > From chrisg at BIOLOGY.USU.EDU Fri May 5 17:15:46 2006 From: chrisg at BIOLOGY.USU.EDU (Chris Garrard) Date: Fri, 5 May 2006 18:15:46 -0600 Subject: displaying rasters with negative pixel values Message-ID: Hi all, I have a raster data set that has values from -7 to 10 (mean minimum temps C). I can't get any of the pixels with values less than -1 to display in mapserver. I have tried using the processing directive to scale the values and I've tried specifying classes, and neither works. I have also tried different file formats (geotiffs and erdas .img). Anyone know why this isn't working? I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. Thanks for any ideas, Chris From condit at SDSC.EDU Fri May 5 17:59:19 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Fri, 5 May 2006 17:59:19 -0700 Subject: displaying rasters with negative pixel values Message-ID: Hi Chris- Can you send your map file? I've had great success with negative raster values when defining my own classes (Sea temperature GeoTIFF / AAI Grid, for instance). -Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Garrard Sent: Friday, May 05, 2006 5:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] displaying rasters with negative pixel values Hi all, I have a raster data set that has values from -7 to 10 (mean minimum temps C). I can't get any of the pixels with values less than -1 to display in mapserver. I have tried using the processing directive to scale the values and I've tried specifying classes, and neither works. I have also tried different file formats (geotiffs and erdas .img). Anyone know why this isn't working? I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. Thanks for any ideas, Chris From dark.peony at GMAIL.COM Sat May 6 03:13:38 2006 From: dark.peony at GMAIL.COM (d c) Date: Sat, 6 May 2006 12:13:38 +0200 Subject: Projection issue in Mapscript vs Mapfile Message-ID: Hi listers, I want to set the following projection (which works perfectly in the mapfile) dynamically in Mapscript. PROJECTION "proj=stere" "ellps=WGS84" "datum=WGS84" "lon_0=0" "lat_0=-90" "lat_ts=-71" "units=m" END ------ MapScript ---------------- $map->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0, lat_0=-90, lat_ts=-71, units=m"); - or - $layer->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0, lat_0=-90, lat_ts=-71, units=m"); ------- Error ----------------------- Fatal error: [MapServer Error]: msProcessProjection(): major axis or radius = 0 or not given in .....php ----------------------------------------- The parameters are identical: What's the problem? Doc help on this subject is scarce... I've tried to add several more parameters specified on the Proj4 site, for this projection (x_0 = 0, y_0=0, k_0=1.0) to no avail. Any suggestions extremely welcome, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From grabiel at MYWAY.COM Sat May 6 05:54:23 2006 From: grabiel at MYWAY.COM (grabiel) Date: Sat, 6 May 2006 08:54:23 -0400 Subject: Plz Help in OGR and MYSQL Message-ID: Hi Using command line option i can able to join the shape file and mysql table and displaying the data. The command --> > ogrinfo /usr/local/apache/htdocs/n_state.shp -sql "SELECT * from >n_state LEFT >JOIN 'MYSQL:test,host=localhost,user=root,table=nsdata'.nsdata ON >n_state.st_nm=nsdata.name" But when i try to access the same from the map file it showing no resuls or the number of results is zero. Where is the problem? Plz. share ur experience. Grabiel --- On Thu 05/04, Frank Warmerdam < warmerdam at pobox.com > wrote: From: Frank Warmerdam [mailto: warmerdam at pobox.com] To: grabiel at MYWAY.COM Cc: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 04 May 2006 09:04:31 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Plz Help in OGR and MYSQL grabiel wrote:
> connectiontype ogr
> connection "n_state.shp"
> DATA "SELECT * from nsdata left join 'MYSQL:test,
> host=localhost, user=root'.nsdata ON n_state.st_nm=nsdata.name"
> END
> END
>

Grabriel,

I think you want:

SELECT * from n_state LEFT JOIN ...

The n_state player (from the shapefile) is the primary table.

You should be able to test the left join from ogrinfo as well using
the -sql command option.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org

_______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From raffle80 at YAHOO.CO.UK Sat May 6 06:07:23 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Sat, 6 May 2006 14:07:23 +0100 Subject: Help needed in Raster/World file Message-ID: Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle --------------------------------- To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Sat May 6 06:51:33 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 6 May 2006 09:51:33 -0400 Subject: Help needed in Raster/World file Message-ID: Raffle - Zero is a perfectly nice number! There's nothing wrong with 0.0 in your world file, especially in the second and third lines. For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0. A world file will often look like: 100.0 0.0 0.0 -100.0 12345.67 987654.32 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Saturday, May 06, 2006 9:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle ________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre . -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sat May 6 07:42:54 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 6 May 2006 10:42:54 -0400 Subject: Projection issue in Mapscript vs Mapfile In-Reply-To: <6fe6359e0605060313s304f579ewd73939c52d4118a3@mail.gmail.com> Message-ID: d c wrote: > Hi listers, > > I want to set the following projection (which works perfectly in the > mapfile) > dynamically in Mapscript. > > PROJECTION > "proj=stere" > "ellps=WGS84" > "datum=WGS84" > "lon_0=0" > "lat_0=-90" > "lat_ts=-71" > "units=m" > END > > ------ MapScript ---------------- > > $map->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0, > lat_0=-90, lat_ts=-71, units=m"); > - or - > $layer->setProjection("proj=stere, ellps=WGS84, datum=WGS84, lon_0=0, > lat_0=-90, lat_ts=-71, units=m"); > > ------- Error ----------------------- > > Fatal error: [MapServer Error]: msProcessProjection(): major axis or > radius = 0 or not given in .....php Dan, The above may be an acceptable syntax for MapScript setProjection, but I would like to encourage people to use the same syntax as on the PROJ command line. eg. $map->setProjection("+proj=stere +ellps=WGS84 +datum=WGS84 +lon_0=0 +lat_0=-90 +lat_ts=-71 +units=m"); The error message suggests the ellipse setting was not being successfully parsed. If you still can't get it working with the above syntax, file a bug in bugzilla but make sure it gets assigned to me (warmerdam at pobox.com) and I'll dig through the PHP, mapserver and proj logic to see what is happening. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From warmerdam at POBOX.COM Sat May 6 08:25:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 6 May 2006 11:25:45 -0400 Subject: OGR and Filter In-Reply-To: <2576812186CDD411BF1500508B6DCE950E196DF7@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Pascoe,Tim [Burlington] wrote: > I currently use a simple virtual layer produced using OGR, to map points > in mapserver from a SQL-Server query. I seem to recall an e-mail I > received some time ago, which indicated that the latest version of OGR, > 1.3, provided for a filter parameter to be passed to limit the results > returned. Unfortunately, I can?t find the e-mail, so I?m unsure if I?m > remembering incorrectly or not. > > If this is indeed the case, could someone perhaps give me a quick > example as to how this could be achieved? I am currently using Mapserver > 4.8, Chameleon 2.4, and OGR 1.3 in the application, running on a Windows > 2003 server. Tim, OGR 1.3 isn't very specific. The previous public release was GDAL/OGR 1.3.1 and I just released GDAL/OGR 1.3.2 a day or two ago. I believe the logic to pass spatial constraints through the OGR virtual driver to ODBC drivers as a WHERE clause on the X/Y columns was added after GDAL/OGR 1.3.1. So to use it, you would need 1.3.2. Some intermediate builds (such as recent MS4W binaries) should also include this capability. At the mapserver level you shouldn't need to do anything special. It should just "kick in" automatically. For context you would need to be using point data from a non-spatial data source (such as SQLServer via ODBC) through the OGR virtual driver (like in the VirtualSpatialData tutorial for mapserver). OGR VRT is sometimes referred to as "OVF". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ed at TOPOZONE.COM Sun May 7 05:08:08 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 7 May 2006 08:08:08 -0400 Subject: Help needed in Raster/World file Message-ID: Raffle - gdalinfo is telling you that the upper left corner is at (-521, -371) but you've put (-521, 371) in your tfw file. Given your coordinates that shouldn't matter much, however. Could you post your MAP file so we can see the EXTENT and other settings you're using? That's a somewhat unusual-looking raster image, but it should be OK if set up properly. - Ed Ed McNierney TopoZone.com ________________________________ From: raffle peter [mailto:raffle80 at yahoo.co.uk] Sent: Sunday, May 07, 2006 4:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi Yeha thats fine and i ahve used the values from my gdainfo to .tfw file but it all the same. But if i use the mapserver demo application's .tif file(Which is anyway not similar to projection that i am using) it is coming in the browser along with other layer. So i assume my values in the .tfw files are wrong. I have given the output of gdalinfo as well as the .tfw file below. @localhost# gdalinfo test.tif > Driver .... > Size is 1042, 722 > Coordinate System is `' > Origin = (-521.000000, -371.000000) > Pixel Size = (1042.0000000, 742.0000000) >Metadata: >TIFF......... >........ >........ >TIFFFLAGXRESOLUTION = 96 >TIFFFLAGYRESOLUTION = 96 >TIFFFLAG-RESOLUTIONUNIT=2(PIXEL/INCH) >Corner Co-ordinates: > Upper left(-521.000, -371.000) > Lower left(-521.000, 535353.000) >Upper right(1085243.000, -371.000) >Lower Right(1085243.000, 535353.000) >center(542361.000, 267491.000) And My test.tfw file for test.tif is something like this--> 1042.0 0.0 0.0 742.0 -521 371 I have not used any projection statement in my mapfile/phpmapscript. Plz. guide me. Raffle On Sat, 06 May 2006 Ed McNierney wrote : >Raffle - > >Zero is a perfectly nice number! There's nothing wrong with 0.0 in your >world file, especially in the second and third lines. For the vast >majority of raster images you will find that the fourth line is the same >as the first line with the sign reversed, and the second and third lines >are 0.0. A world file will often look like: > >100.0 >0.0 >0.0 >-100.0 >12345.67 >987654.32 > > - Ed >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >Phone: +1 (978) 251-4242 >Fax: +1 (978) 251-1396 >ed at topozone.com > > >________________________________ > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of raffle peter >Sent: Saturday, May 06, 2006 9:07 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file > > > > Hi > I am trying to include a .tif file for raster background. For that >i have to write a .tfw(world file) for the corresponding .tif file. The >information that i need to put in the world file are X, Y Pixel size, >rotational co-efficient and X, Y location of the center of the top left >pixel. I am trying to find these values by using gdalinfo-- but some >values are 0.0 >in their corresponding field. > Can anyone plz help me, how to get/set these values for the world >file so that i can >keep my raster data georeferenced with other layers in my mapfile. > >Thanks in advance >Raffle > > >________________________________ > >To help you stay safe and secure online, we've developed the all new >Yahoo! Security Centre >/uk.security.yahoo.com/> . Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From amokerk at POST.CZ Sun May 7 07:25:37 2006 From: amokerk at POST.CZ (Martin Krempl) Date: Sun, 7 May 2006 16:25:37 +0200 Subject: Problems with using FDB fonts Message-ID: Hi, I?m trying to make a SWF-MULTIPLE output from MapServer with labels. I know, that I have to use FDB fontset. So I downloaded program to convert TRUETYPE fonts to FDB fonts (ttf2fft, makefdb). When I use new fonts to make a layer, Mapserver reports internal server error and no layer is created. But when I use Ming-Fonts package includes the Bitstream Vera font family, which I downloaded from http://www.opaque.net/wiki/index.php?MingFAQ mapserver creates SWF layer with labels. I need use another font such as Arial or some other. Have anyone some ideas where is problem or how can I correctly convert TRUETYPE to FDB fontset. Thanks Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: amokerk.vcf Type: text/x-vcard Size: 120 bytes Desc: not available URL: From dpinte at ITAE.BE Sun May 7 10:09:00 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 7 May 2006 19:09:00 +0200 Subject: mapscript question Message-ID: Hi, When querying a layer in a mapfile using queryByAttributes(), is the query parameters saved when displaying the map ? It does not seem to be the case. Example: mymap = mapscript.mapObj('.../test.map') mylayer = mymap.getLayerByName('alayer') res = mylayer.queryByAttributes(mymap, 'vid', 'vid == 10', mapscript.MS_MULTIPLE) if res = mapscript.MS_SUCCESS: mymap.draw() How can I do that ? Do I have to get the results in the resultsets and add them to a new dynamic layer ? Thanks for your help Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From dpinte at ITAE.BE Sun May 7 10:17:23 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 7 May 2006 19:17:23 +0200 Subject: mapscript question In-Reply-To: <1147021740.5076.3.camel@geru-itae> Message-ID: Le dimanche 07 mai 2006 ? 19:09 +0200, Didrik Pinte a ?crit : > Hi, > > When querying a layer in a mapfile using queryByAttributes(), is the > query parameters saved when displaying the map ? It does not seem to be > the case. > > Example: > > mymap = mapscript.mapObj('.../test.map') > mylayer = mymap.getLayerByName('alayer') > res = mylayer.queryByAttributes(mymap, 'vid', 'vid == 10', > mapscript.MS_MULTIPLE) > if res = mapscript.MS_SUCCESS: > mymap.draw() > > How can I do that ? Do I have to get the results in the resultsets and > add them to a new dynamic layer ? > > Thanks for your help > > Didrik I've tested the drawQuery method but it does hilight the results AND show the non selected points. I'm trying to get only the selected points. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From dpinte at ITAE.BE Sun May 7 10:53:26 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 7 May 2006 19:53:26 +0200 Subject: mapscript question In-Reply-To: <1147022243.5076.7.camel@geru-itae> Message-ID: Le dimanche 07 mai 2006 ? 19:17 +0200, Didrik Pinte a ?crit : > Le dimanche 07 mai 2006 ? 19:09 +0200, Didrik Pinte a ?crit : > > Hi, > > > > When querying a layer in a mapfile using queryByAttributes(), is the > > query parameters saved when displaying the map ? It does not seem to be > > the case. > > > > Example: > > > > mymap = mapscript.mapObj('.../test.map') > > mylayer = mymap.getLayerByName('alayer') > > res = mylayer.queryByAttributes(mymap, 'vid', 'vid == 10', > > mapscript.MS_MULTIPLE) > > if res = mapscript.MS_SUCCESS: > > mymap.draw() > > > > How can I do that ? Do I have to get the results in the resultsets and > > add them to a new dynamic layer ? > > > > Thanks for your help > > > > Didrik > > > I've tested the drawQuery method but it does hilight the results AND > show the non selected points. I'm trying to get only the selected > points. > > Didrik Here is the answer ;-) Setting the QUERYMAP STYLE to SELECTED in place of HILITE solved the problem. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From ben at REMOTEINFORMATION.COM.AU Sun May 7 19:18:40 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 8 May 2006 10:18:40 +0800 Subject: php-Mapscript 4.8.3 breaking php.exe Message-ID: I have an intermittent problem where I produce a map using php- mapscript, , save the imagefile and the mapfile, display the map (in a form) and finish up the page, but although my entire page displays, the server machine (Win XP SP2 / ms4w (latest release - Apache 2.0.55 / php 4.4.3-dev / php-Mapscript 4.8.3)) displays an error : php.exe - Application Error The instruction at "0x7c91103c" referenced memory at "0x02660928". The memory could not be "written". Click on OK to terminate the program [ OK ] the page loading "hangs", and the server won't accept any further commands until I click on the OK button. It is intermittent, I gather it might be a memory management issue with php, and while I suspect this may be a php / apache problem, I wonder if anyone else has seen this issue. I have been using the latest ms4w release since the day after Howard posted it, but only php-mapscript since Thursday, and have only been seeing this since then. I have looked through php but couldn't find anything , so php- mapscript has to be my first enquiry. I couldn't find anything in the mapserver archives, but I rarely seem to be able to. The mapfile has a fairly long but very straightforward regex to code countries different colours based on a status retrieved from a database, and then a default string for any without a status. Regardless, the map is rendering properly and the html is displaying OK. I can supply the mapfile if that would help, but don't want to clog up the list. cheers Ben -- Ben Madin Remote Information Pty Ltd Broome WA 6725 t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From Jacob.Delfos at MAUNSELL.COM Sun May 7 19:36:04 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 8 May 2006 10:36:04 +0800 Subject: php-Mapscript 4.8.3 breaking php.exe Message-ID: Ben, Sounds like you may have run into this bug: http://bugzilla.maptools.org/show_bug.cgi?id=1409 I think new binaries have been put on the MS4W site. These binaries have been compiled differently from the Dmsolutions ones, so be careful you don't mix DLL's. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin > Sent: 8 May 2006 10:19 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] php-Mapscript 4.8.3 breaking php.exe > > I have an intermittent problem where I produce a map using php- > mapscript, , save the imagefile and the mapfile, display the map (in > a form) and finish up the page, but although my entire page > displays, > the server machine (Win XP SP2 / ms4w (latest release - Apache > 2.0.55 / php 4.4.3-dev / php-Mapscript 4.8.3)) displays an error : > > php.exe - Application Error > > The instruction at "0x7c91103c" referenced memory at "0x02660928". > The memory could not be "written". > > Click on OK to terminate the program > > [ OK ] > > the page loading "hangs", and the server won't accept any further > commands until I click on the OK button. > > It is intermittent, I gather it might be a memory management issue > with php, and while I suspect this may be a php / apache problem, I > wonder if anyone else has seen this issue. I have been using the > latest ms4w release since the day after Howard posted it, but only > php-mapscript since Thursday, and have only been seeing this since > then. I have looked through php but couldn't find anything , so php- > mapscript has to be my first enquiry. > > I couldn't find anything in the mapserver archives, but I > rarely seem > to be able to. > > The mapfile has a fairly long but very straightforward regex to code > countries different colours based on a status retrieved from a > database, and then a default string for any without a status. > > Regardless, the map is rendering properly and the html is > displaying OK. > > I can supply the mapfile if that would help, but don't want to clog > up the list. > > cheers > > Ben > > -- > > Ben Madin > > Remote Information Pty Ltd > Broome WA 6725 > > t/f: 08 9192 5535 > m: 0448 887 220 > ben at remoteinformation.com.au > From funkbucket at GMAIL.COM Sun May 7 21:14:36 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Sun, 7 May 2006 22:14:36 -0600 Subject: Font Error - msGetLabelSize() Message-ID: (Apologies if this is going out twice, I got an error when I tried to send it the first time, this is my first time posting to the list) Hi- I am new to this and trying to set up my first map server on a linux box. When I try to use trutype font labels for my legend I get the following error: msGetLabelSize(): TrueType Font error. Requested font (courier) not found. This also occurs if I change the font to say arial: msGetLabelSize(): TrueType Font error. Requested font (arial) not found. My legend is as follows: LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "courier" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END Commenting out TYPE and FONT and changing SIZE to small gets rid of the error. I am not sure if this is a typo, permissions, path, or some other issue. My fontset.txt, and an ls of the font directory and my map file are below. Any help would be appreciated. ====================================== [root at localhost home]# ls /usr/share/fonts/webcore/ andalemo.ttf courbd.ttf georgiai.ttf tahomabd.ttf trebucit.ttf arialbd.ttf courbi.ttf georgia.ttf tahoma.ttf trebuc.ttf arialbi.ttf couri.ttf georgiaz.ttf timesbd.ttf verdanab.ttf ariali.ttf cour.ttf impact.ttf timesbi.ttf verdanai.ttf arial.ttf fonts.cache-1 l_10646.ttf timesi.ttf verdana.ttf ariblk.ttf fonts.dir lucon.ttf times.ttf verdanaz.ttf comicbd.ttf fonts.scale micross.ttf trebucbd.ttf webdings.ttf comic.ttf georgiab.ttf symbol.ttf trebucbi.ttf wingding.ttf [root at localhost home] ====================================== arial /usr/share/fonts/webcore/arial.ttf arial-bold /usr/share/fonts/webcore/arialbd.ttf arial-italic /usr/share/fonts/webcore/ariali.ttf arial-bold-italic /usr/share/fonts/webcore/arialbi.ttf arial_black /usr/share/fonts/webcore/ariblk.ttf comic_sans /usr/share/fonts/webcore/comic.ttf comic_sans-bold /usr/share/fonts/webcore/comicbd.ttf courier /usr/share/fonts/webcore/cour.ttf courier-bold /usr/share/fonts/webcore/courbd.ttf courier-italic /usr/share/fonts/webcore/couri.ttf courier-bold-italic /usr/share/fonts/webcore/courbi.ttf georgia /usr/share/fonts/webcore/georgia.ttf georgia-bold /usr/share/fonts/webcore/georgiab.ttf georgia-italic /usr/share/fonts/webcore/georgiai.ttf georgia-bold-italic /usr/share/fonts/webcore/georgiaz.ttf impact /usr/share/fonts/webcore/impact.ttf monotype.com /usr/share/fonts/webcore/monotype.ttf recreation_symbols /usr/share/fonts/webcore/recreate.ttf times /usr/share/fonts/webcore/times.ttf times-bold /usr/share/fonts/webcore/timesbd.ttf times-italic /usr/share/fonts/webcore/timesi.ttf times-bold-italic /usr/share/fonts/webcore/timesbi.ttf trebuchet_ms /usr/share/fonts/webcore/trebuc.ttf trebuchet_ms-bold /usr/share/fonts/webcore/trebucbd.ttf trebuchet_ms-italic /usr/share/fonts/webcore/trebucit.ttf trebuchet_ms-bold-italic /usr/share/fonts/webcore/trebucbi.ttf verdana /usr/share/fonts/webcore/verdana.ttf verdana-bold /usr/share/fonts/webcore/verdanab.ttf verdana-italic /usr/share/fonts/webcore/verdanai.ttf verdana-bold-italic /usr/share/fonts/webcore/verdanaz.ttf ====================================== NAME "AppDesign3" UNITS meters SIZE 640 480 IMAGECOLOR 255 255 255 IMAGETYPE png SHAPEPATH "/data/" #Bottom left, upper right EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 FONTSET "/usr/local/apache2/htdocs/fontset.txt" WEB HEADER "/usr/local/apache2/htdocs/appdesign3_web_header.html" FOOTER "/usr/local/apache2/htdocs/appdesign3_web_footer.html" EMPTY "/appdesign3_no_results.html" TEMPLATE "/usr/local/apache2/htdocs/appdesign3.html" IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END SYMBOL NAME "triangle" TYPE vector POINTS 0 4 2 0 4 4 0 4 END END REFERENCE IMAGE "/data/colorado_ref_map.gif" SIZE 300 225 EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 STATUS on COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS on STYLE hilite COLOR 255 0 0 SIZE 480 320 END SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 255 255 IMAGECOLOR 255 255 255 COLOR 0 0 0 OUTLINECOLOR 0 0 0 TRANSPARENT off END LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "courier" COLOR 0 0 0 SIZE 10 #SIZE small ANTIALIAS true END END LAYER NAME "USGS_Index" STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from usgs_index" HEADER "/usr/local/apache2/htdocs/appdesign3_index_header.html" FOOTER "/usr/local/apache2/htdocs/appdesign3_index_footer.html" TOLERANCE 100 TOLERANCEUNITS meters LABELCACHE on LABELITEM 'QUAD_NAME' LABELMAXSCALE 250000 CLASS NAME "USGS Index" TEMPLATE "/usr/local/apache2/htdocs/appdesign3_index_query.html" STYLE OUTLINECOLOR 0 255 0 END LABEL COLOR 0 255 0 SIZE small POSITION cc END # label END # class END # layer LAYER NAME "Counties" STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from counties" LABELCACHE on LABELITEM "CNTY_NAME" LABELMINSCALE 250000 CLASS NAME "Counties" STYLE SIZE 1 OUTLINECOLOR 0 0 255 END LABEL #MINFEATURESIZE auto COLOR 0 0 255 SIZE small POSITION cc END # label END # class END # layer LAYER NAME "Cities" STATUS on TYPE point CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from cities" LABELCACHE on LABELITEM "name" LABELMAXSCALE 100000 MAXSCALE 1000000 CLASS STYLE COLOR 255 0 0 SYMBOL 'triangle' SIZE 5 END LABEL COLOR 250 0 0 SIZE small POSITION auto END END # class END # layer states LAYER NAME "Highways" STATUS on TYPE line CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from highways" LABELCACHE on #LABELITEM "ROUTE" CLASS NAME "Highways" STYLE SIZE 1 COLOR 0 0 0 END # LABEL # COLOR 0 0 0 # SIZE small # END # label END # class END # layer END # mapfile From ben at REMOTEINFORMATION.COM.AU Sun May 7 22:16:59 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 8 May 2006 13:16:59 +0800 Subject: ms4w 1.5.2 - unable to get mapserv.exe or php_mapscript_48.dll to work Message-ID: I have just downloaded the latest ms4w (1.5.2) and after installation (at c:\ms4w\) I get phpinfo() without trouble. However, when I click on mapserv.exe I get the following message in the error log : Premature end of script headers: mapserv.exe, referer : http:// 10.0.1.2/index.phtml When I follow http://10.0.1.2/phpinfo_mapscript_48.php I get : Warning: dl() [function.dl.html]: Unable to load dynamic library '/ ms4w/Apache/php/extensions/php_mapscript_48.dll' - The specified module could not be found. in C:\ms4w\Apache\htdocs \phpinfo_mapscript_48.php on line 2 as the library is in this location, I assume that this is a problem related to Mapserver above. thank you. cheers Ben -- Ben Madin Remote Information Pty Ltd t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From Jacob.Delfos at MAUNSELL.COM Sun May 7 22:22:56 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 8 May 2006 13:22:56 +0800 Subject: ms4w 1.5.2 - unable to get mapserv.exe or php_mapscript_48.dll to work Message-ID: Hi Ben, You have to be very careful with the DLL's. The error you get probably means php_mapscript_48.dll is tryin to link to a DLL it is not compatible with. Try to use the dependency walker (www.dependencywalker.com) to find out which one it is (execute "depends.exe php_mapscript_48.dll" in a command line window) As I mentioned, the DLL's from MS4W are not compatible with those from DMSolutions. Also, certain DLL's must be in the executable path in order for them to work (just the system path may not be sufficient). For example, gdal13.dll and the ER Mapper DLL's (and some others) probably have to sit in the same directory as php-cgi.exe. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin > Sent: 8 May 2006 13:17 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] ms4w 1.5.2 - unable to get > mapserv.exe or php_mapscript_48.dll to work > > I have just downloaded the latest ms4w (1.5.2) and after > installation > (at c:\ms4w\) I get phpinfo() without trouble. > > However, when I click on mapserv.exe I get the following message in > the error log : > > Premature end of script headers: mapserv.exe, referer : http:// > 10.0.1.2/index.phtml > > > When I follow http://10.0.1.2/phpinfo_mapscript_48.php > > I get : > > Warning: dl() [function.dl.html]: Unable to load dynamic library '/ > ms4w/Apache/php/extensions/php_mapscript_48.dll' - The specified > module could not be found. in C:\ms4w\Apache\htdocs > \phpinfo_mapscript_48.php on line 2 > > as the library is in this location, I assume that this is a problem > related to Mapserver above. > > thank you. > > cheers > > Ben > > > -- > > Ben Madin > > Remote Information Pty Ltd > > t/f: 08 9192 5535 > m: 0448 887 220 > ben at remoteinformation.com.au > From ben at REMOTEINFORMATION.COM.AU Sun May 7 23:13:37 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Mon, 8 May 2006 14:13:37 +0800 Subject: ms4w 1.5.2 - unable to get mapserv.exe or php_mapscript_48.dll to work In-Reply-To: <4997F456680DAD4DA1E042C40C46361142709B@auper1ex002.au.aecomnet.com> Message-ID: Thanks Jacob, I am getting this message : mapserv.exe - Unable to locate Component This application has failed to start because MSVCR71D.dll was not found. Re-installing the application may fix this problem. : if I try to run the application. I have completely re-installed the ms4w package, but am still getting this message, so I can only assume that the binaries are being compiled with different libraries in them. I don't know where to go on this one? cheers Ben -- Ben Madin Remote Information Pty Ltd t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au On 08/05/2006, at 1:22 PM, Delfos, Jacob wrote: > Hi Ben, > > You have to be very careful with the DLL's. The error you get probably > means php_mapscript_48.dll is tryin to link to a DLL it is not > compatible with. Try to use the dependency walker > (www.dependencywalker.com) to find out which one it is (execute > "depends.exe php_mapscript_48.dll" in a command line window) > > As I mentioned, the DLL's from MS4W are not compatible with those from > DMSolutions. Also, certain DLL's must be in the executable path in > order > for them to work (just the system path may not be sufficient). For > example, gdal13.dll and the ER Mapper DLL's (and some others) probably > have to sit in the same directory as php-cgi.exe. > > Regards, > > Jacob > > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin >> Sent: 8 May 2006 13:17 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] ms4w 1.5.2 - unable to get >> mapserv.exe or php_mapscript_48.dll to work >> >> I have just downloaded the latest ms4w (1.5.2) and after >> installation >> (at c:\ms4w\) I get phpinfo() without trouble. >> >> However, when I click on mapserv.exe I get the following message in >> the error log : >> >> Premature end of script headers: mapserv.exe, referer : http:// >> 10.0.1.2/index.phtml >> >> >> When I follow http://10.0.1.2/phpinfo_mapscript_48.php >> >> I get : >> >> Warning: dl() [function.dl.html]: Unable to load dynamic library '/ >> ms4w/Apache/php/extensions/php_mapscript_48.dll' - The specified >> module could not be found. in C:\ms4w\Apache\htdocs >> \phpinfo_mapscript_48.php on line 2 >> >> as the library is in this location, I assume that this is a problem >> related to Mapserver above. >> >> thank you. >> >> cheers >> >> Ben >> >> >> -- >> >> Ben Madin >> >> Remote Information Pty Ltd >> >> t/f: 08 9192 5535 >> m: 0448 887 220 >> ben at remoteinformation.com.au >> > > From Jacob.Delfos at MAUNSELL.COM Sun May 7 23:26:50 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 8 May 2006 14:26:50 +0800 Subject: ms4w 1.5.2 - unable to get mapserv.exe or php_mapscript_48.dll to work Message-ID: Try this site: http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71d Regards, Jacob > -----Original Message----- > From: Ben Madin [mailto:ben at REMOTEINFORMATION.COM.AU] > Sent: 8 May 2006 14:14 > To: Delfos, Jacob > Cc: mapserver-users at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] ms4w 1.5.2 - unable to get > mapserv.exe or php_mapscript_48.dll to work > > Thanks Jacob, > > I am getting this message : > > mapserv.exe - Unable to locate Component > > This application has failed to start because MSVCR71D.dll was not > found. Re-installing the application may fix this problem. > > : if I try to run the application. > > I have completely re-installed the ms4w package, but am still > getting > this message, so I can only assume that the binaries are being > compiled with different libraries in them. > > I don't know where to go on this one? > > cheers > > Ben > > > -- > > Ben Madin > > Remote Information Pty Ltd > > t/f: 08 9192 5535 > m: 0448 887 220 > ben at remoteinformation.com.au > > > > > On 08/05/2006, at 1:22 PM, Delfos, Jacob wrote: > > > Hi Ben, > > > > You have to be very careful with the DLL's. The error you > get probably > > means php_mapscript_48.dll is tryin to link to a DLL it is not > > compatible with. Try to use the dependency walker > > (www.dependencywalker.com) to find out which one it is (execute > > "depends.exe php_mapscript_48.dll" in a command line window) > > > > As I mentioned, the DLL's from MS4W are not compatible with > those from > > DMSolutions. Also, certain DLL's must be in the executable path in > > order > > for them to work (just the system path may not be sufficient). For > > example, gdal13.dll and the ER Mapper DLL's (and some > others) probably > > have to sit in the same directory as php-cgi.exe. > > > > Regards, > > > > Jacob > > > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List > >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin > >> Sent: 8 May 2006 13:17 > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] ms4w 1.5.2 - unable to get > >> mapserv.exe or php_mapscript_48.dll to work > >> > >> I have just downloaded the latest ms4w (1.5.2) and after > >> installation > >> (at c:\ms4w\) I get phpinfo() without trouble. > >> > >> However, when I click on mapserv.exe I get the following message in > >> the error log : > >> > >> Premature end of script headers: mapserv.exe, referer : http:// > >> 10.0.1.2/index.phtml > >> > >> > >> When I follow http://10.0.1.2/phpinfo_mapscript_48.php > >> > >> I get : > >> > >> Warning: dl() [function.dl.html]: Unable to load dynamic library '/ > >> ms4w/Apache/php/extensions/php_mapscript_48.dll' - The specified > >> module could not be found. in C:\ms4w\Apache\htdocs > >> \phpinfo_mapscript_48.php on line 2 > >> > >> as the library is in this location, I assume that this is a problem > >> related to Mapserver above. > >> > >> thank you. > >> > >> cheers > >> > >> Ben > >> > >> > >> -- > >> > >> Ben Madin > >> > >> Remote Information Pty Ltd > >> > >> t/f: 08 9192 5535 > >> m: 0448 887 220 > >> ben at remoteinformation.com.au > >> > > > > > > > From Dejan.Gambin at PULA.HR Mon May 8 00:22:53 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 8 May 2006 09:22:53 +0200 Subject: Raster format suggestion Message-ID: Hi, I have a hundred of scanned cadastrial maps in JPEG format. I have georeferenced them (made .jgw files) and now I would like to place them on my local Mapserver site (for local usage only, on the local network). All the maps are making a grid and the people that will use the maps will mostly (but not always) open one of them (because they are employees and they know what map to choose for their purpose). The maps are about 8000x6000 pixels in size and the corresponding JPEG files are about 6MB large. I would like to hear a suggestion - is it better to use the existing JPEG files or convert them to TIFF? I have already converted one of them just for the test and the resulting TIFF file is about 133MB large. I have read about the poor JPEG perfomance but I am still asking... thanks very much dejan From a.nemmert at AON.AT Mon May 8 01:01:36 2006 From: a.nemmert at AON.AT (Andreas Nemmert) Date: Mon, 8 May 2006 10:01:36 +0200 Subject: Otuputformat SVG Message-ID: Hy list, I have a view questions concerning the generated SVG-Files of the UMN MapServer. I have defined an OUTPUTFORMAT in my Mapfile that generates SVG-Files My questions are: Can I make groups in the SVG-File with a comment in my Mapfile? The fill colour or the stroke is always set by the UMN MapServer. If I want to change them, I have to change them in the Mapfile. Is there a chance that the MapServer does not set these attributes? Thank you for your help! Greeting, Andreas Nemmert -------------- next part -------------- An HTML attachment was scrubbed... URL: From matl.hedwig at UZR.AT Mon May 8 01:11:41 2006 From: matl.hedwig at UZR.AT (Hedwig Matl) Date: Mon, 8 May 2006 10:11:41 +0200 Subject: please help: .mdb access problem In-Reply-To: <445B5BC3.1060602@pobox.com> Message-ID: Hello and thanks for your reply! I edited the path for my message. I use the absolute path, which looks like this (I also tried relative paths): --- CONNECTIONTYPE OGR CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" --- This is the error I get when I try to open the file with ogrinfo: --- C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb FAILURE: Unable to open datasource `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> PostgreSQL -> MySQL --- Thanks a lot for your help Hedwig Frank Warmerdam schrieb: > Hedwig Matl wrote: >> Hello! >> >> I'm new to mapserver and already somewhat at a loss. >> If I try to access a .mdb file (via map file and ogrinfo) I get >> following error: >> >> msOGRFileOpen(): OGR error. Open failed for OGR connection >> `c:\..\test.mdb'. File not found or unsupported format. > > Hedwig, > > Is this the literal error you are seeing, or have you edited the path > out replacing it with ".."? If this is the literal error then it seems > that the path to the file is being constructed improperly. It may be > that mapserver is trying to apply a SHAPEPATH relative path. I would > suggest you use an absolute path tot he file. What does your CONNECTION > string look? > > Best regards, From Jacob.Delfos at MAUNSELL.COM Mon May 8 01:20:32 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 8 May 2006 16:20:32 +0800 Subject: please help: .mdb access problem Message-ID: Hedwig, I think you have to put the tablename behind the path, like: CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb,theTable" Hope that helps. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hedwig Matl > Sent: 8 May 2006 16:12 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] please help: .mdb access problem > > Hello and thanks for your reply! > > I edited the path for my message. I use the absolute path, > which looks > like this (I also tried relative paths): > > --- > CONNECTIONTYPE OGR > CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" > --- > > This is the error I get when I try to open the file with ogrinfo: > > --- > C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb > FAILURE: > Unable to open datasource > `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with the > following drivers. > -> ESRI Shapefile > -> MapInfo File > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> DGN > -> VRT > -> AVCBin > -> REC > -> Memory > -> CSV > -> GML > -> ODBC > -> PostgreSQL > -> MySQL > --- > > Thanks a lot for your help > Hedwig > > Frank Warmerdam schrieb: > > Hedwig Matl wrote: > >> Hello! > >> > >> I'm new to mapserver and already somewhat at a loss. > >> If I try to access a .mdb file (via map file and ogrinfo) I get > >> following error: > >> > >> msOGRFileOpen(): OGR error. Open failed for OGR connection > >> `c:\..\test.mdb'. File not found or unsupported format. > > > > Hedwig, > > > > Is this the literal error you are seeing, or have you > edited the path > > out replacing it with ".."? If this is the literal error > then it seems > > that the path to the file is being constructed improperly. > It may be > > that mapserver is trying to apply a SHAPEPATH relative > path. I would > > suggest you use an absolute path tot he file. What does > your CONNECTION > > string look? > > > > Best regards, > From matl.hedwig at UZR.AT Mon May 8 01:44:46 2006 From: matl.hedwig at UZR.AT (Hedwig Matl) Date: Mon, 8 May 2006 10:44:46 +0200 Subject: please help: .mdb access problem In-Reply-To: <4997F456680DAD4DA1E042C40C4636114270A1@auper1ex002.au.aecomnet.com> Message-ID: Hello Jacob! Thanks for your mail. I tried this out, but no - it doesn't work. With best regards Hedwig Delfos, Jacob schrieb: > Hedwig, > > I think you have to put the tablename behind the path, like: > > CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb,theTable" > > Hope that helps. > > Regards, > > Jacob > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hedwig Matl >> Sent: 8 May 2006 16:12 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] please help: .mdb access problem >> >> Hello and thanks for your reply! >> >> I edited the path for my message. I use the absolute path, >> which looks >> like this (I also tried relative paths): >> >> --- >> CONNECTIONTYPE OGR >> CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" >> --- >> >> This is the error I get when I try to open the file with ogrinfo: >> >> --- >> C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb >> FAILURE: >> Unable to open datasource >> `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with the >> following drivers. >> -> ESRI Shapefile >> -> MapInfo File >> -> UK .NTF >> -> SDTS >> -> TIGER >> -> S57 >> -> DGN >> -> VRT >> -> AVCBin >> -> REC >> -> Memory >> -> CSV >> -> GML >> -> ODBC >> -> PostgreSQL >> -> MySQL >> --- >> >> Thanks a lot for your help >> Hedwig >> >> Frank Warmerdam schrieb: >>> Hedwig Matl wrote: >>>> Hello! >>>> >>>> I'm new to mapserver and already somewhat at a loss. >>>> If I try to access a .mdb file (via map file and ogrinfo) I get >>>> following error: >>>> >>>> msOGRFileOpen(): OGR error. Open failed for OGR connection >>>> `c:\..\test.mdb'. File not found or unsupported format. >>> Hedwig, >>> >>> Is this the literal error you are seeing, or have you >> edited the path >>> out replacing it with ".."? If this is the literal error >> then it seems >>> that the path to the file is being constructed improperly. >> It may be >>> that mapserver is trying to apply a SHAPEPATH relative >> path. I would >>> suggest you use an absolute path tot he file. What does >> your CONNECTION >>> string look? >>> >>> Best regards, > -- Mag. Hedwig Matl ? Forschungsassistentin Universit?tszentrum Rottenmann (UZR) Technologiepark 2, A-8786 Rottenmann www.uni-z-rottenmann.at ? www.uzr.at T: +43 (3614) 21021-19 E: matl.hedwig at uzr.at From xbobwjones at HOTMAIL.COM Mon May 8 02:19:29 2006 From: xbobwjones at HOTMAIL.COM (Robert William Jones) Date: Mon, 8 May 2006 09:19:29 +0000 Subject: WMS client/cascading wms bounding box problem Message-ID: Hi, I am trying to use MapServer as a WMS client to another WMS (cascading WMS). The request I make is of the form: http://localhost/cgi-bin/mapserv_44.exe?map=midas.map&version=1.1.1&request=getmap&layers=gs_lay&width=500&height=250&srs=epsg:4326&bbox=0,45,40,65&format=image/png However, MapServer seems to do something strange to the bounding box as the box that is submitted by MapServer (as part of the getmap request) is the following: 0.039999999999997732,45.019999999999996,39.960000000000001,64.980000000000004 My map file is set up as follows: MAP STATUS ON SIZE 500 250 EXTENT 0 45 40 65 SHAPEPATH "./data" IMAGECOLOR 0 0 255 PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "gs_lay" TYPE RASTER STATUS ON CONNECTION "http://localhost:8080/geoserver/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "topp:gfs" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_latlonboundingbox" "0 45 40 65" END END END Does anyone know why the bounding box is being changed, instead of being submitted as is? Many thanks for any help Robert Jones Robert William Jones Software Engineer ComSine Limited Telephone: + 44 (0) 1483 457121 Fax: + 44 (0) 1483 304836 Mobile: +44 (0) 7939 295868 www.comsine.com *Please Note:* This text is confidential. If you are not the named addressee, it could be unlawful for you to read, copy, distribute, disclose or use the information contained herewith. If you are not the intended recipient please telephone +44 (0) 1483 457121. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon May 8 02:19:26 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 8 May 2006 11:19:26 +0200 Subject: WMS client/cascading wms bounding box p roblem Message-ID: I don't know if this will solve your problem, but: 1) in your WMS request you need to use uppercase EPSG for the SRS (as defined in the WMS spec) 2) in your PROJECTION blocks you need to use lowercase epsg (this is how PROJ.4, the projection library used by Mapserver, expects it) Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Robert William Jones Verzonden: maandag 8 mei 2006 11:19 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS client/cascading wms bounding box problem Hi, I am trying to use MapServer as a WMS client to another WMS (cascading WMS). The request I make is of the form: http://localhost/cgi-bin/mapserv_44.exe?map=midas.map&version=1.1.1&request= getmap&layers=gs_lay&width=500&height=250&srs=epsg:4326&bbox=0,45,40,65&form at=image/png However, MapServer seems to do something strange to the bounding box as the box that is submitted by MapServer (as part of the getmap request) is the following: 0.039999999999997732,45.019999999999996,39.960000000000001,64.98000000000000 4 My map file is set up as follows: MAP STATUS ON SIZE 500 250 EXTENT 0 45 40 65 SHAPEPATH "./data" IMAGECOLOR 0 0 255 PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "gs_lay" TYPE RASTER STATUS ON CONNECTION "http://localhost:8080/geoserver/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "topp:gfs" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_latlonboundingbox" "0 45 40 65" END END END Does anyone know why the bounding box is being changed, instead of being submitted as is? Many thanks for any help Robert Jones Robert William Jones Software Engineer ComSine Limited Telephone: + 44 (0) 1483 457121 Fax: + 44 (0) 1483 304836 Mobile: +44 (0) 7939 295868 www.comsine.com *Please Note:* This text is confidential. If you are not the named addressee, it could be unlawful for you to read, copy, distribute, disclose or use the information contained herewith. If you are not the intended recipient please telephone +44 (0) 1483 457121. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon May 8 06:29:38 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 8 May 2006 12:29:38 -0100 Subject: please help: .mdb access problem {Scanned} In-Reply-To: <445EFD3D.7000700@uzr.at> Message-ID: Hi Hedwig, I'm not sure that Access databases are supported direcly. Try to use odbc connection. Create a Data Source Name (DSN) using Control panel, and refere to that DSN and table name instead of the mdb file. Zoltan On Mon, 8 May 2006, Hedwig Matl wrote: > Hello and thanks for your reply! > > I edited the path for my message. I use the absolute path, which looks > like this (I also tried relative paths): > > --- > CONNECTIONTYPE OGR > CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" > --- > > This is the error I get when I try to open the file with ogrinfo: > > --- > C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb > FAILURE: > Unable to open datasource `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with the > following drivers. > -> ESRI Shapefile > -> MapInfo File > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> DGN > -> VRT > -> AVCBin > -> REC > -> Memory > -> CSV > -> GML > -> ODBC > -> PostgreSQL > -> MySQL > --- > > Thanks a lot for your help > Hedwig > > Frank Warmerdam schrieb: > > Hedwig Matl wrote: > >> Hello! > >> > >> I'm new to mapserver and already somewhat at a loss. > >> If I try to access a .mdb file (via map file and ogrinfo) I get > >> following error: > >> > >> msOGRFileOpen(): OGR error. Open failed for OGR connection > >> `c:\..\test.mdb'. File not found or unsupported format. > > > > Hedwig, > > > > Is this the literal error you are seeing, or have you edited the path > > out replacing it with ".."? If this is the literal error then it seems > > that the path to the file is being constructed improperly. It may be > > that mapserver is trying to apply a SHAPEPATH relative path. I would > > suggest you use an absolute path tot he file. What does your CONNECTION > > string look? > > > > Best regards, > From xbobwjones at HOTMAIL.COM Mon May 8 03:30:14 2006 From: xbobwjones at HOTMAIL.COM (Robert William Jones) Date: Mon, 8 May 2006 10:30:14 +0000 Subject: WMS client/cascading wms bounding box problem Message-ID: Thanks for your reply Bart. I should have mentioned - I've already tried pretty much all combinations of upper and lower case for the projection with little effect! It appears that MapServer increases the bounding box slightly compared to the original bbox. Does anyone know why this might be i.e. is it intentional to request a slightly larger bbox? Something unrelated to my problem but which I guess I should mention - it appears that the projection is not submitted as uppercase in the GetMap request made by MapServer, even when the projection is uppercase in the original request made to MapServer. Finally - has anyone else had trouble posting to the list via the web interface? I keep getting emails saying the posting is a duplicate when I try. Thanks Rob From b.vdeijnden at AGI.RWS.MINVENW.NL Mon May 8 03:32:49 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 8 May 2006 12:32:49 +0200 Subject: WMS client/cascading wms bounding box p roblem Message-ID: Hi Robert, could you try and add a PROJECTION block to your LAYER and see if that helps? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Robert William Jones Verzonden: maandag 8 mei 2006 12:30 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WMS client/cascading wms bounding box problem Thanks for your reply Bart. I should have mentioned - I've already tried pretty much all combinations of upper and lower case for the projection with little effect! It appears that MapServer increases the bounding box slightly compared to the original bbox. Does anyone know why this might be i.e. is it intentional to request a slightly larger bbox? Something unrelated to my problem but which I guess I should mention - it appears that the projection is not submitted as uppercase in the GetMap request made by MapServer, even when the projection is uppercase in the original request made to MapServer. Finally - has anyone else had trouble posting to the list via the web interface? I keep getting emails saying the posting is a duplicate when I try. Thanks Rob Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From grabiel at MYWAY.COM Mon May 8 03:58:28 2006 From: grabiel at MYWAY.COM (grabiel) Date: Mon, 8 May 2006 06:58:28 -0400 Subject: [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL Message-ID: Hi I have posted one message for ogr/mysql problem(No reply so far). If anyone has implemented ogr/mysql/php Plz. help me out. What i am trying is to relate a shape file with mysql table. I can able to fetch the data through ogrinfo in command line which is like this---> [root at localhost bin]ogrinfo /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp -sql "SELECT st_nm, nsdata.name,nsdata.capital,nsdata.id from n_state LEFT JOIN 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" The command above woks fine but when i try the same from mapfile, I am getting the following error. >Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. >in /usr/local/apache/htdocs/gmap/htdocs/gmap75.inc.php on line 425 The error above is only for the layer where i have used OGR/MySql table, whereas for layers where i havenot used OGR/MySql(simply shape file & Metadata) its showing the results. My mapfile code for ogr is something like this--> ................ ................ LAYER NAME "n_state" TYPE POINT CONNECTIONTYPE OGR CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp" DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" STATUS ON CLASSITEM "st_nm" CLASS NAME "NEIGHBOURING STATE" EXPRESSION /A*/ COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL "NS" END END .......... .......... I have given the mapfile(.map) and Php code(.php) in two files below for better understanding. If anyone has implemented this by PHP plz share your ideas/experience for the query part. Maybe something went terribly wrong in my PHP/Mapscript(I assume). In detail explanation for Php/mapscript will really be appreciated. Expecting some reply this time(What time!!!) Thanks in advance With regards MAP FILE: ********* NAME "test" SIZE 400 400 STATUS ON SYMBOLSET "DATA/symbols.sym" EXTENT 27000.860 2462.020 3582.801 3012.468 UNITS METERS ................. ................. ................ QUERYMAP STYLE HILITE COLOR 255 0 0 STATUS ON END LAYER NAME "TEST" METADATA .......... .......... END TYPE POINT STATUS ON DATA "TEST" CLASS NAME "CITY" COLOR 26 37 255 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" STYLE COLOR 110 50 100 OUTLINECOLOR 200 200 200 SYMBOL 0 END END END LAYER NAME "n_state" TYPE POINT CONNECTIONTYPE OGR CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp" DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" STATUS ON CLASSITEM "st_nm" CLASS NAME "NEIGHBOURING STATE" EXPRESSION /A*/ COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL "NS" END END END ************* END OF MAP FILE******************** ************* START OF PHP FILE *************** 0) $HTTP_FORM_VARS = $HTTP_POST_VARS; else if (sizeof($HTTP_GET_VARS) > 0) $HTTP_FORM_VARS = $HTTP_GET_VARS; else $HTTP_FORM_VARS = array(""); /* ==================================================================== */ /* Find out whether GIF is supported... if not falback on PNG/JPG */ /* ==================================================================== */ if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 ) { $gAppletImgFmt = MS_GIF; $gImagesFmt = MS_GIF; } else { $gAppletImgFmt = MS_JPEG; $gImagesFmt = MS_PNG; } /************************************************************************/ /* function GMap75CheckClick() */ /* */ /* Function to set the status ON/OFF of a layer according to */ /* htrtp parameters passed. (paremeters are here equal to the */ /* layer name). */ /************************************************************************/ function GMap75CheckClick() { GLOBAL $HTTP_FORM_VARS; GLOBAL $gpoMap, $gbShowQueryResults, $gszZoomBoxExt; GLOBAL $dfMapExtMinX; GLOBAL $dfMapExtMinY; GLOBAL $dfMapExtMaxX; GLOBAL $dfMapExtMaxY; GLOBAL $dfMaxExtMinX; GLOBAL $dfMaxExtMinY; GLOBAL $dfMaxExtMaxX; GLOBAL $dfMaxExtMaxY; reset( $HTTP_FORM_VARS ); // $gbShowQueryResults=TRUE; // while ( list( $key, $val ) = each( $HTTP_FORM_VARS ) ) // { // printf("%s=%s
\n", $key, $val); // } /* -------------------------------------------------------------------- */ /* look for all layers set to on/off */ /* -------------------------------------------------------------------- */ if (sizeof($HTTP_FORM_VARS) >= 2) { $poLayer = $gpoMap->getlayerbyname(asmroad); if ($HTTP_FORM_VARS["asmroad"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(newvill); if ($HTTP_FORM_VARS["newvill"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(n_state); if ($HTTP_FORM_VARS["n_state"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(raster_back); if ($HTTP_FORM_VARS["raster_back"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); } /* -------------------------------------------------------------------- */ /* these are the extents of waht is seen actually, they are */ /* generated in function GMapRedraw(). */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["minx"]) { $dfMinX = doubleval($HTTP_FORM_VARS["minx"]); $dfMinY = doubleval($HTTP_FORM_VARS["miny"]); $dfMaxX = doubleval($HTTP_FORM_VARS["maxx"]); $dfMaxY = doubleval($HTTP_FORM_VARS["maxy"]); // printf("minx\n"); } else { $dfMinX = $gpoMap->extent->minx; $dfMinY = $gpoMap->extent->miny; $dfMaxX = $gpoMap->extent->maxx; $dfMaxY = $gpoMap->extent->maxy; } /* -------------------------------------------------------------------- */ /* check for image width, hight changes. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["MapSize"]) { if (ereg("([0-9]+),([0-9]+)", $HTTP_FORM_VARS["MapSize"], $MapSizeExtents)) { $dfWidthPix = intval($MapSizeExtents[1]); $dfHeightPix = intval($MapSizeExtents[2]); $gpoMap->set("width",$dfWidthPix); $gpoMap->set("height",$dfHeightPix); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } /* -------------------------------------------------------------------- */ /* check if the key map has been cliked. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["KEYMAP_x"]) { /* -------------------------------------------------------------------- */ /* initilalize the georef extents of the key map. */ /* -------------------------------------------------------------------- */ $dfKeyMapXMin = $gpoMap->reference->extent->minx; $dfKeyMapYMin = $gpoMap->reference->extent->miny; $dfKeyMapXMax = $gpoMap->reference->extent->maxx; $dfKeyMapYMax = $gpoMap->reference->extent->maxy; // printf("dfkeyxmin %f
\n",$dfKeyMapXMin); // printf("dfkeyymin %f
\n",$dfKeyMapYMin); // printf("dfkeyxmax %f
\n",$dfKeyMapXMax); // printf("dfkeyymax %f
\n",$dfKeyMapYMax); $nClickPixX = intval($HTTP_FORM_VARS[KEYMAP_x]); $nClickPixY = intval($HTTP_FORM_VARS[KEYMAP_y]); $dfWidthPix = doubleval($HTTP_FORM_VARS[KEYMAPXSIZE]); $dfHeightPix = doubleval($HTTP_FORM_VARS[KEYMAPYSIZE]); $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfKeyMapXMin, $dfKeyMapXMax, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfKeyMapYMin, $dfKeyMapYMax, 1); $dfDeltaX = $dfMaxX - $dfMinX; $dfDeltaY = $dfMaxY - $dfMinY; $dfMiddleX = $nClickGeoX; $dfMiddleY = $nClickGeoY; $dfNewMinX = $dfMiddleX - ($dfDeltaX/2); $dfNewMinY = $dfMiddleY - ($dfDeltaY/2); $dfNewMaxX = $dfMiddleX + ($dfDeltaX/2); $dfNewMaxY = $dfMiddleY + ($dfDeltaY/2); /* -------------------------------------------------------------------- */ /* not go outside the borders. */ /* -------------------------------------------------------------------- */ if ($dfNewMinX < $dfMaxExtMinX) { $dfNewMinX = $dfMaxExtMinX; $dfNewMaxX = $dfNewMinX + ($dfDeltaX); } if ($dfNewMaxX > $dfMaxExtMaxX) { $dfNewMaxX = $dfMaxExtMaxX; $dfNewMinX = $dfNewMaxX - ($dfDeltaX); } if ($dfNewMinY < $dfMaxExtMinY) { $dfNewMinY = $dfMaxExtMinY; $dfNewMaxY = $dfNewMinY + ($dfDeltaY); } if ($dfNewMaxY > $dfMaxExtMaxY) { $dfNewMaxY = $dfMaxExtMaxY; $dfNewMinY = $dfNewMaxY - ($dfDeltaY); } SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY); // return; } /* -------------------------------------------------------------------- */ /* province selection. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["ViewRegion"]) { if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) { $dfMinX = doubleval($ProvExtents[1]); $dfMinY = doubleval($ProvExtents[2]); $dfMaxX = doubleval($ProvExtents[3]); $dfMaxY = doubleval($ProvExtents[4]); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } /* -------------------------------------------------------------------- */ /* extract the current width and height. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["imagewidth"]) { $dfWidthPix = intval($HTTP_FORM_VARS["imagewidth"]); $dfHeightPix = intval($HTTP_FORM_VARS["imageheight"]); } else { $dfWidthPix = $gpoMap->width; $dfHeightPix = $gpoMap->height; } /* -------------------------------------------------------------------- */ /* check if it the redraw button which is pressed : if it is */ /* the case redraw the same extents. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["redraw_x"]) { SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } /* -------------------------------------------------------------------- */ /* Check for zoom out (auto-submit) button. */ /* -------------------------------------------------------------------- */ else if ($HTTP_FORM_VARS["CMD"] == "ZOOM_OUT" && !($HTTP_FORM_VARS["mainmap_x"] || $HTTP_FORM_VARS["INPUT_COORD"])) { $oPixelPos = ms_newpointobj(); $oGeorefExt = ms_newrectobj(); $oGeorefMaxExt = ms_newrectobj(); $oPixelPos->setxy($dfWidthPix/2.0, $dfHeightPix/2.0); $oGeorefExt->setextent($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, $dfMaxExtMaxX, $dfMaxExtMaxY); if (!$gpoMap->zoompoint(-2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt)) { $gpoMap->setExtent($dfMapExtMinX, $dfMapExtMinY, $dfMapExtMaxX, $dfMapExtMaxY); } } /* -------------------------------------------------------------------- */ /* check for zoom / query through applet or image click */ /* -------------------------------------------------------------------- */ else { $dfDeltaX = $dfMaxX - $dfMinX; $dfDeltaY = $dfMaxY - $dfMinY; /* -------------------------------------------------------------------- */ /* extract click position. */ /* Convert the click pos to georeref coordinates. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["mainmap_x"] || $HTTP_FORM_VARS["INPUT_TYPE"]) { $bRectangleInput = 0; if ($HTTP_FORM_VARS["INPUT_TYPE"]) { $szCoord = strval($HTTP_FORM_VARS["INPUT_COORD"]); $szCoordType = strval($HTTP_FORM_VARS["INPUT_TYPE"]); if (strcmp($szCoordType,"auto_point") == 0) { $szCoordArray =explode(",", $szCoord); $nClickPixX = $szCoordArray[0]; $nClickPixY = $szCoordArray[1]; } /* -------------------------------------------------------------------- */ /* Rosa applet is used and the input is a rectangle */ /* (syntax is X1,Y1;X2,Y2). */ /* If the 2 sets of points are the same treat the case as a */ /* point click. */ /* -------------------------------------------------------------------- */ else if (strcmp($szCoordType,"auto_rect") == 0) { $bRectangleInput = 1; $szFirstSetXY = strtok($szCoord, ";"); $szSecondSetXY = strtok("\n"); $szFirstCoord = explode(",", $szFirstSetXY); $szSecondCoord = explode(",", $szSecondSetXY); $oPixelRect = ms_newrectobj(); $oPixelRect->setextent($szFirstCoord[0], $szFirstCoord[1], $szSecondCoord[0], $szSecondCoord[1]); if ($oPixelRect->minx == $oPixelRect->maxx && $oPixelRect->miny == $oPixelRect->maxy) { $bRectangleInput = 0; $nClickPixX = $oPixelRect->minx; $nClickPixY = $oPixelRect->miny; } else { if ($oPixelRect->minx > $oPixelRect->maxx) { // Use *1 to avoid dfTmp becoming a reference // to $oPixelRect->minx with PHP4 !?!?!? $dfTmp = $oPixelRect->minx*1; $oPixelRect->set("minx",$oPixelRect->maxx); $oPixelRect->set("maxx",$dfTmp); } if ($oPixelRect->miny < $oPixelRect->maxy) { $dfTmp = $oPixelRect->miny*1; $oPixelRect->set("miny", $oPixelRect->maxy); $oPixelRect->set("maxy", $dfTmp); } } // We'll insert a copy of the box's georef extent in a // comment in the HTML output... useful for defining views. $gszZoomBoxExt = sprintf("", GMapPix2Geo($oPixelRect->minx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0), GMapPix2Geo($oPixelRect->miny, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1), GMapPix2Geo($oPixelRect->maxx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0), GMapPix2Geo($oPixelRect->maxy, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1) ); } } else { $nClickPixX = intval($HTTP_FORM_VARS[mainmap_x]); $nClickPixY = intval($HTTP_FORM_VARS[mainmap_y]); } $oPixelPos = ms_newpointobj(); $oGeorefExt = ms_newrectobj(); $oGeorefMaxExt = ms_newrectobj(); $oPixelPos->setxy($nClickPixX, $nClickPixY); $oGeorefExt->setextent($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, $dfMaxExtMaxX, $dfMaxExtMaxY); if ($HTTP_FORM_VARS["CMD"] == "ZOOM_IN") { if ($bRectangleInput) { $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, $oGeorefExt); } else $gpoMap->zoompoint(2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt); } if ($HTTP_FORM_VARS["CMD"] == "ZOOM_OUT") { if (!$gpoMap->zoompoint(-2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt)) { $gpoMap->setExtent($dfMapExtMinX, $dfMapExtMinY, $dfMapExtMaxX, $dfMapExtMaxY); } } if ($HTTP_FORM_VARS["CMD"] == "RECENTER") { $gpoMap->zoompoint(1, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt); } else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") { /* -------------------------------------------------------------------- */ /* Query selected layers at point location or in a rectangle. */ /* DumpQueryResults() will be called later to display the */ /* results. */ /* -------------------------------------------------------------------- */ if ($bRectangleInput) { $oGeorefRect = ms_newrectobj(); $oGeorefRect->set("minx", GMapPix2Geo($oPixelRect->minx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0)); $oGeorefRect->set("maxx", GMapPix2Geo($oPixelRect->maxx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0)); $oGeorefRect->set("miny", GMapPix2Geo($oPixelRect->miny, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1)); $oGeorefRect->set("maxy", GMapPix2Geo($oPixelRect->maxy, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1)); // Use '@' to avoid warning if query found nothing @$gpoMap->queryByRect($oGeorefRect); $gbShowQueryResults = TRUE; } else { $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); // Use '@' to avoid warning if query found nothing $gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); $gbShowQueryResults = TRUE; } } } } } /************************************************************************/ /* fuction GMapGetStatus($szLayerName) */ /* */ /* return if the layer is on or off (displayed or not) : */ /* */ /* ON = MS_ON =1 */ /* OFF = MS_OFF = 0 */ /* */ /************************************************************************/ function GMapGetStatus($szLayerName) { GLOBAL $gpoMap; $poLayer = $gpoMap->getlayerbyname($szLayerName); $nStatus = $poLayer->status; return ($nStatus); } /************************************************************************/ /* function GMapDrawMap() */ /* */ /* Funcion to draw the contains of the map. */ /************************************************************************/ function GMapDrawMap() { GLOBAL $gpoMap, $gbShowQueryResults; GLOBAL $gbIsHtmlMode; GLOBAL $gszCommand, $gszZoomBoxExt; GLOBAL $gAppletImgFmt, $gImagesFmt; if ($gbShowQueryResults) { $img = $gpoMap->drawQuery(); } else $img = $gpoMap->draw(); $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); echo "\n".$gszZoomBoxExt."\n"; printf("", $gpoMap->extent->minx); printf("", $gpoMap->extent->miny); printf("", $gpoMap->extent->maxx); printf("", $gpoMap->extent->maxy); printf("", $gpoMap->width); printf("", $gpoMap->height); /* -------------------------------------------------------------------- */ /* Use the command to update the rosa applet. */ /* -------------------------------------------------------------------- */ if ( strlen($gszCommand) == 0) { $szButtonName = "zoomin"; } else { if ($gszCommand == "ZOOM_IN") $szButtonName = "zoomin"; // Do not keep zoomout pressed ot avoid infinite zoomout loop!!! // if ($gszCommand == "ZOOM_OUT") // $szButtonName = "zoomout"; if ($gszCommand == "RECENTER") $szButtonName = "recentre"; if ($gszCommand == "QUERY_POINT") $szButtonName = "pquery"; } if (!$gbIsHtmlMode) //use applet { printf("\n"); printf("\n", $gpoMap->width, $gpoMap->height); printf("\n"); printf(""); printf("",$url); printf(""); printf("\n"); printf("\n"); printf("\n"); printf("",$szButtonName); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf(""); printf(""); printf(""); printf(""); } else { echo"width HEIGHT=$gpoMap->height NAME=mainmap>"; printf("", $gszCommand); } // printf("\n", $url, $gpoMap->width, $gpoMap->height); } /************************************************************************/ /* function GMapDrawKeyMap() */ /* */ /* Utility function to draw the refernece map (key map). */ /************************************************************************/ function GMapDrawKeyMap() { GLOBAL $gpoMap; GLOBAL $gAppletImgFmt, $gImagesFmt; $img = $gpoMap->drawreferencemap(); $url = $img->saveWebImage($gImagesFmt, 0, 0, -1); printf("", $img->width); printf("", $img->height); // echo"\n"; echo""; } /************************************************************************/ /* function GMapDrawScaleBar() */ /* */ /* Draw sacle bar. */ /************************************************************************/ function GMapDrawScaleBar() { GLOBAL $gpoMap; GLOBAL $gAppletImgFmt, $gImagesFmt; $img = $gpoMap->drawScaleBar(); $url = $img->saveWebImage($gImagesFmt, 0, 0, -1); echo"\n"; } /************************************************************************/ /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, dfGeoMax,*/ /* $nInversePix) */ /* */ /* Utility function to convert a pixel position to geocoded */ /* position. */ /* */ /* The parameter $nInversePix could be set to 1 for Y pixel */ /* coordinates where the UL > LR. Else set to 0. */ /************************************************************************/ function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { // if ($nPixPos < $dfPixMin) // return -1; // if ($nPixPos > $dfPixMax) // return -1; // if ($dfPixMin >= $dfPixMaX || // $dfGeoMin >= $dfGeoMax) // return -1; $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } /************************************************************************/ /* function SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY)*/ /* */ /* Set map extents of the map. We also make a test here with */ /* the min/max scale set in the .map file (the web object) */ /* to verify if the extents are respected. If it is the */ /* case return true. Else return false. */ /* */ /* Note : the extents of the map are still set using the */ /* parameters passed in argument. The caller has the */ /* responsability to check the return value. */ /************************************************************************/ function SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY) { GLOBAL $gpoMap; $gpoMap->setExtent($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY); $dfScale = $gpoMap->scale; // printf("scale : %f
\n", $dfScale); // printf("minscale : %f
\n",$gpoMap->web->minscale); // printf("maxscale : %f
\n",$gpoMap->web->maxscale); if ($dfScale < $gpoMap->web->minscale || $dfScale > $gpoMap->web->maxscale) return false; return true; } /************************************************************************/ /* function GMapDumpQueryResults() */ /* */ /* Produce a table with query results. */ /* Simply prints an " " if there are no query results. */ /************************************************************************/ function GMapDumpQueryResults() { GLOBAL $gpoMap, $gbShowQueryResults; if (! $gbShowQueryResults ) { printf(" "); return; } $numResultsTotal = 0; for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) { $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); printf($oLayer.name); if ($numResults == 0) continue; // No results in this layer // Open layer's table... take the list of fields to display from // the "RESULT_FIELDS" metadata in the layer object. $oLayer->open(); // // One row in table for each selected record // for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); if ($iRes == 0) { // // Table header: attribute names... // if ($oLayer->getMetaData("RESULT_FIELDS")) { // Display fields listed in RESULT_FIELDS metadata $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); } else { // RESULT_FIELDS not set. display first 4 fields $i=0; while ( list($key,$val) = each($oShape->values) ) { $selFields[$i++] = $key; if ($i>=4) break; } } printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); for ($iField=0; $iField < count($selFields); $iField++) { printf("\n"); } printf("\n"); } printf("\n"); printf("\n", $oShape->bounds->minx, $oShape->bounds->miny, $oShape->bounds->maxx, $oShape->bounds->maxy); // printf("\n"); for($iField=0; $iField < sizeof($selFields); $iField++) { printf("\n"); } printf("\n"); $oShape->free(); $numResultsTotal++; } $oLayer->close(); printf("
", count($selFields)); printf("
%s
", $oLayer->getMetaData("DESCRIPTION")); printf("
"); printf("%s",$selFields[$iField]); printf("
"); printf("%s", $oShape->values[$selFields[$iField]]); printf("
\n"); } //printf($oLayer); if ($numResultsTotal == 0) echo "Nothing at query point."; } ?> ****************END OF PHP SCRIPT*************************** _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From raffle80 at YAHOO.CO.UK Mon May 8 04:11:35 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Mon, 8 May 2006 12:11:35 +0100 Subject: Help needed in Raster/World file Message-ID: Hi I have given the mapfile below and after modifying the value as you suggested in your previous, I am not getting the raster image on my final output. Thanks in advance Raffle NAME "Europe" SIZE 200 200 STATUS ON SYMBOLSET ....." EXTENT 2700051.860 2462746.020 3582564.801 3012459.468 UNITS METERS SHAPEPATH " " WEB IMAGEPATH "" IMAGEURL "" END ....... LAYER DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif" NAME "raster_back" TYPE RASTER STATUS ON END END Raffle - Zero is a perfectly nice number! There's nothing wrong with 0.0 in your world file, especially in the second and third lines. For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0. A world file will often look like: 100.0 0.0 0.0 -100.0 12345.67 987654.32 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Saturday, May 06, 2006 9:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle --------------------------------- 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon May 8 04:17:05 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 8 May 2006 07:17:05 -0400 Subject: Help needed in Raster/World file Message-ID: Raffle - If you set your LAYER to STATUS ON it won't display - you need to set it to STATUS DEFAULT. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Monday, May 08, 2006 7:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I have given the mapfile below and after modifying the value as you suggested in your previous, I am not getting the raster image on my final output. Thanks in advance Raffle NAME "Europe" SIZE 200 200 STATUS ON SYMBOLSET ....." EXTENT 2700051.860 2462746.020 3582564.801 3012459.468 UNITS METERS SHAPEPATH " " WEB IMAGEPATH "" IMAGEURL "" END ....... LAYER DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif" NAME "raster_back" TYPE RASTER STATUS ON END END Raffle - Zero is a perfectly nice number! There's nothing wrong with 0.0 in your world file, especially in the second and third lines. For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0. A world file will often look like: 100.0 0.0 0.0 -100.0 12345.67 987654.32 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Saturday, May 06, 2006 9:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle ________________________________ 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon May 8 04:18:10 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 8 May 2006 07:18:10 -0400 Subject: Raster format suggestion Message-ID: Dejan - You're exactly right. The TIFF files will be much larger and performance will be much faster. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Monday, May 08, 2006 3:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster format suggestion Hi, I have a hundred of scanned cadastrial maps in JPEG format. I have georeferenced them (made .jgw files) and now I would like to place them on my local Mapserver site (for local usage only, on the local network). All the maps are making a grid and the people that will use the maps will mostly (but not always) open one of them (because they are employees and they know what map to choose for their purpose). The maps are about 8000x6000 pixels in size and the corresponding JPEG files are about 6MB large. I would like to hear a suggestion - is it better to use the existing JPEG files or convert them to TIFF? I have already converted one of them just for the test and the resulting TIFF file is about 133MB large. I have read about the poor JPEG perfomance but I am still asking... thanks very much dejan From Dejan.Gambin at PULA.HR Mon May 8 04:28:50 2006 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 8 May 2006 13:28:50 +0200 Subject: Creating imagemaps with php/mapscript Message-ID: Hi, I would like to create client side imagemap using php/mapscript. I have read a wiki document on: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap and tried to use this example but it didn't work... Does someone have a working example? thanks dejan From sgornick at DIGICOAST.COM Mon May 8 06:06:45 2006 From: sgornick at DIGICOAST.COM (Stephen Gornick) Date: Mon, 8 May 2006 06:06:45 -0700 Subject: shp2img projection question Message-ID: I am unsure how to get a shapefile (Lat/lon, NAD83) to match, when rendered, the boundary outline that I see on Google maps. To render the shapefile (to a png) I am using shp2img which installed with ms4w (1.5.2, which includes mapserver 4.8.3), and the png that was created can be seen here: http://tinyurl.com/gaucm Notice that it is "scrunched down" compared to the png that I traced off of Google maps, as shown in this image: http://tinyurl.com/z89l2 I am assuming the reason this happens is that I am doing projection incorrectly -- Google Maps is Lat/lon Mercator. But I do not know what I should do next ... i.e., does the the shapefile need to be converted to a different projection first? The shapefile is the Census' :State and State Equivalent Areas" Cartographic Boundary File for MN (st27_d00). http://www.census.gov/geo/www/cob/st_metadata.html#meta My .map is: ************************* MAP NAME MN STATUS ON SIZE 176 197 EXTENT -97.238541 43.499504 -89.561234 49.384365 IMAGECOLOR 255 255 255 IMAGETYPE PNG UNITS METERS PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END LAYER NAME BOUNDARY TYPE POLYGON STATUS ON DATA st27_d00.shp CLASS STYLE COLOR 150 150 200 OUTLINECOLOR 0 0 255 END END END END From warmerdam at POBOX.COM Mon May 8 06:26:09 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 May 2006 09:26:09 -0400 Subject: [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL In-Reply-To: <20060508105828.A3E82677A1@mprdmxin.myway.com> Message-ID: grabiel wrote: > Hi > I have posted one message for ogr/mysql problem(No reply so far). If anyone has implemented ogr/mysql/php Plz. help me out. What i am trying is to relate a shape file with mysql table. I can able to fetch the data through ogrinfo in command line which is like this---> > > [root at localhost bin]ogrinfo /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp -sql "SELECT st_nm, nsdata.name,nsdata.capital,nsdata.id from n_state > LEFT JOIN 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" > > The command above woks fine but when i try the same from mapfile, I am getting the following error. >> Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. >> in /usr/local/apache/htdocs/gmap/htdocs/gmap75.inc.php on line 425 > > The error above is only for the layer where i have used OGR/MySql table, whereas for layers where i havenot used OGR/MySql(simply shape file & Metadata) its showing the results. > > My mapfile code for ogr is something like this--> ... > LAYER > NAME "n_state" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp" > DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" > STATUS ON > CLASSITEM "st_nm" > CLASS > NAME "NEIGHBOURING STATE" > EXPRESSION /A*/ > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SYMBOL "NS" > END > END Grabriel, Have you verified with ogrinfo that the attribute st_nm appears with the expected values? Try: ogrinfo -ro /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp \ -sql "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" If everything looks ok there, then you might review your use of EXPRESSION. It looks ok to me, but I'm not sure. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From xbobwjones at HOTMAIL.COM Mon May 8 06:31:14 2006 From: xbobwjones at HOTMAIL.COM (Robert William Jones) Date: Mon, 8 May 2006 13:31:14 +0000 Subject: WMS client/cascading wms bounding box p roblem Message-ID: Ok, I tried adding a PROJECTION block to my LAYER, and it doesn't seem to be adding masses of decimal places to the bounding box like before, but it is still shrinking it. Odd. Rob From warmerdam at POBOX.COM Mon May 8 06:37:44 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 May 2006 09:37:44 -0400 Subject: please help: .mdb access problem In-Reply-To: <445EFD3D.7000700@uzr.at> Message-ID: Hedwig Matl wrote: > Hello and thanks for your reply! > > I edited the path for my message. I use the absolute path, which looks > like this (I also tried relative paths): > > --- > CONNECTIONTYPE OGR > CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" > --- > > This is the error I get when I try to open the file with ogrinfo: > > --- > C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb > FAILURE: > Unable to open datasource `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with the > following drivers. > -> ESRI Shapefile > -> MapInfo File > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> DGN > -> VRT > -> AVCBin > -> REC > -> Memory > -> CSV > -> GML > -> ODBC > -> PostgreSQL > -> MySQL > --- Hedwig, Is the .mdb file in question supposed to be an ESRI Personal Geodatabase? If so, your OGR is missing the PGeo (personal geodatabase) driver and so won't be able to read it. This was due to a flaw in the build system for a few months. Hopefully a newer or near future MS4W will have the correction. If the .mdb file is not a personal geodatabase, then you will need to setup an ODBC DSN for it and follow the instructions on the OGR ODBC driver page. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From David.Fawcett at STATE.MN.US Mon May 8 07:22:48 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 8 May 2006 09:22:48 -0500 Subject: [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL Message-ID: Grabiel, My guess on the reason for no responses to your question is that there are not a lot of people using MySQL in joins in MapServer. Even fewer in MapScript. I recently wrote a HowTo on using a direct connection to MySQL for a point data layer. This method uses MySQL for both the spatial data and the attribute data. No shapefile needed. This method may work for you. The HowTo is at: http://mapserver.gis.umn.edu/docs/howto/ogrmysql David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of grabiel Sent: Monday, May 08, 2006 5:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL Hi I have posted one message for ogr/mysql problem(No reply so far). If anyone has implemented ogr/mysql/php Plz. help me out. What i am trying is to relate a shape file with mysql table. I can able to fetch the data through ogrinfo in command line which is like this---> [root at localhost bin]ogrinfo /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp -sql "SELECT st_nm, nsdata.name,nsdata.capital,nsdata.id from n_state LEFT JOIN 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" The command above woks fine but when i try the same from mapfile, I am getting the following error. >Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) >found. >in /usr/local/apache/htdocs/gmap/htdocs/gmap75.inc.php on line 425 The error above is only for the layer where i have used OGR/MySql table, whereas for layers where i havenot used OGR/MySql(simply shape file & Metadata) its showing the results. My mapfile code for ogr is something like this--> ................ ................ LAYER NAME "n_state" TYPE POINT CONNECTIONTYPE OGR CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp" DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" STATUS ON CLASSITEM "st_nm" CLASS NAME "NEIGHBOURING STATE" EXPRESSION /A*/ COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL "NS" END END .......... .......... I have given the mapfile(.map) and Php code(.php) in two files below for better understanding. If anyone has implemented this by PHP plz share your ideas/experience for the query part. Maybe something went terribly wrong in my PHP/Mapscript(I assume). In detail explanation for Php/mapscript will really be appreciated. Expecting some reply this time(What time!!!) Thanks in advance With regards MAP FILE: ********* NAME "test" SIZE 400 400 STATUS ON SYMBOLSET "DATA/symbols.sym" EXTENT 27000.860 2462.020 3582.801 3012.468 UNITS METERS ................. ................. ................ QUERYMAP STYLE HILITE COLOR 255 0 0 STATUS ON END LAYER NAME "TEST" METADATA .......... .......... END TYPE POINT STATUS ON DATA "TEST" CLASS NAME "CITY" COLOR 26 37 255 OUTLINECOLOR 120 120 120 TEMPLATE "ttt_query.html" STYLE COLOR 110 50 100 OUTLINECOLOR 200 200 200 SYMBOL 0 END END END LAYER NAME "n_state" TYPE POINT CONNECTIONTYPE OGR CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp" DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name" STATUS ON CLASSITEM "st_nm" CLASS NAME "NEIGHBOURING STATE" EXPRESSION /A*/ COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL "NS" END END END ************* END OF MAP FILE******************** ************* START OF PHP FILE *************** 0) $HTTP_FORM_VARS = $HTTP_POST_VARS; else if (sizeof($HTTP_GET_VARS) > 0) $HTTP_FORM_VARS = $HTTP_GET_VARS; else $HTTP_FORM_VARS = array(""); /* ==================================================================== */ /* Find out whether GIF is supported... if not falback on PNG/JPG */ /* ==================================================================== */ if (strpos( ms_GetVersion(), "OUTPUT=GIF") > 0 ) { $gAppletImgFmt = MS_GIF; $gImagesFmt = MS_GIF; } else { $gAppletImgFmt = MS_JPEG; $gImagesFmt = MS_PNG; } /*********************************************************************** */ /* function GMap75CheckClick() */ /* */ /* Function to set the status ON/OFF of a layer according to */ /* htrtp parameters passed. (paremeters are here equal to the */ /* layer name). */ /*********************************************************************** */ function GMap75CheckClick() { GLOBAL $HTTP_FORM_VARS; GLOBAL $gpoMap, $gbShowQueryResults, $gszZoomBoxExt; GLOBAL $dfMapExtMinX; GLOBAL $dfMapExtMinY; GLOBAL $dfMapExtMaxX; GLOBAL $dfMapExtMaxY; GLOBAL $dfMaxExtMinX; GLOBAL $dfMaxExtMinY; GLOBAL $dfMaxExtMaxX; GLOBAL $dfMaxExtMaxY; reset( $HTTP_FORM_VARS ); // $gbShowQueryResults=TRUE; // while ( list( $key, $val ) = each( $HTTP_FORM_VARS ) ) // { // printf("%s=%s
\n", $key, $val); // } /* -------------------------------------------------------------------- */ /* look for all layers set to on/off */ /* -------------------------------------------------------------------- */ if (sizeof($HTTP_FORM_VARS) >= 2) { $poLayer = $gpoMap->getlayerbyname(asmroad); if ($HTTP_FORM_VARS["asmroad"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(newvill); if ($HTTP_FORM_VARS["newvill"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(n_state); if ($HTTP_FORM_VARS["n_state"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); $poLayer = $gpoMap->getlayerbyname(raster_back); if ($HTTP_FORM_VARS["raster_back"]) $poLayer->set("status", 1); else $poLayer->set("status", 0); } /* -------------------------------------------------------------------- */ /* these are the extents of waht is seen actually, they are */ /* generated in function GMapRedraw(). */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["minx"]) { $dfMinX = doubleval($HTTP_FORM_VARS["minx"]); $dfMinY = doubleval($HTTP_FORM_VARS["miny"]); $dfMaxX = doubleval($HTTP_FORM_VARS["maxx"]); $dfMaxY = doubleval($HTTP_FORM_VARS["maxy"]); // printf("minx\n"); } else { $dfMinX = $gpoMap->extent->minx; $dfMinY = $gpoMap->extent->miny; $dfMaxX = $gpoMap->extent->maxx; $dfMaxY = $gpoMap->extent->maxy; } /* -------------------------------------------------------------------- */ /* check for image width, hight changes. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["MapSize"]) { if (ereg("([0-9]+),([0-9]+)", $HTTP_FORM_VARS["MapSize"], $MapSizeExtents)) { $dfWidthPix = intval($MapSizeExtents[1]); $dfHeightPix = intval($MapSizeExtents[2]); $gpoMap->set("width",$dfWidthPix); $gpoMap->set("height",$dfHeightPix); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } /* -------------------------------------------------------------------- */ /* check if the key map has been cliked. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["KEYMAP_x"]) { /* -------------------------------------------------------------------- */ /* initilalize the georef extents of the key map. */ /* -------------------------------------------------------------------- */ $dfKeyMapXMin = $gpoMap->reference->extent->minx; $dfKeyMapYMin = $gpoMap->reference->extent->miny; $dfKeyMapXMax = $gpoMap->reference->extent->maxx; $dfKeyMapYMax = $gpoMap->reference->extent->maxy; // printf("dfkeyxmin %f
\n",$dfKeyMapXMin); // printf("dfkeyymin %f
\n",$dfKeyMapYMin); // printf("dfkeyxmax %f
\n",$dfKeyMapXMax); // printf("dfkeyymax %f
\n",$dfKeyMapYMax); $nClickPixX = intval($HTTP_FORM_VARS[KEYMAP_x]); $nClickPixY = intval($HTTP_FORM_VARS[KEYMAP_y]); $dfWidthPix = doubleval($HTTP_FORM_VARS[KEYMAPXSIZE]); $dfHeightPix = doubleval($HTTP_FORM_VARS[KEYMAPYSIZE]); $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfKeyMapXMin, $dfKeyMapXMax, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfKeyMapYMin, $dfKeyMapYMax, 1); $dfDeltaX = $dfMaxX - $dfMinX; $dfDeltaY = $dfMaxY - $dfMinY; $dfMiddleX = $nClickGeoX; $dfMiddleY = $nClickGeoY; $dfNewMinX = $dfMiddleX - ($dfDeltaX/2); $dfNewMinY = $dfMiddleY - ($dfDeltaY/2); $dfNewMaxX = $dfMiddleX + ($dfDeltaX/2); $dfNewMaxY = $dfMiddleY + ($dfDeltaY/2); /* -------------------------------------------------------------------- */ /* not go outside the borders. */ /* -------------------------------------------------------------------- */ if ($dfNewMinX < $dfMaxExtMinX) { $dfNewMinX = $dfMaxExtMinX; $dfNewMaxX = $dfNewMinX + ($dfDeltaX); } if ($dfNewMaxX > $dfMaxExtMaxX) { $dfNewMaxX = $dfMaxExtMaxX; $dfNewMinX = $dfNewMaxX - ($dfDeltaX); } if ($dfNewMinY < $dfMaxExtMinY) { $dfNewMinY = $dfMaxExtMinY; $dfNewMaxY = $dfNewMinY + ($dfDeltaY); } if ($dfNewMaxY > $dfMaxExtMaxY) { $dfNewMaxY = $dfMaxExtMaxY; $dfNewMinY = $dfNewMaxY - ($dfDeltaY); } SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY); // return; } /* -------------------------------------------------------------------- */ /* province selection. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["ViewRegion"]) { if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) { $dfMinX = doubleval($ProvExtents[1]); $dfMinY = doubleval($ProvExtents[2]); $dfMaxX = doubleval($ProvExtents[3]); $dfMaxY = doubleval($ProvExtents[4]); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } /* -------------------------------------------------------------------- */ /* extract the current width and height. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["imagewidth"]) { $dfWidthPix = intval($HTTP_FORM_VARS["imagewidth"]); $dfHeightPix = intval($HTTP_FORM_VARS["imageheight"]); } else { $dfWidthPix = $gpoMap->width; $dfHeightPix = $gpoMap->height; } /* -------------------------------------------------------------------- */ /* check if it the redraw button which is pressed : if it is */ /* the case redraw the same extents. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["redraw_x"]) { SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } /* -------------------------------------------------------------------- */ /* Check for zoom out (auto-submit) button. */ /* -------------------------------------------------------------------- */ else if ($HTTP_FORM_VARS["CMD"] == "ZOOM_OUT" && !($HTTP_FORM_VARS["mainmap_x"] || $HTTP_FORM_VARS["INPUT_COORD"])) { $oPixelPos = ms_newpointobj(); $oGeorefExt = ms_newrectobj(); $oGeorefMaxExt = ms_newrectobj(); $oPixelPos->setxy($dfWidthPix/2.0, $dfHeightPix/2.0); $oGeorefExt->setextent($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, $dfMaxExtMaxX, $dfMaxExtMaxY); if (!$gpoMap->zoompoint(-2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt)) { $gpoMap->setExtent($dfMapExtMinX, $dfMapExtMinY, $dfMapExtMaxX, $dfMapExtMaxY); } } /* -------------------------------------------------------------------- */ /* check for zoom / query through applet or image click */ /* -------------------------------------------------------------------- */ else { $dfDeltaX = $dfMaxX - $dfMinX; $dfDeltaY = $dfMaxY - $dfMinY; /* -------------------------------------------------------------------- */ /* extract click position. */ /* Convert the click pos to georeref coordinates. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["mainmap_x"] || $HTTP_FORM_VARS["INPUT_TYPE"]) { $bRectangleInput = 0; if ($HTTP_FORM_VARS["INPUT_TYPE"]) { $szCoord = strval($HTTP_FORM_VARS["INPUT_COORD"]); $szCoordType = strval($HTTP_FORM_VARS["INPUT_TYPE"]); if (strcmp($szCoordType,"auto_point") == 0) { $szCoordArray =explode(",", $szCoord); $nClickPixX = $szCoordArray[0]; $nClickPixY = $szCoordArray[1]; } /* -------------------------------------------------------------------- */ /* Rosa applet is used and the input is a rectangle */ /* (syntax is X1,Y1;X2,Y2). */ /* If the 2 sets of points are the same treat the case as a */ /* point click. */ /* -------------------------------------------------------------------- */ else if (strcmp($szCoordType,"auto_rect") == 0) { $bRectangleInput = 1; $szFirstSetXY = strtok($szCoord, ";"); $szSecondSetXY = strtok("\n"); $szFirstCoord = explode(",", $szFirstSetXY); $szSecondCoord = explode(",", $szSecondSetXY); $oPixelRect = ms_newrectobj(); $oPixelRect->setextent($szFirstCoord[0], $szFirstCoord[1], $szSecondCoord[0], $szSecondCoord[1]); if ($oPixelRect->minx == $oPixelRect->maxx && $oPixelRect->miny == $oPixelRect->maxy) { $bRectangleInput = 0; $nClickPixX = $oPixelRect->minx; $nClickPixY = $oPixelRect->miny; } else { if ($oPixelRect->minx > $oPixelRect->maxx) { // Use *1 to avoid dfTmp becoming a reference // to $oPixelRect->minx with PHP4 !?!?!? $dfTmp = $oPixelRect->minx*1; $oPixelRect->set("minx",$oPixelRect->maxx); $oPixelRect->set("maxx",$dfTmp); } if ($oPixelRect->miny < $oPixelRect->maxy) { $dfTmp = $oPixelRect->miny*1; $oPixelRect->set("miny", $oPixelRect->maxy); $oPixelRect->set("maxy", $dfTmp); } } // We'll insert a copy of the box's georef extent in a // comment in the HTML output... useful for defining views. $gszZoomBoxExt = sprintf("", GMapPix2Geo($oPixelRect->minx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0), GMapPix2Geo($oPixelRect->miny, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1), GMapPix2Geo($oPixelRect->maxx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0), GMapPix2Geo($oPixelRect->maxy, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1) ); } } else { $nClickPixX = intval($HTTP_FORM_VARS[mainmap_x]); $nClickPixY = intval($HTTP_FORM_VARS[mainmap_y]); } $oPixelPos = ms_newpointobj(); $oGeorefExt = ms_newrectobj(); $oGeorefMaxExt = ms_newrectobj(); $oPixelPos->setxy($nClickPixX, $nClickPixY); $oGeorefExt->setextent($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); $oGeorefMaxExt->setextent($dfMaxExtMinX, $dfMaxExtMinY, $dfMaxExtMaxX, $dfMaxExtMaxY); if ($HTTP_FORM_VARS["CMD"] == "ZOOM_IN") { if ($bRectangleInput) { $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, $oGeorefExt); } else $gpoMap->zoompoint(2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt); } if ($HTTP_FORM_VARS["CMD"] == "ZOOM_OUT") { if (!$gpoMap->zoompoint(-2, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt)) { $gpoMap->setExtent($dfMapExtMinX, $dfMapExtMinY, $dfMapExtMaxX, $dfMapExtMaxY); } } if ($HTTP_FORM_VARS["CMD"] == "RECENTER") { $gpoMap->zoompoint(1, $oPixelPos, $dfWidthPix, $dfHeightPix, $oGeorefExt, $oGeorefMaxExt); } else if ($HTTP_FORM_VARS["CMD"] == "QUERY_POINT") { /* -------------------------------------------------------------------- */ /* Query selected layers at point location or in a rectangle. */ /* DumpQueryResults() will be called later to display the */ /* results. */ /* -------------------------------------------------------------------- */ if ($bRectangleInput) { $oGeorefRect = ms_newrectobj(); $oGeorefRect->set("minx", GMapPix2Geo($oPixelRect->minx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0)); $oGeorefRect->set("maxx", GMapPix2Geo($oPixelRect->maxx, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0)); $oGeorefRect->set("miny", GMapPix2Geo($oPixelRect->miny, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1)); $oGeorefRect->set("maxy", GMapPix2Geo($oPixelRect->maxy, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1)); // Use '@' to avoid warning if query found nothing @$gpoMap->queryByRect($oGeorefRect); $gbShowQueryResults = TRUE; } else { $nClickGeoX = GMapPix2Geo($nClickPixX, 0, $dfWidthPix, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo($nClickPixY, 0, $dfHeightPix, $dfMinY, $dfMaxY, 1); $oClickGeo = ms_newPointObj(); $oClickGeo->setXY($nClickGeoX, $nClickGeoY); // Use '@' to avoid warning if query found nothing $gpoMap->queryByPoint($oClickGeo, MS_SINGLE, -1); $gbShowQueryResults = TRUE; } } } } } /*********************************************************************** */ /* fuction GMapGetStatus($szLayerName) */ /* */ /* return if the layer is on or off (displayed or not) : */ /* */ /* ON = MS_ON =1 */ /* OFF = MS_OFF = 0 */ /* */ /*********************************************************************** */ function GMapGetStatus($szLayerName) { GLOBAL $gpoMap; $poLayer = $gpoMap->getlayerbyname($szLayerName); $nStatus = $poLayer->status; return ($nStatus); } /*********************************************************************** */ /* function GMapDrawMap() */ /* */ /* Funcion to draw the contains of the map. */ /*********************************************************************** */ function GMapDrawMap() { GLOBAL $gpoMap, $gbShowQueryResults; GLOBAL $gbIsHtmlMode; GLOBAL $gszCommand, $gszZoomBoxExt; GLOBAL $gAppletImgFmt, $gImagesFmt; if ($gbShowQueryResults) { $img = $gpoMap->drawQuery(); } else $img = $gpoMap->draw(); $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); echo "\n".$gszZoomBoxExt."\n"; printf("", $gpoMap->extent->minx); printf("", $gpoMap->extent->miny); printf("", $gpoMap->extent->maxx); printf("", $gpoMap->extent->maxy); printf("", $gpoMap->width); printf("", $gpoMap->height); /* -------------------------------------------------------------------- */ /* Use the command to update the rosa applet. */ /* -------------------------------------------------------------------- */ if ( strlen($gszCommand) == 0) { $szButtonName = "zoomin"; } else { if ($gszCommand == "ZOOM_IN") $szButtonName = "zoomin"; // Do not keep zoomout pressed ot avoid infinite zoomout loop!!! // if ($gszCommand == "ZOOM_OUT") // $szButtonName = "zoomout"; if ($gszCommand == "RECENTER") $szButtonName = "recentre"; if ($gszCommand == "QUERY_POINT") $szButtonName = "pquery"; } if (!$gbIsHtmlMode) //use applet { printf("\n"); printf("\n", $gpoMap->width, $gpoMap->height); printf("\n"); printf(""); printf("",$url); printf(""); printf("\n"); printf("\n"); printf("\n"); printf("",$szButtonName); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf(""); printf(""); printf(""); printf(""); } else { echo"width HEIGHT=$gpoMap->height NAME=mainmap>"; printf("", $gszCommand); } // printf("\n", $url, $gpoMap->width, $gpoMap->height); } /*********************************************************************** */ /* function GMapDrawKeyMap() */ /* */ /* Utility function to draw the refernece map (key map). */ /*********************************************************************** */ function GMapDrawKeyMap() { GLOBAL $gpoMap; GLOBAL $gAppletImgFmt, $gImagesFmt; $img = $gpoMap->drawreferencemap(); $url = $img->saveWebImage($gImagesFmt, 0, 0, -1); printf("", $img->width); printf("", $img->height); // echo"\n"; echo""; } /*********************************************************************** */ /* function GMapDrawScaleBar() */ /* */ /* Draw sacle bar. */ /*********************************************************************** */ function GMapDrawScaleBar() { GLOBAL $gpoMap; GLOBAL $gAppletImgFmt, $gImagesFmt; $img = $gpoMap->drawScaleBar(); $url = $img->saveWebImage($gImagesFmt, 0, 0, -1); echo"\n"; } /*********************************************************************** */ /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, dfGeoMax,*/ /* $nInversePix) */ /* */ /* Utility function to convert a pixel position to geocoded */ /* position. */ /* */ /* The parameter $nInversePix could be set to 1 for Y pixel */ /* coordinates where the UL > LR. Else set to 0. */ /*********************************************************************** */ function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { // if ($nPixPos < $dfPixMin) // return -1; // if ($nPixPos > $dfPixMax) // return -1; // if ($dfPixMin >= $dfPixMaX || // $dfGeoMin >= $dfGeoMax) // return -1; $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } /*********************************************************************** */ /* function SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY)*/ /* */ /* Set map extents of the map. We also make a test here with */ /* the min/max scale set in the .map file (the web object) */ /* to verify if the extents are respected. If it is the */ /* case return true. Else return false. */ /* */ /* Note : the extents of the map are still set using the */ /* parameters passed in argument. The caller has the */ /* responsability to check the return value. */ /*********************************************************************** */ function SetMapExtents($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY) { GLOBAL $gpoMap; $gpoMap->setExtent($dfNewMinX, $dfNewMinY, $dfNewMaxX, $dfNewMaxY); $dfScale = $gpoMap->scale; // printf("scale : %f
\n", $dfScale); // printf("minscale : %f
\n",$gpoMap->web->minscale); // printf("maxscale : %f
\n",$gpoMap->web->maxscale); if ($dfScale < $gpoMap->web->minscale || $dfScale > $gpoMap->web->maxscale) return false; return true; } /*********************************************************************** */ /* function GMapDumpQueryResults() */ /* */ /* Produce a table with query results. */ /* Simply prints an " " if there are no query results. */ /*********************************************************************** */ function GMapDumpQueryResults() { GLOBAL $gpoMap, $gbShowQueryResults; if (! $gbShowQueryResults ) { printf(" "); return; } $numResultsTotal = 0; for($iLayer=0; $iLayer < $gpoMap->numlayers; $iLayer++) { $oLayer = $gpoMap->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); printf($oLayer.name); if ($numResults == 0) continue; // No results in this layer // Open layer's table... take the list of fields to display from // the "RESULT_FIELDS" metadata in the layer object. $oLayer->open(); // // One row in table for each selected record // for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); if ($iRes == 0) { // // Table header: attribute names... // if ($oLayer->getMetaData("RESULT_FIELDS")) { // Display fields listed in RESULT_FIELDS metadata $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); } else { // RESULT_FIELDS not set. display first 4 fields $i=0; while ( list($key,$val) = each($oShape->values) ) { $selFields[$i++] = $key; if ($i>=4) break; } } printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); for ($iField=0; $iField < count($selFields); $iField++) { printf("\n"); } printf("\n"); } printf("\n"); printf("\n", $oShape->bounds->minx, $oShape->bounds->miny, $oShape->bounds->maxx, $oShape->bounds->maxy); // printf("\n"); for($iField=0; $iField < sizeof($selFields); $iField++) { printf("\n"); } printf("\n"); $oShape->free(); $numResultsTotal++; } $oLayer->close(); printf("
", count($selFields)); printf("
%s
", $oLayer->getMetaData("DESCRIPTION")); printf("
"); printf("%s",$selFields[$iField]); printf("
"); printf("%s", $oShape->values[$selFields[$iField]]); printf("
\n"); } //printf($oLayer); if ($numResultsTotal == 0) echo "Nothing at query point."; } ?> ****************END OF PHP SCRIPT*************************** _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From David.Fawcett at STATE.MN.US Mon May 8 07:27:38 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 8 May 2006 09:27:38 -0500 Subject: Creating imagemaps with php/mapscript Message-ID: Dejan, Take a look at: http://mapserver.gis.umn.edu/docs/howto/imagemaps This uses cgi mapserver as opposed to MapScript, but you could likely translate it. Actually, I am not sure if this functionality exists in MapScript. Can any of the mapscript maintainers verify if the shapexy functionality exists in any of the mapscript flavors? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Monday, May 08, 2006 6:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Creating imagemaps with php/mapscript Hi, I would like to create client side imagemap using php/mapscript. I have read a wiki document on: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap and tried to use this example but it didn't work... Does someone have a working example? thanks dejan From warmerdam at POBOX.COM Mon May 8 08:29:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 May 2006 11:29:38 -0400 Subject: Why do I get this error message when trying to access WFS? In-Reply-To: <009701c6707f$8c379c10$6400a8c0@DJW83V01> Message-ID: cropwithdawn wrote: > Frank > > I'm running MapServer on Windows 2000 Professional. I found out that > msOWSBuildURLFilename() in mapows.c adds a backslash character. > > See following snippet: > > #ifdef _WIN32 > sprintf(pszBuf, "%s\\", pszPath); > #else > sprintf(pszBuf, "%s/", pszPath); > #endif > > I think this is what's messing things up. My mapfile works fine for WMS and > the GML file mentioned in the error message is being created in the > appropriate directory. > > Is this a bug? If so, what's the work around? If not, what am I doing wrong? Jeff, I have filed a bug in the MapServer bugzilla on this topic. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1770 I would encourage you to add yourself to the cc: list. I'll give Assefa or anyone else a chance to comment on the bug, and failing that I'll dig into it. In the meantime I would encourage you to remove the trailing backslash from the above sprintf() in your local code (or perhaps remove it from you temp file path in the web section), and verify that works. I do *think* it is a bug in the code, but I am not exactly sure. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From rockwell_001 at YAHOO.COM Mon May 8 09:22:32 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Mon, 8 May 2006 09:22:32 -0700 Subject: WMS Server call in .net Message-ID: Hi all i was wondering if there is an equivalent script for wms request for asp script with iis in the below link http://ms.gis.umn.edu/docs/howto/wms_server, i am trying to do the same thing in vb.net .... Any suggestions please ..... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisg at BIOLOGY.USU.EDU Mon May 8 10:16:46 2006 From: chrisg at BIOLOGY.USU.EDU (Chris Garrard) Date: Mon, 8 May 2006 11:16:46 -0600 Subject: displaying rasters with negative pixel values Message-ID: Hi Chris, Thanks for looking at this. Here's the map file. It displays classes c5 - c10 just fine, and shows part of the data from the c4 class. I have big blank areas for classes c1 - c3. If I use either of the commented-out processing directives instead of the classes, I still get the blank areas. The image displays fine in other software, so I know the data are there. MAP NAME utah EXTENT -1510000 -285000 -1020000 375000 UNITS METERS IMAGETYPE png SIZE 450 450 OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT OFF END WEB IMAGEPATH "/webgis/apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME mintemp TYPE raster STATUS default DATA '/auto/earth2/ars_data/statedata/utah/ut_tmin.img' # PROCESSING "SCALE=AUTO" # PROCESSING "SCALE=-7,10" CLASS NAME 'c1' TITLE '(-7) - (-6)' EXPRESSION ([pixel] >= -7 AND [pixel] <= -6) COLOR 0 0 255 END CLASS NAME 'c2' TITLE '(-5.9) - (-4)' EXPRESSION ([pixel] > -6 AND [pixel] <= -4) COLOR 54 97 255 END CLASS NAME 'c3' TITLE '(-3.9) - (-2)' EXPRESSION ([pixel] > -4 AND [pixel] <= -2) COLOR 56 171 255 END CLASS NAME 'c4' TITLE '(-1.9) - 0' EXPRESSION ([pixel] > -2 AND [pixel] <= 0) COLOR 0 255 255 END CLASS NAME 'c5' TITLE '0 - 1' EXPRESSION ([pixel] > 0 AND [pixel] <= 1) COLOR 145 255 181 END CLASS NAME 'c6' TITLE '1.01 - 2' EXPRESSION ([pixel] > 1 AND [pixel] <= 2) COLOR 209 255 105 END CLASS NAME 'c7' TITLE '2.01 - 3' EXPRESSION ([pixel] > 2 AND [pixel] <= 3) COLOR 255 255 0 END CLASS NAME 'c8' TITLE '3.01 - 4' EXPRESSION ([pixel] > 3 AND [pixel] <= 4) COLOR 255 184 0 END CLASS NAME 'c9' TITLE '4.01 - 6' EXPRESSION ([pixel] > 4 AND [pixel] <= 6) COLOR 255 112 0 END CLASS NAME 'c10' TITLE '6.01 - 10' EXPRESSION ([pixel] > 6 AND [pixel] <= 10) COLOR 255 0 0 END END END > -----Original Message----- > From: Christopher Condit [mailto:condit at sdsc.edu] > Sent: Friday, May 05, 2006 5:59 PM > To: Chris Garrard; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel values > > Hi Chris- > Can you send your map file? I've had great success with > negative raster > values when defining my own classes (Sea temperature GeoTIFF > / AAI Grid, > for instance). > > -Chris > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Chris Garrard > Sent: Friday, May 05, 2006 5:16 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] displaying rasters with negative pixel > values > > Hi all, > > I have a raster data set that has values from -7 to 10 (mean minimum > temps C). I can't get any of the pixels with values less than -1 to > display in mapserver. I have tried using the processing directive to > scale the values and I've tried specifying classes, and neither works. > I have also tried different file formats (geotiffs and erdas .img). > > Anyone know why this isn't working? > > I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. > > Thanks for any ideas, > Chris > From julien.63 at FREE.FR Mon May 8 10:56:21 2006 From: julien.63 at FREE.FR (Julien Bessiere) Date: Mon, 8 May 2006 19:56:21 +0200 Subject: msGetLabelSize() Message-ID: Hi, I'm quite new in using mapserver so my question may be very basic. I'm working with FGS package on FC5. i have this error message : msGetLabelSize(): TrueType Font error. Requested font (Vera) not found. I've tried different path such as : FONTSET "/usr/share/X11/fonts/TTF/" or FONTSET "/usr/share/fonts/bitstream-vera" or FONTSET "/home/julien/fgs/www/htdocs/4/fontset.txt with fontset.txt = "/usr/share/fonts/bitstream-vera" LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "Vera" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END or LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "Vera.ttf" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END But i still have the same message ! Does someone have a suggestion ? Thanks Julien From bartvde at XS4ALL.NL Mon May 8 11:03:37 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 8 May 2006 20:03:37 +0200 Subject: msGetLabelSize() In-Reply-To: <1147110981.445f8645a1fe5@imp4-g19.free.fr> Message-ID: I have attached a sample fontset file, it's a text file with "font name" and "ttf file". You could put your ttf files in the same directory as the fontset, or use a path in the font file. Best regards, Bart Julien Bessiere wrote: >Hi, >I'm quite new in using mapserver so my question may be very basic. >I'm working with FGS package on FC5. > >i have this error message : >msGetLabelSize(): TrueType Font error. Requested font (Vera) not found. > >I've tried different path such as : > >FONTSET "/usr/share/X11/fonts/TTF/" >or >FONTSET "/usr/share/fonts/bitstream-vera" >or >FONTSET "/home/julien/fgs/www/htdocs/4/fontset.txt >with fontset.txt = "/usr/share/fonts/bitstream-vera" > > >LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "Vera" > COLOR 0 0 0 > SIZE 10 > ANTIALIAS true > END >END > >or > >LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "Vera.ttf" > COLOR 0 0 0 > SIZE 10 > ANTIALIAS true > END >END > >But i still have the same message ! >Does someone have a suggestion ? >Thanks >Julien > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fonts.txt URL: From condit at SDSC.EDU Mon May 8 14:30:58 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Mon, 8 May 2006 14:30:58 -0700 Subject: displaying rasters with negative pixel values Message-ID: Hi Chris- Here's an excerpt from a mapfile that works for me. There are two differences: 1) I use the SCALE_BUCKETS processing directive. Try adding this. 2) I haven't tried Erdas formats, which run through GDAL or MapServer. All the formats I've used are coming through GDAL. So the question is: is your MapServer compiled with Erdas support? If so then there's a difference there as well. Run a mapserv -v and check to see if INPUT=EPPL7 is there. There could be something else that's totally obvious, too, and we're just not seeing it. -Chris ... DATA "surfaceTemperature.txt" NAME "Surface Temperature" OFFSITE 0 0 0 PROCESSING "SCALE_BUCKETS=30" PROJECTION "init=epsg:4326" END TEMPLATE "..\templates\search.html" TYPE RASTER UNITS DD CLASS NAME "-1.928 to -0.866" EXPRESSION ([pixel] >= -1.9275 and [pixel] < -0.86574) METADATA END STYLE ANGLE 360 COLOR 0 0 255 SYMBOL 0 END END CLASS NAME "-0.866 to 0.196" EXPRESSION ([pixel] >= -0.86574 and [pixel] < 0.19602) METADATA END STYLE ANGLE 360 COLOR 13 27 254 SYMBOL 0 END END CLASS ... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Garrard Sent: Monday, May 08, 2006 10:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] displaying rasters with negative pixel values Hi Chris, Thanks for looking at this. Here's the map file. It displays classes c5 - c10 just fine, and shows part of the data from the c4 class. I have big blank areas for classes c1 - c3. If I use either of the commented-out processing directives instead of the classes, I still get the blank areas. The image displays fine in other software, so I know the data are there. MAP NAME utah EXTENT -1510000 -285000 -1020000 375000 UNITS METERS IMAGETYPE png SIZE 450 450 OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT OFF END WEB IMAGEPATH "/webgis/apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME mintemp TYPE raster STATUS default DATA '/auto/earth2/ars_data/statedata/utah/ut_tmin.img' # PROCESSING "SCALE=AUTO" # PROCESSING "SCALE=-7,10" CLASS NAME 'c1' TITLE '(-7) - (-6)' EXPRESSION ([pixel] >= -7 AND [pixel] <= -6) COLOR 0 0 255 END CLASS NAME 'c2' TITLE '(-5.9) - (-4)' EXPRESSION ([pixel] > -6 AND [pixel] <= -4) COLOR 54 97 255 END CLASS NAME 'c3' TITLE '(-3.9) - (-2)' EXPRESSION ([pixel] > -4 AND [pixel] <= -2) COLOR 56 171 255 END CLASS NAME 'c4' TITLE '(-1.9) - 0' EXPRESSION ([pixel] > -2 AND [pixel] <= 0) COLOR 0 255 255 END CLASS NAME 'c5' TITLE '0 - 1' EXPRESSION ([pixel] > 0 AND [pixel] <= 1) COLOR 145 255 181 END CLASS NAME 'c6' TITLE '1.01 - 2' EXPRESSION ([pixel] > 1 AND [pixel] <= 2) COLOR 209 255 105 END CLASS NAME 'c7' TITLE '2.01 - 3' EXPRESSION ([pixel] > 2 AND [pixel] <= 3) COLOR 255 255 0 END CLASS NAME 'c8' TITLE '3.01 - 4' EXPRESSION ([pixel] > 3 AND [pixel] <= 4) COLOR 255 184 0 END CLASS NAME 'c9' TITLE '4.01 - 6' EXPRESSION ([pixel] > 4 AND [pixel] <= 6) COLOR 255 112 0 END CLASS NAME 'c10' TITLE '6.01 - 10' EXPRESSION ([pixel] > 6 AND [pixel] <= 10) COLOR 255 0 0 END END END > -----Original Message----- > From: Christopher Condit [mailto:condit at sdsc.edu] > Sent: Friday, May 05, 2006 5:59 PM > To: Chris Garrard; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel values > > Hi Chris- > Can you send your map file? I've had great success with > negative raster > values when defining my own classes (Sea temperature GeoTIFF > / AAI Grid, > for instance). > > -Chris > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Chris Garrard > Sent: Friday, May 05, 2006 5:16 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] displaying rasters with negative pixel > values > > Hi all, > > I have a raster data set that has values from -7 to 10 (mean minimum > temps C). I can't get any of the pixels with values less than -1 to > display in mapserver. I have tried using the processing directive to > scale the values and I've tried specifying classes, and neither works. > I have also tried different file formats (geotiffs and erdas .img). > > Anyone know why this isn't working? > > I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. > > Thanks for any ideas, > Chris > From chrisg at BIOLOGY.USU.EDU Mon May 8 14:55:49 2006 From: chrisg at BIOLOGY.USU.EDU (Chris Garrard) Date: Mon, 8 May 2006 15:55:49 -0600 Subject: displaying rasters with negative pixel values Message-ID: I figured out the problem. Well, at least how to fix it. After playing with it some more, I determined that mapserver wasn't treating the data set as 8-bit signed, but instead was treating it as 8-bit unsigned. I converted it to 16-bit signed, and it worked great. Chris > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Garrard > Sent: Monday, May 08, 2006 10:17 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel values > > Hi Chris, > > Thanks for looking at this. Here's the map file. It displays classes > c5 - c10 just fine, and shows part of the data from the c4 class. I > have big blank areas for classes c1 - c3. If I use either of the > commented-out processing directives instead of the classes, I > still get > the blank areas. The image displays fine in other software, so I know > the data are there. > > MAP > NAME utah > EXTENT -1510000 -285000 -1020000 375000 > UNITS METERS > IMAGETYPE png > SIZE 450 450 > > OUTPUTFORMAT > NAME PNG > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > TRANSPARENT OFF > END > > WEB > IMAGEPATH "/webgis/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME mintemp > TYPE raster > STATUS default > DATA '/auto/earth2/ars_data/statedata/utah/ut_tmin.img' > # PROCESSING "SCALE=AUTO" > # PROCESSING "SCALE=-7,10" > CLASS > NAME 'c1' > TITLE '(-7) - (-6)' > EXPRESSION ([pixel] >= -7 AND [pixel] <= -6) > COLOR 0 0 255 > END > CLASS > NAME 'c2' > TITLE '(-5.9) - (-4)' > EXPRESSION ([pixel] > -6 AND [pixel] <= -4) > COLOR 54 97 255 > END > CLASS > NAME 'c3' > TITLE '(-3.9) - (-2)' > EXPRESSION ([pixel] > -4 AND [pixel] <= -2) > COLOR 56 171 255 > END > CLASS > NAME 'c4' > TITLE '(-1.9) - 0' > EXPRESSION ([pixel] > -2 AND [pixel] <= 0) > COLOR 0 255 255 > END > CLASS > NAME 'c5' > TITLE '0 - 1' > EXPRESSION ([pixel] > 0 AND [pixel] <= 1) > COLOR 145 255 181 > END > CLASS > NAME 'c6' > TITLE '1.01 - 2' > EXPRESSION ([pixel] > 1 AND [pixel] <= 2) > COLOR 209 255 105 > END > CLASS > NAME 'c7' > TITLE '2.01 - 3' > EXPRESSION ([pixel] > 2 AND [pixel] <= 3) > COLOR 255 255 0 > END > CLASS > NAME 'c8' > TITLE '3.01 - 4' > EXPRESSION ([pixel] > 3 AND [pixel] <= 4) > COLOR 255 184 0 > END > CLASS > NAME 'c9' > TITLE '4.01 - 6' > EXPRESSION ([pixel] > 4 AND [pixel] <= 6) > COLOR 255 112 0 > END > CLASS > NAME 'c10' > TITLE '6.01 - 10' > EXPRESSION ([pixel] > 6 AND [pixel] <= 10) > COLOR 255 0 0 > END > END > > END > > > -----Original Message----- > > From: Christopher Condit [mailto:condit at sdsc.edu] > > Sent: Friday, May 05, 2006 5:59 PM > > To: Chris Garrard; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] displaying rasters with > > negative pixel values > > > > Hi Chris- > > Can you send your map file? I've had great success with > > negative raster > > values when defining my own classes (Sea temperature GeoTIFF > > / AAI Grid, > > for instance). > > > > -Chris > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Chris Garrard > > Sent: Friday, May 05, 2006 5:16 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel > > values > > > > Hi all, > > > > I have a raster data set that has values from -7 to 10 (mean minimum > > temps C). I can't get any of the pixels with values less than -1 to > > display in mapserver. I have tried using the processing > directive to > > scale the values and I've tried specifying classes, and > neither works. > > I have also tried different file formats (geotiffs and erdas .img). > > > > Anyone know why this isn't working? > > > > I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. > > > > Thanks for any ideas, > > Chris > > > From chrisg at BIOLOGY.USU.EDU Mon May 8 15:04:47 2006 From: chrisg at BIOLOGY.USU.EDU (Chris Garrard) Date: Mon, 8 May 2006 16:04:47 -0600 Subject: displaying rasters with negative pixel values Message-ID: Hi Chris, I tried adding the scale_buckets directive, and it didn't help. I had also tried using geotiffs instead of erdas files, and got the same results with either. But it works fine with or without scale_buckets once I converted the image to 16 bit. Thanks! Chris > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit > Sent: Monday, May 08, 2006 2:31 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel values > > Hi Chris- > Here's an excerpt from a mapfile that works for me. There are two > differences: > 1) I use the SCALE_BUCKETS processing directive. Try adding this. > 2) I haven't tried Erdas formats, which run through GDAL or MapServer. > All the formats I've used are coming through GDAL. So the > question is: > is your MapServer compiled with Erdas support? If so then there's a > difference there as well. > Run a mapserv -v and check to see if INPUT=EPPL7 is there. > > There could be something else that's totally obvious, too, and we're > just not seeing it. > > -Chris > > ... > DATA "surfaceTemperature.txt" > NAME "Surface Temperature" > OFFSITE 0 0 0 > PROCESSING "SCALE_BUCKETS=30" > PROJECTION > "init=epsg:4326" > END > TEMPLATE "..\templates\search.html" > TYPE RASTER > UNITS DD > CLASS > NAME "-1.928 to -0.866" > EXPRESSION ([pixel] >= -1.9275 and [pixel] < -0.86574) > METADATA > END > STYLE > ANGLE 360 > COLOR 0 0 255 > SYMBOL 0 > END > END > CLASS > NAME "-0.866 to 0.196" > EXPRESSION ([pixel] >= -0.86574 and [pixel] < 0.19602) > METADATA > END > STYLE > ANGLE 360 > COLOR 13 27 254 > SYMBOL 0 > END > END > CLASS > ... > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Chris Garrard > Sent: Monday, May 08, 2006 10:17 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] displaying rasters with negative > pixel values > > Hi Chris, > > Thanks for looking at this. Here's the map file. It displays classes > c5 - c10 just fine, and shows part of the data from the c4 class. I > have big blank areas for classes c1 - c3. If I use either of the > commented-out processing directives instead of the classes, I > still get > the blank areas. The image displays fine in other software, so I know > the data are there. > > MAP > NAME utah > EXTENT -1510000 -285000 -1020000 375000 > UNITS METERS > IMAGETYPE png > SIZE 450 450 > > OUTPUTFORMAT > NAME PNG > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > TRANSPARENT OFF > END > > WEB > IMAGEPATH "/webgis/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME mintemp > TYPE raster > STATUS default > DATA '/auto/earth2/ars_data/statedata/utah/ut_tmin.img' > # PROCESSING "SCALE=AUTO" > # PROCESSING "SCALE=-7,10" > CLASS > NAME 'c1' > TITLE '(-7) - (-6)' > EXPRESSION ([pixel] >= -7 AND [pixel] <= -6) > COLOR 0 0 255 > END > CLASS > NAME 'c2' > TITLE '(-5.9) - (-4)' > EXPRESSION ([pixel] > -6 AND [pixel] <= -4) > COLOR 54 97 255 > END > CLASS > NAME 'c3' > TITLE '(-3.9) - (-2)' > EXPRESSION ([pixel] > -4 AND [pixel] <= -2) > COLOR 56 171 255 > END > CLASS > NAME 'c4' > TITLE '(-1.9) - 0' > EXPRESSION ([pixel] > -2 AND [pixel] <= 0) > COLOR 0 255 255 > END > CLASS > NAME 'c5' > TITLE '0 - 1' > EXPRESSION ([pixel] > 0 AND [pixel] <= 1) > COLOR 145 255 181 > END > CLASS > NAME 'c6' > TITLE '1.01 - 2' > EXPRESSION ([pixel] > 1 AND [pixel] <= 2) > COLOR 209 255 105 > END > CLASS > NAME 'c7' > TITLE '2.01 - 3' > EXPRESSION ([pixel] > 2 AND [pixel] <= 3) > COLOR 255 255 0 > END > CLASS > NAME 'c8' > TITLE '3.01 - 4' > EXPRESSION ([pixel] > 3 AND [pixel] <= 4) > COLOR 255 184 0 > END > CLASS > NAME 'c9' > TITLE '4.01 - 6' > EXPRESSION ([pixel] > 4 AND [pixel] <= 6) > COLOR 255 112 0 > END > CLASS > NAME 'c10' > TITLE '6.01 - 10' > EXPRESSION ([pixel] > 6 AND [pixel] <= 10) > COLOR 255 0 0 > END > END > > END > > > -----Original Message----- > > From: Christopher Condit [mailto:condit at sdsc.edu] > > Sent: Friday, May 05, 2006 5:59 PM > > To: Chris Garrard; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] displaying rasters with > > negative pixel values > > > > Hi Chris- > > Can you send your map file? I've had great success with > > negative raster > > values when defining my own classes (Sea temperature GeoTIFF > > / AAI Grid, > > for instance). > > > > -Chris > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Chris Garrard > > Sent: Friday, May 05, 2006 5:16 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] displaying rasters with > negative pixel > > values > > > > Hi all, > > > > I have a raster data set that has values from -7 to 10 (mean minimum > > temps C). I can't get any of the pixels with values less than -1 to > > display in mapserver. I have tried using the processing > directive to > > scale the values and I've tried specifying classes, and > neither works. > > I have also tried different file formats (geotiffs and erdas .img). > > > > Anyone know why this isn't working? > > > > I'm using mapserver 4.8.3 and gdal 1.3.1 on solaris 10. > > > > Thanks for any ideas, > > Chris > > > From igorpsc at YAHOO.COM.BR Mon May 8 18:10:17 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Tue, 9 May 2006 01:10:17 +0000 Subject: changing the querymap size Message-ID: Hi, How could I change, in php/mapscript, the size of the querymap (width and height)? Thanks, Igor --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From grabiel at MYWAY.COM Tue May 9 00:18:04 2006 From: grabiel at MYWAY.COM (grabiel) Date: Tue, 9 May 2006 03:18:04 -0400 Subject: [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL Message-ID: Hi The problem is solved, Its the template file that i have not set in my mapfile. I will try to put a documentation on OGR/MYSQL/PHP in the list. Thanks to all With regards Grabiel --- On Mon 05/08, Frank Warmerdam < warmerdam at POBOX.COM > wrote: From: Frank Warmerdam [mailto: warmerdam at POBOX.COM] To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Mon, 8 May 2006 09:26:09 -0400 Subject: Re: [UMN_MAPSERVER-USERS] [MapServer Error]: msQueryByPoint(): No matching record(s) found. /OGR/MYSQL grabiel wrote:
> Hi
> I have posted one message for ogr/mysql problem(No reply so far). If anyone has implemented ogr/mysql/php Plz. help me out. What i am trying is to relate a shape file with mysql table. I can able to fetch the data through ogrinfo in command line which is like this--->
>
> [root at localhost bin]ogrinfo /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp -sql "SELECT st_nm, nsdata.name,nsdata.capital,nsdata.id from n_state
> LEFT JOIN 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name"
>
> The command above woks fine but when i try the same from mapfile, I am getting the following error.
>> Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found.
>> in /usr/local/apache/htdocs/gmap/htdocs/gmap75.inc.php on line 425
>
> The error above is only for the layer where i have used OGR/MySql table, whereas for layers where i havenot used OGR/MySql(simply shape file & Metadata) its showing the results.
>
> My mapfile code for ogr is something like this-->
...
> LAYER
> NAME "n_state"
> TYPE POINT
> CONNECTIONTYPE OGR
> CONNECTION "/usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp"
> DATA "SELECT * from n_state left join 'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON n_state.st_nm=nsdata.name"
> STATUS ON
> CLASSITEM "st_nm"
> CLASS
> NAME "NEIGHBOURING STATE"
> EXPRESSION /A*/
> COLOR 255 0 0
> OUTLINECOLOR 255 0 0
> SYMBOL "NS"
> END
> END

Grabriel,

Have you verified with ogrinfo that the attribute st_nm appears with the
expected values?

Try:

ogrinfo -ro /usr/local/apache/htdocs/gmap/htdocs/data/n_state.shp \
-sql "SELECT * from n_state left join
'MYSQL:test,host=localhost,user=root,tables=nsdata'.nsdata ON
n_state.st_nm=nsdata.name"

If everything looks ok there, then you might review your use of EXPRESSION.
It looks ok to me, but I'm not sure.

Good luck,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
_______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From raffle80 at YAHOO.CO.UK Tue May 9 00:31:35 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Tue, 9 May 2006 08:31:35 +0100 Subject: Help needed in Raster/World file In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDCE1@ptolemy.topozone.com> Message-ID: Hi Ed I changed the status from On to Default but still its not working. One thing i want to tell you that if i delete the .tfw file the output of gdalinfo also changed which like this---> #gdalinfo test.tif ### Without test.tfw file ###### Driver: Gtiff/GeoTiff Size is 1042, 722 Co-ordinate System is `' METADATA ---------- ---------- Upper Left (0.0, 0.0) Lower left (0.0, 722.0) Upper right (1042.0, 0.0) center(521.0, 361.0) Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED ..........................................................................=Green ......................................................................=BLUE Then what will be my values in my .tfw file? Now if i put the values in my .tfw file then the output of my gdalinfo also changed according to the values that i put there. Where is the problem? Whether i need to put Projection statement in my mapfile? Please help me Thanks in advance Raffle Ed McNierney wrote: Raffle - If you set your LAYER to STATUS ON it won't display - you need to set it to STATUS DEFAULT. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Monday, May 08, 2006 7:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I have given the mapfile below and after modifying the value as you suggested in your previous, I am not getting the raster image on my final output. Thanks in advance Raffle NAME "Europe" SIZE 200 200 STATUS ON SYMBOLSET ....." EXTENT 2700051.860 2462746.020 3582564.801 3012459.468 UNITS METERS SHAPEPATH " " WEB IMAGEPATH "" IMAGEURL "" END ....... LAYER DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif" NAME "raster_back" TYPE RASTER STATUS ON END END Raffle - Zero is a perfectly nice number! There's nothing wrong with 0.0 in your world file, especially in the second and third lines. For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0. A world file will often look like: 100.0 0.0 0.0 -100.0 12345.67 987654.32 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com --------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Saturday, May 06, 2006 9:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle --------------------------------- 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more --------------------------------- Yahoo! Photos ? NEW, now offering a quality print service from just 7p a photo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffle80 at YAHOO.CO.UK Tue May 9 00:38:30 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Tue, 9 May 2006 08:38:30 +0100 Subject: COPYRIGHT @ Image. How? Message-ID: Hi List I want to put a copyright like xyz at abc.com in my final image. Can anyone suggest me how to accomplish this? Thanks in advance Raffle Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at GMAIL.COM Tue May 9 00:58:58 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Tue, 9 May 2006 09:58:58 +0200 Subject: WMS Server call in .net Message-ID: rock well ha scritto: Hi all i was wondering if there is an equivalent script for wms request for asp script with iis in the below link http://ms.gis.umn.edu/docs/howto/wms_server, i am trying to do the same thing in vb.net .... Any suggestions please ..... I do: public Map getMap(string queryString) { string mapImgUrl = null; string mapwidth = null; string mapheight = null; string scalebar = null; string imgxy = null; //[center] of the image string imgext = null; string legend = null; string referenceMap = null; Map map = null; //holds all map value try { HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create(queryString); webRequest.Timeout=10000; webRequest.Method = "GET"; // Send the WebRequest and read response HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); Stream sResponse = webResponse.GetResponseStream(); StreamReader reader = new StreamReader(sResponse); //first line is additional info from MapServer string header = reader.ReadLine(); if(header == "") { //error string message = reader.ReadToEnd(); message += "\n\n\"" + header + message + "\"\n\n"; throw new Exception(message); } //actual parameters XmlDocument xmldoc = new XmlDocument(); string doc = reader.ReadToEnd(); xmldoc.LoadXml(doc); xmldoc.PreserveWhitespace = true; XmlNode root = xmldoc.DocumentElement; mapImgUrl = root.SelectSingleNode ("img").Attributes["value"].Value; mapwidth = root.SelectSingleNode ("mapwidth").Attributes["value"].Value; mapheight = root.SelectSingleNode ("mapheight").Attributes["value"].Value; scalebar = root.SelectSingleNode ("scalebar").Attributes["value"].Value; imgxy = root.SelectSingleNode ("imgxy").Attributes["value"].Value; imgext = root.SelectSingleNode ("imgext").Attributes["value"].Value; referenceMap = root.SelectSingleNode ("referenceMap").Attributes["value"].Value; legend = root.SelectSingleNode("legend").InnerText; sResponse.Close(); reader.Close(); webResponse.Close(); map = new Map(mapImgUrl, mapwidth, mapheight, scalebar, imgxy, imgext, legend, referenceMap); sResponse.Close(); reader.Close(); webResponse.Close(); } catch (Exception ex) { throw new Exception("queryString:"+queryString+"\n"+ex.StackTrace); } return map; } //method web_template.xml: [Serializable] public class Map { public string mapImgUrl = ""; public string mapwidth = ""; public string mapheight = ""; public string scalebar = ""; public string imgxy = ""; public string imgext = ""; public string legend = ""; public string referenceMap = ""; public Map(string mapImgUrl, string mapwidth, string mapheight, string scalebar, string imgxy, string imgext, string legend, string referenceMap) { this.mapImgUrl = mapImgUrl; this.mapwidth = mapwidth; this.mapheight = mapheight; this.scalebar = scalebar; this.imgxy = imgxy; this.imgext = imgext; this.legend = legend; this.referenceMap = referenceMap; } } How u do the call depends if u use postbacks or ajax. If ajax, wrap the method with ajax serverside call, and then do javascript call to that method (this depends on ajax library used, I used AjaxPro). If postbacks, u do the work in PageLoad. Take posted parameters from user interface, build the url, call the method above (or similar...), then u can use returned values (image url, extension ecc.) in the Page with classic asp style: ecc. Ciao Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From fx.prunayre at OIEAU.FR Tue May 9 00:55:36 2006 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Tue, 9 May 2006 09:55:36 +0200 Subject: COPYRIGHT @ Image. How? In-Reply-To: <20060509073830.45458.qmail@web27411.mail.ukl.yahoo.com> Message-ID: Hi Raffle, this should work ... #---------------------------------------------- # Annotation Copyright # LAYER NAME "copyright" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 6 16 END TEXT ' xyz at abc.com' END CLASS LABEL TYPE TRUETYPE FONT "VERDANA" SIZE 6 ANTIALIAS TRUE COLOR 0 0 0 POSITION UR END END END One more question to the list, how to hide this layer in the layer list (capabilities) when using WMS ? HTH. Francois _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de raffle peter Envoy? : mardi 9 mai 2006 09:39 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] COPYRIGHT @ Image. How? Hi List I want to put a copyright like xyz at abc.com in my final image. Can anyone suggest me how to accomplish this? Thanks in advance Raffle Send instant messages to your online friends http://uk.messenger.yahoo.com -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et priv?s.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -------------- next part -------------- An HTML attachment was scrubbed... URL: From edlinoor at OMNILOGIC.COM.MY Mon May 8 23:21:03 2006 From: edlinoor at OMNILOGIC.COM.MY (Edlinoor Syahril Ramlan) Date: Tue, 9 May 2006 14:21:03 +0800 Subject: Tiling for mapserver. Message-ID: Hi guys, I don't know whether this is a stupid question or what but I really need some advice, opinions, or whatever since I am stuck with this problem for so many days already. Anyway what I am trying to do is to create map images that I can use to implement my application like Google Maps. I know that within Mapserver there is ka-map but as stupid as I am, I would like to create my own. The details of ka-map and the lack of documentation making ka-map a bit confusing to me. I need to make tiles for all map images that I generated from .map file. The problem I have is that I don't know how to generate images for zooming in and out the map. I've tried changing and using EXTEND variable but EXTEND only displayed a certain area of the map and not the entire data. So basically if the user drag the map they will only see data on that extend and not the entire map. How can I solve this problem? I tried using and changing the SCALE value but nothing changed? I tried to changed the SIZE also nothing changed except the pixel size of the map. So anybody out there that can help me with the best approach? I need to generate the image and then cut it to tiles. I think I have a solution on how to cut the image but producing the image is now the problem. I hope you guys get the picture. Thanks. Ed. -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.nemmert at AON.AT Tue May 9 01:50:38 2006 From: a.nemmert at AON.AT (Andreas Nemmert) Date: Tue, 9 May 2006 10:50:38 +0200 Subject: generated SVG-File Message-ID: Hy, I set up my Mapfile so that my MapServer generates SVG-Files. Is it possible that the MapServer generates groups in this SVG File? When I send a GetMap Request all the layers I requested are in the SCG File, but I can not handle one single layer. Do I have to request every layer individual? Is there any chance to revise the colours of features in the requested SVG file? Thank you for your help! Andreas Nemmert -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Tue May 9 01:55:51 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 9 May 2006 11:55:51 +0300 Subject: Tiling for mapserver. Message-ID: Hi, Have you considered running through your layer by changing values for MAPEXT with Mapserver CGI, or BBOX if you use your Mapserver as WMS server? Regards, Jukka Rahkonen ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Edlinoor Syahril Ramlan L?hetetty: ti 9.5.2006 9:21 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Tiling for mapserver. Hi guys, I don't know whether this is a stupid question or what but I really need some advice, opinions, or whatever since I am stuck with this problem for so many days already. Anyway what I am trying to do is to create map images that I can use to implement my application like Google Maps. I know that within Mapserver there is ka-map but as stupid as I am, I would like to create my own. The details of ka-map and the lack of documentation making ka-map a bit confusing to me. I need to make tiles for all map images that I generated from .map file. The problem I have is that I don't know how to generate images for zooming in and out the map. I've tried changing and using EXTEND variable but EXTEND only displayed a certain area of the map and not the entire data. So basically if the user drag the map they will only see data on that extend and not the entire map. How can I solve this problem? I tried using and changing the SCALE value but nothing changed? I tried to changed the SIZE also nothing changed except the pixel size of the map. So anybody out there that can help me with the best approach? I need to generate the image and then cut it to tiles. I think I have a solution on how to cut the image but producing the image is now the problem. I hope you guys get the picture. Thanks. Ed. From woodbri at SWOODBRIDGE.COM Tue May 9 01:56:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 9 May 2006 04:56:35 -0400 Subject: Tiling for mapserver. In-Reply-To: <002a01c67330$bffa1560$2c0da8c0@edpc> Message-ID: Hi Ed. You have to have a location for scale to work mapxy=+&scale= You might try reading the mapserver cgi documentation if you haven't yet. I would also SERIOUSLY go back and consider ka-map. ka-map has many development years of effort invested in building a google like mapping application using ka-map. It already does many things that one would want. The question you asked is very basic and there are hundreds more like that that you will likely run into trying to build a ka-map like application on your own. It would be great to have another application like ka-map if you want to do that, but you could learn a lot more by first understanding how ka-map works and then asking why they do it that way. I'm also sure ka-map would enjoy having someone else add new features to it, if it does not do all you want. Best regards, -Steve W. Edlinoor Syahril Ramlan wrote: > Hi guys, > > I don't know whether this is a stupid question or what but I really need > some advice, opinions, or whatever since I am stuck with this problem > for so many days already. > > Anyway what I am trying to do is to create map images that I can use to > implement my application like Google Maps. I know that within Mapserver > there is ka-map but as stupid as I am, I would like to create my own. > The details of ka-map and the lack of documentation making ka-map a bit > confusing to me. > > I need to make tiles for all map images that I generated from .map > file. The problem I have is that I don't know how to generate images > for zooming in and out the map. I've tried changing and using EXTEND > variable but EXTEND only displayed a certain area of the map and not the > entire data. So basically if the user drag the map they will only see > data on that extend and not the entire map. How can I solve this > problem? I tried using and changing the SCALE value but nothing > changed? I tried to changed the SIZE also nothing changed except the > pixel size of the map. > > So anybody out there that can help me with the best approach? I need to > generate the image and then cut it to tiles. I think I have a solution > on how to cut the image but producing the image is now the problem. I > hope you guys get the picture. > > Thanks. > > Ed. From D.Stone at ED.AC.UK Tue May 9 03:43:17 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Tue, 9 May 2006 03:43:17 -0700 Subject: PHP/MapScript msQueryByPoint Message-ID: I'm trying to emulate in PHP/MapScript something I did recently in MapServer CGI. I display a PostGIS layer of points, then click a point to display a template containing non-spatial attributes of the point from the PostGIS table. I'm assuming I need to call msQueryByPoint in the PHP equivalent, passing it the geo coordinates of the clicked point. But then what? It's not clear to me how the success of the query (i.e. I don't get 'No matching records...') can be used. Has anyone some sample code showing this sort of thing? TIA, Dave -- View this message in context: http://www.nabble.com/PHP-MapScript-msQueryByPoint-t1583615.html#a4297509 Sent from the Mapserver - User forum at Nabble.com. From ed at TOPOZONE.COM Tue May 9 05:21:23 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 9 May 2006 08:21:23 -0400 Subject: Help needed in Raster/World file Message-ID: Raffle - That's an important difference! If you have a TFW file in the first place, gdalinfo will simply return its contents to you. So you're using the contents of your TFW file to decide what information to put in your TFW file.... You seem to have no georeferencing information in that file. What information do you have about the projection and coordinate extents of that input image? Do you need to only display this single layer, or do you need to integrate it with other data layers? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Tuesday, May 09, 2006 3:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi Ed I changed the status from On to Default but still its not working. One thing i want to tell you that if i delete the .tfw file the output of gdalinfo also changed which like this---> #gdalinfo test.tif ### Without test.tfw file ###### Driver: Gtiff/GeoTiff Size is 1042, 722 Co-ordinate System is `' METADATA ---------- ---------- Upper Left (0.0, 0.0) Lower left (0.0, 722.0) Upper right (1042.0, 0.0) center(521.0, 361.0) Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED ........................................................................ ..=Green ......................................................................=B LUE Then what will be my values in my .tfw file? Now if i put the values in my .tfw file then the output of my gdalinfo also changed according to the values that i put there. Where is the problem? Whether i need to put Projection statement in my mapfile? Please help me Thanks in advance Raffle Ed McNierney wrote: Raffle - If you set your LAYER to STATUS ON it won't display - you need to set it to STATUS DEFAULT. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Monday, May 08, 2006 7:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I have given the mapfile below and after modifying the value as you suggested in your previous, I am not getting the raster image on my final output. Thanks in advance Raffle NAME "Europe" SIZE 200 200 STATUS ON SYMBOLSET ....." EXTENT 2700051.860 2462746.020 3582564.801 3012459.468 UNITS METERS SHAPEPATH " " WEB IMAGEPATH "" IMAGEURL "" END ....... LAYER DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif" NAME "raster_back" TYPE RASTER STATUS ON END END Raffle - Zero is a perfectly nice number! There's nothing wrong with 0.0 in your world file, especially in the second and third lines. For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0. A world file will often look like: 100.0 0.0 0.0 -100.0 12345.67 987654.32 - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter Sent: Saturday, May 06, 2006 9:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0 in their corresponding field. Can anyone plz help me, how to get/set these values for the world file so that i can keep my raster data georeferenced with other layers in my mapfile. Thanks in advance Raffle ________________________________ 24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more ________________________________ Yahoo! Photos - NEW, now offering a quality print service from just 7p a photo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From il_vikingo at YAHOO.COM Tue May 9 05:24:11 2006 From: il_vikingo at YAHOO.COM (Andrea Rossi) Date: Tue, 9 May 2006 05:24:11 -0700 Subject: ESRI Legend Message-ID: Does anyone knows how to import an ArcMap legend into a MapFile? Thank You! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bluecarto at GMAIL.COM Tue May 9 06:06:22 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Tue, 9 May 2006 15:06:22 +0200 Subject: Creating imagemaps with php/mapscript In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB05BC@s-sp22.pca.state.mn.us> Message-ID: Yes of course, you can do this using the processquerytemplate mapscript method. On 5/8/06, Fawcett, David wrote: > Dejan, > > Take a look at: http://mapserver.gis.umn.edu/docs/howto/imagemaps > > This uses cgi mapserver as opposed to MapScript, but you could likely > translate it. > > Actually, I am not sure if this functionality exists in MapScript. Can > any of the mapscript maintainers verify if the shapexy functionality > exists in any of the mapscript flavors? > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Gambin Dejan > Sent: Monday, May 08, 2006 6:29 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Creating imagemaps with php/mapscript > > > Hi, > > I would like to create client side imagemap using php/mapscript. I have > read a wiki document on: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap > > and tried to use this example but it didn't work... > > Does someone have a working example? > > thanks > > dejan > From dpinte at ITAE.BE Tue May 9 06:10:29 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 9 May 2006 15:10:29 +0200 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4297509.post@talk.nabble.com> Message-ID: Le mardi 09 mai 2006 ? 03:43 -0700, DjwStone a ?crit : > I'm trying to emulate in PHP/MapScript something I did recently in MapServer > CGI. I display a PostGIS layer of points, then click a point to display a > template containing non-spatial attributes of the point from the PostGIS > table. > > I'm assuming I need to call msQueryByPoint in the PHP equivalent, passing it > the geo coordinates of the clicked point. But then what? It's not clear to > me how the success of the query (i.e. I don't get 'No matching records...') > can be used. > > Has anyone some sample code showing this sort of thing? > > TIA, > > Dave I'm not a php expert but have some insights about the python mapscript. So here is my answer ;-) queryByPoint returns a MS_SUCCESS in case of a query giving results and MS_FAILURE otherwise. You can't have much details about the failure : is it an empty query ? or a bad formatted query ? If MS_SUCCESS, you can access the resultset using layer.getResults() Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From daniel at GEOFOTO.HR Tue May 9 06:23:29 2006 From: daniel at GEOFOTO.HR (Daniel Vencler) Date: Tue, 9 May 2006 15:23:29 +0200 Subject: WFS geometry attribute Message-ID: Hi, I am trying to setup WFS with MapServer 4.8.3 but I need to change geometry attribute name from msGeometry to gml:polygonProperty or which ever geometry type current feature uses. I need this to be able to validate MapServer generated GML with separately genrated schema. So, can msGeometry be substituted with something little less MapServer specific? Best regards, Daniel Vencler From jmcm at EUSKALNET.NET Tue May 9 06:34:35 2006 From: jmcm at EUSKALNET.NET (Juan Mari Celihueta) Date: Tue, 9 May 2006 15:34:35 +0200 Subject: Premature end of script headers: mapserv Message-ID: Hi all, I have compiled successfully mapserver 4.8.3 under Solaris 8: $ ./mapserv -v MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE However, when I put the mapserv file into the cgi-bin apache directory and try to open the file directly without any parameters from my browser, instead of the message expected ('No query information to decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server Error' message. If I look the apache logfile I get this: 'Premature end of script headers: mapserv'. The LD_LIBRARY_PATH in the apache environment is: LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib export LD_LIBRARY_PATH Could anyone help me? Regards, Juan. From assefa at DMSOLUTIONS.CA Tue May 9 07:24:33 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 9 May 2006 10:24:33 -0400 Subject: generated SVG-File In-Reply-To: <006c01c67345$a5005d40$1301010a@ANDREAS> Message-ID: Andreas Nemmert wrote: > Hy, > > > > I set up my Mapfile so that my MapServer generates SVG-Files. > > Is it possible that the MapServer generates groups in this SVG File? > Are you refering to the possibility to have the tag around all layers that share the same group name in the map file ? It should be possible although groups in mapserver do not affect the order in which layers are displayed. I am under the impression that if we do that for the svg output, we would need to affect the rendering order. I have entered a bug on this, so please update the bug with you comments and possible solutions. (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1774) > When I send a GetMap Request all the layers I requested are in the SCG > File, but I can not handle one single layer. Do I have to request every > layer individual? > Not sure to understand : are you using mapserver cgi and doing a mode=map ? In that case you are able to specficy an individual layer using the parameter layers (http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/example.map&mode=map&layers=layers1) Make sure that the ststus of your layers in the map file are not set to DEFAULT. All layers with the DEFAULT status will be rendered all the time. > Is there any chance to revise the colours of features in the requested > SVG file? > > Not sure to undertand this. > > Thank you for your help! > > Andreas Nemmert > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lpzhao at NETZERO.NET Tue May 9 08:33:42 2006 From: lpzhao at NETZERO.NET (lpzhao@netzero.net) Date: Tue, 9 May 2006 15:33:42 GMT Subject: Need help for creating a Query. Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dimitri.chausson at TELEATLAS.COM Tue May 9 08:08:55 2006 From: dimitri.chausson at TELEATLAS.COM (Dimitri Chausson) Date: Tue, 9 May 2006 17:08:55 +0200 Subject: Help building mapserver with ArcSDE on solaris Message-ID: Hi, I am trying to compile the mapserver on Solaris (5.8). I have built everything (GDAL, GD, GEOS, PROJ..) except the mapserver. I am using the sources from version 4.8.3. Configure is called the following way: ./configure \ --prefix=$HOME/local/mapserver \ --with-httpd=$HOME/local/bin/httpd \ --without-pdf \ --with-gd=$HOME/local/ \ --with-proj=$HOME/local \ --with-geos=$HOME/local/bin/geos-config \ --with-ogr=$HOME/local/bin/gdal-config \ --with-gdal=$HOME/local/bin/gdal-config \ --with-sde=$HOME/local \ --with-sde-version=90 \ --with-wfs It looks like the configure still has minor errors. At the end of the output, I get: --------------------------------------------------------------------- configure: checking HTTPD server (Apache) version... using user-supplied httpd (/XXX/local/bin/httpd) awk: syntax error near line 1 awk: bailing out near line 1 awk: syntax error near line 1 awk: bailing out near line 1 /XXX/local/bin/httpd version is Apache/2.2.2 (). --------------------------------------------------------------------- I believe that it is not important, so I proceed calling make. It exits with errors compiling shp2img (see attachement) Did someone already have this kind of problem, and what are they due to? Any help would be greatly appreciated, Thanks in advance, Dimitri -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: make_mapserver.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dimitri.chausson.vcf Type: text/x-vcard Size: 275 bytes Desc: not available URL: From D.Stone at ED.AC.UK Tue May 9 08:53:12 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Tue, 9 May 2006 08:53:12 -0700 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <1147180230.20972.2.camel@geru-itae> Message-ID: Thanks for the tip, Didrik. However, I'm still befogged. My query has returned 1 result (according to $mylayer->getNumResults()). I can use $mylayer->getResult() to give me a resultCacheMemberObj apparently, but what can I do with that? What are these shape, tile, and class indexes? Should I be using queryByPoint in the first place? I need a cold compress (or a stiff whisky). Dave -- View this message in context: http://www.nabble.com/PHP-MapScript-msQueryByPoint-t1583615.html#a4302727 Sent from the Mapserver - User forum at Nabble.com. From piero.cavalieri at GMAIL.COM Tue May 9 09:41:34 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Tue, 9 May 2006 18:41:34 +0200 Subject: asp.net2 and mapserv cgi Message-ID: Hi all, I have new machine on which I installed .net 2. When doing http request to cgi I have the following response: "MZ@!L! This program cannot be run in DOS mode" I worked with mapserv cgi on Win2000, XP, 2003, all with .NET1.1, and never problems. I suppose it's IIS new permissions policy, but I didn't find answers. Does anyone experienced this ? Thanks in advance, Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgornick at DIGICOAST.COM Tue May 9 10:56:54 2006 From: sgornick at DIGICOAST.COM (Stephen Gornick) Date: Tue, 9 May 2006 10:56:54 -0700 Subject: Tiling for mapserver. In-Reply-To: <002a01c67330$bffa1560$2c0da8c0@edpc> Message-ID: If you are referring to tiles to be layered over existing Google tiles, see Ducky Sherwood's census mashup site: http://maps.webfoot.com/ She did that as a project for one of her courses: http://www.cs.ubc.ca/~tmm/courses/infovis/projects.html#ducky Specifically, she writes: "I used the gd library[3] to draw the polygons (as given in the shapefiles), filled with a color chosen based on the population (as given population datafiles) divided by the area (as given in the shape file). I wrote files out as PNG images." I was trying to figure out how to get the output from shp2img to create tile layers, but now am looking at using gd as well. - Regards, - Stephen Edlinoor Syahril Ramlan wrote: > Hi guys, > > I don't know whether this is a stupid question or what but I really > need some advice, opinions, or whatever since I am stuck with this > problem for so many days already. > > Anyway what I am trying to do is to create map images that I can use > to implement my application like Google Maps. I know that within > Mapserver there is ka-map but as stupid as I am, I would like to > create my own. The details of ka-map and the lack of documentation > making ka-map a bit confusing to me. > > I need to make tiles for all map images that I generated from .map > file. The problem I have is that I don't know how to generate images > for zooming in and out the map. I've tried changing and using EXTEND > variable but EXTEND only displayed a certain area of the map and not > the entire data. So basically if the user drag the map they will only > see data on that extend and not the entire map. How can I solve this > problem? I tried using and changing the SCALE value but nothing > changed? I tried to changed the SIZE also nothing changed except the > pixel size of the map. > > So anybody out there that can help me with the best approach? I need > to generate the image and then cut it to tiles. I think I have a > solution on how to cut the image but producing the image is now the > problem. I hope you guys get the picture. > > Thanks. > > Ed. From listario at GMAIL.COM Tue May 9 11:10:27 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 9 May 2006 20:10:27 +0200 Subject: Need help for creating a Query. In-Reply-To: <20060509.083401.28635.914158@webmail47.nyc.untd.com> Message-ID: Hi Liping You have to use some of the query modes. To show the attributes you have to create query templates. Look at: http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages In the MapServer tutorial there are some examples about queries: http://hypnos.cbs.umn.edu/tutorial/sections.html Best regards, Jorge 2006/5/9, lpzhao at netzero.net : > Hi, > > I set up a Mapserver Vision MS4W in my computer. I create a mapfile and can display three layers. I would like to use identify feature to display some attribute for this layer when I click this layer. What should I do ? > > Is there anyone can help? I really appreciate in advance! > > Thanks! > > > Liping > From jeffrey.brown at NGC.COM Tue May 9 12:06:19 2006 From: jeffrey.brown at NGC.COM (Brown, Jeff (C2MS)) Date: Tue, 9 May 2006 15:06:19 -0400 Subject: Problem trying to access WFS on Linux? Message-ID: I get the following error message when I try to access my WFS resource: msDrawMap(): Image handling error. Failed to draw layer named 'wfs_test'. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -28 downloading WFS layer wfs_test msHTTPExecuteRequests(): HTTP request error. HTTP: TIMEOUT of 30 seconds exceeded for http://map.ns.ec.gc.ca/envdat/map.aspx?&REQUEST=GetFeature&VERSION=1.0.0 &SERVICE=WFS&TYPENAME=envirodat&BBOX=-67.1454,46.7594,-50.1976,55.2333 I can successfully access the WFS resource using 'wget' once I set the 'http_proxy' environment variable and include the --proxy-user & --proxy-passwd options. Therefore, I assume I have a HTTP proxy issue. My question is how do I overcome it with Apache and 'mapserv'. Thanks! JAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Tue May 9 12:10:10 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 9 May 2006 21:10:10 +0200 Subject: asp.net2 and mapserv cgi In-Reply-To: Message-ID: Piero Cavalieri wrote: > Hi all, > I have new machine on which I installed .net 2. > When doing http request to cgi I have the following response: > > "MZ@!L! This program cannot be run in DOS mode" > > I worked with mapserv cgi on Win2000, XP, 2003, all with .NET1.1, and > never problems. > I suppose it's IIS new permissions policy, but I didn't find answers. > Does anyone experienced this ? The text you describe is the header from an EXE file. I would say that your EXE file is corrupt. Try redownloading it, and scan for virusses. -- With Kind Regards, Jelmer Baas Speer IT B.V. From earevaloch at GMAIL.COM Tue May 9 12:57:57 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Tue, 9 May 2006 14:57:57 -0500 Subject: mapfile editor??????? Message-ID: please Somebody knows a graphical publisher of mapfile? -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Tue May 9 13:49:56 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 9 May 2006 22:49:56 +0200 Subject: asp.net2 and mapserv cgi In-Reply-To: Message-ID: Piero, Do you really think if it is an ASP.NET issue? Can you run "mapserv -v" within the cgi directory. Tamas _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Piero Cavalieri Sent: Tuesday, May 09, 2006 6:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] asp.net2 and mapserv cgi Hi all, I have new machine on which I installed .net 2. When doing http request to cgi I have the following response: "MZ@!L! This program cannot be run in DOS mode" I worked with mapserv cgi on Win2000, XP, 2003, all with .NET1.1, and never problems. I suppose it's IIS new permissions policy, but I didn't find answers. Does anyone experienced this ? Thanks in advance, Piero -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 2006.05.09. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 2006.05.09. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tealorama at GMAIL.COM Tue May 9 22:40:36 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Wed, 10 May 2006 08:40:36 +0300 Subject: OGR cut data after 510 characted? Message-ID: Hello everybody First little background. Our server is Linux server and we are using MapServer 4.8.1 (PHPMapscript). Our data is in MySQL database (MySQL because other part of our application use it). We use ODBC/OVF to get data from database. Problem is that query result give some unexpected result. If I make same query many times (using refresh) MapServer returns randomly two or three different results. When I used ogrinfo to test our ovf file I found that it will cut the geometry fields value after 510 character. The data is correct in database when I make query by hand. Yes, we are using MySQL's spatial extension and geometry column's type is geometry. ogrinfo also returns following error: ERROR 1: SetAttributeFilter() not supported on ExecuteSQL() results. Thanks for any help. -Tero From grabiel at MYWAY.COM Tue May 9 23:36:30 2006 From: grabiel at MYWAY.COM (grabiel) Date: Wed, 10 May 2006 02:36:30 -0400 Subject: Premature end of script headers: mapserv Message-ID: Hi Juan Check the file permission for mapserv and the path that preceeds it. If your mapserv is in /usr/local/apache/cgibin then set the file permission(write) for others etc. using chmod comand. If ur file permission is not set to write for each directory or mapserv then you may get the error that u have mentioned. Best of luck Grabiel ************************************************************* Hi all, I have compiled successfully mapserver 4.8.3 under Solaris 8: $ ./mapserv -v MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE However, when I put the mapserv file into the cgi-bin apache directory and try to open the file directly without any parameters from my browser, instead of the message expected ('No query information to decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server Error' message. If I look the apache logfile I get this: 'Premature end of script headers: mapserv'. The LD_LIBRARY_PATH in the apache environment is: LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib export LD_LIBRARY_PATH Could anyone help me? Regards, Juan. _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From b.vdeijnden at AGI.RWS.MINVENW.NL Tue May 9 06:30:43 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 9 May 2006 15:30:43 +0200 Subject: WFS geometry attribute Message-ID: Yes you can, use the following METADATA for your LAYER: "gml_geometries" "thenameyouwant" "gml_thenameyouwant_type" "multipolygon" Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Daniel Vencler Verzonden: dinsdag 9 mei 2006 15:23 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WFS geometry attribute Hi, I am trying to setup WFS with MapServer 4.8.3 but I need to change geometry attribute name from msGeometry to gml:polygonProperty or which ever geometry type current feature uses. I need this to be able to validate MapServer generated GML with separately genrated schema. So, can msGeometry be substituted with something little less MapServer specific? Best regards, Daniel Vencler Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From grabiel at MYWAY.COM Tue May 9 23:43:44 2006 From: grabiel at MYWAY.COM (grabiel) Date: Wed, 10 May 2006 02:43:44 -0400 Subject: Help needed in Raster/World file Message-ID: Hi Ed You are right. I didnot set any georeference information set or project information in the .tif file. I simply took one image and trying to display it along with other layers. Also i need to integrate the image with other layer. Can you please tell me how to set the georeference/projection information in my .tif file. Thanks in advance. Raffle --- On Tue 05/09, Ed McNierney < ed at TOPOZONE.COM > wrote: From: Ed McNierney [mailto: ed at TOPOZONE.COM] To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 9 May 2006 08:21:23 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file
Raffle -
?
That's an important difference!? If you have a TFW file in the first place, gdalinfo will simply return its contents to you.? So you're using the contents of your TFW file to decide what information to put in your TFW file....
?
You seem to have no georeferencing information in that file.? What information do you have about the projection and coordinate extents of that input image?? Do you need to only display this single layer, or do you need to integrate it with other data layers?
?
???? - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com



From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Tuesday, May 09, 2006 3:32 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

Hi
?? Ed
??????? I changed the status from On to Default but still its not working. One thing i want to tell you that if i delete the .tfw file the output of gdalinfo also changed which like this--->
?
? #gdalinfo test.tif? ### Without test.tfw file? ######
Driver: Gtiff/GeoTiff
Size is 1042, 722
Co-ordinate System is `'
METADATA
----------
----------
Upper Left (0.0, 0.0)
Lower left (0.0, 722.0)
Upper right (1042.0, 0.0)
center(521.0, 361.0)
?
Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED
..........................................................................=Green
......................................................................=BLUE
?
Then what will be my values in my .tfw file? Now if i put the values in my .tfw file then the output of my gdalinfo also changed according to the values that i put there.
?
Where is the problem? Whether i need to put Projection statement in my mapfile?
Please help me
Thanks in advance
Raffle

Ed McNierney wrote:
Raffle -
?
If you set your LAYER to STATUS ON it won't display - you need to set it to STATUS DEFAULT.
?
???? - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com


From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Monday, May 08, 2006 7:12 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

Hi
??? I have given the mapfile below and after modifying the value as you suggested in
your previous, I am not getting the raster image on my final output.
?
Thanks in advance
Raffle
?
?
NAME "Europe"
SIZE 200 200
STATUS ON
SYMBOLSET ....."
EXTENT 2700051.860 2462746.020 3582564.801 3012459.468
UNITS METERS
SHAPEPATH " "
WEB
IMAGEPATH ""
IMAGEURL ""
END
.......
LAYER
DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif"
NAME "raster_back"
TYPE RASTER
STATUS ON
END
END
?
Raffle -
?
Zero is a perfectly nice number!? There's nothing wrong with 0.0 in your world file, especially in the second and third lines.? For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0.? A world file will often look like:
?
100.0
0.0
0.0
-100.0
12345.67
987654.32
?
??? - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com


From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Saturday, May 06, 2006 9:07 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

?
?Hi
???? I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0
in their corresponding field.
?? Can anyone plz help me, how to get/set these values for the world file so that i can
keep my raster data georeferenced with other layers in my mapfile.
?
Thanks in advance
Raffle
? ?

24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more


Yahoo! Photos ? NEW, now offering a quality print service from just 7p a photo.

_______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From listuser at HERZSYS.DE Tue May 9 23:47:32 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Wed, 10 May 2006 08:47:32 +0200 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4302727.post@talk.nabble.com> Message-ID: DjwStone wrote: >Thanks for the tip, Didrik. However, I'm still befogged. My query has >returned 1 result (according to $mylayer->getNumResults()). I can use >$mylayer->getResult() to give me a resultCacheMemberObj apparently, but what >can I do with that? What are these shape, tile, and class indexes? > >Should I be using queryByPoint in the first place? > >I need a cold compress (or a stiff whisky). > >Dave >-- >View this message in context: http://www.nabble.com/PHP-MapScript-msQueryByPoint-t1583615.html#a4302727 >Sent from the Mapserver - User forum at Nabble.com. > > > > Hi, you have to: 1. get a layer 2. open the layer 3. get a feature from the layer with shape- and tileindex 4. get a value from the feature (loop through with the numvalues) 5. close the layer Regards Norbert From piero.cavalieri at GMAIL.COM Wed May 10 00:42:55 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 10 May 2006 09:42:55 +0200 Subject: asp.net2 and mapserv cgi Message-ID: mapserv ?v give corret output. I also tried to use binaries which I was using on a functional installation, and have the same result. In the past never had this kind of output. I suppose 2.0 installation changed some things in SO, because I don't have any more same windows to configure permissions. For example right click on mapserv.exe, in the past I was able to fine tune users permissions, now I don't. P. Tamas Szekeres ha scritto: Piero, Do you really think if it is an ASP.NET issue? Can you run ?mapserv ?v" within the cgi directory. Tamas ------------------------------ *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Piero Cavalieri *Sent:* Tuesday, May 09, 2006 6:42 PM *To:* MAPSERVER-USERS at LISTS.UMN.EDU *Subject:* [UMN_MAPSERVER-USERS] asp.net2 and mapserv cgi Hi all, I have new machine on which I installed .net 2. When doing http request to cgi I have the following response: "MZ@!L! This program cannot be run in DOS mode" I worked with mapserv cgi on Win2000, XP, 2003, all with .NET1.1, and never problems. I suppose it's IIS new permissions policy, but I didn't find answers. Does anyone experienced this ? Thanks in advance, Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue May 9 23:59:21 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 10 May 2006 08:59:21 +0200 Subject: WFS geometry attribute Message-ID: Hi, you are right, some of the documentation, like this, is currently missing. I have added a comment at the end of the WFS server HOWTO: http://mapserver.gis.umn.edu/docs/howto/wfs_server/howto_view You can also register at the site and add comments, please do when you come across something like this. Best regards, Bart -----Oorspronkelijk bericht----- Van: Daniel Vencler [mailto:daniel at geofoto.hr] Verzonden: woensdag 10 mei 2006 8:44 Aan: Eijnden, B. van den (Bart) Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS geometry attribute Eijnden, B. van den (Bart) wrote: > Yes you can, use the following METADATA for your LAYER: > > "gml_geometries" "thenameyouwant" > "gml_thenameyouwant_type" "multipolygon" > > Best regards, > Bart > Thanks, it works. But is there any gml and wfs metadata reference manula? One in "WFS Servers with MapServer" is clearly not complete. Best regards, Daniel Vencler Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Wed May 10 00:55:12 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 10 May 2006 09:55:12 +0200 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4302727.post@talk.nabble.com> Message-ID: Le mardi 09 mai 2006 ? 08:53 -0700, DjwStone a ?crit : > Thanks for the tip, Didrik. However, I'm still befogged. My query has > returned 1 result (according to $mylayer->getNumResults()). I can use > $mylayer->getResult() to give me a resultCacheMemberObj apparently, but what > can I do with that? What are these shape, tile, and class indexes? > > Should I be using queryByPoint in the first place? > > I need a cold compress (or a stiff whisky). > > Dave It will be easier with some code. It's python but should be clear enough : if layer.queryByPoint(self.map, map_point, mode, buffer) == mapscript.MS_FAILURE: logging.error('Error while querying the layer') else: results = layer.getResults() feat_atts = [] layer.open() num_res = results.numresults logging.debug("Query successful with %u results" % num_res) # get the headers headers = [] for j in xrange(layer.numitems): headers.append(layer.getItem(j)) # get the dataset for i in xrange(num_res): att = [] qresult = results.getResult(i) afeat = layer.getFeature(qresult.shapeindex, qresult.tileindex) if afeat is not None: for j in xrange(layer.numitems): att.append(afeat.getValue(j)) feat_atts.append(att) qresult = None layer.close() The getFeature method gives you the feature, meaning the shapeObj, in the layer. I hope this helps Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From eshabtai at GMAIL.COM Wed May 10 01:11:58 2006 From: eshabtai at GMAIL.COM (Ehud Shabtai) Date: Wed, 10 May 2006 11:11:58 +0300 Subject: BIDI support Message-ID: Hi, I have prepared a patch which allows mapserver to correctly draw labels for right-to-left languages. It uses the fribidi library to reorder the letters. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=956 It still needs some work, but I'd like to know if there's interest to merge it and what is the procedure for doing so. -- Ehud Shabtai http://www.freemap.co.il/map/ From jmcm at EUSKALNET.NET Wed May 10 01:41:49 2006 From: jmcm at EUSKALNET.NET (Juan Mari Celihueta) Date: Wed, 10 May 2006 10:41:49 +0200 Subject: Premature end of script headers: mapserv In-Reply-To: <20060510063630.805F37576C@mprdmxin.myway.com> Message-ID: Hi Grabiel: I don't think that is a file permission issue. All the permissions are ok. The problem is that I cannot execute cgi-bin scripts from the browser. Indeed, I have a 'test-cgi' script that shows the same error. Moreover I have written a very simple cgi-bin test script and got the same error. This scripts is simply: #!/bin/sh echo echo "test" Now I am checking the apache httpd.conf file for permissions to execute cgi-bin scripts. Thanks anyway, and tell me please if you have any other suggestion. Regards, Juan. grabiel escribi?: > > Hi > Juan > Check the file permission for mapserv and the path that preceeds it. If your mapserv is in /usr/local/apache/cgibin then > set the file permission(write) for others etc. using chmod comand. > If ur file permission is not set to write for each directory or mapserv then you may get the error that u have mentioned. > Best of luck > Grabiel > ************************************************************* > > > Hi all, > > I have compiled successfully mapserver 4.8.3 under Solaris 8: > > $ ./mapserv -v > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > However, when I put the mapserv file into the cgi-bin apache directory > and try to open the file directly without any parameters from my > browser, instead of the message expected ('No query information to > decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server > Error' message. If I look the apache logfile I get this: 'Premature end > of script headers: mapserv'. > > The LD_LIBRARY_PATH in the apache environment is: > > LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib > export LD_LIBRARY_PATH > > > Could anyone help me? > > Regards, > > Juan. > > > > _______________________________________________ > No banners. No pop-ups. No kidding. > Make My Way your home on the Web - http://www.myway.com > > > > From szekerest at GMAIL.COM Wed May 10 01:57:02 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 10 May 2006 10:57:02 +0200 Subject: OGR cut data after 510 characted? In-Reply-To: <052331CA-661A-4F92-AFE6-EBCD4354CF64@gmail.com> Message-ID: Hi, http://bugzilla.remotesensing.org/show_bug.cgi?id=990 may be related to this problem. Tamas 2006/5/10, Tero Al?n : > Hello everybody > > First little background. Our server is Linux server and we are using > MapServer 4.8.1 (PHPMapscript). Our data is in MySQL database (MySQL > because other part of our application use it). We use ODBC/OVF to get > data from database. > > Problem is that query result give some unexpected result. If I make > same query many times (using refresh) MapServer returns randomly two > or three different results. > > When I used ogrinfo to test our ovf file I found that it will cut the > geometry fields value after 510 character. The data is correct in > database when I make query by hand. Yes, we are using MySQL's spatial > extension and geometry column's type is geometry. > > ogrinfo also returns following error: ERROR 1: SetAttributeFilter() > not supported on ExecuteSQL() results. > > Thanks for any help. > > -Tero > From D.Stone at ED.AC.UK Wed May 10 02:21:48 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Wed, 10 May 2006 02:21:48 -0700 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4302727.post@talk.nabble.com> Message-ID: Thanks for the guidelines, guys. I'll need to play around a bit with this since the PHP interface seems slightly different; also not sure how PostGIS differs from shapefile. Will post findings. Dave -- View this message in context: http://www.nabble.com/PHP-MapScript-msQueryByPoint-t1583615.html#a4315987 Sent from the Mapserver - User forum at Nabble.com. From bartvde at XS4ALL.NL Wed May 10 02:39:08 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 10 May 2006 11:39:08 +0200 Subject: Premature end of script headers: mapserv In-Reply-To: <4461A74D.2020307@euskalnet.net> Message-ID: What happens if you use PassEnv in the Apache httpd.conf to pass on the LD_LIBRARY_PATH to the CGI? After that restart Apache ofcourse. PassEnv LD_LIBRARY_PATH Best regards, Bart > Hi Grabiel: > > I don't think that is a file permission issue. All the permissions are > ok. The problem is that I cannot execute cgi-bin scripts from the > browser. Indeed, I have a 'test-cgi' script that shows the same error. > Moreover I have written a very simple cgi-bin test script and got the > same error. This scripts is simply: > > #!/bin/sh > > echo > echo "test" > > Now I am checking the apache httpd.conf file for permissions to execute > cgi-bin scripts. > > Thanks anyway, and tell me please if you have any other suggestion. > > Regards, > > Juan. > > grabiel escribi?: >> >> Hi >> Juan >> Check the file permission for mapserv and the path that preceeds >> it. If your mapserv is in /usr/local/apache/cgibin then >> set the file permission(write) for others etc. using chmod comand. >> If ur file permission is not set to write for each directory or mapserv >> then you may get the error that u have mentioned. >> Best of luck >> Grabiel >> ************************************************************* >> >> >> Hi all, >> >> I have compiled successfully mapserver 4.8.3 under Solaris 8: >> >> $ ./mapserv -v >> MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF >> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> However, when I put the mapserv file into the cgi-bin apache directory >> and try to open the file directly without any parameters from my >> browser, instead of the message expected ('No query information to >> decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server >> Error' message. If I look the apache logfile I get this: 'Premature end >> of script headers: mapserv'. >> >> The LD_LIBRARY_PATH in the apache environment is: >> >> LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib >> export LD_LIBRARY_PATH >> >> >> Could anyone help me? >> >> Regards, >> >> Juan. >> >> >> >> _______________________________________________ >> No banners. No pop-ups. No kidding. >> Make My Way your home on the Web - http://www.myway.com >> >> >> >> > From b.vdeijnden at AGI.RWS.MINVENW.NL Wed May 10 02:29:37 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 10 May 2006 11:29:37 +0200 Subject: Premature end of script headers: mapser v Message-ID: What happens if you use PassEnv in the Apache httpd.conf to pass on the LD_LIBRARY_PATH to the CGI? After that restart Apache ofcourse. PassEnv LD_LIBRARY_PATH Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Juan Mari Celihueta Verzonden: woensdag 10 mei 2006 10:42 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Premature end of script headers: mapserv Hi Grabiel: I don't think that is a file permission issue. All the permissions are ok. The problem is that I cannot execute cgi-bin scripts from the browser. Indeed, I have a 'test-cgi' script that shows the same error. Moreover I have written a very simple cgi-bin test script and got the same error. This scripts is simply: #!/bin/sh echo echo "test" Now I am checking the apache httpd.conf file for permissions to execute cgi-bin scripts. Thanks anyway, and tell me please if you have any other suggestion. Regards, Juan. grabiel escribi?: > > Hi > Juan > Check the file permission for mapserv and the path that preceeds it. If your mapserv is in /usr/local/apache/cgibin then > set the file permission(write) for others etc. using chmod comand. > If ur file permission is not set to write for each directory or mapserv then you may get the error that u have mentioned. > Best of luck > Grabiel > ************************************************************* > > > Hi all, > > I have compiled successfully mapserver 4.8.3 under Solaris 8: > > $ ./mapserv -v > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > However, when I put the mapserv file into the cgi-bin apache directory > and try to open the file directly without any parameters from my > browser, instead of the message expected ('No query information to > decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server > Error' message. If I look the apache logfile I get this: 'Premature end > of script headers: mapserv'. > > The LD_LIBRARY_PATH in the apache environment is: > > LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib > export LD_LIBRARY_PATH > > > Could anyone help me? > > Regards, > > Juan. > > > > _______________________________________________ > No banners. No pop-ups. No kidding. > Make My Way your home on the Web - http://www.myway.com > > > > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Wed May 10 02:44:39 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 10 May 2006 11:44:39 +0200 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4302727.post@talk.nabble.com> Message-ID: Le mardi 09 mai 2006 ? 08:53 -0700, DjwStone a ?crit : > Thanks for the tip, Didrik. However, I'm still befogged. My query has > returned 1 result (according to $mylayer->getNumResults()). I can use > $mylayer->getResult() to give me a resultCacheMemberObj apparently, but what > can I do with that? What are these shape, tile, and class indexes? > > Should I be using queryByPoint in the first place? > > I need a cold compress (or a stiff whisky). > > Dave It will be easier with some code. It's python but should be clear enough : if layer.queryByPoint(self.map, map_point, mode, buffer) == mapscript.MS_FAILURE: logging.error('Error while querying the layer') else: results = layer.getResults() feat_atts = [] layer.open() num_res = results.numresults logging.debug("Query successful with %u results" % num_res) # get the headers headers = [] for j in xrange(layer.numitems): headers.append(layer.getItem(j)) # get the dataset for i in xrange(num_res): att = [] qresult = results.getResult(i) afeat = layer.getFeature(qresult.shapeindex, qresult.tileindex) if afeat is not None: for j in xrange(layer.numitems): att.append(afeat.getValue(j)) feat_atts.append(att) qresult = None layer.close() The getFeature method gives you the feature, meaning the shapeObj, in the layer. I hope this helps Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From dpinte at ITAE.BE Wed May 10 02:45:10 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 10 May 2006 11:45:10 +0200 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <4315987.post@talk.nabble.com> Message-ID: Le mercredi 10 mai 2006 ? 02:21 -0700, DjwStone a ?crit : > Thanks for the guidelines, guys. I'll need to play around a bit with this > since the PHP interface seems slightly different; also not sure how PostGIS > differs from shapefile. Will post findings. > > Dave The code i've posted run only on PostGIS layers. The code is layer type independant ;-) What version are your running ? I'm having strange problems with the posted code on the 4.8 version but it works perfectly with 4.4. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From piero.cavalieri at GMAIL.COM Wed May 10 02:46:15 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 10 May 2006 11:46:15 +0200 Subject: asp.net2 and mapserv cgi Message-ID: Processor is AMD 64bit (SO 32 bit). Could be this an issue ? P. Piero Cavalieri ha scritto: mapserv ?v give corret output. I also tried to use binaries which I was using on a functional installation, and have the same result. In the past never had this kind of output. I suppose 2.0 installation changed some things in SO, because I don't have any more same windows to configure permissions. For example right click on mapserv.exe, in the past I was able to fine tune users permissions, now I don't. P. Tamas Szekeres ha scritto: Piero, Do you really think if it is an ASP.NET issue? Can you run ?mapserv ?v" within the cgi directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: From igorpsc at YAHOO.COM.BR Wed May 10 03:33:16 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Wed, 10 May 2006 07:33:16 -0300 Subject: changing the querymap size (please.... help me) Message-ID: I really need your help.... Hi, How could I change, in php/mapscript, the size of the querymap (width and height)? Thanks, Igor --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmcm at EUSKALNET.NET Wed May 10 03:10:05 2006 From: jmcm at EUSKALNET.NET (Juan Mari Celihueta) Date: Wed, 10 May 2006 12:10:05 +0200 Subject: Premature end of script headers: mapserv In-Reply-To: <12902.145.50.39.8.1147253948.squirrel@webmail.xs4all.nl> Message-ID: Hi Bart, I have tried using PassEnv as you told but the problem remains the same. Now, as an apache issue recommends, I am trying to bypass the suexec support program. To check if we are using suexec, when you run apachectl -V and check for the location of SUEXEC_BIN, then apache finds a suexec binary on the startup. After execute apachectl -V, in our environment we get the follow message: -D SUEXEC_BIN="/usr/local/apache/bin/suexec" However, this suexec file does not exists in the server. Anyone suggesting how to bypass this suexec program? Regards, Juan. Bart van den Eijnden (OSGIS) escribi?: > What happens if you use PassEnv in the Apache httpd.conf to pass on the > LD_LIBRARY_PATH to the CGI? After that restart Apache ofcourse. > > PassEnv LD_LIBRARY_PATH > > Best regards, > Bart > > >> Hi Grabiel: >> >> I don't think that is a file permission issue. All the permissions are >> ok. The problem is that I cannot execute cgi-bin scripts from the >> browser. Indeed, I have a 'test-cgi' script that shows the same error. >> Moreover I have written a very simple cgi-bin test script and got the >> same error. This scripts is simply: >> >> #!/bin/sh >> >> echo >> echo "test" >> >> Now I am checking the apache httpd.conf file for permissions to execute >> cgi-bin scripts. >> >> Thanks anyway, and tell me please if you have any other suggestion. >> >> Regards, >> >> Juan. >> >> grabiel escribi?: >> >>> Hi >>> Juan >>> Check the file permission for mapserv and the path that preceeds >>> it. If your mapserv is in /usr/local/apache/cgibin then >>> set the file permission(write) for others etc. using chmod comand. >>> If ur file permission is not set to write for each directory or mapserv >>> then you may get the error that u have mentioned. >>> Best of luck >>> Grabiel >>> ************************************************************* >>> >>> >>> Hi all, >>> >>> I have compiled successfully mapserver 4.8.3 under Solaris 8: >>> >>> $ ./mapserv -v >>> MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF >>> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> However, when I put the mapserv file into the cgi-bin apache directory >>> and try to open the file directly without any parameters from my >>> browser, instead of the message expected ('No query information to >>> decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server >>> Error' message. If I look the apache logfile I get this: 'Premature end >>> of script headers: mapserv'. >>> >>> The LD_LIBRARY_PATH in the apache environment is: >>> >>> LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib >>> export LD_LIBRARY_PATH >>> >>> >>> Could anyone help me? >>> >>> Regards, >>> >>> Juan. >>> >>> >>> >>> _______________________________________________ >>> No banners. No pop-ups. No kidding. >>> Make My Way your home on the Web - http://www.myway.com >>> >>> >>> >>> >>> > > > > From jjk_saji at YAHOO.COM Wed May 10 04:13:27 2006 From: jjk_saji at YAHOO.COM (John Joseph) Date: Wed, 10 May 2006 12:13:27 +0100 Subject: Tutorial for PostGIS as data source for mapserver Message-ID: Hi I am searching for a How to do for newcomers ? using PostGIS as datasource for mapserver ? I searched the net and google , found some links http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0107/msg00213.html But was not able to follow please let me know any url or documentation for using ?PostGIS as data source for mapserver ? Thanks Joseph John ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com From bartvde at XS4ALL.NL Wed May 10 04:46:53 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 10 May 2006 13:46:53 +0200 Subject: Tutorial for PostGIS as data source for mapserver In-Reply-To: <20060510111327.5699.qmail@web34803.mail.mud.yahoo.com> Message-ID: There is, look here: http://www.omsug.ca/dl/osgis2004/PostGIS-ms.ppt http://www.omsug.ca/dl/osgis2004/PostGIS-Mapserver.doc http://www.omsug.ca/dl/osgis2004/postgis-ms.zip Best regards, Bart > Hi > I am searching for a How to do for newcomers ? > using PostGIS as datasource for mapserver ? > I searched the net and google , found some > links > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0107/msg00213.html > But was not able to follow > please let me know any url or documentation for > using ?PostGIS as data source for mapserver ? > Thanks > Joseph John > > > > > > ___________________________________________________________ > To help you stay safe and secure online, we've developed the all new > Yahoo! Security Centre. http://uk.security.yahoo.com > From D.Stone at ED.AC.UK Wed May 10 04:55:57 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Wed, 10 May 2006 04:55:57 -0700 Subject: PHP/MapScript msQueryByPoint In-Reply-To: <1147254310.22590.29.camel@geru-itae> Message-ID: Didrik Pinte wrote: > > Le mercredi 10 mai 2006 ? 02:21 -0700, DjwStone a ?crit : >> Thanks for the guidelines, guys. I'll need to play around a bit with this >> since the PHP interface seems slightly different; also not sure how >> PostGIS >> differs from shapefile. Will post findings. >> >> Dave > > The code i've posted run only on PostGIS layers. The code is layer type > independant ;-) > > What version are your running ? I'm having strange problems with the > posted code on the 4.8 version but it works perfectly with 4.4. > > Didrik > > Sorry, don't know which version, but suspect it's 4.8.1. I think the PHP interface is maybe where the difference lies. There is no getResults() method documented, but the getResult() method for the layer seems roughly equivalent. It gives you back a ResultCacheMemberObj, but currently I don't see how to refer to its documented members (shapeindex, tileindex, and classindex). The code (snippet) I've developed so far looks like this: $i = $my_layer->queryByPoint($geo_point, $qmode, 0); if ( $i == MS_SUCCESS ) { // assume qmode is MS_SINGLE for now *** $numHits = $my_layer->getNumResults(); // returns 1 echo "No. of results = " . $numHits . "
"; $rCMObj = $my_layer->getResult(0); $my_layer->open(); $my_shape = ms_newShapeObj("MS_SHAPE_POINT"); // ? needed ? $my_shape = $my_layer->getShape(-1, rCMObj->shapeindex); The final line gives: "Parse error: parse error, unexpected T_OBJECT_OPERATOR in /var/www/html/saints/data/parish/phpex2.php on line 96" I'm pretty sure it's the 'rCMObj->shapeindex' that's the problem, but looking at the ResultCacheMemberObj definition in the 'PHP/MapScript Class Reference', I don't see what's wrong. Any ideas? TIA, Dave -- View this message in context: http://www.nabble.com/PHP-MapScript-msQueryByPoint-t1583615.html#a4317914 Sent from the Mapserver - User forum at Nabble.com. From Wolfgang.Qual at MUENCHEN.DE Wed May 10 05:38:36 2006 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 10 May 2006 14:38:36 +0200 Subject: Truetype Symbols: (how) can I display truetype symbols in the legend Message-ID: Hi list, I am using truetype-symbols, they're working fine. The only thing is that I do not know, how to get them also inside of the legend (only the "Name" Symbol A" appears. Is there a way to do so? Part of my mapfile: CLASS NAME "SYMBOL A" STYLE SYMBOL "A" SIZE 12 COLOR 0 220 0 END END Comments are greatly appreciated! Greetings, Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From ed at TOPOZONE.COM Wed May 10 06:46:28 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 10 May 2006 09:46:28 -0400 Subject: Help needed in Raster/World file Message-ID: Raffle - You know how to set the georeference information for your TIF file (by creating the TFW file). But you don't know what numbers to use. I cannot tell you the geographic parameters of your image - you need to find that out. If you need to integrate it with other data layers, you need to know the extents and resolution of the raster image; if it is not the same projection as your other layers, then you need to know the details of the projection, too. If the raster image is not georeferenced you need to (a) go back to the source of the image and get that information, or (b) locate several known coordinate points on the image and calculate the image parameters (a tedious and not-very-accurate process in most cases). - 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of grabiel Sent: Wednesday, May 10, 2006 2:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file Hi Ed You are right. I didnot set any georeference information set or project information in the .tif file. I simply took one image and trying to display it along with other layers. Also i need to integrate the image with other layer. Can you please tell me how to set the georeference/projection information in my .tif file. Thanks in advance. Raffle --- On Tue 05/09, Ed McNierney < ed at TOPOZONE.COM > wrote: From: Ed McNierney [mailto: ed at TOPOZONE.COM] To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 9 May 2006 08:21:23 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

Raffle -
?
That's an important difference!? If you have a TFW file in the first place, gdalinfo will simply return its contents to you. So you're using the contents of your TFW file to decide what information to put in your TFW file....
?
You seem to have no georeferencing information in that file.? What information do you have about the projection and coordinate extents of that input image?? Do you need to only display this single layer, or do you need to integrate it with other data layers?
?
???? - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com



From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Tuesday, May 09, 2006 3:32 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

Hi
?? Ed
??????? I changed the status from On to Default but still its not working. One thing i want to tell you that if i delete the .tfw file the output of gdalinfo also changed which like this--->
?
? #gdalinfo test.tif? ### Without test.tfw file ######
Driver: Gtiff/GeoTiff
Size is 1042, 722
Co-ordinate System is `'
METADATA
----------
----------
Upper Left (0.0, 0.0)
Lower left (0.0, 722.0)
Upper right (1042.0, 0.0)
center(521.0, 361.0)
?
Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED
..........................................................................=Green
......................................................................=BLUE
?
Then what will be my values in my .tfw file? Now if i put the values in my .tfw file then the output of my gdalinfo also changed according to the values that i put there.
?
Where is the problem? Whether i need to put Projection statement in my mapfile?
Please help me
Thanks in advance
Raffle

Ed McNierney wrote:
Raffle -
?
If you set your LAYER to STATUS ON it won't display - you need to set it to STATUS DEFAULT.
?
???? - Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com


From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Monday, May 08, 2006 7:12 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

Hi
??? I have given the mapfile below and after modifying the value as you suggested in
your previous, I am not getting the raster image on my final output.
?
Thanks in advance
Raffle
?
?
NAME "Europe"
SIZE 200 200
STATUS ON
SYMBOLSET ....."
EXTENT 2700051.860 2462746.020 3582564.801 3012459.468
UNITS METERS
SHAPEPATH " "
WEB
IMAGEPATH ""
IMAGEURL ""
END
.......
LAYER
DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif"
NAME "raster_back"
TYPE RASTER
STATUS ON
END
END
?
Raffle -
?
Zero is a perfectly nice number!? There's nothing wrong with 0.0 in your world file, especially in the second and third lines.? For the vast majority of raster images you will find that the fourth line is the same as the first line with the sign reversed, and the second and third lines are 0.0.? A world file will often look like:
?
100.0
0.0
0.0
-100.0
12345.67
987654.32
?
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA? 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com


From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Saturday, May 06, 2006 9:07 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

?
?Hi
???? I am trying to include a .tif file for raster background. For that i have to write a .tfw(world file) for the corresponding .tif file. The information that i need to put in the world file are X, Y Pixel size, rotational co-efficient and X, Y location of the center of the top left pixel. I am trying to find these values by using gdalinfo-- but some values are 0.0
in their corresponding field.
?? Can anyone plz help me, how to get/set these values for the world file so that i can
keep my raster data georeferenced with other layers in my mapfile.
?
Thanks in advance
Raffle
? ?

24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more


Yahoo! Photos - NEW, now offering a quality print service from just 7p a photo.

_______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From tealorama at GMAIL.COM Wed May 10 07:33:10 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Wed, 10 May 2006 17:33:10 +0300 Subject: OGR cut data after 510 characted? In-Reply-To: Message-ID: Thanks. I have to test if the patch fixes my problem. -Tero Tamas Szekeres kirjoitti 10.5.2006 kello 11.57: > Hi, > > http://bugzilla.remotesensing.org/show_bug.cgi?id=990 > > may be related to this problem. > > Tamas > > > 2006/5/10, Tero Al?n : >> Hello everybody >> >> First little background. Our server is Linux server and we are using >> MapServer 4.8.1 (PHPMapscript). Our data is in MySQL database (MySQL >> because other part of our application use it). We use ODBC/OVF to get >> data from database. >> >> Problem is that query result give some unexpected result. If I make >> same query many times (using refresh) MapServer returns randomly two >> or three different results. >> >> When I used ogrinfo to test our ovf file I found that it will cut the >> geometry fields value after 510 character. The data is correct in >> database when I make query by hand. Yes, we are using MySQL's spatial >> extension and geometry column's type is geometry. >> >> ogrinfo also returns following error: ERROR 1: SetAttributeFilter() >> not supported on ExecuteSQL() results. >> >> Thanks for any help. >> >> -Tero >> From gisaalter at GMAIL.COM Wed May 10 07:44:50 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 10 May 2006 16:44:50 +0200 Subject: MapServer acces with user authentication (login/password) Message-ID: Hi list, Can I secure my MapServer WMS with user authentication on MapServer level ? I'd like to establish my WMS so only a few people can I access it... Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed May 10 07:55:03 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 May 2006 10:55:03 -0400 Subject: MapServer acces with user authentication (login/password) In-Reply-To: <8d2ea9d70605100744n15c6200fu2eda89b69511ec1b@mail.gmail.com> Message-ID: Steven De Vriendt wrote: > Hi list, > > Can I secure my MapServer WMS with user authentication on MapServer level ? > I'd like to establish my WMS so only a few people can I access it... Steven, I believe the normal way to accomplish this is with normal .htpasswd or other Apache authentication methods. MapServer itself does not provide user/password authentication. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From dovidio at PLANETEK.IT Wed May 10 07:58:47 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 10 May 2006 16:58:47 +0200 Subject: MapServer acces with user authentication (login/password) In-Reply-To: <8d2ea9d70605100744n15c6200fu2eda89b69511ec1b@mail.gmail.com> Message-ID: On 10 May 2006 at 16:44, Steven De Vriendt wrote: > > Hi list, > > Can I secure my MapServer WMS with user authentication on MapServer level ? > I'd like to establish my WMS so only a few people can I access it... > > Steven I' don't think MapServer is able to do this. It doesn't have theese capabilities. ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From dovidio at PLANETEK.IT Wed May 10 07:59:33 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 10 May 2006 16:59:33 +0200 Subject: (Fwd) Re: [UMN_MAPSERVER-USERS] MapServer acces with user auth Message-ID: ------- Forwarded message follows ------- From: Fabio D'Ovidio To: Steven De Vriendt , UMN MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] MapServer acces with user authentication (login/password) Send reply to: dovidio at planetek.it Date sent: Wed, 10 May 2006 16:58:44 +0200 On 10 May 2006 at 16:44, Steven De Vriendt wrote: > > Hi list, > > Can I secure my MapServer WMS with user authentication on MapServer level ? > I'd like to establish my WMS so only a few people can I access it... > > Steven I' don't think MapServer is able to do this. It doesn't have theese capabilities. ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** ------- End of forwarded message ------- ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From szekerest at GMAIL.COM Wed May 10 08:00:12 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 10 May 2006 17:00:12 +0200 Subject: asp.net2 and mapserv cgi In-Reply-To: Message-ID: Trying with Apache might be helpful. ms4w is a quick option. We should exclude if it is solely an IIS issue. Tamas 2006/5/10, Piero Cavalieri : > Processor is AMD 64bit (SO 32 bit). Could be this an issue ? > > P. > > Piero Cavalieri ha scritto: > mapserv ?v give corret output. I also tried to use binaries which I was > using on a functional installation, and have the same result. In the past > never had this kind of output. I suppose 2.0 installation changed some > things in SO, because I don't have any more same windows to configure > permissions. For example right click on mapserv.exe, in the past I was able > to fine tune users permissions, now I don't. > > P. > > > Tamas Szekeres ha scritto: > > > > Piero, > > > > Do you really think if it is an ASP.NET issue? > > Can you run ?mapserv ?v" within the cgi directory. From Kenton_Williams at UMIT.MAINE.EDU Wed May 10 09:09:34 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Wed, 10 May 2006 12:09:34 -0400 Subject: error fetching http headers when output to RGB instead of 256 colors Message-ID: Hello, I am working on a project in which we are using Cartoweb for a simple web interface. I have a working, partially-completed project that can be viewed at www.geodatacommons.umaine.edu/cgddemo/cartoweb3/htdocs/cgd_mapfile.php As you can see, I have added a satellite image layer, currently supplied by a 24-bit RGB GeoTIFF residing on the server. I have also been able to get the JPL WMS global landsat mosaic to work in its place, but for the time being, the server's image file is being used. The problem is, when I switch from 256 PNG to any other output format with absolutely no other changes to my mapfile, the project fails, giving me the following error: Failure Class : SoapFaultWrapper Message : Error Fetching http headers When I simply switch back to 256 color PNG mode, the error disappears. I have posted this error many times on the Cartoweb mailing list and even directly e-mailed the developers. None of them can figure out why this is happening. We are using a Debian Linux server and have all of the current updates to our software. No matter whether the raster layer is present or not in my mapfile, switching to JPEG output (RGB) causes an error. Using a WMS that specifically delivers JPEG imagery results in the same problem if I change my mapfile output from PNG (256 color) to JPEG. Does anyone have a suggestion on what may be causing this problem? I've been wrestling with it for a week with no success! Thanks in advance! Kenton Williams From earevaloch at GMAIL.COM Wed May 10 09:38:30 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 10 May 2006 11:38:30 -0500 Subject: error FONTSET Message-ID: hello: at the time of executing mapfile it leaves the following error msGetLabelSize(): TrueType Font error. Could not find/open font please help -------------- next part -------------- An HTML attachment was scrubbed... URL: From gdavis at REFRACTIONS.NET Wed May 10 09:42:51 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Wed, 10 May 2006 09:42:51 -0700 Subject: error FONTSET In-Reply-To: <95f68e530605100938k18efcefdkd9ac677accfd1594@mail.gmail.com> Message-ID: Hello Eduardo, One of the fonts that you have listed in your map file is not located where you have listed it. In the future, please show us your MAP file so that we can better help you. -- Graham Davis Refractions Research Inc. gdavis at refractions.net Eduardo Ar?valo wrote: > hello: at the time of executing mapfile it leaves the following error > > msGetLabelSize(): TrueType Font error. Could not find/open font > > please help From earevaloch at GMAIL.COM Wed May 10 10:25:07 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 10 May 2006 12:25:07 -0500 Subject: error FONTSET In-Reply-To: <4462180B.70001@refractions.net> Message-ID: sorry Graham this mapfile: MAP IMAGETYPE PNG EXTENT -81.328393 -18.351232 -68.653396 -0.038607 SIZE 400 300 SHAPEPATH "/home/postgres/vectores" IMAGECOLOR 255 255 255 FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" LAYER NAME Peru_poly DATA departamentos STATUS OFF TYPE POLYGON CLASSITEM "nomb_dep" LABELITEM "capital" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE COLOR 232 232 232 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END #FIN LABEL END ..... 2006/5/10, Graham Davis : > > Hello Eduardo, > > One of the fonts that you have listed in your map file is not located > where you have listed it. In the future, please show us your MAP file > so that we can better help you. > > -- > Graham Davis > Refractions Research Inc. > gdavis at refractions.net > > > Eduardo Ar?valo wrote: > > > hello: at the time of executing mapfile it leaves the following error > > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > please help > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcifuentes at SIIGSA.CL Wed May 10 10:32:10 2006 From: pcifuentes at SIIGSA.CL (Patricio Cifuentes Ithal) Date: Wed, 10 May 2006 13:32:10 -0400 Subject: error FONTSET Message-ID: Hi eduardo, the archive font.list content font's is installed en you S.O.? verify in you S.O. if exist the font. -- Patricio Cifuentes Ithal Ingeniero en Inform?tica Inform?tica SIIGSA (56-2) 204 60 22 ----- Original Message ----- From: Eduardo Ar?valo To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, May 10, 2006 1:25 PM Subject: Re: [UMN_MAPSERVER-USERS] error FONTSET sorry Graham this mapfile: MAP IMAGETYPE PNG EXTENT -81.328393 -18.351232 -68.653396 -0.038607 SIZE 400 300 SHAPEPATH "/home/postgres/vectores" IMAGECOLOR 255 255 255 FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" LAYER NAME Peru_poly DATA departamentos STATUS OFF TYPE POLYGON CLASSITEM "nomb_dep" LABELITEM "capital" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE COLOR 232 232 232 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END #FIN LABEL END ..... 2006/5/10, Graham Davis : Hello Eduardo, One of the fonts that you have listed in your map file is not located where you have listed it. In the future, please show us your MAP file so that we can better help you. -- Graham Davis Refractions Research Inc. gdavis at refractions.net Eduardo Ar?valo wrote: > hello: at the time of executing mapfile it leaves the following error > > msGetLabelSize(): TrueType Font error. Could not find/open font > > please help -------------- next part -------------- An HTML attachment was scrubbed... URL: From funkbucket at GMAIL.COM Wed May 10 10:33:12 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Wed, 10 May 2006 11:33:12 -0600 Subject: error FONTSET In-Reply-To: <4462180B.70001@refractions.net> Message-ID: Hi- I am having a similar problem, but I think my fonts are correctly located and referenced (possibly I am wrong about htis since I keep getting the error message). I haven't had any responses to my post yet. All the info is below any chance you know what is wrong with mine as well? ================================================ Hi- I am new to this and trying to set up my first map server on a linux box. When I try to use trutype font labels for my legend I get the following error: msGetLabelSize(): TrueType Font error. Requested font (courier) not found. This also occurs if I change the font to say arial: msGetLabelSize(): TrueType Font error. Requested font (arial) not found. My legend is as follows: LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "courier" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END Commenting out TYPE and FONT and changing SIZE to small gets rid of the error. I am not sure if this is a typo, permissions, path, or some other issue. My fontset.txt, and an ls of the font directory and my map file are below. Any help would be appreciated. ====================================== [root at localhost home]# ls /usr/share/fonts/webcore/ andalemo.ttf courbd.ttf georgiai.ttf tahomabd.ttf trebucit.ttf arialbd.ttf courbi.ttf georgia.ttf tahoma.ttf trebuc.ttf arialbi.ttf couri.ttf georgiaz.ttf timesbd.ttf verdanab.ttf ariali.ttf cour.ttf impact.ttf timesbi.ttf verdanai.ttf arial.ttf fonts.cache-1 l_10646.ttf timesi.ttf verdana.ttf ariblk.ttf fonts.dir lucon.ttf times.ttf verdanaz.ttf comicbd.ttf fonts.scale micross.ttf trebucbd.ttf webdings.ttf comic.ttf georgiab.ttf symbol.ttf trebucbi.ttf wingding.ttf [root at localhost home] ====================================== arial /usr/share/fonts/webcore/arial.ttf arial-bold /usr/share/fonts/webcore/arialbd.ttf arial-italic /usr/share/fonts/webcore/ariali.ttf arial-bold-italic /usr/share/fonts/webcore/arialbi.ttf arial_black /usr/share/fonts/webcore/ariblk.ttf comic_sans /usr/share/fonts/webcore/comic.ttf comic_sans-bold /usr/share/fonts/webcore/comicbd.ttf courier /usr/share/fonts/webcore/cour.ttf courier-bold /usr/share/fonts/webcore/courbd.ttf courier-italic /usr/share/fonts/webcore/couri.ttf courier-bold-italic /usr/share/fonts/webcore/courbi.ttf georgia /usr/share/fonts/webcore/georgia.ttf georgia-bold /usr/share/fonts/webcore/georgiab.ttf georgia-italic /usr/share/fonts/webcore/georgiai.ttf georgia-bold-italic /usr/share/fonts/webcore/georgiaz.ttf impact /usr/share/fonts/webcore/impact.ttf monotype.com /usr/share/fonts/webcore/monotype.ttf recreation_symbols /usr/share/fonts/webcore/recreate.ttf times /usr/share/fonts/webcore/times.ttf times-bold /usr/share/fonts/webcore/timesbd.ttf times-italic /usr/share/fonts/webcore/timesi.ttf times-bold-italic /usr/share/fonts/webcore/timesbi.ttf trebuchet_ms /usr/share/fonts/webcore/trebuc.ttf trebuchet_ms-bold /usr/share/fonts/webcore/trebucbd.ttf trebuchet_ms-italic /usr/share/fonts/webcore/trebucit.ttf trebuchet_ms-bold-italic /usr/share/fonts/webcore/trebucbi.ttf verdana /usr/share/fonts/webcore/verdana.ttf verdana-bold /usr/share/fonts/webcore/verdanab.ttf verdana-italic /usr/share/fonts/webcore/verdanai.ttf verdana-bold-italic /usr/share/fonts/webcore/verdanaz.ttf ====================================== NAME "AppDesign3" UNITS meters SIZE 640 480 IMAGECOLOR 255 255 255 IMAGETYPE png SHAPEPATH "/data/" #Bottom left, upper right EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 FONTSET "/usr/local/apache2/htdocs/fontset.txt" WEB HEADER "/usr/local/apache2/htdocs/appdesign3_web_header.html" FOOTER "/usr/local/apache2/htdocs/appdesign3_web_footer.html" EMPTY "/appdesign3_no_results.html" TEMPLATE "/usr/local/apache2/htdocs/appdesign3.html" IMAGEPATH "/usr/local/apache2/htdocs/tmp/" IMAGEURL "/tmp/" END SYMBOL NAME "triangle" TYPE vector POINTS 0 4 2 0 4 4 0 4 END END REFERENCE IMAGE "/data/colorado_ref_map.gif" SIZE 300 225 EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 STATUS on COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS on STYLE hilite COLOR 255 0 0 SIZE 480 320 END SCALEBAR LABEL COLOR 0 0 0 ANTIALIAS true SIZE small END POSITION lr INTERVALS 5 STATUS embed SIZE 144 5 STYLE 0 UNITS miles BACKGROUNDCOLOR 255 255 255 IMAGECOLOR 255 255 255 COLOR 0 0 0 OUTLINECOLOR 0 0 0 TRANSPARENT off END LEGEND STATUS on IMAGECOLOR 230 230 230 LABEL TYPE truetype FONT "courier" COLOR 0 0 0 SIZE 10 #SIZE small ANTIALIAS true END END LAYER NAME "USGS_Index" STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from usgs_index" HEADER "/usr/local/apache2/htdocs/appdesign3_index_header.html" FOOTER "/usr/local/apache2/htdocs/appdesign3_index_footer.html" TOLERANCE 100 TOLERANCEUNITS meters LABELCACHE on LABELITEM 'QUAD_NAME' LABELMAXSCALE 250000 CLASS NAME "USGS Index" TEMPLATE "/usr/local/apache2/htdocs/appdesign3_index_query.html" STYLE OUTLINECOLOR 0 255 0 END LABEL COLOR 0 255 0 SIZE small POSITION cc END # label END # class END # layer LAYER NAME "Counties" STATUS on TYPE polygon CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from counties" LABELCACHE on LABELITEM "CNTY_NAME" LABELMINSCALE 250000 CLASS NAME "Counties" STYLE SIZE 1 OUTLINECOLOR 0 0 255 END LABEL #MINFEATURESIZE auto COLOR 0 0 255 SIZE small POSITION cc END # label END # class END # layer LAYER NAME "Cities" STATUS on TYPE point CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from cities" LABELCACHE on LABELITEM "name" LABELMAXSCALE 100000 MAXSCALE 1000000 CLASS STYLE COLOR 255 0 0 SYMBOL 'triangle' SIZE 5 END LABEL COLOR 250 0 0 SIZE small POSITION auto END END # class END # layer states LAYER NAME "Highways" STATUS on TYPE line CONNECTIONTYPE POSTGIS CONNECTION "dbname=project1 user=postgres host=localhost port=5432" DATA "the_geom from highways" LABELCACHE on #LABELITEM "ROUTE" CLASS NAME "Highways" STYLE SIZE 1 COLOR 0 0 0 END # LABEL # COLOR 0 0 0 # SIZE small # END # label END # class END # layer END # mapfile On 5/10/06, Graham Davis wrote: > Hello Eduardo, > > One of the fonts that you have listed in your map file is not located > where you have listed it. In the future, please show us your MAP file > so that we can better help you. > > -- > Graham Davis > Refractions Research Inc. > gdavis at refractions.net > > > Eduardo Ar?valo wrote: > > > hello: at the time of executing mapfile it leaves the following error > > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > please help > From David.Fawcett at STATE.MN.US Wed May 10 10:34:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 10 May 2006 12:34:42 -0500 Subject: error FONTSET Message-ID: Eduardo, Is there a file called fonts.list in the place that you have specified? In that file, is there an entry for 'arial-bold'? Do the file names both in the fonts.list file and in the filesystem match in their use of upper and lowercase? You may also want to put quotes around "arial-bold" in your FONT entry. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eduardo Ar?valo Sent: Wednesday, May 10, 2006 12:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] error FONTSET sorry Graham this mapfile: MAP IMAGETYPE PNG EXTENT -81.328393 -18.351232 -68.653396 -0.038607 SIZE 400 300 SHAPEPATH "/home/postgres/vectores" IMAGECOLOR 255 255 255 FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" LAYER NAME Peru_poly DATA departamentos STATUS OFF TYPE POLYGON CLASSITEM "nomb_dep" LABELITEM "capital" CLASS NAME "departamento selva" EXPRESSION "UCAYALI" STYLE COLOR 232 232 232 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END #FIN LABEL END ..... 2006/5/10, Graham Davis : Hello Eduardo, One of the fonts that you have listed in your map file is not located where you have listed it. In the future, please show us your MAP file so that we can better help you. -- Graham Davis Refractions Research Inc. gdavis at refractions.net Eduardo Ar?valo wrote: > hello: at the time of executing mapfile it leaves the following error > > msGetLabelSize(): TrueType Font error. Could not find/open font > > please help -------------- next part -------------- An HTML attachment was scrubbed... URL: From gdavis at REFRACTIONS.NET Wed May 10 10:35:10 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Wed, 10 May 2006 10:35:10 -0700 Subject: error FONTSET In-Reply-To: <95f68e530605101025ie4ad93ahd86f5253fd9b78f3@mail.gmail.com> Message-ID: Thanks Eduardo, The first thing I would check for your problem, is to ensure the /home/earevalo/mapserver-4.8.3/fonts/fonts.list file exists in this place. If it does, see if it has a definition for arial-bold (since that is the font you are using in this MAP file). Make sure the file for arial-bold is in the same directory as the fonts.lst file, and make sure the definition in the fonts.lst file is correct. -- Graham Davis Refractions Research Inc. gdavis at refractions.net Eduardo Ar?valo wrote: > sorry Graham > this mapfile: > MAP > IMAGETYPE PNG > EXTENT -81.328393 -18.351232 -68.653396 -0.038607 > SIZE 400 300 > SHAPEPATH "/home/postgres/vectores" > IMAGECOLOR 255 255 255 > FONTSET "/home/earevalo/mapserver-4.8.3/fonts/fonts.list" > > LAYER > NAME Peru_poly > DATA departamentos > STATUS OFF > TYPE POLYGON > CLASSITEM "nomb_dep" > LABELITEM "capital" > > CLASS > NAME "departamento selva" > EXPRESSION "UCAYALI" > STYLE > COLOR 232 232 232 > END > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END #FIN LABEL > END > ..... > > 2006/5/10, Graham Davis >: > > Hello Eduardo, > > One of the fonts that you have listed in your map file is not located > where you have listed it. In the future, please show us your MAP > file > so that we can better help you. > > -- > Graham Davis > Refractions Research Inc. > gdavis at refractions.net > > > Eduardo Ar?valo wrote: > > > hello: at the time of executing mapfile it leaves the following > error > > > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > please help > > From bartvde at XS4ALL.NL Wed May 10 10:39:49 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 10 May 2006 19:39:49 +0200 Subject: error FONTSET In-Reply-To: <259e26270605101033l60ed9413v6d4fb67638bc6130@mail.gmail.com> Message-ID: Does the apache user have permission to access the font file and the ttf files? Best regards, Bart B Tuttle wrote: > Hi- > I am having a similar problem, but I think my fonts are correctly > located and referenced (possibly I am wrong about htis since I keep > getting the error message). I haven't had any responses to my post > yet. All the info is below any chance you know what is wrong with mine > as well? > ================================================ > Hi- > I am new to this and trying to set up my first map server on a linux > box. When I try to use trutype font labels for my legend I get the > following error: > msGetLabelSize(): TrueType Font error. Requested font (courier) not > found. > > This also occurs if I change the font to say arial: > msGetLabelSize(): TrueType Font error. Requested font (arial) not found. > > My legend is as follows: > LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "courier" > COLOR 0 0 0 > SIZE 10 > ANTIALIAS true > END > END > > Commenting out TYPE and FONT and changing SIZE to small gets rid of > the error. I am not sure if this is a typo, permissions, path, or some > other issue. My fontset.txt, and an ls of the font directory and my > map file are below. Any help would be appreciated. > ====================================== > [root at localhost home]# ls /usr/share/fonts/webcore/ > andalemo.ttf courbd.ttf georgiai.ttf tahomabd.ttf trebucit.ttf > arialbd.ttf courbi.ttf georgia.ttf tahoma.ttf trebuc.ttf > arialbi.ttf couri.ttf georgiaz.ttf timesbd.ttf verdanab.ttf > ariali.ttf cour.ttf impact.ttf timesbi.ttf verdanai.ttf > arial.ttf fonts.cache-1 l_10646.ttf timesi.ttf verdana.ttf > ariblk.ttf fonts.dir lucon.ttf times.ttf verdanaz.ttf > comicbd.ttf fonts.scale micross.ttf trebucbd.ttf webdings.ttf > comic.ttf georgiab.ttf symbol.ttf trebucbi.ttf wingding.ttf > [root at localhost home] > ====================================== > arial /usr/share/fonts/webcore/arial.ttf > arial-bold /usr/share/fonts/webcore/arialbd.ttf > arial-italic /usr/share/fonts/webcore/ariali.ttf > arial-bold-italic /usr/share/fonts/webcore/arialbi.ttf > arial_black /usr/share/fonts/webcore/ariblk.ttf > comic_sans /usr/share/fonts/webcore/comic.ttf > comic_sans-bold /usr/share/fonts/webcore/comicbd.ttf > courier /usr/share/fonts/webcore/cour.ttf > courier-bold /usr/share/fonts/webcore/courbd.ttf > courier-italic /usr/share/fonts/webcore/couri.ttf > courier-bold-italic /usr/share/fonts/webcore/courbi.ttf > georgia /usr/share/fonts/webcore/georgia.ttf > georgia-bold > /usr/share/fonts/webcore/georgiab.ttf > georgia-italic > /usr/share/fonts/webcore/georgiai.ttf > georgia-bold-italic > /usr/share/fonts/webcore/georgiaz.ttf > impact /usr/share/fonts/webcore/impact.ttf > monotype.com > /usr/share/fonts/webcore/monotype.ttf > recreation_symbols > /usr/share/fonts/webcore/recreate.ttf > times /usr/share/fonts/webcore/times.ttf > times-bold /usr/share/fonts/webcore/timesbd.ttf > times-italic /usr/share/fonts/webcore/timesi.ttf > times-bold-italic /usr/share/fonts/webcore/timesbi.ttf > trebuchet_ms /usr/share/fonts/webcore/trebuc.ttf > trebuchet_ms-bold > /usr/share/fonts/webcore/trebucbd.ttf > trebuchet_ms-italic > /usr/share/fonts/webcore/trebucit.ttf > trebuchet_ms-bold-italic > /usr/share/fonts/webcore/trebucbi.ttf > verdana /usr/share/fonts/webcore/verdana.ttf > verdana-bold > /usr/share/fonts/webcore/verdanab.ttf > verdana-italic > /usr/share/fonts/webcore/verdanai.ttf > verdana-bold-italic > /usr/share/fonts/webcore/verdanaz.ttf > ====================================== > NAME "AppDesign3" > UNITS meters > SIZE 640 480 > IMAGECOLOR 255 255 255 > IMAGETYPE png > SHAPEPATH "/data/" > #Bottom left, upper right > EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 > FONTSET "/usr/local/apache2/htdocs/fontset.txt" > > WEB > HEADER "/usr/local/apache2/htdocs/appdesign3_web_header.html" > FOOTER "/usr/local/apache2/htdocs/appdesign3_web_footer.html" > EMPTY "/appdesign3_no_results.html" > TEMPLATE "/usr/local/apache2/htdocs/appdesign3.html" > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > SYMBOL > NAME "triangle" > TYPE vector > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > REFERENCE > IMAGE "/data/colorado_ref_map.gif" > SIZE 300 225 > EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 > STATUS on > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > QUERYMAP > STATUS on > STYLE hilite > COLOR 255 0 0 > SIZE 480 320 > END > > SCALEBAR > LABEL > COLOR 0 0 0 > ANTIALIAS true > SIZE small > END > POSITION lr > INTERVALS 5 > STATUS embed > SIZE 144 5 > STYLE 0 > UNITS miles > BACKGROUNDCOLOR 255 255 255 > IMAGECOLOR 255 255 255 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > TRANSPARENT off > END > > LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "courier" > COLOR 0 0 0 > SIZE 10 > #SIZE small > ANTIALIAS true > END > END > > > LAYER > NAME "USGS_Index" > STATUS on > TYPE polygon > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from usgs_index" > HEADER "/usr/local/apache2/htdocs/appdesign3_index_header.html" > FOOTER "/usr/local/apache2/htdocs/appdesign3_index_footer.html" > TOLERANCE 100 > TOLERANCEUNITS meters > LABELCACHE on > LABELITEM 'QUAD_NAME' > LABELMAXSCALE 250000 > CLASS > NAME "USGS Index" > TEMPLATE "/usr/local/apache2/htdocs/appdesign3_index_query.html" > STYLE > OUTLINECOLOR 0 255 0 > END > LABEL > COLOR 0 255 0 > SIZE small > POSITION cc > END # label > END # class > END # layer > > LAYER > NAME "Counties" > STATUS on > TYPE polygon > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from counties" > LABELCACHE on > LABELITEM "CNTY_NAME" > LABELMINSCALE 250000 > CLASS > NAME "Counties" > STYLE > SIZE 1 > OUTLINECOLOR 0 0 255 > END > LABEL > #MINFEATURESIZE auto > COLOR 0 0 255 > SIZE small > POSITION cc > END # label > END # class > END # layer > > LAYER > NAME "Cities" > STATUS on > TYPE point > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from cities" > LABELCACHE on > LABELITEM "name" > LABELMAXSCALE 100000 > MAXSCALE 1000000 > CLASS > STYLE > COLOR 255 0 0 > SYMBOL 'triangle' > SIZE 5 > END > LABEL > COLOR 250 0 0 > SIZE small > POSITION auto > END > END # class > END # layer states > > LAYER > NAME "Highways" > STATUS on > TYPE line > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from highways" > LABELCACHE on > #LABELITEM "ROUTE" > CLASS > NAME "Highways" > STYLE > SIZE 1 > COLOR 0 0 0 > END > # LABEL > # COLOR 0 0 0 > # SIZE small > # END # label > END # class > END # layer > > END # mapfile > > On 5/10/06, Graham Davis wrote: > >> Hello Eduardo, >> >> One of the fonts that you have listed in your map file is not located >> where you have listed it. In the future, please show us your MAP file >> so that we can better help you. >> >> -- >> Graham Davis >> Refractions Research Inc. >> gdavis at refractions.net >> >> >> Eduardo Ar?valo wrote: >> >> > hello: at the time of executing mapfile it leaves the following error >> > >> > msGetLabelSize(): TrueType Font error. Could not find/open font >> > >> > please help >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From hfl at HOME.NL Wed May 10 10:24:06 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 10 May 2006 19:24:06 +0200 Subject: enable logfile on IIS Message-ID: Hi List I have a mapserv-4.8 compile working on Microsoft Internet Information Server and i was looking for a way to enable the log file. i tried ( in vain ) in the mapfile MAP WEB LOG "d:/existingpath/filename" END DEBUG ON (....) END On the Windows system level ENVIRONMENT variable MS_ERRORFILE = d:\existingpath\filename I gave the IUSR fullcontrol rights on d:\existingpath\ my mapserver says: mapserv -v MapServer version 4.8.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT =SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUP PORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL IN PUT=SHAPEFILE DEBUG=MSDEBUG Thanks for any tips. Regards, Huub From nicolas.fortin at EC.GC.CA Wed May 10 10:46:24 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 10 May 2006 13:46:24 -0400 Subject: [UMN_MAPSERVER-USERS] enable logfile on IIS Message-ID: Hi As far as I know, my IIS doesn't log anything from WMS request but log normally from a local mapserver viewer (html template). I don't know if it's a usual behavior... I use an asp script to log WMS request. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Huub Fleuren Envoy? : 10 mai 2006 13:24 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] enable logfile on IIS Hi List I have a mapserv-4.8 compile working on Microsoft Internet Information Server and i was looking for a way to enable the log file. i tried ( in vain ) in the mapfile MAP WEB LOG "d:/existingpath/filename" END DEBUG ON (....) END On the Windows system level ENVIRONMENT variable MS_ERRORFILE = d:\existingpath\filename I gave the IUSR fullcontrol rights on d:\existingpath\ my mapserver says: mapserv -v MapServer version 4.8.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT =SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUP PORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL IN PUT=SHAPEFILE DEBUG=MSDEBUG Thanks for any tips. Regards, Huub From gdavis at REFRACTIONS.NET Wed May 10 10:53:10 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Wed, 10 May 2006 10:53:10 -0700 Subject: error FONTSET In-Reply-To: <259e26270605101033l60ed9413v6d4fb67638bc6130@mail.gmail.com> Message-ID: Hi B, Things look correct in your setup. You might want to try having the fontset.txt and all the font files in the same directory. I'm not sure if this is necessary but it is usually how I set things up. Also ensure the permission settings for the font files allows mapserver to read them. That is all I can see to try. Hope it helps, -- Graham Davis Refractions Research Inc. gdavis at refractions.net B Tuttle wrote: > Hi- > I am having a similar problem, but I think my fonts are correctly > located and referenced (possibly I am wrong about htis since I keep > getting the error message). I haven't had any responses to my post > yet. All the info is below any chance you know what is wrong with mine > as well? > ================================================ > Hi- > I am new to this and trying to set up my first map server on a linux > box. When I try to use trutype font labels for my legend I get the > following error: > msGetLabelSize(): TrueType Font error. Requested font (courier) not > found. > > This also occurs if I change the font to say arial: > msGetLabelSize(): TrueType Font error. Requested font (arial) not found. > > My legend is as follows: > LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "courier" > COLOR 0 0 0 > SIZE 10 > ANTIALIAS true > END > END > > Commenting out TYPE and FONT and changing SIZE to small gets rid of > the error. I am not sure if this is a typo, permissions, path, or some > other issue. My fontset.txt, and an ls of the font directory and my > map file are below. Any help would be appreciated. > ====================================== > [root at localhost home]# ls /usr/share/fonts/webcore/ > andalemo.ttf courbd.ttf georgiai.ttf tahomabd.ttf trebucit.ttf > arialbd.ttf courbi.ttf georgia.ttf tahoma.ttf trebuc.ttf > arialbi.ttf couri.ttf georgiaz.ttf timesbd.ttf verdanab.ttf > ariali.ttf cour.ttf impact.ttf timesbi.ttf verdanai.ttf > arial.ttf fonts.cache-1 l_10646.ttf timesi.ttf verdana.ttf > ariblk.ttf fonts.dir lucon.ttf times.ttf verdanaz.ttf > comicbd.ttf fonts.scale micross.ttf trebucbd.ttf webdings.ttf > comic.ttf georgiab.ttf symbol.ttf trebucbi.ttf wingding.ttf > [root at localhost home] > ====================================== > arial /usr/share/fonts/webcore/arial.ttf > arial-bold /usr/share/fonts/webcore/arialbd.ttf > arial-italic /usr/share/fonts/webcore/ariali.ttf > arial-bold-italic /usr/share/fonts/webcore/arialbi.ttf > arial_black /usr/share/fonts/webcore/ariblk.ttf > comic_sans /usr/share/fonts/webcore/comic.ttf > comic_sans-bold /usr/share/fonts/webcore/comicbd.ttf > courier /usr/share/fonts/webcore/cour.ttf > courier-bold /usr/share/fonts/webcore/courbd.ttf > courier-italic /usr/share/fonts/webcore/couri.ttf > courier-bold-italic /usr/share/fonts/webcore/courbi.ttf > georgia /usr/share/fonts/webcore/georgia.ttf > georgia-bold > /usr/share/fonts/webcore/georgiab.ttf > georgia-italic > /usr/share/fonts/webcore/georgiai.ttf > georgia-bold-italic > /usr/share/fonts/webcore/georgiaz.ttf > impact /usr/share/fonts/webcore/impact.ttf > monotype.com > /usr/share/fonts/webcore/monotype.ttf > recreation_symbols > /usr/share/fonts/webcore/recreate.ttf > times /usr/share/fonts/webcore/times.ttf > times-bold /usr/share/fonts/webcore/timesbd.ttf > times-italic /usr/share/fonts/webcore/timesi.ttf > times-bold-italic /usr/share/fonts/webcore/timesbi.ttf > trebuchet_ms /usr/share/fonts/webcore/trebuc.ttf > trebuchet_ms-bold > /usr/share/fonts/webcore/trebucbd.ttf > trebuchet_ms-italic > /usr/share/fonts/webcore/trebucit.ttf > trebuchet_ms-bold-italic > /usr/share/fonts/webcore/trebucbi.ttf > verdana /usr/share/fonts/webcore/verdana.ttf > verdana-bold > /usr/share/fonts/webcore/verdanab.ttf > verdana-italic > /usr/share/fonts/webcore/verdanai.ttf > verdana-bold-italic > /usr/share/fonts/webcore/verdanaz.ttf > ====================================== > NAME "AppDesign3" > UNITS meters > SIZE 640 480 > IMAGECOLOR 255 255 255 > IMAGETYPE png > SHAPEPATH "/data/" > #Bottom left, upper right > EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 > FONTSET "/usr/local/apache2/htdocs/fontset.txt" > > WEB > HEADER "/usr/local/apache2/htdocs/appdesign3_web_header.html" > FOOTER "/usr/local/apache2/htdocs/appdesign3_web_footer.html" > EMPTY "/appdesign3_no_results.html" > TEMPLATE "/usr/local/apache2/htdocs/appdesign3.html" > IMAGEPATH "/usr/local/apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > SYMBOL > NAME "triangle" > TYPE vector > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > REFERENCE > IMAGE "/data/colorado_ref_map.gif" > SIZE 300 225 > EXTENT 139732.562544 4093791.107191 763734.812496 4546455.000230 > STATUS on > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > QUERYMAP > STATUS on > STYLE hilite > COLOR 255 0 0 > SIZE 480 320 > END > > SCALEBAR > LABEL > COLOR 0 0 0 > ANTIALIAS true > SIZE small > END > POSITION lr > INTERVALS 5 > STATUS embed > SIZE 144 5 > STYLE 0 > UNITS miles > BACKGROUNDCOLOR 255 255 255 > IMAGECOLOR 255 255 255 > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > TRANSPARENT off > END > > LEGEND > STATUS on > IMAGECOLOR 230 230 230 > LABEL > TYPE truetype > FONT "courier" > COLOR 0 0 0 > SIZE 10 > #SIZE small > ANTIALIAS true > END > END > > > LAYER > NAME "USGS_Index" > STATUS on > TYPE polygon > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from usgs_index" > HEADER "/usr/local/apache2/htdocs/appdesign3_index_header.html" > FOOTER "/usr/local/apache2/htdocs/appdesign3_index_footer.html" > TOLERANCE 100 > TOLERANCEUNITS meters > LABELCACHE on > LABELITEM 'QUAD_NAME' > LABELMAXSCALE 250000 > CLASS > NAME "USGS Index" > TEMPLATE "/usr/local/apache2/htdocs/appdesign3_index_query.html" > STYLE > OUTLINECOLOR 0 255 0 > END > LABEL > COLOR 0 255 0 > SIZE small > POSITION cc > END # label > END # class > END # layer > > LAYER > NAME "Counties" > STATUS on > TYPE polygon > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from counties" > LABELCACHE on > LABELITEM "CNTY_NAME" > LABELMINSCALE 250000 > CLASS > NAME "Counties" > STYLE > SIZE 1 > OUTLINECOLOR 0 0 255 > END > LABEL > #MINFEATURESIZE auto > COLOR 0 0 255 > SIZE small > POSITION cc > END # label > END # class > END # layer > > LAYER > NAME "Cities" > STATUS on > TYPE point > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from cities" > LABELCACHE on > LABELITEM "name" > LABELMAXSCALE 100000 > MAXSCALE 1000000 > CLASS > STYLE > COLOR 255 0 0 > SYMBOL 'triangle' > SIZE 5 > END > LABEL > COLOR 250 0 0 > SIZE small > POSITION auto > END > END # class > END # layer states > > LAYER > NAME "Highways" > STATUS on > TYPE line > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=project1 user=postgres host=localhost port=5432" > DATA "the_geom from highways" > LABELCACHE on > #LABELITEM "ROUTE" > CLASS > NAME "Highways" > STYLE > SIZE 1 > COLOR 0 0 0 > END > # LABEL > # COLOR 0 0 0 > # SIZE small > # END # label > END # class > END # layer > > END # mapfile > > On 5/10/06, Graham Davis wrote: > >> Hello Eduardo, >> >> One of the fonts that you have listed in your map file is not located >> where you have listed it. In the future, please show us your MAP file >> so that we can better help you. >> >> -- >> Graham Davis >> Refractions Research Inc. >> gdavis at refractions.net >> >> >> Eduardo Ar?valo wrote: >> >> > hello: at the time of executing mapfile it leaves the following error >> > >> > msGetLabelSize(): TrueType Font error. Could not find/open font >> > >> > please help >> > From Mark.Adams at DPRA.COM Wed May 10 11:17:00 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 10 May 2006 13:17:00 -0500 Subject: error 1 on virtual point layer Message-ID: Hi all, I've found references to this problem in the list, but no solution: I've got an application developed in our office that uses ODBC connections and OVF files to publish several layers from an Oracle database. All is working well in our office; however, this week I am implementing the app in the client's environment, and mapserver is failing on trying to load the virtual layers (no mapserver error, just never get a map back). Using OGRINFO I can see the data, but I get an error message before the results are listed: ERROR1: SetAttributeFilter() not supported on ExecuteSQL() results I am presuming that this error is also the reason why the layer doesn't draw in mapserver. Does anyone have any insight as to what this error means? Thanks in advance, Mark Adams DPRA Canada ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed May 10 11:37:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 May 2006 14:37:42 -0400 Subject: error 1 on virtual point layer In-Reply-To: <49B9846C39F25A4FA90106497086161042555C@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > Hi all, > > I've found references to this problem in the list, but no solution: > I've got an application developed in our office that uses ODBC > connections and OVF files to publish several layers from an Oracle > database. All is working well in our office; however, this week I am > implementing the app in the client's environment, and mapserver is > failing on trying to load the virtual layers (no mapserver error, just > never get a map back). > > Using OGRINFO I can see the data, but I get an error message before the > results are listed: > ERROR1: SetAttributeFilter() not supported on ExecuteSQL() results > > I am presuming that this error is also the reason why the layer doesn't > draw in mapserver. > Does anyone have any insight as to what this error means? Mark, I am guessing you have slightly different versions of OGR in your different environments. The message means that an SQL result (perhaps using SrcSQL in the OVF file?) is being constrained with a SetAttributeFilter() call. But this is not supported and the attribute filter will be ignored. I believe this was always the case, but there was some recent work to propagate the errors out properly which may have changed the behavior. I don't know that this will help you. It is vaguely possible that updating to GDAL/OGR 1.3.2 will help in this regard as I made a few changes in the OGR VRT and OGR ODBC drivers to better handle this whole sequence. Or, that may be what is causing the problems! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From jmckenna at DMSOLUTIONS.CA Wed May 10 11:38:14 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 10 May 2006 14:38:14 -0400 Subject: MapServer acces with user authentication (login/password) In-Reply-To: <8d2ea9d70605100744n15c6200fu2eda89b69511ec1b@mail.gmail.com> Message-ID: Somewhat related: MS4W users can now find notes about configuring their Apache server for password authentication in the README (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#password-protection-configuration-for-applications) jeff Steven De Vriendt wrote: > Hi list, > > Can I secure my MapServer WMS with user authentication on MapServer level ? > I'd like to establish my WMS so only a few people can I access it... > > Steven -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From gisaalter at GMAIL.COM Wed May 10 12:52:34 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 10 May 2006 21:52:34 +0200 Subject: MapServer acces with user authentication (login/password) In-Reply-To: <44623316.4080106@dmsolutions.ca> Message-ID: Thanks to all ! Steven -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Wed May 10 13:04:23 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 10 May 2006 15:04:23 -0500 Subject: MapServer website downtime 5/10 and 5/11 In-Reply-To: Message-ID: All, I will be working on the MapServer website tonight (5/10) to update it to the latest Plone release. Hopefully this will fix a few issues we have been having. Tomorrow night, 5/11, Trent Erickson and I will be working to implement Squid caching for the MapServer website for anonymous (non-logged-in) users. This should dramatically increase the responsiveness of the website. These updates will mean some downtime for the website over the next two evenings. Catch me on IRC if you have questions or issues. Howard From Steve.Lime at DNR.STATE.MN.US Wed May 10 13:04:56 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 10 May 2006 15:04:56 -0500 Subject: dBox alpha Message-ID: Hi folks: We've taken the time to clean up and document the code behind the Landview application that folks might be familiar with and have an "alpha" release available. You can get at it at: http://maps.dnr.state.mn.us/tools/dbox The code itself is in good shape and much of it has been in production use for years. The packaging, install instructions and such are brand new so bear with us. Anyway, the distribution comes with an example interface using the Itasca data from one of the main demos. You can see it running on our servers at: http://maps.dnr.state.mn.us/tools/dbox/example/example.html Hopefully someone will find this useful... Steve From jeffrey.brown at NGC.COM Wed May 10 13:18:15 2006 From: jeffrey.brown at NGC.COM (Brown, Jeff (C2MS)) Date: Wed, 10 May 2006 16:18:15 -0400 Subject: Please help - How do I use mapserv with a HTTP proxy server? Message-ID: I really need some help here! I found out that I can set an environment variable named http_proxy to http://:@:. Once I do this, I can use wget to access a WFS service without the need for --proxy-user and --proxy-passwd. However, even after setting this environment variable and restarting Apache, I still get the same timeout error when I attempt to retrieve a WFS layer. How can I set up mapserv to use a proxy server? Or is this an Apache httpd issue? Without a solution, I won't be able to use MapServer . . . Thanks! JAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Wed May 10 14:34:55 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 10 May 2006 23:34:55 +0200 Subject: enable logfile on IIS [2] Message-ID: Hi List Simple question Is it possible to get a mapserver.log file on a IIS system? I need it, because the mapserver doesn't handle a sld_url not good on the production server (iis required) (it works beautifully for the testserver) By the way: i don't see any temporary SLD XMLs anymore in mapserver 4.8. Are they deleted automatically or not used anymore? -- I tried everything again (see my previous mail) with the mapserv in the latest ms4w. MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG in the mapfile MAP WEB IMAGEPATH "d:/temp/" IMAGEURL "/temp/" log "d:/temp/mapserver.log" END DEBUG ON LAYER DEBUG ON (....) END (the imagePATH and imageURL work, on CONNECTIONTYPE WMS layers) and: SET MS_ERRORFILE=d:/temp/mapserver.log (via My Computer Manage + reboot of the machine) i tried ms_errorfile=d:/temp/mapserver.log ms_errorfile=d:\temp\mapserver.log I gave the IUSR fullcontrol rights on d:\temp No mapserver.log what is missing here? Is it possible? Thanks again for any tips. Regards, Huub From taatuut at CHELLO.NL Wed May 10 14:59:03 2006 From: taatuut at CHELLO.NL (Emil Zegers) Date: Wed, 10 May 2006 23:59:03 +0200 Subject: enable logfile on IIS [2] In-Reply-To: <44625C7F.4070302@home.nl> Message-ID: Hello Huub, Logging with MapServer under IIS is possible. It works with the WEB LOG parameter you described so there is probably a specific reason on your system causing trouble. Have you tried putting an empty file 'mapserver.log' in 'd:/temp' before starting your app? Have you checked the Windows event log files? Is the disk 'd:' a 'real disk' disk and not a mapped one? What file system do you use on 'd:'? A lot of questions and not much of a clue, I know, but maybe it will help... Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Huub Fleuren Sent: woensdag 10 mei 2006 23:35 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] enable logfile on IIS [2] Hi List Simple question Is it possible to get a mapserver.log file on a IIS system? I need it, because the mapserver doesn't handle a sld_url not good on the production server (iis required) (it works beautifully for the testserver) By the way: i don't see any temporary SLD XMLs anymore in mapserver 4.8. Are they deleted automatically or not used anymore? -- I tried everything again (see my previous mail) with the mapserv in the latest ms4w. MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG in the mapfile MAP WEB IMAGEPATH "d:/temp/" IMAGEURL "/temp/" log "d:/temp/mapserver.log" END DEBUG ON LAYER DEBUG ON (....) END (the imagePATH and imageURL work, on CONNECTIONTYPE WMS layers) and: SET MS_ERRORFILE=d:/temp/mapserver.log (via My Computer Manage + reboot of the machine) i tried ms_errorfile=d:/temp/mapserver.log ms_errorfile=d:\temp\mapserver.log I gave the IUSR fullcontrol rights on d:\temp No mapserver.log what is missing here? Is it possible? Thanks again for any tips. Regards, Huub From work at XWB.COM Wed May 10 15:03:37 2006 From: work at XWB.COM (Chip Taylor) Date: Wed, 10 May 2006 15:03:37 -0700 Subject: enable logfile on IIS [2] In-Reply-To: Message-ID: Make sure your directory is read-write enabled in IIS and the system. Chip Taylor Prepared Response, Inc -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Emil Zegers Sent: Wednesday, May 10, 2006 2:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] enable logfile on IIS [2] Hello Huub, Logging with MapServer under IIS is possible. It works with the WEB LOG parameter you described so there is probably a specific reason on your system causing trouble. Have you tried putting an empty file 'mapserver.log' in 'd:/temp' before starting your app? Have you checked the Windows event log files? Is the disk 'd:' a 'real disk' disk and not a mapped one? What file system do you use on 'd:'? A lot of questions and not much of a clue, I know, but maybe it will help... Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Huub Fleuren Sent: woensdag 10 mei 2006 23:35 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] enable logfile on IIS [2] Hi List Simple question Is it possible to get a mapserver.log file on a IIS system? I need it, because the mapserver doesn't handle a sld_url not good on the production server (iis required) (it works beautifully for the testserver) By the way: i don't see any temporary SLD XMLs anymore in mapserver 4.8. Are they deleted automatically or not used anymore? -- I tried everything again (see my previous mail) with the mapserv in the latest ms4w. MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG in the mapfile MAP WEB IMAGEPATH "d:/temp/" IMAGEURL "/temp/" log "d:/temp/mapserver.log" END DEBUG ON LAYER DEBUG ON (....) END (the imagePATH and imageURL work, on CONNECTIONTYPE WMS layers) and: SET MS_ERRORFILE=d:/temp/mapserver.log (via My Computer Manage + reboot of the machine) i tried ms_errorfile=d:/temp/mapserver.log ms_errorfile=d:\temp\mapserver.log I gave the IUSR fullcontrol rights on d:\temp No mapserver.log what is missing here? Is it possible? Thanks again for any tips. Regards, Huub From chris.p.barber at GMAIL.COM Wed May 10 15:25:39 2006 From: chris.p.barber at GMAIL.COM (Chris Barber) Date: Wed, 10 May 2006 17:25:39 -0500 Subject: Spatial query & scale Message-ID: Howdy all I've searched around the archive looking for this and come up empty, so apologies if this has come up before. I'm using PHP/Mapscript in an application to select features in one Postgis layer that intersect a selected feature of another layer. The first layer is comprised of non-adjacent polygons and the second is country boundaries. I'm finding that the number of returned features tends to vary with scale, where at a "country display" scale I can see a few features just outside the country boundary that are selected. As I zoom in, these extra features drop off the list to the true desired set, and as I zoom out more "outside" features are included in the results. The result set is not related to map extent. With some extraneous code removed (probably not the most elegant): $cntry_layer->setFilter("gid = ".$fid); $search_shp = $cntry_layer->getShape(-1,$fid); $poly_layer->queryByShape($search_shp); Are there scale-dependent considerations to getShape()? Any input on where in the process this may be happening? Mapserver: 4.8.1 Postgres: 8.1.3 Postgis: 1.1.1 GEOS: 2.2.1 Linux x86_64 2.6.9-22 Thanks for any input Cheers! Chris Barber -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Adams at DPRA.COM Wed May 10 16:14:48 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 10 May 2006 18:14:48 -0500 Subject: error 1 on virtual point layer Message-ID: OK, I've done some more work on this, and the results are... well, strange. Here's what I found, in case it helps others work through the same situation: I was able to get my virtual layer to work by going back to a slightly earlier build of mapserver and mapscript. The one that didn't work was a late April build, the one that did work was an early April build, both custom builds supplied by Assefa at DM. The primary difference (from my point of view) between the builds is that the later build, the one that didn't work with the virtual layers, supports fastcgi. What is interesting is this: prior to going back to the earlier mapserver executable, I tried to simply swap out the gdal13.dll for the earlier version. This resulted in the same errors ("[MapServer Error]: msOGRFileNextShape(): SetAttributeFilter() not supported on ExecuteSQL() results."), so no change. It was when I swapped out the mapserver/mapscript executables that I was able to get the virtual layer to work. So does that imply that it's not gdal itself that is causing the problem, but in how mapserver/mapscript is using it? (Apologies if that's an egghead question.) So for now, I'm up and running, just can't use the build that supports fastcgi.... Cheers. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com ________________________________ From: Frank Warmerdam on behalf of Frank Warmerdam Sent: Wed 5/10/2006 2:37 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] error 1 on virtual point layer Mark Adams wrote: > Hi all, > > I've found references to this problem in the list, but no solution: > I've got an application developed in our office that uses ODBC > connections and OVF files to publish several layers from an Oracle > database. All is working well in our office; however, this week I am > implementing the app in the client's environment, and mapserver is > failing on trying to load the virtual layers (no mapserver error, just > never get a map back). > > Using OGRINFO I can see the data, but I get an error message before the > results are listed: > ERROR1: SetAttributeFilter() not supported on ExecuteSQL() results > > I am presuming that this error is also the reason why the layer doesn't > draw in mapserver. > Does anyone have any insight as to what this error means? Mark, I am guessing you have slightly different versions of OGR in your different environments. The message means that an SQL result (perhaps using SrcSQL in the OVF file?) is being constrained with a SetAttributeFilter() call. But this is not supported and the attribute filter will be ignored. I believe this was always the case, but there was some recent work to propagate the errors out properly which may have changed the behavior. I don't know that this will help you. It is vaguely possible that updating to GDAL/OGR 1.3.2 will help in this regard as I made a few changes in the OGR VRT and OGR ODBC drivers to better handle this whole sequence. Or, that may be what is causing the problems! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed May 10 16:28:27 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 10 May 2006 19:28:27 -0400 Subject: error 1 on virtual point layer In-Reply-To: <49B9846C39F25A4FA901064970861610425568@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > What is interesting is this: prior to going back to the earlier > mapserver executable, I tried to simply swap out the gdal13.dll for the > earlier version. This resulted in the same errors ("[MapServer Error]: > msOGRFileNextShape(): SetAttributeFilter() not supported on ExecuteSQL() > results."), so no change. It was when I swapped out the > mapserver/mapscript executables that I was able to get the virtual layer > to work. So does that imply that it's not gdal itself that is causing > the problem, but in how mapserver/mapscript is using it? (Apologies if > that's an egghead question.) Mark, I suspect this is the change that is trigging problems: * $Log: mapogr.cpp,v $ * Revision 1.96 2006/04/08 03:36:48 frank * Ensure that an error in GetNextFeature() will be properly translated * into a MapServer error in GetNextShape(). This is the OGR interface code from MapServer. Basically, in the past, errors were getting ignored and people couldn't figure out what was going wrong. On the other hand, some errors were not really fatal (such as yours) and ignoring them works out well. I think I need to go into the OGR ODBC driver and not have it issue that driver. Instead it should actually implement the attribute filtering as a post processing step. I believe I did this for one of the other underlying non-spatial drivers. If you can indicate the detailed configuration you are using, I might be able to prepare some fixes for you. I'm not sure how easy it will be for you to try and use them though. Perhaps you will need an updated build from Assefa. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Mark.Adams at DPRA.COM Wed May 10 16:37:43 2006 From: Mark.Adams at DPRA.COM (Mark Adams) Date: Wed, 10 May 2006 18:37:43 -0500 Subject: error 1 on virtual point layer Message-ID: Frank, what configuration details do you need to know? We're using IIS on Windows 2003 server, Oracle 9.x client, 9.2 database on a 2003 server. We're using sde, shapefiles, virtual points and virtual polygons via ogr OVF configuration, geotiff display and output. We need support for proj, geos, wms client, and fastcgi. Cheers. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com ________________________________ From: Frank Warmerdam on behalf of Frank Warmerdam Sent: Wed 5/10/2006 7:28 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] error 1 on virtual point layer Mark Adams wrote: > What is interesting is this: prior to going back to the earlier > mapserver executable, I tried to simply swap out the gdal13.dll for the > earlier version. This resulted in the same errors ("[MapServer Error]: > msOGRFileNextShape(): SetAttributeFilter() not supported on ExecuteSQL() > results."), so no change. It was when I swapped out the > mapserver/mapscript executables that I was able to get the virtual layer > to work. So does that imply that it's not gdal itself that is causing > the problem, but in how mapserver/mapscript is using it? (Apologies if > that's an egghead question.) Mark, I suspect this is the change that is trigging problems: * $Log: mapogr.cpp,v $ * Revision 1.96 2006/04/08 03:36:48 frank * Ensure that an error in GetNextFeature() will be properly translated * into a MapServer error in GetNextShape(). This is the OGR interface code from MapServer. Basically, in the past, errors were getting ignored and people couldn't figure out what was going wrong. On the other hand, some errors were not really fatal (such as yours) and ignoring them works out well. I think I need to go into the OGR ODBC driver and not have it issue that driver. Instead it should actually implement the attribute filtering as a post processing step. I believe I did this for one of the other underlying non-spatial drivers. If you can indicate the detailed configuration you are using, I might be able to prepare some fixes for you. I'm not sure how easy it will be for you to try and use them though. Perhaps you will need an updated build from Assefa. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Wed May 10 17:07:06 2006 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 10 May 2006 16:07:06 -0800 Subject: dBox alpha In-Reply-To: Message-ID: As someone who has already found dbox quite usefull for a while now, thank you very much for your efforts. The documentation is greatly appreciated! -Mike On 5/10/06, Steve Lime wrote: > > Hi folks: We've taken the time to clean up and document the code behind > the Landview application that folks might be familiar with and have an > "alpha" release available. You can get at it at: > > http://maps.dnr.state.mn.us/tools/dbox > > The code itself is in good shape and much of it has been in production use > for years. The packaging, install instructions and such are brand new so > bear with us. > > Anyway, the distribution comes with an example interface using the Itasca > data from one of the main demos. You can see it running on our servers at: > > http://maps.dnr.state.mn.us/tools/dbox/example/example.html > > Hopefully someone will find this useful... > > Steve > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From etdube at GMAIL.COM Wed May 10 20:29:36 2006 From: etdube at GMAIL.COM (Etienne Dube) Date: Wed, 10 May 2006 23:29:36 -0400 Subject: Storing MapFile objects in SQL database Message-ID: Hi everybody, Is there a straightforward way to store MapFile objects in a relational database? I'm working on a project using MapServer, Chameleon and PostgreSQL+PostGIS, and I need to do some rather funky things when displaying maps. For example, we have a database with many different classes of measures taken at various sites. Indicators can be dynamically calculated from one or many measures (with SQL queries) and used for thematic mapping. Each indicator has its own classes for symbology, so what I'm doing now is creating a layer with the associated classes for each one. Needless to say, my MapFiles get unwieldy pretty fast, with lots of redundant definitions (same class labels and styles repeated in each layer). I don't even need to display more than one indicator at a time, in fact it'd be better if I could offer a drop-down box to choose which one to map (I've already been able to implement similar functionality in parameterizable queries handled with some PHP and Mapscript kung-fu for choosing the data's year, so I figure I should be able to do the same for pretty much any object accessible by Mapscript). I'm thinking about storing all the NAME, DATA (pulling stuff from pgSQL with queries), *SCALE, CLASS, LABEL and STYLE items in the database (pgSQL) for my indicator "layers", so it's easier to manage and use along with PHP/Mapscript. I was wondering if anybody has done the same thing before. Is there any open-source code available meant to do something similar? If not, are there any known issues or pitfalls with such an approach? Thanks in advance, Etienne From b.vdeijnden at AGI.RWS.MINVENW.NL Wed May 10 22:25:56 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 11 May 2006 07:25:56 +0200 Subject: Please help - How do I use mapserv with a HTTP proxy server? Message-ID: How are you setting the environment variable? Use: SetEnv "http_proxy" " :@:/">http://:@:" in your Apache httpd.conf and restart Apache. Otherwise, check the curl site for more details, libcurl is the library Mapserver uses for this kind of thing. http://curl.haxx.se/ Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Brown, Jeff (C2MS) Verzonden: woensdag 10 mei 2006 22:18 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Please help - How do I use mapserv with a HTTP proxy server? Urgentie: Hoog I really need some help here! I found out that I can set an environment variable named http_proxy to :@:">http://:@:. Once I do this, I can use wget to access a WFS service without the need for --proxy-user and --proxy-passwd. However, even after setting this environment variable and restarting Apache, I still get the same timeout error when I attempt to retrieve a WFS layer. How can I set up mapserv to use a proxy server? Or is this an Apache httpd issue? Without a solution, I won't be able to use MapServer . . . Thanks! JAB Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvain.perrinel at AGRICULTURE.GOUV.FR Thu May 11 01:30:23 2006 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (Sylvain Perrinel) Date: Thu, 11 May 2006 10:30:23 +0200 Subject: dBox alpha In-Reply-To: Message-ID: Thank you very much ! That's good news! Steve Lime a ?crit : > Hi folks: We've taken the time to clean up and document the code behind the Landview application that folks might be familiar with and have an "alpha" release available. You can get at it at: > > http://maps.dnr.state.mn.us/tools/dbox > > The code itself is in good shape and much of it has been in production use for years. The packaging, install instructions and such are brand new so bear with us. > > Anyway, the distribution comes with an example interface using the Itasca data from one of the main demos. You can see it running on our servers at: > > http://maps.dnr.state.mn.us/tools/dbox/example/example.html > > Hopefully someone will find this useful... > > Steve > > -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che SG/SM/SDSI/CERIT D?partement d'Information G?ographique (DIG) BP 12668 31326 Castanet Tolosan T?l?phone: 05.61.28.92.76 Web : http://10.202.61.44/sigsiti/ From holl at GDF-HANNOVER.DE Thu May 11 02:20:56 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Thu, 11 May 2006 11:20:56 +0200 Subject: Storing MapFile objects in SQL database In-Reply-To: <4462AFA0.7060909@gmail.com> Message-ID: Hello Etienne, On Wed, 10 May 2006 23:29:36 -0400 Etienne Dube wrote: > Hi everybody, > > Is there a straightforward way to store MapFile objects in a > relational database? I'm working on a project using MapServer, > Chameleon and PostgreSQL+PostGIS, and I need to do some rather funky > things when displaying maps. For example, we have a database with > many different classes of measures taken at various sites. Indicators > can be dynamically calculated from one or many measures (with SQL > queries) and used for thematic mapping. Each indicator has its own > classes for symbology, so what I'm doing now is creating a layer with > the associated classes for each one. > > Needless to say, my MapFiles get unwieldy pretty fast, with lots of > redundant definitions (same class labels and styles repeated in each > layer). I don't even need to display more than one indicator at a > time, in fact it'd be better if I could offer a drop-down box to > choose which one to map (I've already been able to implement similar > functionality in parameterizable queries handled with some PHP and > Mapscript kung-fu for choosing the data's year, so I figure I should > be able to do the same for pretty much any object accessible by > Mapscript). > > I'm thinking about storing all the NAME, DATA (pulling stuff from > pgSQL with queries), *SCALE, CLASS, LABEL and STYLE items in the > database (pgSQL) for my indicator "layers", so it's easier to manage > and use along with PHP/Mapscript. I was wondering if anybody has done > the same thing before. Is there any open-source code available meant > to do something similar? If not, are there any known issues or > pitfalls with such an approach? Have you looked at mapstorer[1]? OK, its MySQL-based... best regards Stephan [1] http://www.mapstorer.org From dovidio at PLANETEK.IT Thu May 11 02:37:56 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 11 May 2006 11:37:56 +0200 Subject: 8 bit images Message-ID: Hi list, I'd like to receive my 2 bit PNG (or GIF) image as 8 bit one. Can I ask for this in the WMS request ? ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From listario at GMAIL.COM Thu May 11 02:40:37 2006 From: listario at GMAIL.COM (J. Parapar) Date: Thu, 11 May 2006 11:40:37 +0200 Subject: mapfile editor??????? In-Reply-To: <95f68e530605091257v3735f89ap1e1ac92b3b4a8812@mail.gmail.com> Message-ID: Hi Eduardo. You can find several useful links in the MapServer website (links section): http://mapserver.gis.umn.edu/docs/link Particularly, look at MapLab: http://www.maptools.org/maplab/ Best regards, Jorge 2006/5/9, Eduardo Ar?valo : > please > > Somebody knows a graphical publisher of mapfile? > From hfl at HOME.NL Thu May 11 03:33:00 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Thu, 11 May 2006 12:33:00 +0200 Subject: enable logfile on IIS [2] In-Reply-To: <005601c6747d$98889620$025aa8c0@DevChip> Message-ID: Hi all, The clue i missed was that the environment variable ms_errorfile shoul be a System Variable and not a User Variable So now i have a logfile. Thanks for the tips see also some answers Chip Taylor wrote: > Make sure your directory is read-write enabled in IIS and the system. Emil Wrote > It works with the WEB LOG parameter you described ... this is not true (alas, i agree firmly that is should!) > Have you tried putting an empty file 'mapserver.log' in 'd:/temp' before > starting your app? > yes, but this is not necessary > Have you checked the Windows event log files? > yes but there is nothing much in it > Is the disk 'd:' a 'real disk' disk and not a mapped one? > yes all normal regards Huub From stuarteve at LPARCHAEOLOGY.COM Thu May 11 04:02:03 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Thu, 11 May 2006 12:02:03 +0100 Subject: Problems with connecting to ESRI geodatabase on Linux Message-ID: Dear All (especially Frank!) We are currently trying to connect to an ESRI 9.1 personal geodatabase from a Suse 10 box. I cannot connect to it via the mapfile, so have tried to use ogrinfo to connect to narrow down the problem. I am getting the following error message when I run 'ogrinfo /srv/www/htdocs/chersonesos/shapefiles/chers_gis.mdb' : ERROR 1: Unable to initialize ODBC connection to DSN for DRIVER=Microsoft Access Driver (*.mdb);DBQ=/srv/www/htdocs/chersonesos/data/shapefiles/chers_gis.mdb, [unixODBC]Could not find DSN in connect string ERROR 1: Unable to initialize ODBC connection to DSN for DRIVER=Microsoft Access Driver (*.mdb);DBQ=/srv/www/htdocs/chersonesos/data/shapefiles/chers_gis.mdb, [unixODBC]Could not find DSN in connect string FAILURE: Unable to open datasource `/srv/www/htdocs/chersonesos/data/shapefiles/chers_gis.mdb' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> PGeo -> PostgreSQL I am using mdbtools (v. 5.0) and gdal (v1.3.1) - is it even possible to connect to geodatabase from unix? (I have only come across people using FWTools on a windows platform who are doing it). Thanks for your help Stuart -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From grabiel at MYWAY.COM Thu May 11 06:10:14 2006 From: grabiel at MYWAY.COM (grabiel) Date: Thu, 11 May 2006 09:10:14 -0400 Subject: Optmization of select statement. HOW? Message-ID: Hi I am using php/mapscript to generate the map. Also i am using ogr to connect to MySql table and displaying the result. As my MySql table is very large, it shows all the data (if i use *) or depending on my select statement(if i use field name in sql statement). Both of these has some forms of limitations. Can anyone please tell me how to run generic sql statement so that a user can choose the field name for query (say, population, male, female)before sending the request to the browser and depending on that mapserver should run the query? Any suggestion/experience will highly appreciated. Thanks in advance Grabiel _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From warmerdam at POBOX.COM Thu May 11 06:23:05 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 May 2006 09:23:05 -0400 Subject: Problems with connecting to ESRI geodatabase on Linux In-Reply-To: <446319AB.60301@lparchaeology.com> Message-ID: Stuart Eve wrote: > Dear All (especially Frank!) > > We are currently trying to connect to an ESRI 9.1 personal geodatabase > from a Suse 10 box. > > I cannot connect to it via the mapfile, so have tried to use ogrinfo to > connect to narrow down the problem. I am getting the following error > message when I run 'ogrinfo > /srv/www/htdocs/chersonesos/shapefiles/chers_gis.mdb' : Stuart, While I haven't tried too hard with mdbtools, I have never been successful using it. I suppose I should try and not register the PGeo driver on unix. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From stuarteve at LPARCHAEOLOGY.COM Thu May 11 07:00:31 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Thu, 11 May 2006 15:00:31 +0100 Subject: Problems with connecting to ESRI geodatabase on Linux In-Reply-To: <44633AB9.5020502@pobox.com> Message-ID: Thanks for the reply, I guess this means at the moment theres no way of accessing geodatabases on unix? Perhaps I could have a bit more of a play with it - but then I guess I'll have to delve into figuring out how it all works!! Can you think of any other way in which to do it - as it would be incredibly useful for our current system... Stu Frank Warmerdam wrote: > Stuart Eve wrote: >> Dear All (especially Frank!) >> >> We are currently trying to connect to an ESRI 9.1 personal >> geodatabase from a Suse 10 box. >> >> I cannot connect to it via the mapfile, so have tried to use ogrinfo >> to connect to narrow down the problem. I am getting the following >> error message when I run 'ogrinfo >> /srv/www/htdocs/chersonesos/shapefiles/chers_gis.mdb' : > > Stuart, > > While I haven't tried too hard with mdbtools, I have never been > successful > using it. I suppose I should try and not register the PGeo driver on > unix. > > Best regards, -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From warmerdam at POBOX.COM Thu May 11 07:15:00 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 11 May 2006 10:15:00 -0400 Subject: Problems with connecting to ESRI geodatabase on Linux In-Reply-To: <4463437F.60801@lparchaeology.com> Message-ID: Stuart Eve wrote: > Thanks for the reply, > > I guess this means at the moment theres no way of accessing geodatabases > on unix? Perhaps I could have a bit more of a play with it - but then I > guess I'll have to delve into figuring out how it all works!! > > Can you think of any other way in which to do it - as it would be > incredibly useful for our current system... Stuart, Well, an mdbtools based odbc driver for .mdb is likely the key component. Currently the PGeo driver is hardcoded to look for "Microsoft Access Driver (*.mdb)". You might want to wor out the DRIVER name for the mdbtools ODBC driver and try to locally modifying the driver to use that name. The file in question is: gdal/ogr/ogrsf_frmts/pgeo/pgeodataset.cpp Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From b.vdeijnden at AGI.RWS.MINVENW.NL Thu May 11 06:55:15 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 11 May 2006 15:55:15 +0200 Subject: Problems with connecting to ESRI geodat abase on Linux Message-ID: Could this work using an ODBC bridge? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Stuart Eve Verzonden: donderdag 11 mei 2006 16:01 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Problems with connecting to ESRI geodatabase on Linux Thanks for the reply, I guess this means at the moment theres no way of accessing geodatabases on unix? Perhaps I could have a bit more of a play with it - but then I guess I'll have to delve into figuring out how it all works!! Can you think of any other way in which to do it - as it would be incredibly useful for our current system... Stu Frank Warmerdam wrote: > Stuart Eve wrote: >> Dear All (especially Frank!) >> >> We are currently trying to connect to an ESRI 9.1 personal >> geodatabase from a Suse 10 box. >> >> I cannot connect to it via the mapfile, so have tried to use ogrinfo >> to connect to narrow down the problem. I am getting the following >> error message when I run 'ogrinfo >> /srv/www/htdocs/chersonesos/shapefiles/chers_gis.mdb' : > > Stuart, > > While I haven't tried too hard with mdbtools, I have never been > successful > using it. I suppose I should try and not register the PGeo driver on > unix. > > Best regards, -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Thu May 11 08:05:18 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Thu, 11 May 2006 17:05:18 +0200 Subject: cURL cannot resolve HOSTNAME Message-ID: Hi List, I was wondering what is the recommended version of the cURL library for any mapserver build http://mapserver.gis.umn.edu/docs/howto/win32_compiling/?searchterm=curl, does not provide the information i read http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1504#c4 and i thought, if mapserver isn't adapted to some issue here, what is the recommended version? The error i got on a server is mapserver 4.8 rc-1 with libcurl.dll version 7.11.1.0 The same library on the same hosting server worked (and still works!) for mapserver 4.5 from mapserver.log Thu May 11 15:50:17 2006 - msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 6 () for http://anwb.geodan.nl/sld/91.xml that is: http://curl.haxx.se/libcurl/c/libcurl-errors.html CURLE_COULDNT_RESOLVE_HOST (6) Couldn't resolve host. The given remote host was not resolved. Regards, Huub From fredlucca at GMAIL.COM Thu May 11 08:12:52 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 11 May 2006 12:12:52 -0300 Subject: Trying to show distinct symbol points dynamically Message-ID: Hello list, I'm trying to show distinct symbols in the map using request parameters. Explaining: Each client can upload your own png, then i need to show this symbols in the map, in accordance with the request parameters that are a point(x,y) and a image(my.png) I tried the code below, but as expected, all points have the same symbol, the last one. -----------Mapfile------------ LAYER NAME COSMETICPOINT TYPE POINT STATUS DEFAULT CLASS LABEL TYPE TRUETYPE FONT Arial SIZE 12 POSITION lc BUFFER 5 ANGLE auto COLOR 0 0 0 OUTLINECOLOR 255 255 255 END COLOR 0 0 0 END END -------------------------------- Well, I run this for each point I want to draw in the map. ---------Mapscript---------- layerObj layer = map.getLayerByName("COSMETICPOINT"); symbolObj symbol = new symbolObj(value,"/var/www/images/"+value+".png"); symbol.setType(mapscript.MS_SYMBOL_PIXMAP); map.getSymbolset().appendSymbol(symbol); layer.getClass(0).getStyle(0).setSymbol(map.getSymbolset().index(value)); lineObj line = new lineObj(); line.add(new pointObj(x,y,0)); shapeObj shp = new shapeObj(mapscript.MS_SHAPEFILE_POINT); shp.add(line); shp.setText(label); layer.addFeature(shp); map.draw(); --------------------------------- How can I do what I need? Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Thu May 11 08:43:16 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Thu, 11 May 2006 16:43:16 +0100 Subject: Problems with connecting to ESRI geodat abase on Linux In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97B5D@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: I'm not really sure how to do that.... At the moment I am deep within the code trying to recompile it so that it looks at the right driver - I'll let you know how I get on! Stu Eijnden, B. van den (Bart) wrote: > > Could this work using an ODBC bridge? > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Stuart Eve > Verzonden: donderdag 11 mei 2006 16:01 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] Problems with connecting to ESRI > geodatabase on Linux > > > Thanks for the reply, > > I guess this means at the moment theres no way of accessing geodatabases > on unix? Perhaps I could have a bit more of a play with it - but then I > guess I'll have to delve into figuring out how it all works!! > > Can you think of any other way in which to do it - as it would be > incredibly useful for our current system... > > Stu > > Frank Warmerdam wrote: > > Stuart Eve wrote: > >> Dear All (especially Frank!) > >> > >> We are currently trying to connect to an ESRI 9.1 personal > >> geodatabase from a Suse 10 box. > >> > >> I cannot connect to it via the mapfile, so have tried to use ogrinfo > >> to connect to narrow down the problem. I am getting the following > >> error message when I run 'ogrinfo > >> /srv/www/htdocs/chersonesos/shapefiles/chers_gis.mdb' : > > > > Stuart, > > > > While I haven't tried too hard with mdbtools, I have never been > > successful > > using it. I suppose I should try and not register the PGeo driver on > > unix. > > > > Best regards, > > > -- > Stuart Eve > L - P : Archaeology > stuarteve at lparchaeology.com > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. This > message shall not constitute any rights or obligations. This message > is intended solely for the addressee. If you have received this > message in error, please delete it and notify the sender immediately. > When in doubt whether this message is correct or complete, please > contact the sender. > ************************************************************************ -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From cendrizzi at GMAIL.COM Thu May 11 08:56:13 2006 From: cendrizzi at GMAIL.COM (Clark Endrizzi) Date: Thu, 11 May 2006 09:56:13 -0600 Subject: Some shape files showing up very strangely. Message-ID: Hi all. Pretty recently I upgraded to a new server (64 bit) and am running mapserver on linux for PHP (lastest version of mapserver). Before the upgrade things worked well. Now there is some drawing issues with some of my streets. Please have a look: http://dev.naiutah.com/KaMap/cvs_version/htdocs/MapSelection.php. If you have a look you'll notice that it only does it on some zoom levels. Again, this is a new issue and I don't know what to do about it. Please advise. -- Clark Endrizzi -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu May 11 10:14:10 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 11 May 2006 13:14:10 -0400 Subject: [UMN_MAPSERVER-DEV] Shapefile with Merged features to PostGIS In-Reply-To: <000201c67512$911a7850$6d00a8c0@KIBERNOMOVIL> Message-ID: Lisbeth Mav?rez Sandoval wrote: > Hi, > > > > I have a shapefile with merged features and when I try to convert it > with shp2psql I get an error. > > > > Could you helpme with this? I think you you need to start by providing more information, like what is the error? What version of postgres and postgis. select version(); select postgis_full_version(); How was the shapefile created? What do you mean by merged features? How are they merged? What software merged them? This should probably be moved to the mapserver-user list or the postGIS list. -Steve From earevaloch at GMAIL.COM Thu May 11 10:45:17 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Thu, 11 May 2006 12:45:17 -0500 Subject: mapfile of connection to postgis ......... Message-ID: Hi list I must mapserver v 4.8.3 and one bases postgres v 8 with postgis 1.0.6 on Centos 4.3 mapfile of connection is: MAP IMAGETYPE PNG SIZE 400 300 IMAGECOLOR 255 255 255 LAYER NAME Peru_dep CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=sighco host=localhost password=123456 port=5432" DATA "the_geom from departamentos_tp_perud2002" STATUS ON TYPE POLYGON END #CLASS NAME "Departamentos del Per??" #STYLE # COLOR 232 232 232 #OUTLINECOLOR 32 32 32 END END END END in order to invoke it: http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map the errors are: msDrawMap(): Image handling error. Unable to initialize image. msCalculateScale(): General error message. Invalid image extent, minx=- 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. msCalculateScale(): General error message. Invalid image extent, minx=- 1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to generate map extent. aid please -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu May 11 11:44:04 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 11 May 2006 14:44:04 -0400 Subject: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE Message-ID: (dusting off this email) Assefa, Any update on this one? I'm trying an OGC:WMS 1.1.1 GetLegendGraphic request off a layer with a CLASS/KEYIMAGE and get returned the same behaviour. Trying to see CLASS/KEYSIZE or CLASS/KEYIMAGEX / CLASSKEYIMAGEY returns mapfile error. Thanks ..Tom > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Thursday, July 08, 2004 4:00 PM > To: Kralidis,Tom [Burlington] > Cc: mapserver-users at lists.gis.umn.edu > Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE > > > Tom, > > I understand what you suggest but at the same time, the keyimage is > just an additional way to generate icons beside the defaut way of > generating them (using classes defined on the layer). Thus the use of > the legend's keysizex and keysizey is the one that make more > sense. If > we add a specific size parameters for layers using a > keyimage, we need > to do the same for other types of layers so we can generate icons of > diffrent siezes. What I propose as a compromise is to maybe use a > metadata at the layer level that would be used by the > LegendURL to fetch > the width and height for that specific layer. By default the > LegendURL > would use the legend's keysizex/keysizey. Is this acceptable ? > > Later, > > Kralidis,Tom [Burlington] wrote: > > > > >>-----Original Message----- > >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > >>Sent: Wednesday, July 07, 2004 2:14 PM > >>To: Kralidis,Tom [Burlington] > >>Cc: mapserver-users at lists.gis.umn.edu > >>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE > >> > >> > >>If it is for a specific layer, why not use the width and height > >>parameters in the request ? Do you have other suggestions ? > >> > > > > > > I could explicitly, however if I'm a WMS client, my first > inclination > > is to do a GetCapabilities, and go from there. This is where > > LegendURL would be useful. > > > > I suggest a KEYIMAGESIZE be added so that when LegendURL does get > > added to WMS GetCapabilities, that the width and height > attributes are > > taken from KEYIMAGESIZE (or, even better, if MapServer can > figure out > > the KEYIMAGE value extents :)) > > > > What do you think? > > > > ..Tom > > > > > > > >>Kralidis,Tom [Burlington] wrote: > >> > >> > >>>Right, but doesn't the legend object define a legend for > >> > >>the *entire* > >> > >>>WMS? This is a specific layer level legend KEYIMAGE -- > >> > >>i.e. I don't > >> > >>>want all my legend image dimensions to be the size of the > >> > >>KEYIMAGE in > >> > >>>the one layer. > >>> > >>>..Tom > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > >>>>Sent: Wednesday, July 07, 2004 10:21 AM > >>>>To: Kralidis,Tom [Burlington] > >>>>Cc: mapserver-users at lists.gis.umn.edu > >>>>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE > >>>> > >>>> > >>>>Tom, > >>>> > >>>> Here is how the size is determined : > >>>> - If Width and Height parameter are passed in the > >>>>GetLegendGraphic request , they will be used. > >>>> - If not, it will use the size oparameters in the > legend object > >>>> - if none of the above is valid, the defaut size will > be 20/20. > >>>> > >>>>Later, > >>>> > >>>>Kralidis,Tom [Burlington] wrote: > >>>> > >>>> > >>>> > >>>>>Hi, > >>>>> > >>>>>I've created a WMS, which has a layer, which defines > >>>> > >>>>KEYIMAGE in the > >>>> > >>>> > >>>>>CLASS object. > >>>>> > >>>>>>From what I understand, KEYIMAGE points to a static > image file, so > >>>>> > >>>>> > >>>>>>when > >>>>> > >>>>>requesting a legend (either through OGC:WMS or classic mapserv > >>>>>mode=legend), the static image is fed back. > >>>>> > >>>>>When I request GetLegendGraphic from my WMS layer with > >>>> > >>>>KEYIMAGE, the > >>>> > >>>> > >>>>>image comes back really small (i.e. 20 x 10). My legend > >>>> > >>>>image is like > >>>> > >>>> > >>>>>300 x 50 -- the output image looks like it scrunched > into 20 x 10. > >>>>> > >>>>>Suggestions? > >>>>> > >>>>>Thanks > >>>>> > >>>>>..Tom > >>>>> > >>>>>_______________________________________________ > >>>>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu > >>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >>>>> > >>>> > >>>> > >>>>-- > >>>>---------------------------------------------------------------- > >>>>Assefa Yewondwossen > >>>>Software Analyst > >>>> > >>>>Email: assefa at dmsolutions.ca > >>>>http://www.dmsolutions.ca/ > >>>> > >>>>Phone: (613) 565-5056 (ext 14) > >>>>Fax: (613) 565-0925 > >>>>---------------------------------------------------------------- > >>>> > >>>> > >>>> > >>> > >>> > >>> > >> > >>-- > >>---------------------------------------------------------------- > >>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 e.giron at CGIAR.ORG Thu May 11 12:21:42 2006 From: e.giron at CGIAR.ORG (Giron, Ernesto (CIAT-Condesan)) Date: Thu, 11 May 2006 14:21:42 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] FW: ayudaurgente Message-ID: This message intends to help Lucero in create a simple maps with classes using a ramp colors. ------------------------------------------------------- Hola Lucero, Nosotros podr?amos colaborarte si eres mas especifica en lo que deseas realizar, pues con lo que explicas en esas pocas l?neas parece ser que solo deseas realizar un mapa tem?tico de ciudades clasificadas por alg?n atributo espec?fico y con un color asignado... y listo. Y no una aplicaci?n completa con Mapserver. Si es solo el mapa tienes muchos SIG donde los podr?as realizar sin utilizar tanto c?digo. Espero sea algo claro y pueda resolver tus inquietudes en espa?ol o ingles como desees. Atentamente, ERNESTO GIRON ECHEVERRY GIS Analyst and Support International Center for Tropical Agriculture - CIAT Consorcio para el Desarrollo Sostenible de la Ecoregi?n Andina - CONDESAN. Tel: +57 (2) 445 00 00 Ext. 3014 - 3428 (1-650)-833-6625 USA Fax: +57 (2) 445-0073 (1-650)-833-6626 USA A.A. 6713 Cali - Colombia Email: e.giron at cgiar.org e_giron_e at msn.com http://www.condesan.org http://www.ciat.cgiar.org CIAT is part of the global agricultural research network known as the Consultative Group on International Agricultural Research (CGIAR) -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Lenin Montano Enviado el: Jueves, 27 de Abril de 2006 09:59 a.m. Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Fwd: [UMN_MAPSERVER-USERS] FW: ayudaurgente Ok this, more than a translation is an aproximation of the Lucero's message "Hello My name is Lucero and I need your help. I don't know if you can send me some examples of how to draw maps with themes. Where can I find handbooks, the thing is that I almost can't find information and I'd like to know if you can help me. Im developing my thesis and I need to draw some theme maps using mapserver, and I need to do something with the examples they show, like put some colors on the cities. Please help me, I will really appreciate it. " Cheers from Panama, Lenin ---------- Forwarded message ---------- From: David Bitner Date: Apr 27, 2006 4:55 PM Subject: Re: [UMN_MAPSERVER-USERS] FW: ayudaurgente To: MAPSERVER-USERS at lists.umn.edu Bad Google Translation: "hello my name is lucero and I need your aid nose if your you can send examples to me of like making the maps tematicos, and manual quew happens is almost that encounter gustaria information and not to see me if your you can help me, is developing my thesis and must do maps tematicos using to mapserver, and must do something like the examples that show, like painting of different color the cities and that porfavor ayudame you agradecere much, thanks. " (I'm not really sure what "aid nose" means) Perhaps he could try an automated translation of the tutorial: http://translate.google.com/translate?u=http%3A%2F%2Fmapserver.gis.umn.edu%2Fnew_users&langpair=en%7Ces&hl=en&ie=UTF8 On 4/26/06, Fawcett, David wrote: > > Can anyone help out lucero? > > > > -----Original Message----- > From: lucero ruiz perez [mailto:lrp_2009 at hotmail.com] > Sent: Wednesday, April 26, 2006 1:41 PM > To: Fawcett, David > Subject: ayudaurgente > > > > hola mi nombre es lucero y necesito de tu ayuda nose si tu me puedes mandar > unos ejemplos de como hacer los mapas tematicos, y manuales lo quew pasa es > que casi no encuentro informacion y me gustaria ver si tu me puedes ayudar, > estoy desarrollando mi tesis y tengo que hacer unos mapas tematicos > utilizando mapserver, y tengo que hacer algo como los ejemplos que muestran, > como pintar de diferente color las ciudades y eso porfavor ayudame te lo > agradecere mucho, gracias. > ________________________________ > Prodigy/MSN Hotmail Plus. M?s espacio, m?s funcional Haz clic aqu? -- ---------- Lenin Montano http://superlenin.blogspot.com Cel.: 6611-1380 #PTY 36663 P. O. Box 25207 Miami, FL 33102-5207 [Watching Dr. Gonzo leave] Raoul Duke: There he goes. One of God's own prototypes. Some kind of high powered mutant never even considered for mass production. Too weird to live, and too rare to die. (Im Dr. Gonzo) -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Thu May 11 12:53:11 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 11 May 2006 15:53:11 -0400 Subject: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE In-Reply-To: <2576812186CDD411BF1500508B6DCE950E1971F8@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, Reading through the e-mail, I am still not convinced what the best solution is : I think that the default behavior which is to return the icons using the same size for all the class (containing either keyimage or not) seems to be the most reasonable. Which part do you see needs a modification : * the code generating a GetLegendGraphic url inside the capabilities (possibility to use other width/height parameters different from the one set in the legend object) * being able to set a specific icon size on the class that takes priority over the keysizex, keysizey of the legend object * other changes. Later, Kralidis,Tom [Burlington] wrote: > (dusting off this email) > > Assefa, > > Any update on this one? I'm trying an OGC:WMS 1.1.1 GetLegendGraphic > request off a layer with a CLASS/KEYIMAGE and get returned the same > behaviour. Trying to see CLASS/KEYSIZE or CLASS/KEYIMAGEX / > CLASSKEYIMAGEY returns mapfile error. > > Thanks > > ..Tom > > > > >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: Thursday, July 08, 2004 4:00 PM >>To: Kralidis,Tom [Burlington] >>Cc: mapserver-users at lists.gis.umn.edu >>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >> >> >>Tom, >> >> I understand what you suggest but at the same time, the keyimage is >>just an additional way to generate icons beside the defaut way of >>generating them (using classes defined on the layer). Thus the use of >>the legend's keysizex and keysizey is the one that make more >>sense. If >>we add a specific size parameters for layers using a >>keyimage, we need >>to do the same for other types of layers so we can generate icons of >>diffrent siezes. What I propose as a compromise is to maybe use a >>metadata at the layer level that would be used by the >>LegendURL to fetch >>the width and height for that specific layer. By default the >>LegendURL >>would use the legend's keysizex/keysizey. Is this acceptable ? >> >>Later, >> >>Kralidis,Tom [Burlington] wrote: >> >> >>>>-----Original Message----- >>>>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>>>Sent: Wednesday, July 07, 2004 2:14 PM >>>>To: Kralidis,Tom [Burlington] >>>>Cc: mapserver-users at lists.gis.umn.edu >>>>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >>>> >>>> >>>>If it is for a specific layer, why not use the width and height >>>>parameters in the request ? Do you have other suggestions ? >>>> >>> >>> >>>I could explicitly, however if I'm a WMS client, my first >> >>inclination >> >>>is to do a GetCapabilities, and go from there. This is where >>>LegendURL would be useful. >>> >>>I suggest a KEYIMAGESIZE be added so that when LegendURL does get >>>added to WMS GetCapabilities, that the width and height >> >>attributes are >> >>>taken from KEYIMAGESIZE (or, even better, if MapServer can >> >>figure out >> >>>the KEYIMAGE value extents :)) >>> >>>What do you think? >>> >>>..Tom >>> >>> >>> >>> >>>>Kralidis,Tom [Burlington] wrote: >>>> >>>> >>>> >>>>>Right, but doesn't the legend object define a legend for >>>> >>>>the *entire* >>>> >>>> >>>>>WMS? This is a specific layer level legend KEYIMAGE -- >>>> >>>>i.e. I don't >>>> >>>> >>>>>want all my legend image dimensions to be the size of the >>>> >>>>KEYIMAGE in >>>> >>>> >>>>>the one layer. >>>>> >>>>>..Tom >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>-----Original Message----- >>>>>>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>>>>>Sent: Wednesday, July 07, 2004 10:21 AM >>>>>>To: Kralidis,Tom [Burlington] >>>>>>Cc: mapserver-users at lists.gis.umn.edu >>>>>>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >>>>>> >>>>>> >>>>>>Tom, >>>>>> >>>>>> Here is how the size is determined : >>>>>> - If Width and Height parameter are passed in the >>>>>>GetLegendGraphic request , they will be used. >>>>>> - If not, it will use the size oparameters in the >> >>legend object >> >>>>>> - if none of the above is valid, the defaut size will >> >>be 20/20. >> >>>>>>Later, >>>>>> >>>>>>Kralidis,Tom [Burlington] wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>I've created a WMS, which has a layer, which defines >>>>>> >>>>>>KEYIMAGE in the >>>>>> >>>>>> >>>>>> >>>>>>>CLASS object. >>>>>>> >>>>>>>>From what I understand, KEYIMAGE points to a static >> >>image file, so >> >>>>>>> >>>>>>>>when >>>>>>> >>>>>>>requesting a legend (either through OGC:WMS or classic mapserv >>>>>>>mode=legend), the static image is fed back. >>>>>>> >>>>>>>When I request GetLegendGraphic from my WMS layer with >>>>>> >>>>>>KEYIMAGE, the >>>>>> >>>>>> >>>>>> >>>>>>>image comes back really small (i.e. 20 x 10). My legend >>>>>> >>>>>>image is like >>>>>> >>>>>> >>>>>> >>>>>>>300 x 50 -- the output image looks like it scrunched >> >>into 20 x 10. >> >>>>>>>Suggestions? >>>>>>> >>>>>>>Thanks >>>>>>> >>>>>>>..Tom >>>>>>> >>>>>>>_______________________________________________ >>>>>>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu >>>>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >>>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>>---------------------------------------------------------------- >>>>>>Assefa Yewondwossen >>>>>>Software Analyst >>>>>> >>>>>>Email: assefa at dmsolutions.ca >>>>>>http://www.dmsolutions.ca/ >>>>>> >>>>>>Phone: (613) 565-5056 (ext 14) >>>>>>Fax: (613) 565-0925 >>>>>>---------------------------------------------------------------- >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>-- >>>>---------------------------------------------------------------- >>>>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 >>---------------------------------------------------------------- >> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From cayla.buell at GMAIL.COM Thu May 11 14:32:05 2006 From: cayla.buell at GMAIL.COM (Cayla Buell) Date: Thu, 11 May 2006 14:32:05 -0700 Subject: click and view documents Message-ID: Hello all- I'm fairly new to Mapserver and am not quite sure how to go about doing what I want. I'd like to be able to click on a feature and then offer the user a selection of viewable PDFs linked to that feature. How the user sees the list of documents doesn't matter -- it can be a pop-up window, another webpage or something else. I thought this would be some type of query, but I can't seem to move past that. I'm using Mapserver 4.8. I'm also using Chameleon for my query button, but if there is a solution that works without using Chameleon, I'm willing to do that as well. Thanks for your help. Cayla From igorpsc at YAHOO.COM.BR Thu May 11 16:09:57 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Thu, 11 May 2006 20:09:57 -0300 Subject: size of the querymap Message-ID: I really need your help.... Hi, How could I change, in php/mapscript, the size of the querymap (width and height)? Thanks, Igor --------------------------------- Abra sua conta no Yahoo! Mail - 1GB de espa?o, alertas de e-mail no celular e anti-spam realmente eficaz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu May 11 17:23:13 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 11 May 2006 20:23:13 -0400 Subject: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE Message-ID: Are KEYSIZEX and KEYSIZEY implemented? I tried them and got a mapfile parse error in the response So, my recommendation would be the following when doing either a GetLegendGraphic or mode=legend type request: scan LAYER/CLASS if KEYIMAGE is present in LAYER/CLASS figure out what the width/height of the KEYIMAGE is (thus overriding LEGEND/KEYSIZE) factor that into the output of the legend image's dimensions else process like any other CLASS type process Then, I would also apply this output by returning correct width/height attributes to LegendURL in GetCapabilities. Currently, MapServer defaults to 20 x 10 or what LEGEND/KEYSIZE is set to. Comments? ..Tom -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Thu 11-May-06 15:53 To: Kralidis,Tom [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE Tom, Reading through the e-mail, I am still not convinced what the best solution is : I think that the default behavior which is to return the icons using the same size for all the class (containing either keyimage or not) seems to be the most reasonable. Which part do you see needs a modification : * the code generating a GetLegendGraphic url inside the capabilities (possibility to use other width/height parameters different from the one set in the legend object) * being able to set a specific icon size on the class that takes priority over the keysizex, keysizey of the legend object * other changes. Later, Kralidis,Tom [Burlington] wrote: > (dusting off this email) > > Assefa, > > Any update on this one? I'm trying an OGC:WMS 1.1.1 GetLegendGraphic > request off a layer with a CLASS/KEYIMAGE and get returned the same > behaviour. Trying to see CLASS/KEYSIZE or CLASS/KEYIMAGEX / > CLASSKEYIMAGEY returns mapfile error. > > Thanks > > ..Tom > > > > >>-----Original Message----- >>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>Sent: Thursday, July 08, 2004 4:00 PM >>To: Kralidis,Tom [Burlington] >>Cc: mapserver-users at lists.gis.umn.edu >>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >> >> >>Tom, >> >> I understand what you suggest but at the same time, the keyimage is >>just an additional way to generate icons beside the defaut way of >>generating them (using classes defined on the layer). Thus the use of >>the legend's keysizex and keysizey is the one that make more >>sense. If >>we add a specific size parameters for layers using a >>keyimage, we need >>to do the same for other types of layers so we can generate icons of >>diffrent siezes. What I propose as a compromise is to maybe use a >>metadata at the layer level that would be used by the >>LegendURL to fetch >>the width and height for that specific layer. By default the >>LegendURL >>would use the legend's keysizex/keysizey. Is this acceptable ? >> >>Later, >> >>Kralidis,Tom [Burlington] wrote: >> >> >>>>-----Original Message----- >>>>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>>>Sent: Wednesday, July 07, 2004 2:14 PM >>>>To: Kralidis,Tom [Burlington] >>>>Cc: mapserver-users at lists.gis.umn.edu >>>>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >>>> >>>> >>>>If it is for a specific layer, why not use the width and height >>>>parameters in the request ? Do you have other suggestions ? >>>> >>> >>> >>>I could explicitly, however if I'm a WMS client, my first >> >>inclination >> >>>is to do a GetCapabilities, and go from there. This is where >>>LegendURL would be useful. >>> >>>I suggest a KEYIMAGESIZE be added so that when LegendURL does get >>>added to WMS GetCapabilities, that the width and height >> >>attributes are >> >>>taken from KEYIMAGESIZE (or, even better, if MapServer can >> >>figure out >> >>>the KEYIMAGE value extents :)) >>> >>>What do you think? >>> >>>..Tom >>> >>> >>> >>> >>>>Kralidis,Tom [Burlington] wrote: >>>> >>>> >>>> >>>>>Right, but doesn't the legend object define a legend for >>>> >>>>the *entire* >>>> >>>> >>>>>WMS? This is a specific layer level legend KEYIMAGE -- >>>> >>>>i.e. I don't >>>> >>>> >>>>>want all my legend image dimensions to be the size of the >>>> >>>>KEYIMAGE in >>>> >>>> >>>>>the one layer. >>>>> >>>>>..Tom >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>-----Original Message----- >>>>>>From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] >>>>>>Sent: Wednesday, July 07, 2004 10:21 AM >>>>>>To: Kralidis,Tom [Burlington] >>>>>>Cc: mapserver-users at lists.gis.umn.edu >>>>>>Subject: Re: [Mapserver-users] WMS GetLegendGraphic and KEYIMAGE >>>>>> >>>>>> >>>>>>Tom, >>>>>> >>>>>> Here is how the size is determined : >>>>>> - If Width and Height parameter are passed in the >>>>>>GetLegendGraphic request , they will be used. >>>>>> - If not, it will use the size oparameters in the >> >>legend object >> >>>>>> - if none of the above is valid, the defaut size will >> >>be 20/20. >> >>>>>>Later, >>>>>> >>>>>>Kralidis,Tom [Burlington] wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>I've created a WMS, which has a layer, which defines >>>>>> >>>>>>KEYIMAGE in the >>>>>> >>>>>> >>>>>> >>>>>>>CLASS object. >>>>>>> >>>>>>>>From what I understand, KEYIMAGE points to a static >> >>image file, so >> >>>>>>> >>>>>>>>when >>>>>>> >>>>>>>requesting a legend (either through OGC:WMS or classic mapserv >>>>>>>mode=legend), the static image is fed back. >>>>>>> >>>>>>>When I request GetLegendGraphic from my WMS layer with >>>>>> >>>>>>KEYIMAGE, the >>>>>> >>>>>> >>>>>> >>>>>>>image comes back really small (i.e. 20 x 10). My legend >>>>>> >>>>>>image is like >>>>>> >>>>>> >>>>>> >>>>>>>300 x 50 -- the output image looks like it scrunched >> >>into 20 x 10. >> >>>>>>>Suggestions? >>>>>>> >>>>>>>Thanks >>>>>>> >>>>>>>..Tom >>>>>>> >>>>>>>_______________________________________________ >>>>>>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu >>>>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >>>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>>---------------------------------------------------------------- >>>>>>Assefa Yewondwossen >>>>>>Software Analyst >>>>>> >>>>>>Email: assefa at dmsolutions.ca >>>>>>http://www.dmsolutions.ca/ >>>>>> >>>>>>Phone: (613) 565-5056 (ext 14) >>>>>>Fax: (613) 565-0925 >>>>>>---------------------------------------------------------------- >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>-- >>>>---------------------------------------------------------------- >>>>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 >>---------------------------------------------------------------- >> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ml.dje at GEOCONTENT.DE Thu May 11 23:19:27 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 12 May 2006 08:19:27 +0200 Subject: mapfile of connection to postgis ......... In-Reply-To: <95f68e530605111045l2e858602p1f98671cf46392d4@mail.gmail.com> Message-ID: Eduardo, it seems that there is no spatial extent specified in the mapfile and mapserver can not guess it. I guess, that you need to add an EXTEND in the MAP part, like MAP IMAGETYPE PNG SIZE 400 300 IMAGECOLOR 255 255 255 EXTENT 3100000 5200000 4100000 6200000 See the mapserver docs, which says "EXTENT [minx] [miny] [maxx] [maxy] The spatial extent of the map to be created. In most cases you will need to specify this, although mapserver can sometimes (expensively) calculate one if it is not specified." If your layer is not to large (not to many features), try the bounding box of the data. You can get it with the following query: SELECT box2d("the_geom") FROM "departamentos_tp_perud2002"; Regards, Dirk Eduardo Ar?valo wrote: > Hi list > I must mapserver v 4.8.3 and one bases postgres v 8 with postgis 1.0.6 > on Centos 4.3 > mapfile of connection is: > > MAP > IMAGETYPE PNG > SIZE 400 300 > IMAGECOLOR 255 255 255 > > LAYER > NAME Peru_dep > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=sighco host=localhost > password=123456 port=5432" > DATA "the_geom from departamentos_tp_perud2002" > STATUS ON > TYPE POLYGON > END > > #CLASS > NAME "Departamentos del Per??" > #STYLE > # COLOR 232 232 232 > #OUTLINECOLOR 32 32 32 > END > END > END > END > in order to invoke it: > http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map > > > the errors are: > msDrawMap(): Image handling error. Unable to initialize image. > msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > mapserv(): Web application error. No way to generate map extent. > aid please From dpinte at ITAE.BE Fri May 12 00:25:02 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 12 May 2006 09:25:02 +0200 Subject: size of the querymap In-Reply-To: <20060511230957.88915.qmail@web31607.mail.mud.yahoo.com> Message-ID: Le jeudi 11 mai 2006 ? 20:09 -0300, igor pinheiro a ?crit : > I really need your help.... > Hi, > How could I change, in php/mapscript, the size of the querymap (width > and height)? > Thanks, > Igor Igor, I'm not a php programmer but here is my guess : google --> "mapserver" --> Official website --> Documentation --> References --> PHP Mapscript reference --> Classes --> QueryMapObj : ---------------------------------------------------------------------------- Constructor: Instances of querymapObj are always are always embedded inside the mapObj. Members: int width int height int style (MS_NORMAL, MS_HILITE, MS_SELECTED) colorObj color Methods: int set(string property_name, new_value) Set object property to a new value. Returns -1 on error. ---------------------------------------------------------------------------- Have you tried the set method on you querymapObj ? Or just modifying the width and height ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From piero.cavalieri at GMAIL.COM Fri May 12 00:27:57 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Fri, 12 May 2006 09:27:57 +0200 Subject: asp.net2 and mapserv cgi Message-ID: It's not IIS issue. I installed .net 2 on a win 32bit and have no problem. I' ll try also ms4w, however in the meanwhile, is there anyone using mapserver cgi on 64 bit platform ? Piero Tamas Szekeres ha scritto: Trying with Apache might be helpful. ms4w is a quick option. We should exclude if it is solely an IIS issue. Tamas 2006/5/10, Piero Cavalieri : Processor is AMD 64bit (SO 32 bit). Could be this an issue ? P. Piero Cavalieri ha scritto: mapserv ?v give corret output. I also tried to use binaries which I was using on a functional installation, and have the same result. In the past never had this kind of output. I suppose 2.0 installation changed some things in SO, because I don't have any more same windows to configure permissions. For example right click on mapserv.exe, in the past I was able to fine tune users permissions, now I don't. P. Tamas Szekeres ha scritto: Piero, Do you really think if it is an ASP.NET issue? Can you run ?mapserv ?v" within the cgi directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Fri May 12 01:18:11 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Fri, 12 May 2006 08:18:11 -0000 Subject: Help needed in ImageMap Message-ID: Hi I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. My Mapfile for imagemap is: ......... LAYER NAME "city" TYPE POINT STATUS ON DATA "city" CLASSITEM "name" CLASS NAME "CITY NAME" EXPRESSION /A*/ COLOR 255 0 0 OUTLINECOLOR 255 0 0 END TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" END ............ The content of template file bodytemplate.html is. [name] Q.1)What will be the exact value of href above? The content of template file imapheader.html is. Q.2)What will be the value of id and name above? The content of template file imapheader.html is. I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should place it ? and i am using Gmap's PHP/Mapscript engine. Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. Thanks in advance for any help. With regards. ? Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From roland.w.martin at GMAIL.COM Fri May 12 02:03:43 2006 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Fri, 12 May 2006 10:03:43 +0100 Subject: click and view documents In-Reply-To: <61d0ff850605111432t6d910347oe1184b43386c0b95@mail.gmail.com> Message-ID: Hi Cayla, You're on the right lines - here's what I did... - Set up a custom Chameleon query page (I forget how to do this but I'm sure there are instructions somewhere) - Modify the local QUERYRESULTS.PHTML page just below line 252 (THIS IS FOR LOCAL LAYER RESULTS etc), modifying the code to create a hyperlink from one of the attributes It looks like the code's been rewritten since I played with it last, but I added a routine to check for an attribute called HYPERLINK, and a second one called HREF, and link them together. It may want to be around line 319 or thereabouts? If you email me off-list I'll send you an example. Cheers, Roland. On 11/05/06, Cayla Buell wrote: > > Hello all- > > I'm fairly new to Mapserver and am not quite sure how to go about > doing what I want. I'd like to be able to click on a feature and then > offer the user a selection of viewable PDFs linked to that feature. > How the user sees the list of documents doesn't matter -- it can be a > pop-up window, another webpage or something else. I thought this > would be some type of query, but I can't seem to move past that. I'm > using Mapserver 4.8. I'm also using Chameleon for my query button, > but if there is a solution that works without using Chameleon, I'm > willing to do that as well. > > Thanks for your help. > > Cayla > -- Please note my new email address. Use other addresses at your peril. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kissg at CDATA.HU Fri May 12 04:26:10 2006 From: kissg at CDATA.HU (Gabor Kiss [Bitman]) Date: Fri, 12 May 2006 13:26:10 +0200 Subject: PERL MapScript: How to change text of a shapeObj? Message-ID: Dear folks, I'm a newbie with MapScript. I just try to generate an image with some on-the fly computed texts. I added a layer to mapfile like described on page http://mapserver.gis.umn.edu/docs/faq/copyright-layer then I tried to change the text before drawing: $some_text = "some other text"; $image = $map->draw; $layer = $map->getLayerByName('my_text'); $shape = $layer->getFeature(0); $shape->{text} = $some_text; $line = $shape->get(0); $point = $line->get(0); $point->setXY(300, 400); $shape->draw($map, $layer, $image); I can set the text position to (300,400) well but I cannot change the text appearing on the image. What to do? Any hints will be appreciated. Gabor From szekerest at GMAIL.COM Fri May 12 05:33:16 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 12 May 2006 14:33:16 +0200 Subject: asp.net2 and mapserv cgi In-Reply-To: Message-ID: I have available AMD Athlon 64 X2 based hardware at the firm, but I have only suse 10 (64 bit) installed for now. Which OS are you using? It may not be an IIS issue but I am not perfectly sure about it. Tamas _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Piero Cavalieri Sent: Friday, May 12, 2006 9:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] asp.net2 and mapserv cgi It's not IIS issue. I installed .net 2 on a win 32bit and have no problem. I' ll try also ms4w, however in the meanwhile, is there anyone using mapserver cgi on 64 bit platform ? Piero Tamas Szekeres ha scritto: Trying with Apache might be helpful. ms4w is a quick option. We should exclude if it is solely an IIS issue. Tamas 2006/5/10, Piero Cavalieri : Processor is AMD 64bit (SO 32 bit). Could be this an issue ? P. Piero Cavalieri ha scritto: mapserv -v give corret output. I also tried to use binaries which I was using on a functional installation, and have the same result. In the past never had this kind of output. I suppose 2.0 installation changed some things in SO, because I don't have any more same windows to configure permissions. For example right click on mapserv.exe, in the past I was able to fine tune users permissions, now I don't. P. Tamas Szekeres ha scritto: Piero, Do you really think if it is an HYPERLINK "http://ASP.NET"ASP.NET issue? Can you run "mapserv -v" within the cgi directory. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/337 - Release Date: 2006.05.11. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/337 - Release Date: 2006.05.11. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tealorama at GMAIL.COM Fri May 12 05:46:19 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Fri, 12 May 2006 15:46:19 +0300 Subject: Some polygons disappear when zooming in Message-ID: Hi We have vector layer which contains polygons. These polygons are buildings on the map. When I zoom in some buildings disappear. Layer definition on mapfile looks like following. LAYER NAME rakennus TYPE POLYGON STATUS OFF CONNECTIONTYPE OGR CONNECTION "/var/www/tero/data/vector/rakennukset_alue.TAB" STYLEITEM "AUTO" CLASS NAME "rakennus" END END # Layer rakennus ends I have no idea why buildings disappear. Is this some bug or what? -Tero From piero.cavalieri at GMAIL.COM Fri May 12 06:03:51 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Fri, 12 May 2006 15:03:51 +0200 Subject: asp.net2 and mapserv cgi Message-ID: I have itasca demo running on MS4W on this AMD 64bit mobile and installed .NET2 on 32 bit Desktop and my application is still running. So maybe I've done something wrong installing libraries here. Thanks for the moment. Piero Tamas Szekeres ha scritto: I have available AMD Athlon 64 X2 based hardware at the firm, but I have only suse 10 (64 bit) installed for now. Which OS are you using? It may not be an IIS issue but I am not perfectly sure about it. Tamas ------------------------------ *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Piero Cavalieri *Sent:* Friday, May 12, 2006 9:28 AM *To:* MAPSERVER-USERS at LISTS.UMN.EDU *Subject:* Re: [UMN_MAPSERVER-USERS] asp.net2 and mapserv cgi It's not IIS issue. I installed .net 2 on a win 32bit and have no problem. I' ll try also ms4w, however in the meanwhile, is there anyone using mapserver cgi on 64 bit platform ? Piero Tamas Szekeres ha scritto: Trying with Apache might be helpful. ms4w is a quick option. We should exclude if it is solely an IIS issue. Tamas 2006/5/10, Piero Cavalieri : Processor is AMD 64bit (SO 32 bit). Could be this an issue ? P. Piero Cavalieri ha scritto: mapserv ?v give corret output. I also tried to use binaries which I was using on a functional installation, and have the same result. In the past never had this kind of output. I suppose 2.0 installation changed some things in SO, because I don't have any more same windows to configure permissions. For example right click on mapserv.exe, in the past I was able to fine tune users permissions, now I don't. P. Tamas Szekeres ha scritto: Piero, Do you really think if it is an ASP.NET issue? Can you run ?mapserv ?v" within the cgi directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: From asimpson at I-55.COM Fri May 12 06:51:04 2006 From: asimpson at I-55.COM (Simpson) Date: Fri, 12 May 2006 08:51:04 -0500 Subject: Natural Area Coding System In-Reply-To: Message-ID: Has anyone used MapServer to display data with Natural Area Code(NAC) addresses (http://www.nacgeo.com/nacsite/). Before developing a translator, I thought I'd see if I was re-inventing the wheel. Could these be represented in a projection block? Thanks for any info, Drew. From D.Stone at ED.AC.UK Fri May 12 06:52:29 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 12 May 2006 06:52:29 -0700 Subject: Class Expressions Message-ID: I'm having difficulty setting up an EXPRESSION statement for a PostGIS layer. The field being tested is a numeric representation of a date in YYYYMMDD format so that ranges can be easily compared. When the expression is (say): EXPRESSION ('[fieldname]' ge '15010101') everything works fine; I get the correct number of hits. Similarly, EXPRESSION ('[fieldname]' le '16001231') works as it should. However, when I have: EXPRESSION ('[fieldname]' ge '15010101') and ('[fieldname]' le '16001231') I get no hits although there should be some. Has anyone else had similar problems? Cheers, Dave -- View this message in context: http://www.nabble.com/Class-Expressions-t1607707.html#a4358498 Sent from the Mapserver - User forum at Nabble.com. From D.Stone at ED.AC.UK Fri May 12 07:07:54 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Fri, 12 May 2006 07:07:54 -0700 Subject: Class Expressions In-Reply-To: <4358498.post@talk.nabble.com> Message-ID: Oops - just read in the Mapfile Reference 'logical expressions are only available for shapefiles'. Guess it's back to the drawing-board :-( Dave -- View this message in context: http://www.nabble.com/Class-Expressions-t1607707.html#a4358773 Sent from the Mapserver - User forum at Nabble.com. From Vincent.Troisi at COLORADO.EDU Fri May 12 07:32:41 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri, 12 May 2006 08:32:41 -0600 Subject: epsg updated database Message-ID: I have imagery in a polar stereographic projection. However, the latitude of standard parallel is 71 degrees, not 90 degrees. I noticed that epsg code 3031 defines the projection used for the imagery. This code exist in the epsg database but not in the proj-4.4.9 distribution. Are there any plans to update the epsg code file the proj-4 distribution? And, if so, will mapserver support the projection? Thanks. Vince From warmerdam at POBOX.COM Fri May 12 07:41:49 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 May 2006 10:41:49 -0400 Subject: epsg updated database In-Reply-To: <44649C89.7070303@Colorado.EDU> Message-ID: Vincent J. Troisi wrote: > I have imagery in a polar stereographic projection. However, > the latitude of standard parallel is 71 degrees, not 90 degrees. > I noticed that epsg code 3031 defines the projection used > for the imagery. This code exist in the epsg database but not > in the proj-4.4.9 distribution. Are there any plans to update > the epsg code file the proj-4 distribution? And, if so, will > mapserver support the projection? Vince, You might look at PROJ 4.5.0 beta1 which has an updated epsg translation file. I see EPSG has released a new database since I prepared that so I'm already lagging again before even having released PROJ 4.5.0! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From hfl at HOME.NL Fri May 12 08:01:13 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Fri, 12 May 2006 17:01:13 +0200 Subject: how to compile gdal 1.3.2 Message-ID: Hi List, This is for the GDAL compilerfolks, i got gdal from cvs and also downloaded gdal-1.3.2 but i get the same error gdal 1.3 compiles oke. nmake -f makefile.vc what's new ? Regards, Huub error = cpl_odbc.cpp cpl_odbc.h(162) : error C2143: syntax error : missing ';' before '*' cpl_odbc.h(162) : error C2501: 'SQLULEN' : missing storage-class or type specifiers cpl_odbc.h(162) : error C2501: 'm_panColSize' : missing storage-class or type specifiers cpl_odbc.cpp(325) : error C2065: 'm_panColSize' : undeclared identifier cpl_odbc.cpp(415) : error C2065: 'SQLULEN' : undeclared identifier cpl_odbc.cpp(415) : error C2059: syntax error : ')' cpl_odbc.cpp(434) : error C2664: 'SQLDescribeCol' : cannot convert parameter 7 from 'int' to 'unsign ed long *' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or fun ction-style cast cpl_odbc.cpp(526) : error C2109: subscript requires array or pointer type cpl_odbc.cpp(630) : error C2065: 'SQLLEN' : undeclared identifier cpl_odbc.cpp(630) : error C2146: syntax error : missing ';' before identifier 'cbDataLen' cpl_odbc.cpp(630) : error C2065: 'cbDataLen' : undeclared identifier cpl_odbc.cpp(1138) : error C2059: syntax error : ')' cpl_odbc.cpp(1150) : error C2146: syntax error : missing ';' before identifier 'cbDataLen' cpl_odbc.cpp(1170) : error C2109: subscript requires array or pointer type cpl_odbc.cpp(1170) : error C2106: '=' : left operand must be l-value NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'F:\PROGRA~1\MICROS~2\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. From Vincent.Troisi at COLORADO.EDU Fri May 12 08:16:54 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri, 12 May 2006 09:16:54 -0600 Subject: epsg updated database In-Reply-To: <44649EAD.7020809@pobox.com> Message-ID: Thanks Frank. I'll download the beta distribution and review the contents. Vince Frank Warmerdam wrote: > Vincent J. Troisi wrote: > >> I have imagery in a polar stereographic projection. However, >> the latitude of standard parallel is 71 degrees, not 90 degrees. >> I noticed that epsg code 3031 defines the projection used >> for the imagery. This code exist in the epsg database but not >> in the proj-4.4.9 distribution. Are there any plans to update >> the epsg code file the proj-4 distribution? And, if so, will >> mapserver support the projection? > > > Vince, > > You might look at PROJ 4.5.0 beta1 which has an updated epsg translation > file. I see EPSG has released a new database since I prepared that so > I'm already lagging again before even having released PROJ 4.5.0! > > Best regards, From Vincent.Troisi at COLORADO.EDU Fri May 12 08:21:01 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Fri, 12 May 2006 09:21:01 -0600 Subject: epsg updated database In-Reply-To: <4464A6E6.4060703@Colorado.EDU> Message-ID: ...and the projection code is in the proj-5 beta distribution. Vince Vincent J. Troisi wrote: > Thanks Frank. > I'll download the beta distribution and review the > contents. > > Vince > > > Frank Warmerdam wrote: > >> Vincent J. Troisi wrote: >> >>> I have imagery in a polar stereographic projection. However, >>> the latitude of standard parallel is 71 degrees, not 90 degrees. >>> I noticed that epsg code 3031 defines the projection used >>> for the imagery. This code exist in the epsg database but not >>> in the proj-4.4.9 distribution. Are there any plans to update >>> the epsg code file the proj-4 distribution? And, if so, will >>> mapserver support the projection? >> >> >> >> Vince, >> >> You might look at PROJ 4.5.0 beta1 which has an updated epsg translation >> file. I see EPSG has released a new database since I prepared that so >> I'm already lagging again before even having released PROJ 4.5.0! >> >> Best regards, > > From TIMOTHY.G.STACK at SAIC.COM Fri May 12 08:42:46 2006 From: TIMOTHY.G.STACK at SAIC.COM (Stack, Timothy G.) Date: Fri, 12 May 2006 11:42:46 -0400 Subject: newbie questions Message-ID: So I'm new at most of this mapping stuff. I've been playing around with a number of free GIS tools, and gone through a bit of their documentation and tutorials (MapServer, GeoServer, MapBuilder, ka-map, TimeMap, OpenMap...). With all of these I've gotten to the point where I can put an interactive map on a webpage. But I haven't been able to figure out the next step. The goals of my team's project right now are: 1) We need a webpage with a map of the world (for now, I think we'll get the world map from some public WMS) 2) It needs to be very interactive (thus my interest in MapBuilder and ka-map) 3) We need to take our own data (which could be in any format) and put it on the map. Right now, this will be in the form of ellipses drawn at certain coordinates. The ellipses will need to be to scale (eg. if it has a major axis of 30 miles and a minor axis of 10 miles, we will need to draw it that size on the map). Putting icons on the map will probably be important later on. 4) We will need to be able to filter what data is shown on the map (or perhaps highlight certain objects). The filter could be "all data in this bounding box" or "all objects that have property X". 5) We need to be able to click on objects in the map and have information about them show up in another part of the webpage, or even have the selection registered on the server to affect other programs. As I said, I can put a map in a webpage. I think the next step is to take our ellipse data and show it on the map. This is what I've been searching and searching for, and I can't seem to find the right documentation to get me started. I'm guessing that I'll need to use something like MapServer, somehow tell it the coordinates of ellipses or groups of line segments, and let it create images for my ellipse layer. Is that right? Can anyone get me started and point me to some documentation that will get me there? For number 4, filtering, I'm thinking that I would have to apply the filter to some data set of ours (maybe set a visible/highlighted flag for each entry in a database), then have my map server rebuild the layer and refresh the client. For number 5, selection, my guess is that I need a WMS to take the click and do something like a GetFeature request. From there, I'm not sure how the data gets where it needs to go. Again, any documentation you could point me to for these types of things would be great. If there are any other map tools that you think would fit, let me know. We would really like to use google's maps API, but I think it's against their terms of use to put it in a proprietary product or keep it on a private network. I know that was a lot, but I appreciate any help you can offer. Thanks. Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri May 12 08:56:52 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 May 2006 11:56:52 -0400 Subject: how to compile gdal 1.3.2 In-Reply-To: <4464A339.1080900@home.nl> Message-ID: Huub Fleuren wrote: > Hi List, > This is for the GDAL compilerfolks, > > i got gdal from cvs and also downloaded gdal-1.3.2 but i get the same error > gdal 1.3 compiles oke. > nmake -f makefile.vc > > what's new ? > > Regards, Huub > > error = > > cpl_odbc.cpp > cpl_odbc.h(162) : error C2143: syntax error : missing ';' before '*' > cpl_odbc.h(162) : error C2501: 'SQLULEN' : missing storage-class or type > specifiers Huub, Sorry about this. It seems to be a problem with VC6 and old ODBC include files. Replace gdal-1.3.2/port/cpl_odbc.h with: http://www.gdal.org/srctree/port/cpl_odbc.h Let me know if you still have problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From woodbri at SWOODBRIDGE.COM Fri May 12 09:11:35 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 12 May 2006 12:11:35 -0400 Subject: newbie questions In-Reply-To: Message-ID: Timothy, To place an ellipse on the map you will need to convert it to a polygon, at least for mapserver. I think I would look at PostGIS as a starter because it would allow you to store you ellipses and a rational table and allow you to do a lot of dynamic filtering. You could also write a simple stored procedure the could convert your ellipse definition into a polygon that can be displayed by mapserver. PostGIS gives you the ability to use SQL to define you LAYER DATA statement which is very powerful. Also you can easily set up dynamic CLASS attributes that make it easy to do thematic maps where objects are rendered and styled based on attributes. Clicking on the map and getting another page to display is well documented on the mapserver documentation and can be done with image maps or by setting up QUERY layers. Read this for more information: http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ and some good examples. -Steve W. Stack, Timothy G. wrote: > So I'm new at most of this mapping stuff. I've been playing around with > a number of free GIS tools, and gone through a bit of their > documentation and tutorials (MapServer, GeoServer, MapBuilder, ka-map, > TimeMap, OpenMap...). With all of these I've gotten to the point where I > can put an interactive map on a webpage. But I haven't been able to > figure out the next step. > > > > The goals of my team's project right now are: > > 1) We need a webpage with a map of the world (for now, I think we'll get > the world map from some public WMS) > > 2) It needs to be very interactive (thus my interest in MapBuilder and > ka-map) > > 3) We need to take our own data (which could be in any format) and put > it on the map. Right now, this will be in the form of ellipses drawn at > certain coordinates. The ellipses will need to be to scale (eg. if it > has a major axis of 30 miles and a minor axis of 10 miles, we will need > to draw it that size on the map). Putting icons on the map will probably > be important later on. > > 4) We will need to be able to filter what data is shown on the map (or > perhaps highlight certain objects). The filter could be "all data in > this bounding box" or "all objects that have property X". > > 5) We need to be able to click on objects in the map and have > information about them show up in another part of the webpage, or even > have the selection registered on the server to affect other programs. > > > > As I said, I can put a map in a webpage. I think the next step is to > take our ellipse data and show it on the map. This is what I've been > searching and searching for, and I can't seem to find the right > documentation to get me started. I'm guessing that I'll need to use > something like MapServer, somehow tell it the coordinates of ellipses or > groups of line segments, and let it create images for my ellipse layer. > Is that right? Can anyone get me started and point me to some > documentation that will get me there? > > > > For number 4, filtering, I'm thinking that I would have to apply the > filter to some data set of ours (maybe set a visible/highlighted flag > for each entry in a database), then have my map server rebuild the layer > and refresh the client. > > > > For number 5, selection, my guess is that I need a WMS to take the click > and do something like a GetFeature request. From there, I'm not sure how > the data gets where it needs to go. > > > > Again, any documentation you could point me to for these types of things > would be great. If there are any other map tools that you think would > fit, let me know. We would really like to use google's maps API, but I > think it's against their terms of use to put it in a proprietary product > or keep it on a private network. > > > > I know that was a lot, but I appreciate any help you can offer. Thanks. > > > > Tim > > > > > From etdube at GMAIL.COM Fri May 12 09:42:20 2006 From: etdube at GMAIL.COM (Etienne Dube) Date: Fri, 12 May 2006 12:42:20 -0400 Subject: Storing MapFile objects in SQL database In-Reply-To: <20060511112056.3a1bbcb4@butan.gdf-hannover.de> Message-ID: Hi Stephan, Thanks for the link. I've taken a look at MapStorer, though it doesn't do exactly what I want (using layer objects stored in the database directly with MapScript, not for generating a MapFile), its database schema will probably be helpful if I want to implement something similar with PostgreSQL. Etienne Stephan Holl wrote: > Hello Etienne, > > > Have you looked at mapstorer[1]? OK, its MySQL-based... > > > best regards > > Stephan > > [1] http://www.mapstorer.org > > > From earevaloch at GMAIL.COM Fri May 12 10:13:55 2006 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 12 May 2006 12:13:55 -0500 Subject: mapfile of connection to postgis ......... In-Reply-To: <446428EF.8000506@geocontent.de> Message-ID: thanks for their collaboration solve the problem: here mapfile: MAP IMAGETYPE PNG EXTENT -81.328391 -18.351232 -68.653396 -0.038607 SIZE 400 300 IMAGECOLOR 255 255 255 LAYER NAME Peru_dep CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=sighco host=localhost password=***** port=5432" DATA 'the_geom FROM departamentos_tp_perud2002' STATUS ON TYPE POLYGON CLASS COLOR 232 232 232 END #CLASS #NAME "Departamentos del Per?" #STYLE # COLOR 232 232 232 #OUTLINECOLOR 32 32 32 END END END END 2006/5/12, Dirk Jesko : > > Eduardo, > > it seems that there is no spatial extent specified in the mapfile and > mapserver can not guess it. I guess, that you need to add an EXTEND in > the MAP part, like > > MAP > IMAGETYPE PNG > SIZE 400 300 > IMAGECOLOR 255 255 255 > EXTENT 3100000 5200000 4100000 6200000 > > See the mapserver docs, which says > > "EXTENT [minx] [miny] [maxx] [maxy] > The spatial extent of the map to be created. In most cases you will > need to specify this, although mapserver can sometimes (expensively) > calculate one if it is not specified." > > If your layer is not to large (not to many features), try the bounding > box of the data. You can get it with the following query: > > SELECT box2d("the_geom") > FROM "departamentos_tp_perud2002"; > > > Regards, > Dirk > > > Eduardo Ar?valo wrote: > > > Hi list > > I must mapserver v 4.8.3 and one bases postgres v 8 with postgis 1.0.6 > > on Centos 4.3 > > mapfile of connection is: > > > > MAP > > IMAGETYPE PNG > > SIZE 400 300 > > IMAGECOLOR 255 255 255 > > > > LAYER > > NAME Peru_dep > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=sighco host=localhost > > password=123456 port=5432" > > DATA "the_geom from departamentos_tp_perud2002" > > STATUS ON > > TYPE POLYGON > > END > > > > #CLASS > > NAME "Departamentos del Per??" > > #STYLE > > # COLOR 232 232 232 > > #OUTLINECOLOR 32 32 32 > > END > > END > > END > > END > > in order to invoke it: > > > http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map > > < > http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map > > > > > > the errors are: > > msDrawMap(): Image handling error. Unable to initialize image. > > msCalculateScale(): General error message. Invalid image extent, > > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > > msCalculateScale(): General error message. Invalid image extent, > > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > > mapserv(): Web application error. No way to generate map extent. > > aid please > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at GMAIL.COM Fri May 12 10:18:40 2006 From: pauljame at GMAIL.COM (Paul james) Date: Fri, 12 May 2006 14:18:40 -0300 Subject: Click in reference map.... In-Reply-To: <33fad6880604271229s4d635d5eh8c18ad7107df67fd@mail.gmail.com> Message-ID: Hello all... I?m with a problem with a click in my reference map...I?m using zoomScale in mapscript to do the reference click, like that: (C#) mapaObj.zoomScale(__mapScale, __point, mapaObj.width, mapaObj.height, __OriginalExtent, null); I calculated the __point like that: (JS) y = (map.height * yReferenceClicked) / referenceMap.height; x = (map.width * xReferenceClicked) / referenceMap.width; Ok...When I?m in original scale, It?s work great... But when a start to zoom in my Map, the reference click starts to show the wrong place, especially when the click is in the sides of the reference map... You can see whats happening here : http://eabserver.osu.edu/eab_mapserverapp/eab_tiger.phtml?PREVIOUS_MODE=1&ohcnty=Y&ohcnty_anno=Y&ohidx=Y&tiger_roads=Y&tiger_rdanno=Y&MapSize=800%2C600&minx=72979.237684&miny=177658.043136&maxx=81272.604226&maxy=183878.068042&imagewidth=800&imageheight=600&CMD=ZOOM_IN&CMD=ZOOM_IN&KEYMAPXSIZE=156&KEYMAPYSIZE=125&KEYMAP.x=134&KEYMAP.y=9 Try click on the left top side(reference map) ... Any ideas? Is zoomScale the best way to simulate a reference click?? TY -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at GMAIL.COM Fri May 12 10:30:53 2006 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Fri, 12 May 2006 19:30:53 +0200 Subject: asp.net2 and mapserv cgi Message-ID: Using binaries from ms4w on IIS works. Not sure it was FWtools mapserver binaries corrupted, however. Maybe I only done a bad installation. P. Piero Cavalieri ha scritto: I have itasca demo running on MS4W on this AMD 64bit mobile and installed .NET2 on 32 bit Desktop and my application is still running. So maybe I've done something wrong installing libraries here. Thanks for the moment. Piero Tamas Szekeres ha scritto: I have available AMD Athlon 64 X2 based hardware at the firm, but I have only suse 10 (64 bit) installed for now. Which OS are you using? -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Fri May 12 12:29:21 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Fri, 12 May 2006 21:29:21 +0200 Subject: how to compile gdal 1.3.2 In-Reply-To: <4464B044.6060102@pobox.com> Message-ID: Hi Frank, Oke it worked for cpl_odbc.h but here's another one E:\projects\gdal-1.3.2\frmts>cd idrisi && nmake /NOLOGO /f makefile.vc && cd .. cl /nologo /MD /EHsc /Zi /Fd..\..\gdal.pdb -I..\..\port -I..\..\ogr -I..\..\gcore -I..\..\a lg -D_USE_MATH_DEFINES /c idrisiDataset.cpp idrisiDataset.cpp idrisiDataset.cpp(825) : error C2374: 'i' : redefinition; multiple initialization idrisiDataset.cpp(727) : see declaration of 'i' idrisiDataset.cpp(1082) : error C2374: 'i' : redefinition; multiple initialization idrisiDataset.cpp(1079) : see declaration of 'i' idrisiDataset.cpp(1397) : error C2374: 'i' : redefinition; multiple initialization idrisiDataset.cpp(1379) : see declaration of 'i' idrisiDataset.cpp(1475) : error C2374: 'i' : redefinition; multiple initialization idrisiDataset.cpp(1466) : see declaration of 'i' NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. E:\projects\gdal-1.3.2\frmts\idrisi>cd jpeg && nmake /NOLOGO /f makefile.vc && cd .. The system cannot find the path specified. E:\projects\gdal-1.3.2\frmts\idrisi>cd bsb && nmake /NOLOGO /f makefile.vc && cd .. The system cannot find the path specified. E:\projects\gdal-1.3.2\frmts\idrisi>cd zlib && nmake /NOLOGO /f makefile.vc && cd .. The system cannot find the path specified. NMAKE : fatal error U1077: 'for' : return code '0x1' Stop. NMAKE : fatal error U1077: 'F:\PROGRA~1\MICROS~2\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. > Replace gdal-1.3.2/port/cpl_odbc.h with: > > http://www.gdal.org/srctree/port/cpl_odbc.h > > Let me know if you still have problems. Regards, Huub From warmerdam at POBOX.COM Fri May 12 12:45:48 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 May 2006 15:45:48 -0400 Subject: how to compile gdal 1.3.2 In-Reply-To: <4464E211.3090901@home.nl> Message-ID: Huub Fleuren wrote: > Hi Frank, > > Oke it worked for cpl_odbc.h but here's another one > > E:\projects\gdal-1.3.2\frmts>cd idrisi && nmake /NOLOGO /f > makefile.vc && cd .. > cl /nologo /MD /EHsc /Zi /Fd..\..\gdal.pdb -I..\..\port > -I..\..\ogr -I..\..\gcore -I..\..\a > lg -D_USE_MATH_DEFINES /c idrisiDataset.cpp > idrisiDataset.cpp > idrisiDataset.cpp(825) : error C2374: 'i' : redefinition; multiple > initialization > idrisiDataset.cpp(727) : see declaration of 'i' > idrisiDataset.cpp(1082) : error C2374: 'i' : redefinition; multiple > initialization > idrisiDataset.cpp(1079) : see declaration of 'i' > idrisiDataset.cpp(1397) : error C2374: 'i' : redefinition; multiple > initialization > idrisiDataset.cpp(1379) : see declaration of 'i' > idrisiDataset.cpp(1475) : error C2374: 'i' : redefinition; multiple > initialization > idrisiDataset.cpp(1466) : see declaration of 'i' > NMAKE : fatal error U1077: 'cl' : return code '0x2' > Stop. Huub, Sorry, I should have warned of that as well. Please replace gdal/frmts/idrisi/IdrisiDataset.cpp with: http://www.gdal.org/srctree/frmts/idrisi/IdrisiDataset.cpp I think these are the only two VB6 problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Brent.Lund at STATE.MN.US Fri May 12 13:07:09 2006 From: Brent.Lund at STATE.MN.US (Brent Lund) Date: Fri, 12 May 2006 15:07:09 -0500 Subject: dBox alpha Message-ID: Steve, 1) Have you used the dbox toolkit in conjunction with things like position: absolute and z-index:2 ...? When I added these to my html/css, I found that firefox got messed up (mouseover etc did not work), IE kind of works - (mouseover worked and able to zoom in, but box not drawn when selecting zoom area). I know that dbox and dcontainer set position to absolute, so there is a conflict between the scripts and my stylesheet. I'm currently picking through the scripts to see what I can figure out - any suggestions? 2) What happened to the cross-browsers.com stuff (just curious)? Catch a big walleye, Brent -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Steve Lime Sent: Wednesday, May 10, 2006 3:05 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] dBox alpha Hi folks: We've taken the time to clean up and document the code behind the Landview application that folks might be familiar with and have an "alpha" release available. You can get at it at: http://maps.dnr.state.mn.us/tools/dbox The code itself is in good shape and much of it has been in production use for years. The packaging, install instructions and such are brand new so bear with us. Anyway, the distribution comes with an example interface using the Itasca data from one of the main demos. You can see it running on our servers at: http://maps.dnr.state.mn.us/tools/dbox/example/example.html Hopefully someone will find this useful... Steve From cropwithdawn at COX.NET Fri May 12 13:56:10 2006 From: cropwithdawn at COX.NET (cropwithdawn) Date: Fri, 12 May 2006 16:56:10 -0400 Subject: Unable to get a transparent layer using shp2img -t Message-ID: Here is the command: shp2img -t -m wfs_only.map -o wfs_only.png -i PNG The wfs_only.map is using a simple shapefile. I get a PNG file but it's not transparent. What's up? Thanks! JAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Fri May 12 13:53:11 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Fri, 12 May 2006 22:53:11 +0200 Subject: what happend to OGRVRTLayers? In-Reply-To: <4464E5EC.1010101@pobox.com> Message-ID: Hi Frank, Thank you again, now i'm testing (but i'm not ther yet) MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG with gdal 1.3.2 on de OGRVRTLayer layer. using xerces 2-7 (i don't know if that is needed for vrt) It does not work anymore. (allthough: INPUT=OGR INPUT=GDAL) my new compiled files are libcurl.dll libmap.dll mapserv.exe xerces-c_2_7.dll all other dlls are basically the same as last year i get this msDrawMap(): Image handling error. Failed to draw layer named 'kpxy'. msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. msOGRFileOpen( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 84613) and (w.x < 88846) and (w.y > 449903) and (w.y < 453602) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 )... OGROPen( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 84613) and (w.x < 88846) and (w.y > 449903) and (w.y < 453602) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 ) msOGRLayerClose( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 84613) and (w.x < 88846) and (w.y > 449903) and (w.y < 453602) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 ). msOGRFileClose( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 84613) and (w.x < 88846) and (w.y > 449903) and (w.y < 453602) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 ,0). Regards, Huub From warmerdam at POBOX.COM Fri May 12 14:09:51 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 12 May 2006 17:09:51 -0400 Subject: Unable to get a transparent layer using shp2img -t In-Reply-To: <00d801c67606$8031da70$6400a8c0@DJW83V01> Message-ID: cropwithdawn wrote: > Here is the command: > > shp2img -t -m wfs_only.map -o wfs_only.png -i PNG > > The wfs_only.map is using a simple shapefile. > > I get a PNG file but it's not transparent. What's up? JAB, I have confirmed the problem, and determined it is because map->transparent is now applied in msPostMapParseOutputFormatSetup(). This is already done by the time shp2img processes the -t flag. Since it doesn't work, I have removed the switch from shp2img. Instead you can add the line: TRANSPARENT ON in your mapfile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From mgleahy at GOLDEN.NET Fri May 12 14:06:52 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Fri, 12 May 2006 17:06:52 -0400 Subject: Escape double quotes in mapfiles/mapscript? Message-ID: Hello list, I'm wondering if there is currently any way to escape double quotes in mapfile properties. As an example, I want to be able to use a query on a PostGIS table as the data source for a layer, where columns' aliases have double quotes around them, as is normally done in PostgreSQL when spaces or other characters are involved (e.g., the following would crash MapServer 4.8: DATA "the_geom from (select id as \"Field ID\", the_geom from sometable) as foo using unique \"Field ID\" using srid 5326;" I also tried using two double quotes, but that didn't work either. I noticed some discussion in a bug report related to this from a while back (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=681), but as far as I can tell, it hasn't been addressed. I can come up with my own workarounds for the problems, but I'd rather be sure whether or not this is possible first... Thanks in advance for any advice, Mike From hartpence_gis at CO.JASPER.IA.US Fri May 12 14:34:34 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 12 May 2006 16:34:34 -0500 Subject: New Dbox Example Message-ID: Hello, I just downloaded the new dBox example for MS4W. I do appreciate all the work put into modernizing and documenting this. I have a question. I am running MapServer 4.6 on IIS. I edited the example.html as well as itsca.map and changed the paths to reflect my folder structure on my computer. The problem is that when I try to bring up the site in my web browser, the map does not come up. Any ideas? Here is a link to the website: http://216.203.113.94/JasperMaps/example/example.html Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From clemens.bertschler at GMAIL.COM Fri May 12 15:39:29 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Fri, 12 May 2006 15:39:29 -0700 Subject: querybypoint Postgis Message-ID: Hi list I have a little problem with my application. I have several different layers(shapefile) furthermore, I have points stored in a PostGIS database. Every thing works fine except the querying of points in the database, it shows me always a result but there seems to be nothing in the resultset, at least the shapeindex of the result is always 1. With points from a shapefile it works but not for points in PostGIS, i have to add something special? Maybe the code is not correct, but remind with normal shape files it is functioning very well. Thanks anyway, ------------------------------------------------------------------ MAPFILE LAYER NAME fincas TYPE POINT CONNECTIONTYPE postgis CONNECTION "dbname=........" DATA "the_geom FROM (SELECT the_geom from mus where longitudecenter <> 0 AND NAME = 'USAR-0') AS myquery USING UNIQUE the_geom using SRID = -1" STATUS ON TOLERANCE 4 METADATA "DESCRIPTION" "farms" "RESULT_FIELDS" "f_code" "TABLE_NAME" "public.mus" # i need that? END CLASS NAME "farms" TEMPLATE "Dummy" STYLE SYMBOL "POINT" COLOR 192 192 192 SIZE 8 END END END ------------------------------------------------------------------ PHP code $other_point->setXY($x,$y); //x and y are longitude and latitude $map->querybyPoint($other_point,MS_MULTIPLE,-1); $layer = $map->getLayerByName('farms'); echo("
".$layer->getNumResults()); // i get an result $layer->open(); $selFields = explode(" ", $layer->getMetaData("RESULT_FIELDS")); $oRes = $layer->getResult(0); echo($oRes->tileindex." ".$oRes->shapeindex." ".$oRes->classindex); // always -1 1 0 if($layer->getNumResults() != 0){ $oShape = $layer->getShape($oRes->tileindex,$oRes->shapeindex); $ID = $oShape->values['f_code']; $oShape->free(); //ERROR Call to a member function on a non-object } -- View this message in context: http://www.nabble.com/querybypoint-Postgis-t1610695.html#a4366731 Sent from the Mapserver - User forum at Nabble.com. From gsw at GLOBEXPLORER.COM Fri May 12 15:59:43 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 12 May 2006 15:59:43 -0700 Subject: querybypoint Postgis Message-ID: Bertsch -- I am not conversant with the php side of things, but I do wonder about the connection string. DATA "the_geom FROM (SELECT the_geom from mus where longitudecenter <> 0 AND NAME = 'USAR-0') AS myquery USING UNIQUE the_geom using SRID = -1" Try selecting another column as well as the_geom to use as the UNIQUE part. MMS needs to have a unique identifier for each row, and asking for unique geometries is odd ... in versions of postgres which have the OIDs included in the tables you could say "USING UNIQUE oid USING SRID = -1"; if your table has its own unique identifier for each row that would be preferable. The postgis manual for 1.x says that MMS needs to have a proper unique column to do queries. Note also: "Warning The parser for Mapserver PostGIS layers is fairly primitive, and is case sensitive in a few areas. Be careful to ensure that all SQL keywords and all your USING clauses are in upper case, and that your USING UNIQUE clause precedes your USING SRID clause." Presumably NAME is indexed so this query will be fast, but in general spatial queries won't use the GIST index if there is no "&&" operator in use. HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Bertsch Sent: Fri 5/12/2006 3:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] querybypoint Postgis Hi list I have a little problem with my application. I have several different layers(shapefile) furthermore, I have points stored in a PostGIS database. Every thing works fine except the querying of points in the database, it shows me always a result but there seems to be nothing in the resultset, at least the shapeindex of the result is always 1. With points from a shapefile it works but not for points in PostGIS, i have to add something special? Maybe the code is not correct, but remind with normal shape files it is functioning very well. Thanks anyway, ------------------------------------------------------------------ MAPFILE LAYER NAME fincas TYPE POINT CONNECTIONTYPE postgis CONNECTION "dbname=........" DATA "the_geom FROM (SELECT the_geom from mus where longitudecenter <> 0 AND NAME = 'USAR-0') AS myquery USING UNIQUE the_geom using SRID = -1" STATUS ON TOLERANCE 4 METADATA "DESCRIPTION" "farms" "RESULT_FIELDS" "f_code" "TABLE_NAME" "public.mus" # i need that? END CLASS NAME "farms" TEMPLATE "Dummy" STYLE SYMBOL "POINT" COLOR 192 192 192 SIZE 8 END END END ------------------------------------------------------------------ PHP code $other_point->setXY($x,$y); //x and y are longitude and latitude $map->querybyPoint($other_point,MS_MULTIPLE,-1); $layer = $map->getLayerByName('farms'); echo("
".$layer->getNumResults()); // i get an result $layer->open(); $selFields = explode(" ", $layer->getMetaData("RESULT_FIELDS")); $oRes = $layer->getResult(0); echo($oRes->tileindex." ".$oRes->shapeindex." ".$oRes->classindex); // always -1 1 0 if($layer->getNumResults() != 0){ $oShape = $layer->getShape($oRes->tileindex,$oRes->shapeindex); $ID = $oShape->values['f_code']; $oShape->free(); //ERROR Call to a member function on a non-object } -- View this message in context: http://www.nabble.com/querybypoint-Postgis-t1610695.html#a4366731 Sent from the Mapserver - User forum at Nabble.com. !DSPAM:44650eb6237721804284693! From szekerest at GMAIL.COM Sat May 13 02:25:03 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 13 May 2006 11:25:03 +0200 Subject: Escape double quotes in mapfiles/mapscript? In-Reply-To: <4464F8EC.4020900@golden.net> Message-ID: And we have also http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1549 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1622 Tamas -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Leahy Sent: Friday, May 12, 2006 11:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Escape double quotes in mapfiles/mapscript? Hello list, I'm wondering if there is currently any way to escape double quotes in mapfile properties. As an example, I want to be able to use a query on a PostGIS table as the data source for a layer, where columns' aliases have double quotes around them, as is normally done in PostgreSQL when spaces or other characters are involved (e.g., the following would crash MapServer 4.8: DATA "the_geom from (select id as \"Field ID\", the_geom from sometable) as foo using unique \"Field ID\" using srid 5326;" I also tried using two double quotes, but that didn't work either. I noticed some discussion in a bug report related to this from a while back (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=681), but as far as I can tell, it hasn't been addressed. I can come up with my own workarounds for the problems, but I'd rather be sure whether or not this is possible first... Thanks in advance for any advice, Mike -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/337 - Release Date: 2006.05.11. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/338 - Release Date: 2006.05.12. From andreas.albarello at TERRITORIUMONLINE.COM Sat May 13 06:25:24 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Sat, 13 May 2006 15:25:24 +0200 Subject: Escape double quotes in mapfiles/mapscript? Message-ID: Mike Leahy wrote: > I'm wondering if there is currently any way to escape double quotes in > mapfile properties. As an example, I want to be able to use a query on > a PostGIS table as the data source for a layer, where columns' aliases > have double quotes around them, as is normally done in PostgreSQL when > spaces or other characters are involved (e.g., the following would crash > MapServer 4.8: Mike, as Tamas already pointed out by listing a couple of bugs filed about this issue, there's currently no way to do so. You simply can't have the same character you use as delimiter for a certain string (which for Mapserver is either a double quote or a single quote) inside that string. > DATA "the_geom from (select id as \"Field ID\", the_geom from sometable) > as foo using unique \"Field ID\" using srid 5326;" You should however be able to address this particular issue by putting single quotes instead of double quotes around your DATA definition. This should make it possible to use double quotes inside. The same applies vice versa, of course, as long as you don't need to use both types of quotes inside the same string, which is not possible at all. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From Ken.Boss at DNR.STATE.MN.US Sat May 13 07:49:20 2006 From: Ken.Boss at DNR.STATE.MN.US (Ken Boss) Date: Sat, 13 May 2006 09:49:20 -0500 Subject: New Dbox Example Message-ID: Hello Lawrence-- A javascript console shows this error: Error: uncaught exception: Permission denied to call method XMLHttpRequest.open The error originates in the get_content() call embedded in example.html, which retrieves the XML that dlegend.js uses to construct the legend (get_content() is defined in utils.js). Most browsers enforce a cross-domain security restriction, which means XMLHttpRequest.open can only access the server from which the javascript has been loaded. So your setting for config.dlegend_xml_executable must point to a location that is on the same server as example.html itself. More generally, the ms4w distribution of the dbox demo has only been tested against ms4w versions 1.5.x, which run mapserver version 4.8.3 under Apache. I might recommend that you grab the latest ms4w release from maptools.org and try the demo there. You would need to configure the ms4w Apache installation to run python cgi scripts; and unpack the zipped binaries for python mapscript support from their location in the ms4w installation and place them in an appropriate location for your python installation (usually /Lib/site-packages, but you might try dumping them directly into /ms4w/Apache/cgi-bin as an alternative if needed). Note that python 2.4.x is required. If you can get the above in order, then the demo should work under ms4w without any changes to the configuration in example.html. HTH, --Ken Boss MN DNR Forestry Resource Assessment >>> Lawrence Hartpence 5/12/2006 4:34 PM >>> Hello, I just downloaded the new dBox example for MS4W. I do appreciate all the work put into modernizing and documenting this. I have a question. I am running MapServer 4.6 on IIS. I edited the example.html as well as itsca.map and changed the paths to reflect my folder structure on my computer. The problem is that when I try to bring up the site in my web browser, the map does not come up. Any ideas? Here is a link to the website: http://216.203.113.94/JasperMaps/example/example.html Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From clemens.bertschler at GMAIL.COM Sat May 13 09:52:47 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Sat, 13 May 2006 09:52:47 -0700 Subject: querybypoint Postgis In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BC4A6@loki.wc.globexplorer.net> Message-ID: Thanks Greg That was it, the query has to defined with OIDS and furthermore you have to set the column you want to see in the result field manualy. DATA "the_geom FROM (SELECT the_geom,oid,f_code from mus where longitudecenter <> 0 AND NAME = 'USAR-0') AS myquery USING UNIQUE oid using SRID = -1" -- View this message in context: http://www.nabble.com/querybypoint-Postgis-t1610695.html#a4373497 Sent from the Mapserver - User forum at Nabble.com. From mgleahy at GOLDEN.NET Sat May 13 22:52:10 2006 From: mgleahy at GOLDEN.NET (Mike Leahy) Date: Sun, 14 May 2006 01:52:10 -0400 Subject: Escape double quotes in mapfiles/mapscript? In-Reply-To: <4464F8EC.4020900@golden.net> Message-ID: Andreas, I did give this a try with single quotes, and while the mapfile will successfully load as a php_mapscript map ojbect (using Chameleon), the map will not draw in the chameleon interface. I've figured out that this is because when Chameleon uses the mapscript map object to write/restore the mapfile to a temporary file for each session in PHP - when this happens, the DATA string in the output mapfile that is written to the PHP session folder reverts to using double-quotes instead of single quotes. I guess this relates to the bug that Tamras pointed out (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1549). From the looks of things, there's no fix in the near future for this other than to make sure my PostGIS data strings don't require double quotes. Thanks anyway, Mike Andreas Albarello wrote: >Mike Leahy wrote: >> I'm wondering if there is currently any way to escape double quotes in >> mapfile properties. As an example, I want to be able to use a query on >> a PostGIS table as the data source for a layer, where columns' aliases >> have double quotes around them, as is normally done in PostgreSQL when >> spaces or other characters are involved (e.g., the following would crash >> MapServer 4.8: >Mike, >as Tamas already pointed out by listing a couple of bugs filed about >this issue, there's currently no way to do so. You simply can't have >the >same character you use as delimiter for a certain string (which for >Mapserver is either a double quote or a single quote) inside that >string. >> DATA "the_geom from (select id as \"Field ID\", the_geom from sometable) >> as foo using unique \"Field ID\" using srid 5326;" >You should however be able to address this particular issue by putting >single quotes instead of double quotes around your DATA definition. >This >should make it possible to use double quotes inside. The same applies >vice versa, of course, as long as you don't need to use both types of >quotes inside the same string, which is not possible at all. >Best regards, >-- -------------------------------------------------------------------- >Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH >Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: >andreas.albarello at territoriumonline.com web: www.territoriumonline.com >-------------------------------------------------------------------- >Mike Leahy wrote: >> Hello list, >> >> I'm wondering if there is currently any way to escape double quotes in >> mapfile properties. As an example, I want to be able to use a query on >> a PostGIS table as the data source for a layer, where columns' aliases >> have double quotes around them, as is normally done in PostgreSQL when >> spaces or other characters are involved (e.g., the following would crash >> MapServer 4.8: >> >> DATA "the_geom from (select id as \"Field ID\", the_geom from sometable) >> as foo using unique \"Field ID\" using srid 5326;" >> >> I also tried using two double quotes, but that didn't work either. I >> noticed some discussion in a bug report related to this from a while >> back (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=681), but as far >> as I can tell, it hasn't been addressed. I can come up with my own >> workarounds for the problems, but I'd rather be sure whether or not this >> is possible first... >> >> Thanks in advance for any advice, >> Mike >> From hfl at HOME.NL Sun May 14 09:34:58 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Sun, 14 May 2006 18:34:58 +0200 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) Message-ID: Hi List, Something changed, but what is it. I'm using somthing like the following, so a ODBC datasource for a OGRVRTLayer with variable substitution for the CONNECTION statement. This works for me since i first used it in mapserv version 4.2. I compiled gdal 1.3.2 as i normally do; with Xerces, 2.7 this time. ogrinfo works on a similar ovf file without variable substutution. If i get something in the log file (this is not always the case) on this layer it is: msDrawMap(): Image handling error. Failed to draw layer named 'kpxy'. msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. Does this mean that variable substitution is no longer supported here? I just want to make sure if it still is. CONNECTION " ODBC:admin/admin at db SELECT * FROM wwall WHERE (x > %xmin%) and (x < %xmax%) and (y > %ymin%) and (y < %ymax%) wkbPoint " What is the reason why this construction does not return the selected points anymore? Regards, Huub From pramsey at REFRACTIONS.NET Sun May 14 09:43:45 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sun, 14 May 2006 09:43:45 -0700 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) In-Reply-To: <44675C32.4080102@home.nl> Message-ID: Huub, Yes, things changed in later versions (they got more secure!). Check out the DATAPATTERN clause in the latest mapfile reference manual. Paul On 14-May-06, at 9:34 AM, Huub Fleuren wrote: > Hi List, > > Something changed, but what is it. > > I'm using somthing like the following, so a ODBC datasource for a > OGRVRTLayer with variable substitution for the CONNECTION statement. > This works for me since i first used it in mapserv version 4.2. > > I compiled gdal 1.3.2 as i normally do; with Xerces, 2.7 this time. > ogrinfo works on a similar ovf file without variable substutution. > > If i get something in the log file (this is not always the case) on > this layer it is: > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. SetAttributeFilter() not > supported on ExecuteSQL() results. > > Does this mean that variable substitution is no longer supported > here? I just want to make sure if it still is. > > CONNECTION > " > > ODBC:admin/admin at db SrcDataSource> > SELECT * FROM wwall WHERE (x > % > xmin%) and (x < %xmax%) and (y > %ymin%) and (y < %ymax%) > > wkbPoint > x='x' y='y'/> > > " > > What is the reason why this construction does not return the > selected points anymore? > > > Regards, Huub From neumann at KARTO.BAUG.ETHZ.CH Sun May 14 10:10:20 2006 From: neumann at KARTO.BAUG.ETHZ.CH (Andreas Neumann) Date: Sun, 14 May 2006 19:10:20 +0200 Subject: Compression in TIF files: disk space vs. performance Message-ID: Hello list, I have a question on compression in tiff files. I read that for best mapserver performance it is recommended to store tiff files on the server in uncompressed format. We currently have a disk space problem and need to serve a large number of raster images. Is there any compression technique that allows to save diskspace while maintaining a reasonable or good performance? Or is compression not recommended at all? Another question: we need to serve 1bit (b+w) rasterimages that are delivered as gray/rgb jpegs later because we want to use resampling. What is the best color depth to store the original images. I noticed that when keeping them in 1bit color depth one cannot create pyramids using gdaladdo. Is it better to store them in 1 bit with no pyramids or in 8bit gray value with pyramids? Thank you for any help on my questions, All the best, Andreas -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From hfl at HOME.NL Sun May 14 11:55:56 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Sun, 14 May 2006 20:55:56 +0200 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) In-Reply-To: <607E74A5-2768-4369-B4FF-EC4B8D3AE9B0@refractions.net> Message-ID: Thanks for the answer Paul, but i have the feeling that this is not applicable here first of all: you're the first one ever to mention DATAPATTREN in the last half year of USERLIST messages and here is the complete documentation: DATAPATTERN [regular expression] This defines a regular expression to be applied to requests to change DATA parameters via URL requests (i.e. map_layername_data=...). If a pattern doesn't exist then web users can't monkey with support files via URLs. This allows you to isolate one application from another if you desire, with the default operation being very conservative. See also TEMPLATEPATTERN . Well. My substitution is not in DATA, it's in CONNECTION: DATA referes to the CONNECTION My LAYER definition looks like this: (following: http://www.remotesensing.org/gdal/ogr/ogr_sql.html) CONNECTIONTYPE OGR CONNECTION " ODBC:admin/admin at anwb SELECT * FROM kpxy WHERE (x > %xmin%) and (x < %xmax%) and (y > %ymin%) and (y < %ymax%) and NOT (soort LIKE 'D') wkbPoint WGS84 " DATA "kpxy" # the name of the OGRVrtLayer So there is no variable substitution in DATA. I put in DATAPATTERN anyway, (regexp ey?) a string in quotes: (the parser didn't fall over them) like these DATAPATTERN "xmin|xmax|ymin|ymax" DATAPATTERN "/xmin|xmax|ymin|ymax/" It's not required is it? I think a need another suggestion, but thanks anyway. Regards, Huub Paul Ramsey schreef: > Huub, > > Yes, things changed in later versions (they got more secure!). Check > out the DATAPATTERN clause in the latest mapfile reference manual. > > Paul > > On 14-May-06, at 9:34 AM, Huub Fleuren wrote: > >> Hi List, >> >> Something changed, but what is it. >> >> I'm using somthing like the following, so a ODBC datasource for a >> OGRVRTLayer with variable substitution for the CONNECTION statement. >> This works for me since i first used it in mapserv version 4.2. >> >> I compiled gdal 1.3.2 as i normally do; with Xerces, 2.7 this time. >> ogrinfo works on a similar ovf file without variable substutution. >> >> If i get something in the log file (this is not always the case) on >> this layer it is: >> msDrawMap(): Image handling error. Failed to draw layer named >> 'kpxy'. >> msOGRFileNextShape(): OGR error. SetAttributeFilter() not >> supported on ExecuteSQL() results. >> >> Does this mean that variable substitution is no longer supported >> here? I just want to make sure if it still is. >> >> CONNECTION >> " >> >> >> ODBC:admin/admin at db >> SELECT * FROM wwall WHERE (x > >> %xmin%) and (x < %xmax%) and (y > %ymin%) and (y < %ymax%) >> >> wkbPoint >> > x='x' y='y'/> >> >> " >> >> What is the reason why this construction does not return the selected >> points anymore? >> >> >> Regards, Huub > > From ed at TOPOZONE.COM Sun May 14 12:19:37 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 14 May 2006 15:19:37 -0400 Subject: Compression in TIF files: disk space vs. performance Message-ID: Andreas - Compression will almost always cost you performance. If you have the unusual situation of having lots of RAM, a fast processor, and a VERY slow disk system, then it might not cost you performance, but I've never seen that happen. However, if you're out of space, you're out of space! My first reminder is that disk is inexpensive - and my first suggestion is to buy more disk space. Lossless TIFF compression (Packbits, LZW, etc.) will not cost you much in performance at all. It is also unlikely to save you much disk space. You should experiment with your own data, but I have found that it's unusual to save more than 10% if you're doing lossless compression on aerial or satellite photos. If your rasters are scanned images of line art (scanned maps) then you are likely to do much better, but that's not likely to be the case because it's rare to have a large amount of such data. Lossy compression with MrSID or ECW tools will definitely cost you performance. However, if you have a light server load that might not be a problem, particularly if you have a lot of RAM and very few simultaneous users. But you can save a LOT of disk space that way. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andreas Neumann Sent: Sunday, May 14, 2006 1:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Compression in TIF files: disk space vs. performance Hello list, I have a question on compression in tiff files. I read that for best mapserver performance it is recommended to store tiff files on the server in uncompressed format. We currently have a disk space problem and need to serve a large number of raster images. Is there any compression technique that allows to save diskspace while maintaining a reasonable or good performance? Or is compression not recommended at all? Another question: we need to serve 1bit (b+w) rasterimages that are delivered as gray/rgb jpegs later because we want to use resampling. What is the best color depth to store the original images. I noticed that when keeping them in 1bit color depth one cannot create pyramids using gdaladdo. Is it better to store them in 1 bit with no pyramids or in 8bit gray value with pyramids? Thank you for any help on my questions, All the best, Andreas -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From hfl at HOME.NL Sun May 14 13:30:43 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Sun, 14 May 2006 22:30:43 +0200 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) In-Reply-To: <44677D3C.1090702@home.nl> Message-ID: Hi List, While experimetning further i found that the variable substitution is not my problem. Sorry about that. Please read my next thread Regards, Huub From hfl at HOME.NL Sun May 14 13:30:46 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Sun, 14 May 2006 22:30:46 +0200 Subject: odbc OGRVRTDataSource does not work in layerdefinition as of gdal 1.3.2 Message-ID: Hi List, I have the following OVF file which defines an ODBC (msaccess) OGRVRTDataSource. I'm testing this with gdal 1.3.2 ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wcode as wcode, w.ocode as ocode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > 500000) and (w.y < 520000) and (w.nummer = k.kp_nr) wkbPoint WGS84 ogrinfo test.ovf -sql "select count(*) from kpxy" ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `test.ovf' using driver `VRT' successful. Layer name: kpxytest Geometry: Point Feature Count: 1 Layer SRS WKT: (unknown) count_*: Integer (0.0) OGRFeature(kpxytest):0 count_* (Integer) = 375 I copied the test.ovf into the layer definition. (see complete layerdef further) To my surprise there are no points selected. I ( sometimes ) get the following error ==== msDrawMap(): Image handling error. Failed to draw layer named 'kpxytest'. msOGRFileOpen(): OGR error. Open failed for OGR connection `<OGRVRTDataSource> <OGRVRTLayer name='kpxytest'> <SrcDataSource>ODBC:admin/admin at anwb</SrcDataSource> <SrcSQL>SELECT k.kp_nr as kp_nr'. Parse error at EOF, not all elements have been closed, starting with SrcSQL msOGRFileOpen( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wcode as wcode, w.ocode as ocode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > 500000) and (w.y < 520000) and (w.kruispunt = k.kp_nr) wkbPoint WGS84 )... OGROPen( ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr) ==== LAYERDEF The complete LAYER definiton looks like this LAYER debug on NAME kpxytest TYPE POINT CONNECTIONTYPE OGR #CONNECTION "c:/inetpub/wwwroot/cgi-bin/mapserv40/virtual.ovf" # the name and path to the virtual.ovf file, relative to shapepath may work? # zie ook: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData # http://www.remotesensing.org/gdal/ogr/ogr_sql.html # CONNECTION " ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wcode as wcode, w.ocode as ocode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > 500000) and (w.y < 520000) and (w.nummer = k.kp_nr) wkbPoint WGS84 " LABELITEM "kp_nr" STATUS ON DUMP false MINSCALE 0 MAXSCALE 150000 CLASS NAME 'kpxy' STYLE COLOR 0 0 255 SYMBOL 'circle' OUTLINECOLOR 0 0 0 SIZE 7 END LABEL COLOR 132 31 31 SHADOWCOLOR 255 255 255 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 8 ANTIALIAS TRUE POSITION CR # POSITION AUTO PARTIALS FALSE MINDISTANCE 10 BUFFER 1 END # end of label END METADATA WMS_TITLE "Virtual kruispunten" WMS_ABSTRACT "Virtual xy ovf layer." WMS_SRS "EPSG:28992" END END How can it be explained?. Can i get it to work? Is this a bug? Regards, Huub (excuse for the fuss in the previous thread) From ed at TOPOZONE.COM Sun May 14 13:35:16 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 14 May 2006 16:35:16 -0400 Subject: Compression in TIF files: disk space vs. performance Message-ID: Andreas - If you are using scanned black and white cadastral images, I suggest you do a test with LZW-compressed TIFFs. You may get excellent results. The LZW compression scheme requires that the entire data set be decompressed starting from the beginning in order to decompress any piece of the data. This can cause a performance problem since you may have to decompress the whole image just to get the lower-right corner. However, you can specify that your image use a small number of rows per strip, rather than treat the entire image as one strip. This will make each strip a separate LZW data set, so you will only need to decompress the strips you need rather than the whole image. This will reduce the compression ratio a little bit (making your output image a little larger) but can make it quite a bit faster. You can use geotifcp -c LZW -r 1, for example, to create an LZW-compressed copy of your image with one row per strip; you'll probably find the best results with a small number for -r, but 1 is probably too small. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Andreas Neumann [mailto:neumann at karto.baug.ethz.ch] Sent: Sunday, May 14, 2006 3:48 PM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] Compression in TIF files: disk space vs. performance >Compression will almost always cost you performance. If you have the >unusual situation of having lots of RAM, a fast processor, and a VERY >slow disk system, then it might not cost you performance, but I've >never seen that happen. > > > that's what I thought. Thanks for confirming. >However, if you're out of space, you're out of space! My first >reminder is that disk is inexpensive - and my first suggestion is to >buy more disk space. > > true - we'll probably end up buying more disk >Lossless TIFF compression (Packbits, LZW, etc.) will not cost you much >in performance at all. It is also unlikely to save you much disk space. > > Since our images are originally 1bit b+w it makes a huge difference if we use a lossless compression or not. LZW and packpits compresses very well if you have huge areas of the same color, doesn't it? At least I see a huge difference between filesizes of uncompressed and lzw compressed files. My only concern is that the lzw compressed files will take considerable longer than the uncompressed ones. Is that true? Well, maybe we just have to test ... >You should experiment with your own data, but I have found that it's >unusual to save more than 10% if you're doing lossless compression on >aerial or satellite photos. If your rasters are scanned images of line >art (scanned maps) then you are likely to do much better, but that's >not likely to be the case because it's rare to have a large amount of >such data. > yes, in my case we have "line art" images - they are b+w cadastral map sheets. We don't deal with aerial images. Thanks for the answer, anyway. Andreas -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From armin.burger at GMX.NET Sun May 14 14:46:56 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Sun, 14 May 2006 23:46:56 +0200 Subject: Compression in TIF files: disk space vs. performance In-Reply-To: <4467647C.3030609@karto.baug.ethz.ch> Message-ID: Andreas, I made once quite good experiences with scanned b&w images using the Fax Encoding (CCITT) Group 4 TIFF compression. The images had no overviews, but were also just shown at a scale that was reasonable for the details on them. The compression was typically good, something like 3 to 5 times. Armin Andreas Neumann wrote: > Hello list, > > I have a question on compression in tiff files. > > I read that for best mapserver performance it is recommended to store > tiff files on the server in uncompressed format. We currently have a > disk space problem and need to serve a large number of raster images. Is > there any compression technique that allows to save diskspace while > maintaining a reasonable or good performance? Or is compression not > recommended at all? > > Another question: we need to serve 1bit (b+w) rasterimages that are > delivered as gray/rgb jpegs later because we want to use resampling. > What is the best color depth to store the original images. I noticed > that when keeping them in 1bit color depth one cannot create pyramids > using gdaladdo. Is it better to store them in 1 bit with no pyramids or > in 8bit gray value with pyramids? > > Thank you for any help on my questions, > > All the best, > Andreas > From Steve.Lime at DNR.STATE.MN.US Sun May 14 15:54:07 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 14 May 2006 17:54:07 -0500 Subject: Class Expressions Message-ID: Class expressions are constant across all data providers. MapServer evaluates those internally. Filters, on the other hand, are evaluated by the various providers. The reference documentation is wrong I guess. Steve >>> DjwStone 05/12/06 9:07 AM >>> Oops - just read in the Mapfile Reference 'logical expressions are only available for shapefiles'. Guess it's back to the drawing-board :-( Dave -- View this message in context: http://www.nabble.com/Class-Expressions-t1607707.html#a4358773 Sent from the Mapserver - User forum at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Sun May 14 15:57:50 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 14 May 2006 17:57:50 -0500 Subject: Class Expressions Message-ID: Dave: If these are numbers why are you treating them as strings? Straight string comparison of numbers can be unpredictable. Have you tried removing the quotes? Other options: 1) you can do the classification in PostGIS. Paul Ramsey's workshop materials have some nice examples. 2) MapServer does support true dates in logical expressions. I believe you use backtics to denote dates that way. That said, I think you can just treat 'em as ints. Steve >>> DjwStone 05/12/06 8:52 AM >>> I'm having difficulty setting up an EXPRESSION statement for a PostGIS layer. The field being tested is a numeric representation of a date in YYYYMMDD format so that ranges can be easily compared. When the expression is (say): EXPRESSION ('[fieldname]' ge '15010101') everything works fine; I get the correct number of hits. Similarly, EXPRESSION ('[fieldname]' le '16001231') works as it should. However, when I have: EXPRESSION ('[fieldname]' ge '15010101') and ('[fieldname]' le '16001231') I get no hits although there should be some. Has anyone else had similar problems? Cheers, Dave -- View this message in context: http://www.nabble.com/Class-Expressions-t1607707.html#a4358498 Sent from the Mapserver - User forum at Nabble.com. From warmerdam at POBOX.COM Sun May 14 18:47:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 14 May 2006 21:47:58 -0400 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) In-Reply-To: <44675C32.4080102@home.nl> Message-ID: Huub Fleuren wrote: > Hi List, > > Something changed, but what is it. > > I'm using somthing like the following, so a ODBC datasource for a > OGRVRTLayer with variable substitution for the CONNECTION statement. > This works for me since i first used it in mapserv version 4.2. > > I compiled gdal 1.3.2 as i normally do; with Xerces, 2.7 this time. > > ogrinfo works on a similar ovf file without variable substutution. > > If i get something in the log file (this is not always the case) on this > layer it is: > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported > on ExecuteSQL() results. Huub, Sorry, this is my fault. I improved error propagation in OGR and now this error gets bubbled up to MapServer and terminates rendering of OGR layers. Please file a bug on the issue in the GDAL/OGR bugzilla. This is the same that I was recently discussing Mark Adams, and occured first in GDAL 1.3.2. The error propagation was a good idea, but I didn't anticipate this particular problem with some OGR drivers and MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From hfl at HOME.NL Mon May 15 01:17:12 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Mon, 15 May 2006 10:17:12 +0200 Subject: Variable substutition on CONNECTIONTYPE OGR CONNECTION OGRVRTDatasource (odbc) In-Reply-To: <4467DDCE.6040204@pobox.com> Message-ID: Created bug 1779. It includes an attachment showing messages in GIF output. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1779 Frank Warmerdam wrote: > I improved error propagation in OGR and now > this error gets bubbled up to MapServer and terminates rendering of OGR > layers. Please file a bug on the issue in the GDAL/OGR bugzilla. This > is the same that I was recently discussing Mark Adams, and occured first > in GDAL 1.3.2. The error propagation was a good idea, but I didn't > anticipate this particular problem with some OGR drivers and MapServer. > > Best regards, From fsozzi at INTERCAD.CH Mon May 15 01:33:15 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 15 May 2006 10:33:15 +0200 Subject: "Click to activate and use this control" on JBox Message-ID: Hi All, I'm using JBox with Mapserever. In the new MS Internet Explorer version, user must click on JBox control before using it (everitime, after every refresh). When user drag mouse over JBox, IE shows a tooltip: "Click to activate and use this control". Are there any workaround for that? Best regards Francesco Sozzi -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Mon May 15 01:37:31 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 15 May 2006 10:37:31 +0200 Subject: "Click to activate and use this control" on JBox In-Reply-To: <004501c677fa$36095b30$2d01a8c0@newsviluppo> Message-ID: Francesco Sozzi wrote: > In the new MS Internet Explorer version, user must click on JBox control > before using it (everitime, after every refresh). > When user drag mouse over JBox, IE shows a tooltip: "Click to activate > and use this control". > > Are there any workaround for that? Here you can read all about it: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp -- Jelmer From listario at GMAIL.COM Mon May 15 02:25:13 2006 From: listario at GMAIL.COM (J. Parapar) Date: Mon, 15 May 2006 11:25:13 +0200 Subject: dBox alpha In-Reply-To: Message-ID: Thank you very much for the work. Yes, It will be useful for us. Best regards, Jorge 2006/5/10, Steve Lime : > Hi folks: We've taken the time to clean up and document the code behind the Landview application that folks might be familiar with and have an "alpha" release available. You can get at it at: > > http://maps.dnr.state.mn.us/tools/dbox > > The code itself is in good shape and much of it has been in production use for years. The packaging, install instructions and such are brand new so bear with us. > > Anyway, the distribution comes with an example interface using the Itasca data from one of the main demos. You can see it running on our servers at: > > http://maps.dnr.state.mn.us/tools/dbox/example/example.html > > Hopefully someone will find this useful... > > Steve > > From hfl at HOME.NL Mon May 15 04:10:55 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Mon, 15 May 2006 13:10:55 +0200 Subject: cURL cannot resolve HOSTNAME In-Reply-To: <446352AE.1010909@home.nl> Message-ID: Hi List. Mapserver 4.8.3 with libcurl-7.15.0 solved this issue (sticking to gdal 1.3.0). The info is in nmake.opt of the 4.8.3 sources. I got hold of the binary distribution thru john (from buildkit supposedly), but it cannot be downloaded anymore from curl (7.15.3). Maybe that goes too. Regards,Huub Huub Fleuren wrote: > Hi List, > > I was wondering what is the recommended version of the cURL library > for any mapserver build > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling/?searchterm=curl, > does not provide the information > > i read http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1504#c4 > and i thought, if mapserver isn't adapted to some issue here, what is > the recommended version? > > > The error i got on a server is mapserver 4.8 rc-1 with libcurl.dll > version 7.11.1.0 > The same library on the same hosting server worked (and still works!) > for mapserver 4.5 > > > from mapserver.log > > Thu May 11 15:50:17 2006 - msHTTPExecuteRequests(): HTTP request error. > HTTP: request failed with curl error code 6 () for > http://anwb.geodan.nl/sld/91.xml > > that is: http://curl.haxx.se/libcurl/c/libcurl-errors.html > > CURLE_COULDNT_RESOLVE_HOST (6) > > Couldn't resolve host. The given remote host was not resolved. > > > Regards, Huub > From fsozzi at INTERCAD.CH Mon May 15 04:23:13 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 15 May 2006 13:23:13 +0200 Subject: "Click to activate and use this control" on JBox Message-ID: Thank you Jelmer, this solves my problem (now I'm using document.write() in a JScript function to load applet) Regards Francesco ----- Original Message ----- From: "Jelmer Baas" To: Sent: Monday, May 15, 2006 10:37 AM Subject: Re: [UMN_MAPSERVER-USERS] "Click to activate and use this control" on JBox > Francesco Sozzi wrote: >> In the new MS Internet Explorer version, user must click on JBox control >> before using it (everitime, after every refresh). >> When user drag mouse over JBox, IE shows a tooltip: "Click to activate >> and use this control". >> Are there any workaround for that? > > Here you can read all about it: > > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp > > -- > Jelmer > From porath at WEB.DE Mon May 15 04:54:07 2006 From: porath at WEB.DE (H. Porath) Date: Mon, 15 May 2006 13:54:07 +0200 Subject: Missing FeatureMember with Oracle Spatial Message-ID: Hello list, i am using Mapserver 4.6.3 with Oraclespatial native support and have setup a WFS. The problem is that i do not get FeatureMembers for a WFS GetFeature Request. Here is how my Layer definition looks like: LAYER NAME flst METADATA "wfs_title" "flst" "gml_include_items" "all" "wfs_extent" "3400000.000000 5400000.000000 3600000.000000 5800000.000000" END DUMP TRUE CONNECTIONTYPE oraclespatial CONNECTION "user/pass at LIKA_LIKAENTW.WORLD" DATA "fs_koordinate from os_flst USING VERSION 9i" TYPE POINT STATUS ON CLASS NAME "referenz" STYLE SYMBOL "punkt" SIZE 2 COLOR 000 200 050 END # style END # class END # layer The result of a getfeature only presents the bounding box coordinates. The result of a describefeature also includes additional elements which should result in featuremembers. I have seen that the mapserver bug 1608 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1608) references to a similar problem but this is still an open issue. I am working with solaris and mrsid and i had many problems compiling GDAL/OGR. I do not want to recompile it with oracle spatial support. My question is: Is it really a bug or am i doing something wrong? Thanks in advance. Holger _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From hydromap at GMAIL.COM Mon May 15 07:13:20 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Tue, 16 May 2006 00:13:20 +1000 Subject: PHP5 and Mapscript Message-ID: Just a quick check to ask are there any unresolved issues with PHP5 and mapscript or with FastCGI and php-mapscript? While running ka-map (written in php-mapscript) on lighttp I get some error messages in the log files: 2006-05-15 22:46:13: (mod_fastcgi.c.3302) response not received, request sent: 1012 connection-fd: 6 fcgi-fd: 9 2006-05-15 22:47:59: (mod_fastcgi.c.2393) unexpected end-of-file (perhaps the fastcgi process died): pid: 17572 socket: host: 127.0.0.1 port: 1029 Is there anyone else out there using php5 + lighty + mapscript? Thanks shoaib From zhonghaiw at GMAIL.COM Mon May 15 07:15:49 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 15 May 2006 16:15:49 +0200 Subject: how to speed up MapServer performance? Message-ID: Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? Zhonghai -- Freiestrasse 3097 Liebefeld -------------- next part -------------- An HTML attachment was scrubbed... URL: From hydromap at GMAIL.COM Mon May 15 08:11:14 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Tue, 16 May 2006 01:11:14 +1000 Subject: PHP5 and Mapscript In-Reply-To: <60c6835d0605150713n44022c7s276da62f4a41befd@mail.gmail.com> Message-ID: ok it appears the problem's dissappeared after I added "extension=mapscript.so" /etc/php/cli-php5/php.ini /etc/php/cgi-php5/php.ini On 5/16/06, Shoaib Burq wrote: > Just a quick check to ask are there any unresolved issues with PHP5 > and mapscript or with FastCGI and php-mapscript? > > While running ka-map (written in php-mapscript) on lighttp I get some > error messages in the log files: > > 2006-05-15 22:46:13: (mod_fastcgi.c.3302) response not received, > request sent: 1012 connection-fd: 6 fcgi-fd: 9 > 2006-05-15 22:47:59: (mod_fastcgi.c.2393) unexpected end-of-file > (perhaps the fastcgi process died): pid: 17572 socket: host: > 127.0.0.1 port: 1029 > > Is there anyone else out there using php5 + lighty + mapscript? > > Thanks > shoaib > From dmorissette at MAPGEARS.COM Mon May 15 09:36:57 2006 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 15 May 2006 12:36:57 -0400 Subject: MapServer with MapInfo (WFS) In-Reply-To: <4459F94C.6050405@pobox.com> Message-ID: Frank Warmerdam wrote: > Rahkonen Jukka wrote: > >> Now Cadcorp client is getting the WFS layer OK when in GET mode. If >> POST is >> selected, it gives the following error message: Invalid document >> structure >> at line 1, column 1 in file http://localhost:8060/cgi-bin/mywfs.exe?. >> deeJUMP is using POST and it can not connect to my Mapserver, perhaps for >> the same reason. > > > Jukka, > > Once again, if you can isolate this to a problem we can reproduce with > mapserver on the commandline I am willing to dig into it. Discussion of > various possibly related problems would be appropriate for the bug report > as well, but I'm primarily interested in a post dataset and conditions > that triggers the problem in isolation. > In case anyone is interested, this has been fixed in 4.9 and will likely be backported to 4.8: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1768 Daniel -- Daniel Morissette http://www.mapgears.com/ From woodbri at SWOODBRIDGE.COM Mon May 15 10:02:03 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 15 May 2006 13:02:03 -0400 Subject: how to speed up MapServer performance? In-Reply-To: <2534c4120605150715h4e1d30benf67e855a701e740b@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi there, > > for a special purpose I've developed an static version application based > on MapServer CGI, which means I just use pure HTML tages for the GUI, > even without JavaScript code snippets to validate forms. > > I have about 20 map layers to display according to different map scale > (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data > classifications within a layer object, the status of all layers are set > as default. > > I've made a test on a standalone MapServer (XP system), every request > takes about 3 second. Obvioursly it's not fast enough for a web > application, since there may be many users requesting the server at the > same time if the application is published on the web. > > Is MapServer really so slow? can anybody give me some ideas?should I > modify the mapfiles? > > I am wondering whether the following solutions will work: > 1. define every layer as a seperate mapfile, and combine them together > by request > 2. turn off the non-displayed layers off on the fly > > are these possible to speed up MapServer performance? > Zhonghai > -- > Freiestrasse > 3097 Liebefeld Make sure ALL *.shp have a *.qix file using shptree .shp on Linux you can run: find /path/to/data -name "*.shp" -exec shptree {} \; and that will do it, on Windows you are on your own :) -Steve W. From Steve.Lime at DNR.STATE.MN.US Mon May 15 10:04:05 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 15 May 2006 12:04:05 -0500 Subject: dBox alpha Message-ID: Hey Brent: First, the fishing. Caught one walleye and promptly performed at an involuntary catch and release. Bounced the sucker rigth of the pontoon floor... Anyway, to answer your questions: 1) No, I've not tried using dbox with absolutely positioned anchors. The use of relatively positioned anchors was done in the first place to deal with browser problems reporting the pixel coordinates of the upper left-hand corner of absolutely positioned elements. That's why you always see framed interfaces where the map can be positioned in the upper left-hand corner. I'll have to set up a test to learn more. (Let me know if you find anything...) 2) It's still there. Instead of distributing a full verion of the X library we built a custom one that contains just what we need. Steve >>> "Brent Lund" 5/12/2006 3:07 PM >>> Steve, 1) Have you used the dbox toolkit in conjunction with things like position: absolute and z-index:2 ...? When I added these to my html/css, I found that firefox got messed up (mouseover etc did not work), IE kind of works - (mouseover worked and able to zoom in, but box not drawn when selecting zoom area). I know that dbox and dcontainer set position to absolute, so there is a conflict between the scripts and my stylesheet. I'm currently picking through the scripts to see what I can figure out - any suggestions? 2) What happened to the cross-browsers.com stuff (just curious)? Catch a big walleye, Brent -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Steve Lime Sent: Wednesday, May 10, 2006 3:05 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] dBox alpha Hi folks: We've taken the time to clean up and document the code behind the Landview application that folks might be familiar with and have an "alpha" release available. You can get at it at: http://maps.dnr.state.mn.us/tools/dbox The code itself is in good shape and much of it has been in production use for years. The packaging, install instructions and such are brand new so bear with us. Anyway, the distribution comes with an example interface using the Itasca data from one of the main demos. You can see it running on our servers at: http://maps.dnr.state.mn.us/tools/dbox/example/example.html Hopefully someone will find this useful... Steve From punkish at EIDESIS.ORG Mon May 15 10:09:17 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 15 May 2006 12:09:17 -0500 Subject: how to speed up MapServer performance? In-Reply-To: <4468B40B.8020100@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Zhonghai Wang wrote: >> Hi there, .. >> >> Is MapServer really so slow? can anybody give me some ideas?should I >> modify the mapfiles? .. > > > Make sure ALL *.shp have a *.qix file using shptree .shp > on Linux you can run: > find /path/to/data -name "*.shp" -exec shptree {} \; > and that will do it, on Windows you are on your own :) Install cygwin, and it will give you access to Unix-like "find" and other valuable utilities. From jmckenna at DMSOLUTIONS.CA Mon May 15 10:10:25 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 15 May 2006 13:10:25 -0400 Subject: how to speed up MapServer performance? In-Reply-To: <4468B40B.8020100@swoodbridge.com> Message-ID: both windows and linux commands are listed here: http://mapserver.gis.umn.edu/docs/reference/utilityreference/batch_utilities jeff Stephen Woodbridge wrote:> > Make sure ALL *.shp have a *.qix file using shptree .shp > on Linux you can run: > find /path/to/data -name "*.shp" -exec shptree {} \; > and that will do it, on Windows you are on your own :) > > -Steve W. > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From mauro_0211 at YAHOO.COM Mon May 15 10:29:25 2006 From: mauro_0211 at YAHOO.COM (Andres Mauricio Ramirez) Date: Mon, 15 May 2006 12:29:25 -0500 Subject: Problems with example 1.9 Message-ID: Hi list, I am trying to do the mapserver tutorial but I have had problems with the example 1.9, I have the next html code: Ejem1_9

The first part, mode map or mode static works fine, the image is showed, but the second part doesn't work, the image is not showed. And when I click on image missed it bring me the next error: msEvalRegex(): Regular expression error. String ([map]) failed expression test. I don't know what happen, please help me, I thought that problems was Fedora core 4 and I changed to windows, in both I have the same problem. Regards, Mauricio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Mon May 15 04:52:17 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 15 May 2006 13:52:17 +0200 Subject: Missing FeatureMember with Oracle Spati al Message-ID: Have you tried using USING UNIQUE [primary_key] in your DATA statement? See the Oracle Spatial HOWTO for details. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens H. Porath Verzonden: maandag 15 mei 2006 13:54 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spatial Hello list, i am using Mapserver 4.6.3 with Oraclespatial native support and have setup a WFS. The problem is that i do not get FeatureMembers for a WFS GetFeature Request. Here is how my Layer definition looks like: LAYER NAME flst METADATA "wfs_title" "flst" "gml_include_items" "all" "wfs_extent" "3400000.000000 5400000.000000 3600000.000000 5800000.000000" END DUMP TRUE CONNECTIONTYPE oraclespatial CONNECTION "user/pass at LIKA_LIKAENTW.WORLD" DATA "fs_koordinate from os_flst USING VERSION 9i" TYPE POINT STATUS ON CLASS NAME "referenz" STYLE SYMBOL "punkt" SIZE 2 COLOR 000 200 050 END # style END # class END # layer The result of a getfeature only presents the bounding box coordinates. The result of a describefeature also includes additional elements which should result in featuremembers. I have seen that the mapserver bug 1608 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1608) references to a similar problem but this is still an open issue. I am working with solaris and mrsid and i had many problems compiling GDAL/OGR. I do not want to recompile it with oracle spatial support. My question is: Is it really a bug or am i doing something wrong? Thanks in advance. Holger _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon May 15 12:21:03 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 15 May 2006 14:21:03 -0500 Subject: how to speed up MapServer performance? Message-ID: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? Zhonghai -- Freiestrasse 3097 Liebefeld From warmerdam at POBOX.COM Mon May 15 12:23:16 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 15 May 2006 15:23:16 -0400 Subject: error 1 on virtual point layer In-Reply-To: <49B9846C39F25A4FA901064970861610425574@mhk-ex1.ad.dpra.com> Message-ID: Mark Adams wrote: > Frank, what configuration details do you need to know? > > We're using IIS on Windows 2003 server, Oracle 9.x client, 9.2 database > on a 2003 server. > We're using sde, shapefiles, virtual points and virtual polygons via ogr > OVF configuration, geotiff display and output. > We need support for proj, geos, wms client, and fastcgi. > Mark, The problem with "SetAttributeFilter() not supported" has been submitted via bugzilla at: http://bugzilla.remotesensing.org/show_bug.cgi?id=1070 And I have today corrected the problem in GDAL/OGR CVS. I'm not sure how we will percolate this through to your binaries. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From hartpence_gis at CO.JASPER.IA.US Mon May 15 13:04:13 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Mon, 15 May 2006 15:04:13 -0500 Subject: New Dbox Example In-Reply-To: Message-ID: Thanks to those who responded to my question about trying to implement the dBox tools in a MS4W environment. I am still stumped. I am not very proficient in javaScript or MapServer. Would anyone be willing to send me an example of a simple HTML document which only has the main map frame and maybe a rubberband zoom tool? Sorting through "example.html" I have been able to figure out the reference image, but the main map image never comes up. Thanks for your help and patience. Lawrence From David.Fawcett at STATE.MN.US Mon May 15 13:18:33 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 15 May 2006 15:18:33 -0500 Subject: New Dbox Example Message-ID: Lawrence, Do the scalebars below the main map image come up? If you just see broken image links there, right click on the images and 'view image' You will likely see a MSLoadMap error that may give you clues to why your application isn't working. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence Sent: Monday, May 15, 2006 3:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New Dbox Example Thanks to those who responded to my question about trying to implement the dBox tools in a MS4W environment. I am still stumped. I am not very proficient in javaScript or MapServer. Would anyone be willing to send me an example of a simple HTML document which only has the main map frame and maybe a rubberband zoom tool? Sorting through "example.html" I have been able to figure out the reference image, but the main map image never comes up. Thanks for your help and patience. Lawrence From hartpence_gis at CO.JASPER.IA.US Mon May 15 13:51:15 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Mon, 15 May 2006 15:51:15 -0500 Subject: New Dbox Example In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5FB0613@s-sp22.pca.state.mn.us> Message-ID: David, Thanks for the insight. I changed the backslashes to forward slashes in the reference to the location to the mapfile and that brought the scalebars up, but still no image for the main map. Lawrence From neumann at KARTO.BAUG.ETHZ.CH Mon May 15 13:54:56 2006 From: neumann at KARTO.BAUG.ETHZ.CH (Andreas Neumann) Date: Mon, 15 May 2006 22:54:56 +0200 Subject: Compression in TIF files: disk space vs. performance In-Reply-To: <4467A550.1010700@gmx.net> Message-ID: Thank you Ed and Armin for your suggestions. I will give a try and report how it works. Sounds reasonable to compress a number of lines or tiles rather than the whole image at once. Thanks, Andreas Armin Burger wrote: > Andreas, > > I made once quite good experiences with scanned b&w images using the > Fax Encoding (CCITT) Group 4 TIFF compression. The images had no > overviews, but were also just shown at a scale that was reasonable for > the details on them. The compression was typically good, something > like 3 to 5 times. > > Armin > > Andreas Neumann wrote: > >> Hello list, >> >> I have a question on compression in tiff files. >> >> I read that for best mapserver performance it is recommended to store >> tiff files on the server in uncompressed format. We currently have a >> disk space problem and need to serve a large number of raster images. >> Is there any compression technique that allows to save diskspace >> while maintaining a reasonable or good performance? Or is compression >> not recommended at all? >> >> Another question: we need to serve 1bit (b+w) rasterimages that are >> delivered as gray/rgb jpegs later because we want to use resampling. >> What is the best color depth to store the original images. I noticed >> that when keeping them in 1bit color depth one cannot create pyramids >> using gdaladdo. Is it better to store them in 1 bit with no pyramids >> or in 8bit gray value with pyramids? >> >> Thank you for any help on my questions, >> >> All the best, >> Andreas >> -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann at karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ From David.Fawcett at STATE.MN.US Mon May 15 14:00:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 15 May 2006 16:00:42 -0500 Subject: New Dbox Example Message-ID: When you hit example.html for the first time, the image is 'broken'. What happens if you zoom in or pan the image? If you get a valid image, the issue is most likely with your legend. You likely have an issue with the location of the provided python or perl scripts, or you don't have mapscript installed, or you don't have the paths to the legend executable correct, or you do not have execute rights set for the scripts.... Or, maybe it is something else.... David. -----Original Message----- From: Lawrence Hartpence [mailto:hartpence_gis at co.jasper.ia.us] Sent: Monday, May 15, 2006 3:51 PM To: 'Fawcett, David'; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] New Dbox Example David, Thanks for the insight. I changed the backslashes to forward slashes in the reference to the location to the mapfile and that brought the scalebars up, but still no image for the main map. Lawrence From naci0002 at UMN.EDU Mon May 15 14:19:23 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 15 May 2006 16:19:23 -0500 Subject: Problems with example 1.9 In-Reply-To: <20060515172925.29929.qmail@web36705.mail.mud.yahoo.com> Message-ID: This happens because you're calling example 1.9 as a static page. It isn't. Go back to the online tutorial and see how example 1.9 is called: http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis It's not http://hypnos.cbs.umn.edu/tutorial/example1-9.html. The file example1-9.html is an example of MapServer's HTML template. Try calling your Example 1.9 again with this URL: http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/comunas/comunas1_9.map&layer=comunas -Perry Andres Mauricio Ramirez wrote: > Hi list, > > I am trying to do the mapserver tutorial but I have had problems with > the example 1.9, I have the next html code: > > > Ejem1_9 > > src="/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/comunas/comunas1_9.map&layer=comunas&mode=map" > > > >
> > > > > > >
> > > >
>
> The first part, mode map or mode static works fine, the image is showed, > but the second part doesn't work, the image is not showed. And when I > click on image missed it bring me the next error: > > msEvalRegex(): Regular expression error. String ([map]) failed > expression test. > > I don't know what happen, please help me, I thought that problems was > Fedora core 4 and I changed to windows, in both I have the same problem. > > Regards, > > Mauricio > > __________________________________________________ > Correo Yahoo! > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > Reg?strate ya - http://correo.espanol.yahoo.com/ > From karrarm at YAHOO.COM Mon May 15 16:49:32 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Mon, 15 May 2006 16:49:32 -0700 Subject: Anti Aliasing Message-ID: Hi, I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not see any difference in the map that's displayed. I was hoping to see smooth lines but there was no difference in the way lines(representing roads) are drawn with or without anti-aliasing. Is this the expected behavior? How can I get smooth lines? My layer is defined as follows: LAYER NAME roads DATA droad1 STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASS NAME "Roads" MAXSCALE 80000 MINSCALE 20000 STYLE ANTIALIAS TRUE COLOR 150 150 150 WIDTH 3 END STYLE ANTIALIAS TRUE COLOR 255 255 255 WIDTH 1 END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Mon May 15 17:50:49 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 15 May 2006 19:50:49 -0500 Subject: Anti Aliasing Message-ID: You need a couple of other things: - a 24-bit output format (e.g. IMAGETYPE PNG24) - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) That should get it working... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> ramesh karra 05/15/06 6:49 PM >>> Hi, I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not see any difference in the map that's displayed. I was hoping to see smooth lines but there was no difference in the way lines(representing roads) are drawn with or without anti-aliasing. Is this the expected behavior? How can I get smooth lines? My layer is defined as follows: LAYER NAME roads DATA droad1 STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASS NAME "Roads" MAXSCALE 80000 MINSCALE 20000 STYLE ANTIALIAS TRUE COLOR 150 150 150 WIDTH 3 END STYLE ANTIALIAS TRUE COLOR 255 255 255 WIDTH 1 END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Jacob.Delfos at MAUNSELL.COM Mon May 15 23:17:11 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 16 May 2006 14:17:11 +0800 Subject: angleitem for vector symbols Message-ID: Hi List, Do I understand correctly from this bug that php_mapscript 4.8.1 supports the rotation of point vector symbols using ANGLEITEM ? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=533 I am using the binaries from the php_mapscript website (maptools.org), but as soon as I try to use ANGLEITEM, the whole layer does not draw. My symbol is a simple triangle. I have tried using with/without fill, with/without antialias, but there is no difference... Does anyone know what could be wrong? Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com From zhonghaiw at GMAIL.COM Tue May 16 01:09:07 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 10:09:07 +0200 Subject: how to speed up MapServer performance? In-Reply-To: Message-ID: Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime wrote: > > We really need more information about the nature of the data. I mean if > you've got > 20 layers each with a million polygons and are trying to show all of them > then 3 seconds > might be really fast! Also, the way you are symbolizing features may > impact things. > > In my experience neither 1 or 2 is worth considering... > > Steve > > Steve > > >>> Zhonghai Wang 5/15/2006 9:15:49 AM >>> > Hi there, > > for a special purpose I've developed an static version application based > on > MapServer CGI, which means I just use pure HTML tages for the GUI, even > without JavaScript code snippets to validate forms. > > I have about 20 map layers to display according to different map scale > (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data > classifications within a layer object, the status of all layers are set as > default. > > I've made a test on a standalone MapServer (XP system), every request > takes > about 3 second. Obvioursly it's not fast enough for a web application, > since > there may be many users requesting the server at the same time if the > application is published on the web. > > Is MapServer really so slow? can anybody give me some ideas?should I > modify > the mapfiles? > > I am wondering whether the following solutions will work: > 1. define every layer as a seperate mapfile, and combine them together by > request > 2. turn off the non-displayed layers off on the fly > > are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue May 16 01:13:32 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 10:13:32 +0200 Subject: Anti Aliasing In-Reply-To: <20060515234932.60480.qmail@web35705.mail.mud.yahoo.com> Message-ID: Hi, I am interested in this question, and I've tried like this: ***** OUTPUTFORMAT NAME "PNG" MIMETYPE "image/PNG" DRIVER "GD/PNG" EXTENSION "PNG" IMAGEMODE RGBA TRANSPARENCY ALPHA END ***** I've noticed that there is no PNG24 output image format in the mapfile reference document, and therefore I've used PNG. but, I get the followig error message: loadOutputFormat(): Unknown identifier. Parsing error near (TRANSPARENCY):(line 114) which means I caon only use TRANSPARENT as the the identifier as listed in the mapfile reference document, and this parameter can only be truned on or off. any further ideas, Steve? 1000 thanks. zhonghai On 5/16/06, ramesh karra wrote: > > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but there > was no difference in the way lines(representing roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Tue May 16 01:21:11 2006 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 16 May 2006 16:21:11 +0800 Subject: Anti Aliasing Message-ID: Zhonghai, PNG is 8bit, PNG24 is 24bit colour, with an 8bit transparency. So for the ALPHA option, I think you need PNG24. Try this definition: OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA END Then put: TRANSPARENCY ALPHA in your layer definition (not in OUTPUTFORMAT). regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zhonghai Wang Sent: 16 May 2006 16:14 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing Hi, I am interested in this question, and I've tried like this: ***** OUTPUTFORMAT NAME "PNG" MIMETYPE "image/PNG" DRIVER "GD/PNG" EXTENSION "PNG" IMAGEMODE RGBA TRANSPARENCY ALPHA END ***** I've noticed that there is no PNG24 output image format in the mapfile reference document, and therefore I've used PNG. but, I get the followig error message: loadOutputFormat(): Unknown identifier. Parsing error near (TRANSPARENCY):(line 114) which means I caon only use TRANSPARENT as the the identifier as listed in the mapfile reference document, and this parameter can only be truned on or off. any further ideas, Steve? 1000 thanks. zhonghai On 5/16/06, ramesh karra wrote: Hi, I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not see any difference in the map that's displayed. I was hoping to see smooth lines but there was no difference in the way lines(representing roads) are drawn with or without anti-aliasing. Is this the expected behavior? How can I get smooth lines? My layer is defined as follows: LAYER NAME roads DATA droad1 STATUS OFF TYPE LINE PROJECTION "init=epsg:4326" END CLASS NAME "Roads" MAXSCALE 80000 MINSCALE 20000 STYLE ANTIALIAS TRUE COLOR 150 150 150 WIDTH 3 END STYLE ANTIALIAS TRUE COLOR 255 255 255 WIDTH 1 END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From porath at WEB.DE Tue May 16 00:30:59 2006 From: porath at WEB.DE (H. Porath) Date: Tue, 16 May 2006 09:30:59 +0200 Subject: Missing FeatureMember with Oracle Spati al Message-ID: Hi Bart, yes, i added a new primary key to my table because the original primary key spans over four columns and i didn't know how to use the UNIQUE statement with more than one primary key column. Anyway, it didn't help so i removed it. Thanks for thinking about my problem. Regards, Holger -----Urspr?ngliche Nachricht----- Von: "Eijnden, B. van den (Bart)" Gesendet: 15.05.06 19:54:03 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al Have you tried using USING UNIQUE [primary_key] in your DATA statement? See the Oracle Spatial HOWTO for details. Best regards, Bart _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From zhonghaiw at GMAIL.COM Tue May 16 01:42:25 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 10:42:25 +0200 Subject: Anti Aliasing In-Reply-To: <4997F456680DAD4DA1E042C40C4636114270D6@auper1ex002.au.aecomnet.com> Message-ID: Hi, Jacob, you mean like this: *****output format: OUTPUTFORMAT NAME "PNG24" MIMETYPE "image/PNG" DRIVER "GD/PNG" EXTENSION "PNG" IMAGEMODE RGBA #TRANSPARENT ON #TRANSPARENCY ALPHA END ******layer definition: LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 TRANSPARENCY ALPHA PROJECTION "init=epsg:4326" END CLASS NAME "railway" STYLE SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 ANTIALIAS TRUE END STYLE SYMBOL "dashedline" COLOR 255 255 255 SIZE 3 MINSIZE 0 MAXSIZE 3 ANTIALIAS TRUE END END ** if all the definition is right, this function does not really make the output image nicer. and I've noticed that ANTIALIAS TRUE/FALSE is only useful for truetype font, but not for line features, which means only for truetype font symbols. or Did I do anything wrong? On 5/16/06, Delfos, Jacob wrote: > > Zhonghai, > > PNG is 8bit, PNG24 is 24bit colour, with an 8bit transparency. So for > the ALPHA option, I think you need PNG24. Try this definition: > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE RGBA > END > > Then put: > > TRANSPARENCY ALPHA > > in your layer definition (not in OUTPUTFORMAT). > > regards, > > Jacob > > > > ________________________________ > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Zhonghai Wang > Sent: 16 May 2006 16:14 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing > > > Hi, > > I am interested in this question, and I've tried like this: > > ***** > OUTPUTFORMAT > NAME "PNG" > MIMETYPE "image/PNG" > DRIVER "GD/PNG" > EXTENSION "PNG" > IMAGEMODE RGBA > TRANSPARENCY ALPHA > END > ***** > I've noticed that there is no PNG24 output image format in the > mapfile reference document, and therefore I've used PNG. > > but, I get the followig error message: > > loadOutputFormat(): Unknown identifier. Parsing error near > (TRANSPARENCY):(line 114) > > which means I caon only use TRANSPARENT as the the identifier as > listed in the mapfile reference document, and this parameter can only be > truned on or off. > > any further ideas, Steve? > > 1000 thanks. > > zhonghai > > > On 5/16/06, ramesh karra wrote: > > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but there > was no difference in the way lines(representing roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection > around > http://mail.yahoo.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schut at SARVISION.NL Tue May 16 02:28:05 2006 From: schut at SARVISION.NL (Vincent Schut) Date: Tue, 16 May 2006 11:28:05 +0200 Subject: Anti Aliasing In-Reply-To: Message-ID: Steve Lime wrote: > You need a couple of other things: > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) > > That should get it working... To chime in: But what if I want to have antialiasing *and* semi-transparency? How would I define e.g. a opacity of 60 when I already have 'transparency alpha' in my layer? Vincent. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 >>>> ramesh karra 05/15/06 6:49 PM >>> > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but there > was no difference in the way lines(representing roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From zhonghaiw at GMAIL.COM Tue May 16 03:21:13 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 12:21:13 +0200 Subject: Anti Aliasing In-Reply-To: <44699B25.3070602@sarvision.nl> Message-ID: Hi Vincent, have you got a nice map image with the ANTIALIAS TRUE ? if so , can you give me a clue how to do that? On 5/16/06, Vincent Schut wrote: > > Steve Lime wrote: > > You need a couple of other things: > > > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > > - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) > > > > That should get it working... > > To chime in: > But what if I want to have antialiasing *and* semi-transparency? How > would I define e.g. a opacity of 60 when I already have 'transparency > alpha' in my layer? > > Vincent. > > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-259-5473 > >>>> ramesh karra 05/15/06 6:49 PM >>> > > Hi, > > > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > > but I do not see any difference in the map that's > > displayed. I was hoping to see smooth lines but there > > was no difference in the way lines(representing roads) > > are drawn with or without anti-aliasing. Is this the > > expected behavior? How can I get smooth lines? > > > > My layer is defined as follows: > > > > LAYER > > NAME roads > > DATA droad1 > > STATUS OFF > > TYPE LINE > > > > PROJECTION > > "init=epsg:4326" > > END > > > > CLASS > > NAME "Roads" > > MAXSCALE 80000 > > MINSCALE 20000 > > STYLE > > ANTIALIAS TRUE > > COLOR 150 150 150 > > WIDTH 3 > > END > > STYLE > > ANTIALIAS TRUE > > COLOR 255 255 255 > > WIDTH 1 > > END > > END > > END > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Tue May 16 03:08:40 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 16 May 2006 12:08:40 +0200 Subject: Problem with Mapserver Virtual Spatial Data (ogr) Message-ID: Hello, first of all sorry for cross posting, but I've got no idea where I have to search the mistake so I post it to the GDAL and the Mapserver Mailinglist. I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a PostgreSQL-Database (no PostGIS!). So the connection to the data is over "Virtual Spatial Data". The getCapabilities and DescribeFeatureType request both work very well. Only the GML-Document getting with the getFeature request is not correct. The number of features in the GML-Document are correct too every time, but the features are not in the Bounding Box. The features in the GML-Document are always the feature which are on the top of the table they come from. Only the number of feature is correct. The MBR (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the correct one. So it don't fit to the features in the document. Testing the connection with "ogrinfo" and a Boundig-Box is working correct. If I'm trying to make a WMS-Server with the same Data and the same OGR-file it works very well. So here is my Mapfile: MAP NAME WFS_Server STATUS ON WEB METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME myWFS METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "test.ovf" PROJECTION "init=EPSG:4326" END DUMP TRUE END END and the OGR-File test.ovf: PG:host=192.168.5.86 user=cwilmes dbname=rosoapcw password=xxx feature wkbPoint EPSG:4326 Here is a URL which I used for testing the WFS getFeature-Request: http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&&BBox=9.98,7.98,10,8 ....and here is the result: - - - 9.980700,7.984220 9.997500,7.995010 - - - - 9.682230,7.653260 9.682230,7.653260 - - 9.682230,7.653260 16 - - - - 9.768800,7.835870 9.768800,7.835870 - - 9.768800,7.835870 17 - - - - 9.296530,7.426330 9.296530,7.426330 - - 9.296530,7.426330 18 - - - - 9.111500,7.645390 9.111500,7.645390 - - 9.111500,7.645390 20 I will be very thankful for every idea where the mistake could! Please excuse my bad english! Best Regards Christian -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From C.Wilmes at GMX.DE Tue May 16 03:28:58 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 16 May 2006 12:28:58 +0200 Subject: getFeature: Results are not correct Message-ID: Hello, first of all sorry for cross posting, but I've got no idea where I have to search the mistake so I post it to the GDAL and the Mapserver Mailinglist. I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a PostgreSQL-Database (no PostGIS!). So the connection to the data is over "Virtual Spatial Data". The getCapabilities and DescribeFeatureType request both work very well. Only the GML-Document getting with the getFeature request is not correct. The number of features in the GML-Document are correct too every time, but the features are not in the Bounding Box. The features in the GML-Document are always the feature which are on the top of the table they come from. Only the number of feature is correct. The MBR (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the correct one. So it don't fit to the features in the document. Testing the connection with "ogrinfo" and a Boundig-Box is working correct. If I'm trying to make a WMS-Server with the same Data and the same OGR-file it works very well. So here is my Mapfile: MAP NAME WFS_Server STATUS ON WEB METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME myWFS METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "test.ovf" PROJECTION "init=EPSG:4326" END DUMP TRUE END END and the OGR-File test.ovf: PG:host=192.168.5.86 user=cwilmes dbname=rosoapcw password=xxx feature wkbPoint EPSG:4326 Here is a URL which I used for testing the WFS getFeature-Request: http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&&BBox=9.98,7.98,10,8 ....and here is the result: - - - 9.980700,7.984220 9.997500,7.995010 - - - - 9.682230,7.653260 9.682230,7.653260 - - 9.682230,7.653260 16 - - - - 9.768800,7.835870 9.768800,7.835870 - - 9.768800,7.835870 17 - - - - 9.296530,7.426330 9.296530,7.426330 - - 9.296530,7.426330 18 - - - - 9.111500,7.645390 9.111500,7.645390 - - 9.111500,7.645390 20 I will be very thankful for every idea where the mistake could! Please excuse my bad english! Best Regards Christian -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- Mobile Internet - E-Mail und Internet immer und ?berall! GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb From schut at SARVISION.NL Tue May 16 03:46:51 2006 From: schut at SARVISION.NL (Vincent Schut) Date: Tue, 16 May 2006 12:46:51 +0200 Subject: Anti Aliasing In-Reply-To: <2534c4120605160321n739d3967hb34681b7b5114b81@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi Vincent, > > have you got a nice map image with the ANTIALIAS TRUE ? > > if so , can you give me a clue how to do that? > Unfortunately not, that's why I'm asking these questions... I was experimenting with antialiasing, but kept getting segmentation faults or premature end of script errors in my apache logs. But I did not put the 'transparency alpha' in my map laysers, because most of my layers for which I wanted aa are currently semitransparent polygons... I'll experiment with the transparency alpha thing later and post to the list if it worked. Vincent. PS please do not only post your questions directly to me (or whoever posted a message to the list) but also to the list again (reply to all usually works well), so others can learn from it and/or share their experience. > > On 5/16/06, *Vincent Schut* > wrote: > > Steve Lime wrote: > > You need a couple of other things: > > > > - a 24-bit output format (e.g . IMAGETYPE PNG24) > > - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) > > > > That should get it working... > > To chime in: > But what if I want to have antialiasing *and* semi-transparency? How > would I define e.g. a opacity of 60 when I already have 'transparency > alpha' in my layer? > > Vincent. > > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-259-5473 > >>>> ramesh karra > > 05/15/06 6:49 PM >>> > > Hi, > > > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > > but I do not see any difference in the map that's > > displayed. I was hoping to see smooth lines but there > > was no difference in the way lines(representing roads) > > are drawn with or without anti-aliasing. Is this the > > expected behavior? How can I get smooth lines? > > > > My layer is defined as follows: > > > > LAYER > > NAME roads > > DATA droad1 > > STATUS OFF > > TYPE LINE > > > > PROJECTION > > "init=epsg:4326" > > END > > > > CLASS > > NAME "Roads" > > MAXSCALE 80000 > > MINSCALE 20000 > > STYLE > > ANTIALIAS TRUE > > COLOR 150 150 150 > > WIDTH 3 > > END > > STYLE > > ANTIALIAS TRUE > > COLOR 255 255 255 > > WIDTH 1 > > END > > END > > END > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > From flavio at TYDAC.CH Tue May 16 03:50:03 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 16 May 2006 12:50:03 +0200 Subject: Anti Aliasing In-Reply-To: Message-ID: Hi Steve how's life there? hope to see you in switzerland for once! I tried the antialising with 4.81 and with every second zoom the system hangs (no error message ...). any idea? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From schut at SARVISION.NL Tue May 16 03:49:04 2006 From: schut at SARVISION.NL (Vincent Schut) Date: Tue, 16 May 2006 12:49:04 +0200 Subject: Anti Aliasing In-Reply-To: <4469AD9B.3070508@sarvision.nl> Message-ID: Vincent Schut wrote: > Zhonghai Wang wrote: >> Hi Vincent, >> >> have you got a nice map image with the ANTIALIAS TRUE ? >> >> if so , can you give me a clue how to do that? >> > Unfortunately not, that's why I'm asking these questions... I was > experimenting with antialiasing, but kept getting segmentation faults or > premature end of script errors in my apache logs. But I did not put the > 'transparency alpha' in my map laysers, because most of my layers for > which I wanted aa are currently semitransparent polygons... > I'll experiment with the transparency alpha thing later and post to the > list if it worked. > > Vincent. > > PS please do not only post your questions directly to me (or whoever > posted a message to the list) but also to the list again (reply to all > usually works well), so others can learn from it and/or share their > experience. >> Oops sorry for the PS, I only saw later that you *did* post it to the list. Never mind, no offense meant... Vincent. From Xiaoming.Zhu at NRM.SE Tue May 16 04:17:12 2006 From: Xiaoming.Zhu at NRM.SE (Xiaoming Zhu) Date: Tue, 16 May 2006 13:17:12 +0200 Subject: Anti Aliasing Message-ID: What happened with this mapserver? It goes like a circle. Did anyone else meet this before? Same problem pop out without any reason after you fixed that. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Vincent Schut Sent: den 16 maj 2006 12:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing Vincent Schut wrote: > Zhonghai Wang wrote: >> Hi Vincent, >> >> have you got a nice map image with the ANTIALIAS TRUE ? >> >> if so , can you give me a clue how to do that? >> > Unfortunately not, that's why I'm asking these questions... I was > experimenting with antialiasing, but kept getting segmentation faults or > premature end of script errors in my apache logs. But I did not put the > 'transparency alpha' in my map laysers, because most of my layers for > which I wanted aa are currently semitransparent polygons... > I'll experiment with the transparency alpha thing later and post to the > list if it worked. > > Vincent. > > PS please do not only post your questions directly to me (or whoever > posted a message to the list) but also to the list again (reply to all > usually works well), so others can learn from it and/or share their > experience. >> Oops sorry for the PS, I only saw later that you *did* post it to the list. Never mind, no offense meant... Vincent. From matl.hedwig at UZR.AT Tue May 16 04:18:05 2006 From: matl.hedwig at UZR.AT (Hedwig Matl) Date: Tue, 16 May 2006 13:18:05 +0200 Subject: please help: .mdb access problem In-Reply-To: <445F49A8.4050906@pobox.com> Message-ID: Hello List! Thanks for all your replies, especially to Frank Warmerdam. The problem really was the missing PGeo driver. The version 1.5.3. of ms4w includes PGeo, so now it works fine! With best regards Hedwig Frank Warmerdam schrieb: > Hedwig Matl wrote: >> Hello and thanks for your reply! >> >> I edited the path for my message. I use the absolute path, which looks >> like this (I also tried relative paths): >> >> --- >> CONNECTIONTYPE OGR >> CONNECTION "c:\ms4w\apps\test2\mdb\Abtenau.mdb" >> --- >> >> This is the error I get when I try to open the file with ogrinfo: >> >> --- >> C:\>ogrinfo c:\ms4w\apps\test2\mdb\Abtenau.mdb >> FAILURE: >> Unable to open datasource `c:\ms4w\apps\test2\mdb\Abtenau.mdb' with >> the following drivers. >> -> ESRI Shapefile >> -> MapInfo File >> -> UK .NTF >> -> SDTS >> -> TIGER >> -> S57 >> -> DGN >> -> VRT >> -> AVCBin >> -> REC >> -> Memory >> -> CSV >> -> GML >> -> ODBC >> -> PostgreSQL >> -> MySQL >> --- > > Hedwig, > > Is the .mdb file in question supposed to be an ESRI Personal > Geodatabase? If so, your OGR is missing the PGeo (personal geodatabase) > driver and so won't be able to read it. This was due to a flaw in the > build system for a few months. Hopefully a newer or near future MS4W > will have the correction. > > If the .mdb file is not a personal geodatabase, then you will need to > setup an ODBC DSN for it and follow the instructions on the OGR ODBC > driver page. > > Best regards, -- Mag. Hedwig Matl . Forschungsassistentin Universit?tszentrum Rottenmann (UZR) Technologiepark 2, A-8786 Rottenmann www.uni-z-rottenmann.at . www.uzr.at T: +43 (3614) 21021-19 E: matl.hedwig at uzr.at From D.Stone at ED.AC.UK Tue May 16 04:57:21 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Tue, 16 May 2006 12:57:21 +0100 Subject: Class Expressions In-Reply-To: Message-ID: Thanks for all that good stuff, Steve. One or two comments below. Dave Steve Lime wrote: > Dave: If these are numbers why are you treating them as strings? Straight string comparison of numbers can be unpredictable. Have you tried removing the quotes? > Drowning-man-clutching-at-straws syndrome! I think I'd tried every other permutation before that. > Other options: > > 1) you can do the classification in PostGIS. Paul Ramsey's workshop materials have some nice examples. > That's what I did thereafter. So I now have one layer for each date-range with DATA definitions like: DATA "geom from (select dr, geom, stdname, deddlo, deddhi, oid from saintloc where ((deddlo >= 12010101) AND (deddlo <= 13001231)) OR ((deddhi >= 12010101) AND (deddhi <= 13001231))) as foo using srid=27700" > 2) MapServer does support true dates in logical expressions. I believe you use backtics to denote dates that way. > > That said, I think you can just treat 'em as ints. > I did go back and try the EXPRESSION method again, but it seemed to break down on nulls. E.g. EXPRESSION ((([deddlo] >= 11010101) AND ([deddlo] <= 12001231)) OR (([deddhi] >= 11010101) AND ([deddhi] <= 12001231))) worked OK if both deddlo and deddhi contained valid (integer) dates, but not if either was null. > Steve > >>>> DjwStone 05/12/06 8:52 AM >>> > I'm having difficulty setting up an EXPRESSION statement for a PostGIS layer. > > The field being tested is a numeric representation of a date in YYYYMMDD > format so that ranges can be easily compared. > > When the expression is (say): > > EXPRESSION ('[fieldname]' ge '15010101') > > everything works fine; I get the correct number of hits. Similarly, > > EXPRESSION ('[fieldname]' le '16001231') > > works as it should. > > However, when I have: > > EXPRESSION ('[fieldname]' ge '15010101') and ('[fieldname]' le '16001231') > > I get no hits although there should be some. > > Has anyone else had similar problems? > > Cheers, > > Dave > -- > View this message in context: http://www.nabble.com/Class-Expressions-t1607707.html#a4358498 > Sent from the Mapserver - User forum at Nabble.com. > > From b.vdeijnden at AGI.RWS.MINVENW.NL Tue May 16 03:41:58 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 16 May 2006 12:41:58 +0200 Subject: getFeature: Results are not correct Message-ID: This is most likely because OGR cannot determine a primary key on your table. It needs a primary key to operate queries (not for a map display). A few questions: 1) which version of GDAL? 2) which version of Mapserver? 3) you can try to use CONFIG "OGR_FID" "name_of_your_primary_key" at your MAP object if automatic detection of the primary key fails Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Christian Wilmes Verzonden: dinsdag 16 mei 2006 12:29 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] getFeature: Results are not correct Hello, first of all sorry for cross posting, but I've got no idea where I have to search the mistake so I post it to the GDAL and the Mapserver Mailinglist. I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a PostgreSQL-Database (no PostGIS!). So the connection to the data is over "Virtual Spatial Data". The getCapabilities and DescribeFeatureType request both work very well. Only the GML-Document getting with the getFeature request is not correct. The number of features in the GML-Document are correct too every time, but the features are not in the Bounding Box. The features in the GML-Document are always the feature which are on the top of the table they come from. Only the number of feature is correct. The MBR (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the correct one. So it don't fit to the features in the document. Testing the connection with "ogrinfo" and a Boundig-Box is working correct. If I'm trying to make a WMS-Server with the same Data and the same OGR-file it works very well. So here is my Mapfile: MAP NAME WFS_Server STATUS ON WEB METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME myWFS METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "test.ovf" PROJECTION "init=EPSG:4326" END DUMP TRUE END END and the OGR-File test.ovf: PG:host=192.168.5.86 user=cwilmes dbname=rosoapcw password=xxx feature wkbPoint EPSG:4326 Here is a URL which I used for testing the WFS getFeature-Request: http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVI CE=WFS&TYPENAME=myWFS&&BBox=9.98,7.98,10,8 ....and here is the result: - - - 9.980700,7.984220 9.997500,7.995010 - - - - 9.682230,7.653260 9.682230,7.653260 - - 9.682230,7.653260 16 - - - - 9.768800,7.835870 9.768800,7.835870 - - 9.768800,7.835870 17 - - - - 9.296530,7.426330 9.296530,7.426330 - - 9.296530,7.426330 18 - - - - 9.111500,7.645390 9.111500,7.645390 - - 9.111500,7.645390 20 I will be very thankful for every idea where the mistake could! Please excuse my bad english! Best Regards Christian -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail -- Mobile Internet - E-Mail und Internet immer und ?berall! GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Tue May 16 05:41:49 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Tue, 16 May 2006 07:41:49 -0500 Subject: Anti Aliasing In-Reply-To: <2534c4120605160142rb516b52m208e47a6fe3c4eda@mail.gmail.com> Message-ID: Get rid of the OUTPUTFORMAT object and just add IMAGETYPE PNG24. See what happens. -Perry Zhonghai Wang wrote: > Hi, Jacob, > > you mean like this: > > *****output format: > > OUTPUTFORMAT > NAME "PNG24" > MIMETYPE "image/PNG" > DRIVER "GD/PNG" > EXTENSION "PNG" > IMAGEMODE RGBA > #TRANSPARENT ON > #TRANSPARENCY ALPHA > END > > ******layer definition: > LAYER > NAME "railway" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_RAILRDS.TAB" > MAXSCALE 8000 > SYMBOLSCALE 4000 > TRANSPARENCY ALPHA > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "railway" > STYLE > SYMBOL 'point' > COLOR 0 0 0 > SIZE 5 > MINSIZE 1 > MAXSIZE 5 > ANTIALIAS TRUE > END > STYLE > SYMBOL "dashedline" > COLOR 255 255 255 > SIZE 3 > MINSIZE 0 > MAXSIZE 3 > ANTIALIAS TRUE > END > END > > ** > > if all the definition is right, this function does not really make the > output image nicer. and I've noticed that ANTIALIAS TRUE/FALSE is only > useful for truetype font, but not for line features, which means only > for truetype font symbols. or Did I do anything wrong? > > > On 5/16/06, *Delfos, Jacob* > wrote: > > Zhonghai, > > PNG is 8bit, PNG24 is 24bit colour, with an 8bit transparency. So for > the ALPHA option, I think you need PNG24. Try this definition: > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > IMAGEMODE RGBA > END > > Then put: > > TRANSPARENCY ALPHA > > in your layer definition (not in OUTPUTFORMAT). > > regards, > > Jacob > > > > ________________________________ > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU > ] On Behalf Of Zhonghai Wang > Sent: 16 May 2006 16:14 > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing > > > Hi, > > I am interested in this question, and I've tried like this: > > ***** > OUTPUTFORMAT > NAME "PNG" > MIMETYPE "image/PNG" > DRIVER "GD/PNG" > EXTENSION "PNG" > IMAGEMODE RGBA > TRANSPARENCY ALPHA > END > ***** > I've noticed that there is no PNG24 output image format in the > mapfile reference document, and therefore I've used PNG. > > but, I get the followig error message: > > loadOutputFormat(): Unknown identifier. Parsing error near > (TRANSPARENCY):(line 114) > > which means I caon only use TRANSPARENT as the the identifier as > listed in the mapfile reference document, and this parameter can > only be > truned on or off. > > any further ideas, Steve? > > 1000 thanks. > > zhonghai > > > On 5/16/06, ramesh karra > wrote: > > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but there > was no difference in the way lines(representing roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection > around > http://mail.yahoo.com > > > > From zhonghaiw at GMAIL.COM Tue May 16 05:49:40 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 14:49:40 +0200 Subject: Anti Aliasing In-Reply-To: <4469C88D.2020701@umn.edu> Message-ID: that's it!!! It's perfect!! thanks, Perry. 16.05.2006 On 5/16/06, Pericles S. Nacionales wrote: > > Get rid of the OUTPUTFORMAT object and just add IMAGETYPE PNG24. See > what happens. > > -Perry > > Zhonghai Wang wrote: > > Hi, Jacob, > > > > you mean like this: > > > > *****output format: > > > > OUTPUTFORMAT > > NAME "PNG24" > > MIMETYPE "image/PNG" > > DRIVER "GD/PNG" > > EXTENSION "PNG" > > IMAGEMODE RGBA > > #TRANSPARENT ON > > #TRANSPARENCY ALPHA > > END > > > > ******layer definition: > > LAYER > > NAME "railway" > > STATUS DEFAULT > > TYPE LINE > > CONNECTIONTYPE OGR > > CONNECTION "CA_NAV_RAILRDS.TAB" > > MAXSCALE 8000 > > SYMBOLSCALE 4000 > > TRANSPARENCY ALPHA > > PROJECTION > > "init=epsg:4326" > > END > > CLASS > > NAME "railway" > > STYLE > > SYMBOL 'point' > > COLOR 0 0 0 > > SIZE 5 > > MINSIZE 1 > > MAXSIZE 5 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "dashedline" > > COLOR 255 255 255 > > SIZE 3 > > MINSIZE 0 > > MAXSIZE 3 > > ANTIALIAS TRUE > > END > > END > > > > ** > > > > if all the definition is right, this function does not really make the > > output image nicer. and I've noticed that ANTIALIAS TRUE/FALSE is only > > useful for truetype font, but not for line features, which means only > > for truetype font symbols. or Did I do anything wrong? > > > > > > On 5/16/06, *Delfos, Jacob* > > wrote: > > > > Zhonghai, > > > > PNG is 8bit, PNG24 is 24bit colour, with an 8bit transparency. So > for > > the ALPHA option, I think you need PNG24. Try this definition: > > > > OUTPUTFORMAT > > NAME PNG24 > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > EXTENSION PNG > > IMAGEMODE RGBA > > END > > > > Then put: > > > > TRANSPARENCY ALPHA > > > > in your layer definition (not in OUTPUTFORMAT). > > > > regards, > > > > Jacob > > > > > > > > ________________________________ > > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU > > ] On Behalf Of Zhonghai Wang > > Sent: 16 May 2006 16:14 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing > > > > > > Hi, > > > > I am interested in this question, and I've tried like this: > > > > ***** > > OUTPUTFORMAT > > NAME "PNG" > > MIMETYPE "image/PNG" > > DRIVER "GD/PNG" > > EXTENSION "PNG" > > IMAGEMODE RGBA > > TRANSPARENCY ALPHA > > END > > ***** > > I've noticed that there is no PNG24 output image format in > the > > mapfile reference document, and therefore I've used PNG. > > > > but, I get the followig error message: > > > > loadOutputFormat(): Unknown identifier. Parsing error near > > (TRANSPARENCY):(line 114) > > > > which means I caon only use TRANSPARENT as the the identifier > as > > listed in the mapfile reference document, and this parameter can > > only be > > truned on or off. > > > > any further ideas, Steve? > > > > 1000 thanks. > > > > zhonghai > > > > > > On 5/16/06, ramesh karra > > wrote: > > > > Hi, > > > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > > but I do not see any difference in the map that's > > displayed. I was hoping to see smooth lines but there > > was no difference in the way lines(representing > roads) > > are drawn with or without anti-aliasing. Is this the > > expected behavior? How can I get smooth lines? > > > > My layer is defined as follows: > > > > LAYER > > NAME roads > > DATA droad1 > > STATUS OFF > > TYPE LINE > > > > PROJECTION > > "init=epsg:4326" > > END > > > > CLASS > > NAME "Roads" > > MAXSCALE 80000 > > MINSCALE 20000 > > STYLE > > ANTIALIAS TRUE > > COLOR 150 150 150 > > WIDTH 3 > > END > > STYLE > > ANTIALIAS TRUE > > COLOR 255 255 255 > > WIDTH 1 > > END > > END > > END > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection > > around > > http://mail.yahoo.com > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Tue May 16 05:53:13 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Tue, 16 May 2006 07:53:13 -0500 Subject: Anti Aliasing In-Reply-To: <44699B25.3070602@sarvision.nl> Message-ID: Two things you can try... 1. define two layers--one for polygon without outline color with transparency set to whatever number, and the other layer defined as line and with transparency set to alpha. 2. Create two styles within the layer--1 for the polygon fill with transparency set to whatever value you want, 1 for the outlinecolor with transparency alpha. I haven't tried the second one so I don't know if it works. ;) Make sure the line layer (or the outline style) is drawn on top. If you don't want the lines, then I don't know the answer. -Perry Vincent Schut wrote: > Steve Lime wrote: >> You need a couple of other things: >> >> - a 24-bit output format (e.g. IMAGETYPE PNG24) >> - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) >> >> That should get it working... > > To chime in: > But what if I want to have antialiasing *and* semi-transparency? How > would I define e.g. a opacity of 60 when I already have 'transparency > alpha' in my layer? > > Vincent. > >> Steve >> >> Stephen Lime >> Data & Applications Manager >> >> Minnesota DNR >> 500 Lafayette Road >> St. Paul, MN 55155 >> 651-259-5473 >>>>> ramesh karra 05/15/06 6:49 PM >>> >> Hi, >> >> I have added 'ANTIALIAS TRUE' to all my STYLE objects >> but I do not see any difference in the map that's >> displayed. I was hoping to see smooth lines but there >> was no difference in the way lines(representing roads) >> are drawn with or without anti-aliasing. Is this the >> expected behavior? How can I get smooth lines? >> >> My layer is defined as follows: >> >> LAYER >> NAME roads >> DATA droad1 >> STATUS OFF >> TYPE LINE >> >> PROJECTION >> "init=epsg:4326" >> END >> >> CLASS >> NAME "Roads" >> MAXSCALE 80000 >> MINSCALE 20000 >> STYLE >> ANTIALIAS TRUE >> COLOR 150 150 150 >> WIDTH 3 >> END >> STYLE >> ANTIALIAS TRUE >> COLOR 255 255 255 >> WIDTH 1 >> END >> END >> END >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> > > . > From C.Wilmes at GMX.DE Tue May 16 05:54:18 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 16 May 2006 14:54:18 +0200 Subject: getFeature: Results are not correct Message-ID: >Here is a short cut-out from the README_INSTALL where you can see my version-numbers: - Apache version 2.0.55 - PHP version 4.4.3-dev - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, Python) - support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.3.2, PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, libcurl 7.15.0 - mapserver utilities - gdal/ogr utilities - proj.4 utilities - shp2tile utility - shapelib utilities - shpdiff utility - PHP_OGR Extension 1.1.1 - OWTChart 1.2.0 I have not installed some of them separat so that are the versions I'm using. I tried out your idea to use CONFIG "OGR_FID" "name_of_your_primary_key", but the result is still the same. I think posting the newest Mapfile can never be bad: MAP NAME WFS_Server STATUS ON WEB METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END CONFIG "OGR_FID" "id" LAYER NAME myWFS METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "test.ovf" PROJECTION "init=EPSG:4326" END DUMP TRUE END END Best Regards Christian > --- Urspr?ngliche Nachricht --- > Von: "Eijnden, B. van den (Bart)" > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] getFeature: Results are not correct > Datum: Tue, 16 May 2006 12:41:58 +0200 > > This is most likely because OGR cannot determine a primary key on your > table. It needs a primary key to operate queries (not for a map display). > > A few questions: > 1) which version of GDAL? > 2) which version of Mapserver? > 3) you can try to use CONFIG "OGR_FID" "name_of_your_primary_key" at your > MAP object if automatic detection of the primary key fails > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Christian Wilmes > Verzonden: dinsdag 16 mei 2006 12:29 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] getFeature: Results are not correct > > > Hello, > > first of all sorry for cross posting, but I've got no idea where I have to > search the mistake so I post it to the GDAL and the Mapserver Mailinglist. > > I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a > PostgreSQL-Database (no PostGIS!). So the connection to the data is over > "Virtual Spatial Data". The getCapabilities and DescribeFeatureType > request > both work very well. Only the GML-Document getting with the getFeature > request is not correct. The number of features in the GML-Document are > correct too every time, but the features are not in the Bounding Box. The > features in the GML-Document are always the feature which are on the top > of > the table they come from. Only the number of feature is correct. The MBR > (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the > correct one. So it don't fit to the features in the document. Testing the > connection with "ogrinfo" and a Boundig-Box is working correct. If I'm > trying to make a WMS-Server with the same Data and the same OGR-file it > works very well. > > So here is my Mapfile: > > MAP > NAME WFS_Server > STATUS ON > WEB > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" > "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:4326" > END > END > > PROJECTION > "init=EPSG:4326" > END > > > LAYER > NAME myWFS > METADATA > "wfs_title" "myWFS" > "gml_include_items" "all" > END > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > PROJECTION > "init=EPSG:4326" > END > DUMP TRUE > > END > END > > > > > > and the OGR-File test.ovf: > > > > PG:host=192.168.5.86 user=cwilmes dbname=rosoapcw > password=xxx > feature > wkbPoint > EPSG:4326 > > > > > > Here is a URL which I used for testing > the > WFS > getFeature-Request: > http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVI > CE=WFS&TYPENAME=myWFS&&BBox=9.98,7.98,10,8 > > > ....and here is the result: > ?> > > - > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=Descr > ibeFeatureType&TYPENAME=myWFS&OUTPUTFORMAT=XMLSCHEMA"> > - > - > 9.980700,7.984220 9.997500,7.995010 > > > - > - > - > - > 9.682230,7.653260 9.682230,7.653260 > > > - > - > 9.682230,7.653260 > > > 16 > > > - > - > - > - > 9.768800,7.835870 9.768800,7.835870 > > > - > - > 9.768800,7.835870 > > > 17 > > > - > - > - > - > 9.296530,7.426330 9.296530,7.426330 > > > - > - > 9.296530,7.426330 > > > 18 > > > - > - > - > - > 9.111500,7.645390 9.111500,7.645390 > > > - > - > 9.111500,7.645390 > > > 20 > > > > > > > > I will be very thankful for every idea where the mistake could! > > Please excuse my bad english! > > > > Best Regards > Christian > > > > -- > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > -- > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > -- > Mobile Internet - E-Mail und Internet immer und ?berall! > GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb > > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > > -- Mobile Internet - E-Mail und Internet immer und ?berall! GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb From asimpson at I-55.COM Tue May 16 06:16:39 2006 From: asimpson at I-55.COM (Simpson) Date: Tue, 16 May 2006 08:16:39 -0500 Subject: how to speed up MapServer performance? In-Reply-To: <2534c4120605160109y366efaf4xbcae2dcec430aee7@mail.gmail.com> Message-ID: From flavio at TYDAC.CH Tue May 16 06:27:17 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 16 May 2006 15:27:17 +0200 Subject: Bitmap Symbol SIZE not working in 4.8 ? In-Reply-To: <4469B4ED.1000400@uzr.at> Message-ID: hi list the following size definition on bitmap symbols works perfectly in MapServer 4.6. Same MapFile: no effect on size in version 4.8.1. Anyone an idea? CLASS NAME "test" EXPRESSION "test" STYLE COLOR 0 150 0 SYMBOL 'test' SIZE 12 END END thx. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue May 16 06:53:04 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Tue, 16 May 2006 09:53:04 -0400 Subject: how to speed up MapServer performance? Message-ID: Zhonghai, You have the one big data set in there, which is the roads. If you're trying to display ALL the data in the one map, all at once, then 3 secs isn't all that bad, considering you have 60 megs of data to work through. You may want to consider generalizing the data for viewing at different scales. The fileformat itself will create a tiny bit of an impact, since it all goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... The MapServer CGI is about the fastest mapping engine you'll find out there, open source or commercial! Also, what's the hardware like? Notably disk IO? Also, I'm sorry, but I must ask :) Does it have to be windows? On Windows, processes are quite expensive, which includes CGI ... this isn't the case on Linux, where processes are cheap, and threads are expensive. Also, Linux tends to cache things better in my experience. If you're using WMS, I think there's a FastCGI interface you could try using, though I'm not sure how mature it is. J.F. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Zhonghai Wang Sent: May 16, 2006 4:09 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime > wrote: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang < zhonghaiw at GMAIL.COM > 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue May 16 07:02:31 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 16 May 2006 10:02:31 -0400 Subject: how to speed up MapServer performance? Message-ID: J.F. - I was with you all the way until you mentioned operating systems! There's no reason to think that Zhonghai's operating system is at all related to his problem, and it's dangerous to propagate operating system myths. I run lots of MapServer machines on Windows and Linux (mostly Linux) and I cannot find any evidence (after 5 years or so) that there's any difference worth thinking about on identical hardware. If you can show me a MapServer test with identical configurations on identical hardware showing statistically significant differences in performance when running Window vs. Linux, I'd love to see the details. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: Tuesday, May 16, 2006 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Zhonghai, You have the one big data set in there, which is the roads. If you're trying to display ALL the data in the one map, all at once, then 3 secs isn't all that bad, considering you have 60 megs of data to work through. You may want to consider generalizing the data for viewing at different scales. The fileformat itself will create a tiny bit of an impact, since it all goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... The MapServer CGI is about the fastest mapping engine you'll find out there, open source or commercial! Also, what's the hardware like? Notably disk IO? Also, I'm sorry, but I must ask :) Does it have to be windows? On Windows, processes are quite expensive, which includes CGI ... this isn't the case on Linux, where processes are cheap, and threads are expensive. Also, Linux tends to cache things better in my experience. If you're using WMS, I think there's a FastCGI interface you could try using, though I'm not sure how mature it is. J.F. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Zhonghai Wang Sent: May 16, 2006 4:09 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime wrote: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang < zhonghaiw at GMAIL.COM > 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue May 16 07:12:49 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 May 2006 09:12:49 -0500 Subject: Bitmap Symbol SIZE not working in 4.8 ? Message-ID: Hi Flavio: Sizing of bitmaps was screwed up in 4.8.1 (my fault). It worked but used an alternative method to compute size based on the longest image dimension rather than strictly using the height. That was fixed in 4.8.3 which I would recommend using. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> Flavio Hendry 05/16/06 8:27 AM >>> hi list the following size definition on bitmap symbols works perfectly in MapServer 4.6. Same MapFile: no effect on size in version 4.8.1. Anyone an idea? CLASS NAME "test" EXPRESSION "test" STYLE COLOR 0 150 0 SYMBOL 'test' SIZE 12 END END thx. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Tue May 16 07:18:08 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 May 2006 09:18:08 -0500 Subject: Anti Aliasing Message-ID: Hi Flavio: The hanging is probably related to a GD bug where they don't do appropriate bounds checking. There's a one line patch to apply to gd.c to fix the problem. I posted it on the list awhile back. Let me know if you can't find it and I'll dig it out (don't have access at the moment). Steve BTW The conference should be fun, hope I can go! >>> "Flavio Hendry" 05/16/06 5:50 AM >>> Hi Steve how's life there? hope to see you in switzerland for once! I tried the antialising with 4.81 and with every second zoom the system hangs (no error message ...). any idea? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Tue May 16 07:23:00 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 May 2006 09:23:00 -0500 Subject: Anti Aliasing Message-ID: There in lies a problem- you can't. I have been working on it off and on and I do believe that we can do away with TRANSPARENCY ALPHA altogether. We know enough at rendering time to enable alpha blending or not at the feature level and that would leave us using transparency just at the layer level so we get the best of both. There were some image merging issues that I ran into that kept me from committing this for 4.8- hopefully in the next release. Steve >>> Vincent Schut 05/16/06 4:28 AM >>> Steve Lime wrote: > You need a couple of other things: > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) > > That should get it working... To chime in: But what if I want to have antialiasing *and* semi-transparency? How would I define e.g. a opacity of 60 when I already have 'transparency alpha' in my layer? Vincent. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 >>>> ramesh karra 05/15/06 6:49 PM >>> > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but there > was no difference in the way lines(representing roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From LIN at HVENEGAARD.DK Tue May 16 07:21:40 2006 From: LIN at HVENEGAARD.DK (Lars I. Nielsen (Hvenegaard)) Date: Tue, 16 May 2006 16:21:40 +0200 Subject: how to speed up MapServer performance? Message-ID: Hi Zhonghai, One more suggestion wrt. the road network issue. If your 60 Mb road network TAB file isn't stored in the same projection (EPSG 4326, Lat/Long WGS84) as it's displayed in, you'll encounter a performance-loss as mapserver recalculates all coordinates from the stored to the display projection before rendering. Use "Save Copy As" with Lat/Long WGS84 as output projection to reproject the data in the MapInfo TAB dataset, if necessary. Best regards / Med venlig hilsen Lars I. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk ----- Original Message ----- From: Doyon, Jean-Francois To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, May 16, 2006 3:53 PM Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Zhonghai, You have the one big data set in there, which is the roads. If you're trying to display ALL the data in the one map, all at once, then 3 secs isn't all that bad, considering you have 60 megs of data to work through. You may want to consider generalizing the data for viewing at different scales. The fileformat itself will create a tiny bit of an impact, since it all goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... The MapServer CGI is about the fastest mapping engine you'll find out there, open source or commercial! Also, what's the hardware like? Notably disk IO? Also, I'm sorry, but I must ask :) Does it have to be windows? On Windows, processes are quite expensive, which includes CGI ... this isn't the case on Linux, where processes are cheap, and threads are expensive. Also, Linux tends to cache things better in my experience. If you're using WMS, I think there's a FastCGI interface you could try using, though I'm not sure how mature it is. J.F. -------------------------------------------------------------------------------- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Zhonghai Wang Sent: May 16, 2006 4:09 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime wrote: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang < zhonghaiw at GMAIL.COM> 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue May 16 07:42:07 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 16 May 2006 16:42:07 +0200 Subject: how to speed up MapServer performance? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDD4D@ptolemy.topozone.com> Message-ID: Hi All, I am trying to make the application run with ESRI data, I've transformed the MapInfo format data into ESRI format, and then: 1. perform "shptree" batch command, to get the "*.qix" file. This really speeds up the performance, and each request takes about 1.5 second, but the initializing request takes a little bit longer, about 6 second. (at the initializing level layer "country boundaries" and layer "forests" should be visible.) 2. perform the "tile4ms" command, get the tileindex shapfile and DBF for road networks and each other layer, because the roads are in separate vector layers, in the mapfile I still set each in a seperate layer object. for other shapfiles that do not have the same columns and attributes I perform the command separately for them, and each has a tileindex shapefile. --- this solution seems not better than the first one, for each request it takes longer. questions again ^_^: 1. is it possible to speed up the initializing ? 2. I am trying to put the road network shapefiles into one layer object after having got some information about tile4ms in the list, but how to styling them separately, since they are different road classes (in original data set they are in separate shapefiles)? ***** Frank Warmerdam said, FASTCGI is not really speed up the applications with MapInfo or ESRI data, I think he is right, so I am not trying to use it. I do not know that much about Linux, therefore an application based on Linux is currently possible for me. Maybe I will try it someday, and I'd like to, since it can benefit GIS applications. On 5/16/06, Ed McNierney wrote: > > J.F. - > > I was with you all the way until you mentioned operating systems! There's > no reason to think that Zhonghai's operating system is at all related to his > problem, and it's dangerous to propagate operating system myths. I run lots > of MapServer machines on Windows and Linux (mostly Linux) and I cannot find > any evidence (after 5 years or so) that there's any difference worth > thinking about on identical hardware. > > If you can show me a MapServer test with identical configurations on > identical hardware showing statistically significant differences in > performance when running Window vs. Linux, I'd love to see the details. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Doyon, Jean-Francois > *Sent:* Tuesday, May 16, 2006 9:53 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* Re: [UMN_MAPSERVER-USERS] how to speed up MapServer > performance? > > > Zhonghai, > > You have the one big data set in there, which is the roads. If you're > trying to display ALL the data in the one map, all at once, then 3 secs > isn't all that bad, considering you have 60 megs of data to work through. > > You may want to consider generalizing the data for viewing at different > scales. > > The fileformat itself will create a tiny bit of an impact, since it all > goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... > > The MapServer CGI is about the fastest mapping engine you'll find out > there, open source or commercial! > > Also, what's the hardware like? Notably disk IO? > > Also, I'm sorry, but I must ask :) Does it have to be windows? On > Windows, processes are quite expensive, which includes CGI ... this isn't > the case on Linux, where processes are cheap, and threads are expensive. > Also, Linux tends to cache things better in my experience. > > If you're using WMS, I think there's a FastCGI interface you could try > using, though I'm not sure how mature it is. > > J.F. > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] *On > Behalf Of *Zhonghai Wang > *Sent:* May 16, 2006 4:09 AM > > *To:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] how to speed up MapServer > performance? > > > Hi my friends, > > I am really very thankful for all your information, I am a newbie in > MapServer. > > here is the data amount that I am using for the application: > (all the source data is MapInfo format, and what I calculated is the > ".MAP" file) > > 1. boundaries -- 388 KB > 2. forests -- 9163 KB > 3. lakes -- 26 KB > 4. city parks -- 25 KB > 5. settlement -- 2279 KB > 6. rivers -- 1653 KB > 7. road networks -- 56370 KB > 8. railway -- 1343 KB > 9. train station -- 27 KB > 10 bus station -- 2 KB > 11. tourist centers -- 9 KB > 12. theaters -- 6 KB > 13. shopping center -- 7 KB > 14. city location -- 9 KB > > ***** > and here is how I am symbolizing the layers, mapfile for all these layers: > > *** > LAYER > NAME "Country" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_COUNTRY.TAB" > TRANSPARENCY 40 > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > #NAME "Boundaries" > STYLE > SYMBOL 0 > COLOR 155 155 155 > OUTLINECOLOR 155 155 155 > BACKGROUNDCOLOR 255 255 255 > END > END > END > LAYER > NAME "lakes" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_LAKE.TAB" > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Lake" > STYLE > COLOR 102 153 255 > END > END > END > LAYER > NAME "woodland" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WOODLAND_G.TAB" > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "woodland" > STYLE > COLOR 0 185 92 > END > END > END > LAYER > NAME "woodland" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WOODLAND.TAB" > MAXSCALE 100000 > #LABELITEM "Street_Label" > #SYMBOLSCALE 50000 > #LABELMAXSCALE 80000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "woodland" > STYLE > COLOR 0 185 92 > END > END > END > LAYER > NAME "city parks" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_CITY_PARK.TAB" > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Park" > STYLE > SYMBOL 0 > COLOR 233 254 205 > END > END > END > LAYER > NAME "settlement" > STATUS DEFAULT > TYPE POLYGON > #CLASSITEM "Area" > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" > MAXSCALE 800000 > #LABELITEM "Street_Label" > #SYMBOLSCALE 80000 > #LABELMAXSCALE 120000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "settlement" > #EXPRESSION ([Area]>20000) > STYLE > COLOR 207 207 158 > END > END > END > LAYER > NAME "rivers" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WATERWYS.TAB" > MAXSCALE 800000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "river" > STYLE > COLOR 102 153 255 > END > END > END > LAYER > NAME "street50" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S50.TAB" > MAXSCALE 40000 > LABELITEM "Street_Label" > SYMBOLSCALE 5000 > LABELMAXSCALE 20000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 50" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE AUTO > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 255 255 > END > END > END > LAYER > NAME "oneway" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_ONEWAY.TAB" > MAXSCALE 40000 > SYMBOLSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Oneway" > STYLE > SYMBOL "oneway" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 51 0 > END > END > END > LAYER > NAME "street40" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S40.TAB" > MAXSCALE 100000 > LABELITEM "Street_Label" > SYMBOLSCALE 15000 > LABELMAXSCALE 30000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 40" > LABEL > # must be in the FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 2 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 20 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > ANTIALIAS TRUE > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 255 255 > ANTIALIAS TRUE > END > END > END > LAYER > NAME "street30" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S30.TAB" > MAXSCALE 250000 > LABELITEM "Street_Label" > SYMBOLSCALE 40000 > LABELMAXSCALE 120000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 30" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 2 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 30 > #MINDISTANCE 10 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 204 51 > END > END > END > LAYER > NAME "railway" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_RAILRDS.TAB" > MAXSCALE 8000 > SYMBOLSCALE 4000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "railway" > SYMBOL 'point' > COLOR 0 0 0 > SIZE 5 > MINSIZE 1 > MAXSIZE 5 > OVERLAYSYMBOL "dashedline" > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 3 > OVERLAYMINSIZE 0 > OVERLAYMAXSIZE 3 > END > END > LAYER > NAME "street20" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S20.TAB" > MAXSCALE 900000 > LABELITEM "Street_Label" > SYMBOLSCALE 100000 > LABELMAXSCALE 430000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 20" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 1 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 50 > #MINDISTANCE 10 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 247 193 157 > END > END > END > LAYER > NAME "street10" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S10_O.TAB" > MAXSCALE 1700000 > LABELITEM "Street_Label" > SYMBOLSCALE 400000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 10" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 255 0 0 > BACKGROUNDCOLOR 153 204 153 > MINFEATURESIZE AUTO > MINDISTANCE 200 > BUFFER 1 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 255 0 0 > END > STYLE > SYMBOL "point" > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > COLOR 255 255 0 > END > END > END > LAYER > NAME "train station" > STATUS OFF > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_TRAIN_STATION.TAB" > MAXSCALE 10000 > #LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Train station" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 153 0 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "bus station" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_BUS_STATION.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "bus station" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 0 153 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "LOCATIONS0" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS0.TAB" > MAXSCALE 1000000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS0" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 12 > MINSIZE 2 > MAXSIZE 12 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "star" > COLOR 255 0 0 > SIZE 18 > MINSIZE 8 > MAXSIZE 18 > END > END > END > LAYER > NAME "LOCATIONS1" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS1.TAB" > MAXSCALE 800000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS1" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 12 > MINSIZE 2 > MAXSIZE 12 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 153 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "LOCATIONS2" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS2.TAB" > MAXSCALE 800000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS2" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 153 0 > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > END > END > END > LAYER > NAME "LOCATIONS3" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS3.TAB" > MAXSCALE 400000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 200000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS3" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 51 153 > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > END > END > END > LAYER > NAME "Tourist Information" > STATUS OFF > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Tourist Information" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "rectangle" > COLOR 255 51 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "Shopping Center" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "shopping center" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "special" > COLOR 255 51 0 > SIZE 15 > MINSIZE 6 > MAXSIZE 15 > END > END > END > LAYER > NAME "Theater" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_THEATER.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Theater" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 255 51 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > *********************** > > is it still possible to speed up my application? > > **** > > the system parameters of my application: > > Windows XP professional > MS4W 4.8.1 > data source -- MapInfo data > > *--only CGI parameters are used,since it is a pure static version with > HTML, > > is it possible to develop a pure static application based on MapServer, > even in conjunction with PHP/MapScript or Chameleon? > > > thanks for any clues. > > zhonghai > > 16.05.2006 > > > On 5/15/06, Steve Lime wrote: > > > > We really need more information about the nature of the data. I mean if > > you've got > > 20 layers each with a million polygons and are trying to show all of > > them then 3 seconds > > might be really fast! Also, the way you are symbolizing features may > > impact things. > > > > In my experience neither 1 or 2 is worth considering... > > > > Steve > > > > Steve > > > > >>> Zhonghai Wang < zhonghaiw at GMAIL.COM> 5/15/2006 9:15:49 AM >>> > > Hi there, > > > > for a special purpose I've developed an static version application based > > on > > MapServer CGI, which means I just use pure HTML tages for the GUI, even > > without JavaScript code snippets to validate forms. > > > > I have about 20 map layers to display according to different map scale > > (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data > > classifications within a layer object, the status of all layers are set > > as > > default. > > > > I've made a test on a standalone MapServer (XP system), every request > > takes > > about 3 second. Obvioursly it's not fast enough for a web application, > > since > > there may be many users requesting the server at the same time if the > > application is published on the web. > > > > Is MapServer really so slow? can anybody give me some ideas?should I > > modify > > the mapfiles? > > > > I am wondering whether the following solutions will work: > > 1. define every layer as a seperate mapfile, and combine them together > > by > > request > > 2. turn off the non-displayed layers off on the fly > > > > are these possible to speed up MapServer performance? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Tue May 16 08:25:17 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 16 May 2006 17:25:17 +0200 Subject: How does the mapserver work intern with ogr Message-ID: Hi All, as I haver written in my last post I would like to set up a WFS-Server. For that I'm using "Virtual Spatial Data" because my Data is in a PostgreSQL-Database without PostGIS (only Point-Data). So I've written an OGR-File and using Connection OGR in the Mapscript. For testing I'm using simple a web-browser. Know I would like to know everything what does happen when I start a getFeature-Request (with a BBox) in the browser: - I think first the mapserver gets the request and send it to the ogr. Is that right? - Does the OGR create new Points or a new table or something else? - What kind of data sends the ogr back to the mapserver? - At what time will the MBR (Minimum Bounding Box) be calculated. The MBR is on the top of the GML-Document I get as result. - Who is calculating the MBR, the mapserver himself or the ogr? - Where is the data from for calculating the MBR, directly from the PostgreSQL-Database? So, as you can see I'm intresting in everything what happens when I'm sending a getFeature-Request. So I would be very thanksful for any answer. Best Regards Christian -- Echte DSL-Flatrate dauerhaft f?r 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue May 16 09:03:16 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Tue, 16 May 2006 12:03:16 -0400 Subject: how to speed up MapServer performance? Message-ID: Well, I don't have any for Mapserver itself, but I'm sure you'll find plenty for Apache, and it's processes vs. thread issues. Apache was never an option for windows because of its forking model ... creating processes dynamically on windows was too slow and expensive. When Apache went to MPM's and supported a threaded model, things got much better. Everything in windows is designed to be low on process creation, and thread heavy ... Including windows itself. This is not a putdown, it's just a reality. Linux has cheap processes, Windows has cheap threads. As such, CGI is more expensive on Windows. But of course, there admitedly might be other speed gains elsewhere along the line (IIS being in kernel space, and threaded) to compensate. I suppose you could compare with Apache on windows? Doesn't change the fact that what I said is true :P But yeah, I'm maybe being a little too purist here ;) J.F. _____ From: Ed McNierney [mailto:ed at topozone.com] Sent: May 16, 2006 10:03 AM To: Doyon, Jean-Francois; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? J.F. - I was with you all the way until you mentioned operating systems! There's no reason to think that Zhonghai's operating system is at all related to his problem, and it's dangerous to propagate operating system myths. I run lots of MapServer machines on Windows and Linux (mostly Linux) and I cannot find any evidence (after 5 years or so) that there's any difference worth thinking about on identical hardware. If you can show me a MapServer test with identical configurations on identical hardware showing statistically significant differences in performance when running Window vs. Linux, I'd love to see the details. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: Tuesday, May 16, 2006 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Zhonghai, You have the one big data set in there, which is the roads. If you're trying to display ALL the data in the one map, all at once, then 3 secs isn't all that bad, considering you have 60 megs of data to work through. You may want to consider generalizing the data for viewing at different scales. The fileformat itself will create a tiny bit of an impact, since it all goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... The MapServer CGI is about the fastest mapping engine you'll find out there, open source or commercial! Also, what's the hardware like? Notably disk IO? Also, I'm sorry, but I must ask :) Does it have to be windows? On Windows, processes are quite expensive, which includes CGI ... this isn't the case on Linux, where processes are cheap, and threads are expensive. Also, Linux tends to cache things better in my experience. If you're using WMS, I think there's a FastCGI interface you could try using, though I'm not sure how mature it is. J.F. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Zhonghai Wang Sent: May 16, 2006 4:09 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime > wrote: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang < zhonghaiw at GMAIL.COM > 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Tue May 16 09:15:45 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Tue, 16 May 2006 17:15:45 +0100 Subject: how to speed up MapServer performance? In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7F3B@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: We've done some benchmarking for our own system heres some conclusions that you could think about (sorry if these are repeats I just cut and paste straight from our dev wiki): *Conclusions* * The geographic size of the area being displayed makes a difference to processing performance - i.e. if you trying to display the whole of europe in one hit (with detailed vectors) * Rasters (despite having large file sizes and being of high resolution) seem to make very little difference to performance. It is good practice to create overviews, tile and pre-project into the desired coordinate system. * Pre-projecting the layers into the desired coordinate system seems to make a difference (as the worst performing layers were all in UTMs being reprojected in 3034) - however this needs to be tested further as a number of the other layers were in LatLongs and they seemed to make no impact on performance. *UPDATE: * This has now been tested with the comune being pre-projected into 3034 - and being displayed at all scales. Previosuly this gave a hit of *+23s* when it was in 32633 - when pre-projected into 3034 it only gave a hit of *0.5s*! Pre-projection is clearly an absolute priority. * Only turn layers on if they are absolutely needed (make sure that min/maxscales are used properly). * the complexity of the vector layers appears to make a difference, so in some cases, it may be worth making simplified shapefiles for use when zoomed out - and only use the most detailed ones when zoomed in enough to be able to see the complicated bits. Also you can create *.qix files. Hope it helps Stuart Doyon, Jean-Francois wrote: > Well, I don't have any for Mapserver itself, but I'm sure you'll find > plenty for Apache, and it's processes vs. thread issues. Apache was > never an option for windows because of its forking model ... creating > processes dynamically on windows was too slow and expensive. When > Apache went to MPM's and supported a threaded model, things got much > better. > > Everything in windows is designed to be low on process creation, and > thread heavy ... Including windows itself. This is not a putdown, > it's just a reality. Linux has cheap processes, Windows has cheap > threads. > > As such, CGI is more expensive on Windows. But of course, there > admitedly might be other speed gains elsewhere along the line (IIS > being in kernel space, and threaded) to compensate. I suppose you > could compare with Apache on windows? > > Doesn't change the fact that what I said is true :P But yeah, I'm > maybe being a little too purist here ;) > > J.F. > > ------------------------------------------------------------------------ > *From:* Ed McNierney [mailto:ed at topozone.com] > *Sent:* May 16, 2006 10:03 AM > *To:* Doyon, Jean-Francois; MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* RE: [UMN_MAPSERVER-USERS] how to speed up MapServer > performance? > > J.F. - > > I was with you all the way until you mentioned operating systems! > There's no reason to think that Zhonghai's operating system is at all > related to his problem, and it's dangerous to propagate operating > system myths. I run lots of MapServer machines on Windows and Linux > (mostly Linux) and I cannot find any evidence (after 5 years or so) > that there's any difference worth thinking about on identical hardware. > > If you can show me a MapServer test with identical configurations on > identical hardware showing statistically significant differences in > performance when running Window vs. Linux, I'd love to see the details. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > ed at topozone.com > > > ------------------------------------------------------------------------ > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Doyon, Jean-Francois > *Sent:* Tuesday, May 16, 2006 9:53 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] how to speed up MapServer > performance? > > Zhonghai, > > You have the one big data set in there, which is the roads. If you're > trying to display ALL the data in the one map, all at once, then 3 > secs isn't all that bad, considering you have 60 megs of data to work > through. > > You may want to consider generalizing the data for viewing at > different scales. > > The fileformat itself will create a tiny bit of an impact, since it > all goes through OGR, for "raw" speed, use shapefiles , indexed with > .qix ... > > The MapServer CGI is about the fastest mapping engine you'll find out > there, open source or commercial! > > Also, what's the hardware like? Notably disk IO? > > Also, I'm sorry, but I must ask :) Does it have to be windows? On > Windows, processes are quite expensive, which includes CGI ... this > isn't the case on Linux, where processes are cheap, and threads are > expensive. Also, Linux tends to cache things better in my experience. > > If you're using WMS, I think there's a FastCGI interface you could try > using, though I'm not sure how mature it is. > > J.F. > ------------------------------------------------------------------------ > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] *On Behalf Of *Zhonghai Wang > *Sent:* May 16, 2006 4:09 AM > *To:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] how to speed up MapServer > performance? > > Hi my friends, > > I am really very thankful for all your information, I am a newbie in > MapServer. > > here is the data amount that I am using for the application: > (all the source data is MapInfo format, and what I calculated is the > ".MAP" file) > > 1. boundaries -- 388 KB > 2. forests -- 9163 KB > 3. lakes -- 26 KB > 4. city parks -- 25 KB > 5. settlement -- 2279 KB > 6. rivers -- 1653 KB > 7. road networks -- 56370 KB > 8. railway -- 1343 KB > 9. train station -- 27 KB > 10 bus station -- 2 KB > 11. tourist centers -- 9 KB > 12. theaters -- 6 KB > 13. shopping center -- 7 KB > 14. city location -- 9 KB > > ***** > and here is how I am symbolizing the layers, mapfile for all these layers: > > *** > LAYER > NAME "Country" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_COUNTRY.TAB" > TRANSPARENCY 40 > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > #NAME "Boundaries" > STYLE > SYMBOL 0 > COLOR 155 155 155 > OUTLINECOLOR 155 155 155 > BACKGROUNDCOLOR 255 255 255 > END > END > END > LAYER > NAME "lakes" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_LAKE.TAB" > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Lake" > STYLE > COLOR 102 153 255 > END > END > END > LAYER > NAME "woodland" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WOODLAND_G.TAB" > DEBUG ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "woodland" > STYLE > COLOR 0 185 92 > END > END > END > LAYER > NAME "woodland" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WOODLAND.TAB" > MAXSCALE 100000 > #LABELITEM "Street_Label" > #SYMBOLSCALE 50000 > #LABELMAXSCALE 80000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "woodland" > STYLE > COLOR 0 185 92 > END > END > END > LAYER > NAME "city parks" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_CITY_PARK.TAB" > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Park" > STYLE > SYMBOL 0 > COLOR 233 254 205 > END > END > END > LAYER > NAME "settlement" > STATUS DEFAULT > TYPE POLYGON > #CLASSITEM "Area" > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" > MAXSCALE 800000 > #LABELITEM "Street_Label" > #SYMBOLSCALE 80000 > #LABELMAXSCALE 120000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "settlement" > #EXPRESSION ([Area]>20000) > STYLE > COLOR 207 207 158 > END > END > END > LAYER > NAME "rivers" > STATUS DEFAULT > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_WATERWYS.TAB" > MAXSCALE 800000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "river" > STYLE > COLOR 102 153 255 > END > END > END > LAYER > NAME "street50" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S50.TAB" > MAXSCALE 40000 > LABELITEM "Street_Label" > SYMBOLSCALE 5000 > LABELMAXSCALE 20000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 50" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE AUTO > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 255 255 > END > END > END > LAYER > NAME "oneway" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_ONEWAY.TAB" > MAXSCALE 40000 > SYMBOLSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Oneway" > STYLE > SYMBOL "oneway" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 51 0 > END > END > END > LAYER > NAME "street40" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S40.TAB" > MAXSCALE 100000 > LABELITEM "Street_Label" > SYMBOLSCALE 15000 > LABELMAXSCALE 30000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 40" > LABEL > # must be in the FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 2 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 20 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > ANTIALIAS TRUE > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 255 255 > ANTIALIAS TRUE > END > END > END > LAYER > NAME "street30" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S30.TAB" > MAXSCALE 250000 > LABELITEM "Street_Label" > SYMBOLSCALE 40000 > LABELMAXSCALE 120000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 30" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 2 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 30 > #MINDISTANCE 10 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 255 204 51 > END > END > END > LAYER > NAME "railway" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_RAILRDS.TAB" > MAXSCALE 8000 > SYMBOLSCALE 4000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "railway" > SYMBOL 'point' > COLOR 0 0 0 > SIZE 5 > MINSIZE 1 > MAXSIZE 5 > OVERLAYSYMBOL "dashedline" > OVERLAYCOLOR 255 255 255 > OVERLAYSIZE 3 > OVERLAYMINSIZE 0 > OVERLAYMAXSIZE 3 > END > END > LAYER > NAME "street20" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S20.TAB" > MAXSCALE 900000 > LABELITEM "Street_Label" > SYMBOLSCALE 100000 > LABELMAXSCALE 430000 > LABELCACHE ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 20" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 9 > MINSIZE 1 > MAXSIZE 9 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 0 0 255 > MINFEATURESIZE 50 > #MINDISTANCE 10 > BUFFER 0 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 160 160 160 > END > STYLE > SYMBOL "point" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > COLOR 247 193 157 > END > END > END > LAYER > NAME "street10" > STATUS DEFAULT > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_S10_O.TAB" > MAXSCALE 1700000 > LABELITEM "Street_Label" > SYMBOLSCALE 400000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Street 10" > LABEL > # must be in your FONTSET > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 1 > MAXSIZE 8 > ANGLE AUTO > POSITION CC > OFFSET 0 0 > COLOR 255 0 0 > BACKGROUNDCOLOR 153 204 153 > MINFEATURESIZE AUTO > MINDISTANCE 200 > BUFFER 1 > END > STYLE > SYMBOL "point" > SIZE 10 > MINSIZE 3 > MAXSIZE 10 > COLOR 255 0 0 > END > STYLE > SYMBOL "point" > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > COLOR 255 255 0 > END > END > END > LAYER > NAME "train station" > STATUS OFF > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_TRAIN_STATION.TAB" > MAXSCALE 10000 > #LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Train station" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 153 0 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "bus station" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_BUS_STATION.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "bus station" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 0 153 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "LOCATIONS0" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS0.TAB" > MAXSCALE 1000000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS0" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 12 > MINSIZE 2 > MAXSIZE 12 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "star" > COLOR 255 0 0 > SIZE 18 > MINSIZE 8 > MAXSIZE 18 > END > END > END > LAYER > NAME "LOCATIONS1" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS1.TAB" > MAXSCALE 800000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS1" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 12 > MINSIZE 2 > MAXSIZE 12 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 153 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "LOCATIONS2" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS2.TAB" > MAXSCALE 800000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 500000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS2" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 153 0 > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > END > END > END > LAYER > NAME "LOCATIONS3" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_AND_LOCATIONS3.TAB" > MAXSCALE 400000 > LABELITEM "Name" > SYMBOLSCALE 200000 > LABELMAXSCALE 200000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "LOCATIONS3" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION AUTO > OFFSET 0 0 > COLOR 0 0 255 > END > STYLE > SYMBOL "point" > COLOR 153 51 153 > SIZE 6 > MINSIZE 1 > MAXSIZE 6 > END > END > END > LAYER > NAME "Tourist Information" > STATUS OFF > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Tourist Information" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "rectangle" > COLOR 255 51 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > LAYER > NAME "Shopping Center" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "shopping center" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 10 > MINSIZE 2 > MAXSIZE 10 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "special" > COLOR 255 51 0 > SIZE 15 > MINSIZE 6 > MAXSIZE 15 > END > END > END > LAYER > NAME "Theater" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "CA_NAV_THEATER.TAB" > MAXSCALE 10000 > LABELITEM "Label" > SYMBOLSCALE 1000 > LABELMAXSCALE 5000 > PROJECTION > "init=epsg:4326" > END > CLASS > NAME "Theater" > LABEL > TYPE TRUETYPE > FONT "vera" > SIZE 8 > MINSIZE 2 > MAXSIZE 8 > ANGLE AUTO > POSITION UC > OFFSET 0 0 > END > STYLE > SYMBOL "triangle" > COLOR 255 51 0 > SIZE 8 > MINSIZE 3 > MAXSIZE 8 > END > END > END > *********************** > > is it still possible to speed up my application? > > **** > > the system parameters of my application: > > Windows XP professional > MS4W 4.8.1 > data source -- MapInfo data > > *--only CGI parameters are used,since it is a pure static version with > HTML, > > is it possible to develop a pure static application based on > MapServer, even in conjunction with PHP/MapScript or Chameleon? > > > thanks for any clues. > > zhonghai > > 16.05.2006 > > > On 5/15/06, *Steve Lime* > wrote: > > We really need more information about the nature of the data. I > mean if you've got > 20 layers each with a million polygons and are trying to show all > of them then 3 seconds > might be really fast! Also, the way you are symbolizing features > may impact things. > > In my experience neither 1 or 2 is worth considering... > > Steve > > Steve > > >>> Zhonghai Wang < zhonghaiw at GMAIL.COM > > 5/15/2006 9:15:49 AM >>> > Hi there, > > for a special purpose I've developed an static version application > based on > MapServer CGI, which means I just use pure HTML tages for the GUI, > even > without JavaScript code snippets to validate forms. > > I have about 20 map layers to display according to different map scale > (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no > data > classifications within a layer object, the status of all layers > are set as > default. > > I've made a test on a standalone MapServer (XP system), every > request takes > about 3 second. Obvioursly it's not fast enough for a web > application, since > there may be many users requesting the server at the same time if the > application is published on the web. > > Is MapServer really so slow? can anybody give me some ideas?should > I modify > the mapfiles? > > I am wondering whether the following solutions will work: > 1. define every layer as a seperate mapfile, and combine them > together by > request > 2. turn off the non-displayed layers off on the fly > > are these possible to speed up MapServer performance? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue May 16 09:23:06 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 16 May 2006 12:23:06 -0400 Subject: how to speed up MapServer performance? Message-ID: J.F. - I don't have any personal feelings for or against either Windows or Linux - they're just software; that's why I use both. But a lot of those points are only remotely relevant to real MapServer application performance; they sound more like marketing literature . Saying "Linux has cheap processes" tells me nothing; what does "cheap" mean in milliseconds? Does the process creation time represent 30% of the total time responding to the HTTP request, or does it represent 0.0001% of the total time? Zhonghai's original example required 3 seconds to respond to an HTTP request. How much of that time do you think was spent in CGI process startup/teardown time? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: Tuesday, May 16, 2006 12:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Well, I don't have any for Mapserver itself, but I'm sure you'll find plenty for Apache, and it's processes vs. thread issues. Apache was never an option for windows because of its forking model ... creating processes dynamically on windows was too slow and expensive. When Apache went to MPM's and supported a threaded model, things got much better. Everything in windows is designed to be low on process creation, and thread heavy ... Including windows itself. This is not a putdown, it's just a reality. Linux has cheap processes, Windows has cheap threads. As such, CGI is more expensive on Windows. But of course, there admitedly might be other speed gains elsewhere along the line (IIS being in kernel space, and threaded) to compensate. I suppose you could compare with Apache on windows? Doesn't change the fact that what I said is true :P But yeah, I'm maybe being a little too purist here ;) J.F. ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: May 16, 2006 10:03 AM To: Doyon, Jean-Francois; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? J.F. - I was with you all the way until you mentioned operating systems! There's no reason to think that Zhonghai's operating system is at all related to his problem, and it's dangerous to propagate operating system myths. I run lots of MapServer machines on Windows and Linux (mostly Linux) and I cannot find any evidence (after 5 years or so) that there's any difference worth thinking about on identical hardware. If you can show me a MapServer test with identical configurations on identical hardware showing statistically significant differences in performance when running Window vs. Linux, I'd love to see the details. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: Tuesday, May 16, 2006 9:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Zhonghai, You have the one big data set in there, which is the roads. If you're trying to display ALL the data in the one map, all at once, then 3 secs isn't all that bad, considering you have 60 megs of data to work through. You may want to consider generalizing the data for viewing at different scales. The fileformat itself will create a tiny bit of an impact, since it all goes through OGR, for "raw" speed, use shapefiles , indexed with .qix ... The MapServer CGI is about the fastest mapping engine you'll find out there, open source or commercial! Also, what's the hardware like? Notably disk IO? Also, I'm sorry, but I must ask :) Does it have to be windows? On Windows, processes are quite expensive, which includes CGI ... this isn't the case on Linux, where processes are cheap, and threads are expensive. Also, Linux tends to cache things better in my experience. If you're using WMS, I think there's a FastCGI interface you could try using, though I'm not sure how mature it is. J.F. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Zhonghai Wang Sent: May 16, 2006 4:09 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] how to speed up MapServer performance? Hi my friends, I am really very thankful for all your information, I am a newbie in MapServer. here is the data amount that I am using for the application: (all the source data is MapInfo format, and what I calculated is the ".MAP" file) 1. boundaries -- 388 KB 2. forests -- 9163 KB 3. lakes -- 26 KB 4. city parks -- 25 KB 5. settlement -- 2279 KB 6. rivers -- 1653 KB 7. road networks -- 56370 KB 8. railway -- 1343 KB 9. train station -- 27 KB 10 bus station -- 2 KB 11. tourist centers -- 9 KB 12. theaters -- 6 KB 13. shopping center -- 7 KB 14. city location -- 9 KB ***** and here is how I am symbolizing the layers, mapfile for all these layers: *** LAYER NAME "Country" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_COUNTRY.TAB" TRANSPARENCY 40 DEBUG ON PROJECTION "init=epsg:4326" END CLASS #NAME "Boundaries" STYLE SYMBOL 0 COLOR 155 155 155 OUTLINECOLOR 155 155 155 BACKGROUNDCOLOR 255 255 255 END END END LAYER NAME "lakes" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_LAKE.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "Lake" STYLE COLOR 102 153 255 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND_G.TAB" DEBUG ON PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "woodland" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WOODLAND.TAB" MAXSCALE 100000 #LABELITEM "Street_Label" #SYMBOLSCALE 50000 #LABELMAXSCALE 80000 PROJECTION "init=epsg:4326" END CLASS NAME "woodland" STYLE COLOR 0 185 92 END END END LAYER NAME "city parks" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_CITY_PARK.TAB" PROJECTION "init=epsg:4326" END CLASS NAME "Park" STYLE SYMBOL 0 COLOR 233 254 205 END END END LAYER NAME "settlement" STATUS DEFAULT TYPE POLYGON #CLASSITEM "Area" CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUILT_UP_AREA.TAB" MAXSCALE 800000 #LABELITEM "Street_Label" #SYMBOLSCALE 80000 #LABELMAXSCALE 120000 PROJECTION "init=epsg:4326" END CLASS NAME "settlement" #EXPRESSION ([Area]>20000) STYLE COLOR 207 207 158 END END END LAYER NAME "rivers" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CA_NAV_WATERWYS.TAB" MAXSCALE 800000 PROJECTION "init=epsg:4326" END CLASS NAME "river" STYLE COLOR 102 153 255 END END END LAYER NAME "street50" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S50.TAB" MAXSCALE 40000 LABELITEM "Street_Label" SYMBOLSCALE 5000 LABELMAXSCALE 20000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 50" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE AUTO BUFFER 0 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 END END END LAYER NAME "oneway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_ONEWAY.TAB" MAXSCALE 40000 SYMBOLSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Oneway" STYLE SYMBOL "oneway" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 51 0 END END END LAYER NAME "street40" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S40.TAB" MAXSCALE 100000 LABELITEM "Street_Label" SYMBOLSCALE 15000 LABELMAXSCALE 30000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 40" LABEL # must be in the FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 20 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 ANTIALIAS TRUE END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 255 255 ANTIALIAS TRUE END END END LAYER NAME "street30" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S30.TAB" MAXSCALE 250000 LABELITEM "Street_Label" SYMBOLSCALE 40000 LABELMAXSCALE 120000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 30" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 2 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 30 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 255 204 51 END END END LAYER NAME "railway" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_RAILRDS.TAB" MAXSCALE 8000 SYMBOLSCALE 4000 PROJECTION "init=epsg:4326" END CLASS NAME "railway" SYMBOL 'point' COLOR 0 0 0 SIZE 5 MINSIZE 1 MAXSIZE 5 OVERLAYSYMBOL "dashedline" OVERLAYCOLOR 255 255 255 OVERLAYSIZE 3 OVERLAYMINSIZE 0 OVERLAYMAXSIZE 3 END END LAYER NAME "street20" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S20.TAB" MAXSCALE 900000 LABELITEM "Street_Label" SYMBOLSCALE 100000 LABELMAXSCALE 430000 LABELCACHE ON PROJECTION "init=epsg:4326" END CLASS NAME "Street 20" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 9 MINSIZE 1 MAXSIZE 9 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 0 0 255 MINFEATURESIZE 50 #MINDISTANCE 10 BUFFER 0 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 160 160 160 END STYLE SYMBOL "point" SIZE 8 MINSIZE 1 MAXSIZE 8 COLOR 247 193 157 END END END LAYER NAME "street10" STATUS DEFAULT TYPE LINE CONNECTIONTYPE OGR CONNECTION "CA_NAV_S10_O.TAB" MAXSCALE 1700000 LABELITEM "Street_Label" SYMBOLSCALE 400000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "Street 10" LABEL # must be in your FONTSET TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 1 MAXSIZE 8 ANGLE AUTO POSITION CC OFFSET 0 0 COLOR 255 0 0 BACKGROUNDCOLOR 153 204 153 MINFEATURESIZE AUTO MINDISTANCE 200 BUFFER 1 END STYLE SYMBOL "point" SIZE 10 MINSIZE 3 MAXSIZE 10 COLOR 255 0 0 END STYLE SYMBOL "point" SIZE 6 MINSIZE 1 MAXSIZE 6 COLOR 255 255 0 END END END LAYER NAME "train station" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TRAIN_STATION.TAB" MAXSCALE 10000 #LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Train station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 153 0 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "bus station" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_BUS_STATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "bus station" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 0 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS0" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS0.TAB" MAXSCALE 1000000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS0" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "star" COLOR 255 0 0 SIZE 18 MINSIZE 8 MAXSIZE 18 END END END LAYER NAME "LOCATIONS1" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS1.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS1" LABEL TYPE TRUETYPE FONT "vera" SIZE 12 MINSIZE 2 MAXSIZE 12 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "LOCATIONS2" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS2.TAB" MAXSCALE 800000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 500000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS2" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 153 0 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "LOCATIONS3" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_AND_LOCATIONS3.TAB" MAXSCALE 400000 LABELITEM "Name" SYMBOLSCALE 200000 LABELMAXSCALE 200000 PROJECTION "init=epsg:4326" END CLASS NAME "LOCATIONS3" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION AUTO OFFSET 0 0 COLOR 0 0 255 END STYLE SYMBOL "point" COLOR 153 51 153 SIZE 6 MINSIZE 1 MAXSIZE 6 END END END LAYER NAME "Tourist Information" STATUS OFF TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_TOURIST_INFORMATION.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Tourist Information" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "rectangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END LAYER NAME "Shopping Center" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_SHOPPING_CENTER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "shopping center" LABEL TYPE TRUETYPE FONT "vera" SIZE 10 MINSIZE 2 MAXSIZE 10 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "special" COLOR 255 51 0 SIZE 15 MINSIZE 6 MAXSIZE 15 END END END LAYER NAME "Theater" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "CA_NAV_THEATER.TAB" MAXSCALE 10000 LABELITEM "Label" SYMBOLSCALE 1000 LABELMAXSCALE 5000 PROJECTION "init=epsg:4326" END CLASS NAME "Theater" LABEL TYPE TRUETYPE FONT "vera" SIZE 8 MINSIZE 2 MAXSIZE 8 ANGLE AUTO POSITION UC OFFSET 0 0 END STYLE SYMBOL "triangle" COLOR 255 51 0 SIZE 8 MINSIZE 3 MAXSIZE 8 END END END *********************** is it still possible to speed up my application? **** the system parameters of my application: Windows XP professional MS4W 4.8.1 data source -- MapInfo data *--only CGI parameters are used,since it is a pure static version with HTML, is it possible to develop a pure static application based on MapServer, even in conjunction with PHP/MapScript or Chameleon? thanks for any clues. zhonghai 16.05.2006 On 5/15/06, Steve Lime wrote: We really need more information about the nature of the data. I mean if you've got 20 layers each with a million polygons and are trying to show all of them then 3 seconds might be really fast! Also, the way you are symbolizing features may impact things. In my experience neither 1 or 2 is worth considering... Steve Steve >>> Zhonghai Wang < zhonghaiw at GMAIL.COM > 5/15/2006 9:15:49 AM >>> Hi there, for a special purpose I've developed an static version application based on MapServer CGI, which means I just use pure HTML tages for the GUI, even without JavaScript code snippets to validate forms. I have about 20 map layers to display according to different map scale (ussing the MAXSCALE, SYMBOLSCALE AND LABELMAXSCALE), there are no data classifications within a layer object, the status of all layers are set as default. I've made a test on a standalone MapServer (XP system), every request takes about 3 second. Obvioursly it's not fast enough for a web application, since there may be many users requesting the server at the same time if the application is published on the web. Is MapServer really so slow? can anybody give me some ideas?should I modify the mapfiles? I am wondering whether the following solutions will work: 1. define every layer as a seperate mapfile, and combine them together by request 2. turn off the non-displayed layers off on the fly are these possible to speed up MapServer performance? -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Tue May 16 09:42:51 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 16 May 2006 13:42:51 -0300 Subject: Missing FeatureMember with Oracle Spati al In-Reply-To: <549339430@web.de> Message-ID: Hi Holger, The UNIQUE parameter just accept an unique column because in Mapserver core the shapeobj index it's a number. Can you provide more details about the error that Mapserver reported? I'm working in another Oracle Spatial bug request, but I need more report about it. I will try to fix it for the next release. Bart, can you post a little example of a layer that you are using with WFS and Oracle Spatial? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ H. Porath wrote: > Hi Bart, > > yes, i added a new primary key to my table because the original primary key spans over four columns and i didn't know how to use the UNIQUE statement with more than one primary key column. Anyway, it didn't help so i removed it. > > Thanks for thinking about my problem. > > Regards, > > > Holger > > -----Urspr?ngliche Nachricht----- > Von: "Eijnden, B. van den (Bart)" > Gesendet: 15.05.06 19:54:03 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al > > > > Have you tried using USING UNIQUE [primary_key] in your DATA statement? > > > See the Oracle Spatial HOWTO for details. > > > Best regards, > > Bart > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > From watry at COAPS.FSU.EDU Tue May 16 10:17:21 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Tue, 16 May 2006 13:17:21 -0400 Subject: Python mapscript in IIS Message-ID: How do you load Python mapscript in IIS I am working on http://gw102.coaps.fsu.edu/httpdocs/example.php I need to load Pythom Mapscript in IIS in order to get my legend to work? Thoughts? ______________________________________________________________ Gary L. Watry ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From karrarm at YAHOO.COM Tue May 16 11:35:15 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Tue, 16 May 2006 11:35:15 -0700 Subject: Anti Aliasing In-Reply-To: Message-ID: Thanks steve! I made the changes you suggested but I started getting script errors. It looks like the errors are due to 'PNG24'. I am using Mapserver 4.6. Do I need to use 4.8 or later to successfully use PNG24? Thanks Krishna --- Steve Lime wrote: > You need a couple of other things: > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > - alpha blending turned on for the layer (e.g. > TRANSPARENCY ALPHA) > > That should get it working... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 > >>> ramesh karra 05/15/06 6:49 > PM >>> > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE > objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but > there > was no difference in the way lines(representing > roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fsimon at UNIVALI.BR Tue May 16 11:38:44 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 16 May 2006 15:38:44 -0300 Subject: Missing FeatureMember with Oracle Spati al In-Reply-To: <550332452@web.de> Message-ID: Hi Holger, Sure, big numbers can make the request (query) not work correctly in Mapserver and Oracle Spatial.It's the second time that this kind of problem occur. This occurs because Oracle can store numbers that are bigger of Mapserver can store in shapeobj index. Maybe this issue needs a bug report. Best regards ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ porath at web.de wrote: > Hi Fernando, > > i have made some further investigations today. First, Bart was right that the UNIQUE parameter was missing in my DATA statement. Second, the primary key column of all records in my oracle spatial database table contained more than 10 digits (exactly 17). After cutting the values to 10 digits the wfs returned correctly all featuremembers. > > Regards, > > Holger > > > > -----Urspr?ngliche Nachricht----- > Von: Fernando Simon > Gesendet: 16.05.06 18:42:46 > An: porath at WEB.DE > CC: MAPSERVER-USERS at LISTS.UMN.EDU, b.vdeijnden at AGI.RWS.MINVENW.NL > Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al > > > Hi Holger, > The UNIQUE parameter just accept an unique column because in > Mapserver core the shapeobj index it's a number. > Can you provide more details about the error that Mapserver reported? > I'm working in another Oracle Spatial bug request, but I need more > report about it. I will try to fix it for the next release. > Bart, can you post a little example of a layer that you are using > with WFS and Oracle Spatial? > Best regards. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > H. Porath wrote: > >> Hi Bart, >> >> yes, i added a new primary key to my table because the original primary key spans over four columns and i didn't know how to use the UNIQUE statement with more than one primary key column. Anyway, it didn't help so i removed it. >> >> Thanks for thinking about my problem. >> >> Regards, >> >> >> Holger >> >> -----Urspr?ngliche Nachricht----- >> Von: "Eijnden, B. van den (Bart)" >> Gesendet: 15.05.06 19:54:03 >> An: MAPSERVER-USERS at LISTS.UMN.EDU >> Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al >> >> >> >> Have you tried using USING UNIQUE [primary_key] in your DATA statement? >> >> >> See the Oracle Spatial HOWTO for details. >> >> >> Best regards, >> >> Bart >> >> _______________________________________________________________ >> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und >> kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 >> >> >> > > > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > > From rubydunes at YAHOO.COM Tue May 16 12:14:02 2006 From: rubydunes at YAHOO.COM (rubydunes) Date: Tue, 16 May 2006 12:14:02 -0700 Subject: Feature Selection/Get Info Message-ID: Hey folks. I've tried everything and can't get a selection / get info tool to work. I set the MODE to QUERY and then click on a feature and it goes to the template for the layer as it should, but all I see are the field tags and not the information that should replace them. For example, if I click on a Parcel, the browser goes to Parcel.html (the template) but all I see is this: [PARCELID] [STREET] [NUMBER] etc... I must be missing an important step that sends these valuse to the template file. Right now it's like it's just opening the file. Any ideas? Thanks!!! Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Tue May 16 12:39:40 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 May 2006 14:39:40 -0500 Subject: Anti Aliasing Message-ID: You need 4.8 or later to use antialiasing... ;-) >>> ramesh karra 5/16/2006 1:35:15 PM >>> Thanks steve! I made the changes you suggested but I started getting script errors. It looks like the errors are due to 'PNG24'. I am using Mapserver 4.6. Do I need to use 4.8 or later to successfully use PNG24? Thanks Krishna --- Steve Lime wrote: > You need a couple of other things: > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > - alpha blending turned on for the layer (e.g. > TRANSPARENCY ALPHA) > > That should get it working... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 > >>> ramesh karra 05/15/06 6:49 > PM >>> > Hi, > > I have added 'ANTIALIAS TRUE' to all my STYLE > objects > but I do not see any difference in the map that's > displayed. I was hoping to see smooth lines but > there > was no difference in the way lines(representing > roads) > are drawn with or without anti-aliasing. Is this the > expected behavior? How can I get smooth lines? > > My layer is defined as follows: > > LAYER > NAME roads > DATA droad1 > STATUS OFF > TYPE LINE > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME "Roads" > MAXSCALE 80000 > MINSCALE 20000 > STYLE > ANTIALIAS TRUE > COLOR 150 150 150 > WIDTH 3 > END > STYLE > ANTIALIAS TRUE > COLOR 255 255 255 > WIDTH 1 > END > END > END > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Steve.Lime at DNR.STATE.MN.US Tue May 16 12:43:29 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 16 May 2006 14:43:29 -0500 Subject: Feature Selection/Get Info Message-ID: Hi Bill: Sounds like you're very close. Pasting in the layer def for parcels might help us diagnose some possible problems. The item tags are case sensitive and must match what's in the datasource exactly. For shaefiles that's typically all upper case but I have run into .dbf files with mixed case names. I'd check the actual names to make sure those match the tags you're using. Steve >>> rubydunes 5/16/2006 2:14:02 PM >>> Hey folks. I've tried everything and can't get a selection / get info tool to work. I set the MODE to QUERY and then click on a feature and it goes to the template for the layer as it should, but all I see are the field tags and not the information that should replace them. For example, if I click on a Parcel, the browser goes to Parcel.html (the template) but all I see is this: [PARCELID] [STREET] [NUMBER] etc... I must be missing an important step that sends these valuse to the template file. Right now it's like it's just opening the file. Any ideas? Thanks!!! Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From porath at WEB.DE Tue May 16 10:44:47 2006 From: porath at WEB.DE (H. Porath) Date: Tue, 16 May 2006 19:44:47 +0200 Subject: Missing FeatureMember with Oracle Spati al Message-ID: Hi Fernando, i have made some further investigations today. First, Bart was right that the UNIQUE parameter was missing in my DATA statement. Second, the primary key column of all records in my oracle spatial database table contained more than 10 digits (exactly 17). After cutting the values to 10 digits the wfs returned correctly all featuremembers. Regards, Holger -----Urspr?ngliche Nachricht----- Von: Fernando Simon Gesendet: 16.05.06 18:42:46 An: porath at WEB.DE CC: MAPSERVER-USERS at LISTS.UMN.EDU, b.vdeijnden at AGI.RWS.MINVENW.NL Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al Hi Holger, The UNIQUE parameter just accept an unique column because in Mapserver core the shapeobj index it's a number. Can you provide more details about the error that Mapserver reported? I'm working in another Oracle Spatial bug request, but I need more report about it. I will try to fix it for the next release. Bart, can you post a little example of a layer that you are using with WFS and Oracle Spatial? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ H. Porath wrote: > Hi Bart, > > yes, i added a new primary key to my table because the original primary key spans over four columns and i didn't know how to use the UNIQUE statement with more than one primary key column. Anyway, it didn't help so i removed it. > > Thanks for thinking about my problem. > > Regards, > > > Holger > > -----Urspr?ngliche Nachricht----- > Von: "Eijnden, B. van den (Bart)" > Gesendet: 15.05.06 19:54:03 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] Missing FeatureMember with Oracle Spati al > > > > Have you tried using USING UNIQUE [primary_key] in your DATA statement? > > > See the Oracle Spatial HOWTO for details. > > > Best regards, > > Bart > > _______________________________________________________________ > SMS schreiben mit WEB.DE FreeMail - einfach, schnell und > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 > > _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From karrarm at YAHOO.COM Tue May 16 15:07:14 2006 From: karrarm at YAHOO.COM (ramesh karra) Date: Tue, 16 May 2006 15:07:14 -0700 Subject: Anti Aliasing In-Reply-To: Message-ID: Thanks steve! I have upgraded to 4.8.3 and the roads/lines are smooth... Looks really good. Thanks Ramesh --- Steve Lime wrote: > You need 4.8 or later to use antialiasing... ;-) > > >>> ramesh karra 5/16/2006 > 1:35:15 PM >>> > Thanks steve! > > I made the changes you suggested but I started > getting > script errors. It looks like the errors are due to > 'PNG24'. I am using Mapserver 4.6. Do I need to use > 4.8 or later to successfully use PNG24? > > Thanks > Krishna > > --- Steve Lime wrote: > > > You need a couple of other things: > > > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > > - alpha blending turned on for the layer (e.g. > > TRANSPARENCY ALPHA) > > > > That should get it working... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-259-5473 > > >>> ramesh karra 05/15/06 6:49 > > PM >>> > > Hi, > > > > I have added 'ANTIALIAS TRUE' to all my STYLE > > objects > > but I do not see any difference in the map that's > > displayed. I was hoping to see smooth lines but > > there > > was no difference in the way lines(representing > > roads) > > are drawn with or without anti-aliasing. Is this > the > > expected behavior? How can I get smooth lines? > > > > My layer is defined as follows: > > > > LAYER > > NAME roads > > DATA droad1 > > STATUS OFF > > TYPE LINE > > > > PROJECTION > > "init=epsg:4326" > > END > > > > CLASS > > NAME "Roads" > > MAXSCALE 80000 > > MINSCALE 20000 > > STYLE > > ANTIALIAS TRUE > > COLOR 150 150 150 > > WIDTH 3 > > END > > STYLE > > ANTIALIAS TRUE > > COLOR 255 255 255 > > WIDTH 1 > > END > > END > > END > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dahnken at MAIL.BT-GIS.DE Tue May 16 23:43:33 2006 From: dahnken at MAIL.BT-GIS.DE (Jens Dahnken) Date: Wed, 17 May 2006 08:43:33 +0200 Subject: compiling error mapserver 4.2 under SLES 9 In-Reply-To: <931f8ea90512140643o2c70f2eejc85a6431dd45df0c@mail.gmail.com> Message-ID: I'm trying to compile the mapserver 4.2.0 under SLES 9. I call ./configure and that runs through to Makefile. Starting make it ends with: collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Any idea how to solve this problem? The whole make protocol is attached. Thanks in advance, Jens -------------------- Jens Dahnken BT-GIS Bonn -------------------- make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maptemplate.c -o maptemplate.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maplexer.c -o maplexer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapsymbol.c -o mapsymbol.o mapsymbol.c: In function `msCopySymbolSet': mapsymbol.c:785: warning: implicit declaration of function `copyStringPropertyRealloc' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maplegend.c -o maplegend.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapprimitive.c -o mapprimitive.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapproject.c -o mapproject.o mapproject.c: In function `msGetEPSGProj': mapproject.c:460: warning: return makes pointer from integer without a cast mapproject.c: At top level: mapproject.c:469: warning: `msProjFinder' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapraster.c -o mapraster.o mapraster.c: In function `readGEOTiff': mapraster.c:417: warning: dereferencing type-punned pointer will break strict-aliasing rules mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from incompatible pointer type mapraster.c:421: warning: dereferencing type-punned pointer will break strict-aliasing rules mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from incompatible pointer type gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapsde.c -o mapsde.o g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapmygis.c -o mapmygis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapwmslayer.c -o mapwmslayer.o mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maporaclespatial.c -o maporaclespatial.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapgml.c -o mapgml.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapprojhack.c -o mapprojhack.o mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapthread.c -o mapthread.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapdraw.c -o mapdraw.o mapdraw.c: In function `msDrawMap': mapdraw.c:107: warning: unused variable `lastconnectiontype' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapgd.c -o mapgd.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapoutput.c -o mapoutput.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapgdal.c -o mapgdal.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapswf.c -o mapswf.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapimagemap.c -o mapimagemap.o mapimagemap.c:58: warning: `searchImageCache' defined but not used mapimagemap.c:94: warning: `addImageCache' defined but not used mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used mapimagemap.c:378: warning: `imagePolyline' defined but not used mapimagemap.c:1414: warning: `billboardIM' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapows.c -o mapows.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapwfs.c -o mapwfs.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapwfslayer.c -o mapwfslayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapcontext.c -o mapcontext.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maphttp.c -o maphttp.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapdrawgdal.c -o mapdrawgdal.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mappdf.c -o mappdf.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapjoin.c -o mapjoin.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapgraticule.c -o mapgraticule.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapcopy.c -o mapcopy.o mapcopy.c: In function `msCopyProjection': mapcopy.c:103: warning: unused variable `i' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapogcfilter.c -o mapogcfilter.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapogcsld.c -o mapogcsld.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include maptime.c -o maptime.o maptime.c: In function `msStrptime': maptime.c:92: warning: implicit declaration of function `strptime' maptime.c:92: warning: return makes pointer from integer without a cast gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include mapwcs.c -o mapwcs.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include cgiutil.c -o cgiutil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include epplib.c -o epplib.o ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o epplib.o ranlib libmap.a gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include shp2img.c -o shp2img.o gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz -ltiff -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': : undefined reference to `lexer_cleanup' ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5bab): In function `loadExpressionString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x5bbb): In function `loadExpressionString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x5be7): In function `loadExpressionString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5c19): In function `loadExpressionString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': : undefined reference to `msyyrestart' ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to `msyytext' follow ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': : undefined reference to `msyynumber' ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': : undefined reference to `msyystring' ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': : undefined reference to `msyystate' ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': : undefined reference to `msyyrestart' ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': : undefined reference to `msyylex' ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': : undefined reference to `msyyin' ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': : undefined reference to `msyytext' ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': : undefined reference to `msyylineno' ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': : undefined reference to `msyytext' ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': : undefined reference to `msyystate' ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': : undefined reference to `msyystring' ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': : undefined reference to `msyystate' ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': : undefined reference to `msyystring' ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': : undefined reference to `msyyerror' ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': : undefined reference to `msyylex' ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': : undefined reference to `msyyerror' ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': : undefined reference to `msyyerror' ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': : undefined reference to `msyyin' ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': : undefined reference to `msyyin' ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': : undefined reference to `msyyin' ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': : undefined reference to `msyyrestart' ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': : undefined reference to `msyylineno' ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': : undefined reference to `msyytext' ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': : undefined reference to `msyylex' ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': : undefined reference to `msyyin' ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': : undefined reference to `msyystate' ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': : undefined reference to `msyystring' ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': : undefined reference to `msyystate' ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': : undefined reference to `msyystring' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 From m.meier at SPIEKERMANN.DE Wed May 17 00:25:09 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 17 May 2006 09:25:09 +0200 Subject: compiling error mapserver 4.2 under SLES 9 In-Reply-To: <000001c6797d$3afa8f90$32000e0a@jens> Message-ID: Perhaps you have to install lex or flex. Manfred Jens Dahnken schrieb: > I'm trying to compile the mapserver 4.2.0 under SLES 9. > I call ./configure and that runs through to Makefile. > Starting make it ends with: > > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Any idea how to solve this problem? > The whole make protocol is attached. > > Thanks in advance, > Jens > -------------------- > Jens Dahnken > BT-GIS > Bonn > -------------------- > > make > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maptemplate.c -o maptemplate.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapbits.c -o mapbits.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maphash.c -o maphash.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapshape.c -o mapshape.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapxbase.c -o mapxbase.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapparser.c -o mapparser.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maplexer.c -o maplexer.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maptree.c -o maptree.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapsearch.c -o mapsearch.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapstring.c -o mapstring.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapsymbol.c -o mapsymbol.o > mapsymbol.c: In function `msCopySymbolSet': > mapsymbol.c:785: warning: implicit declaration of function > `copyStringPropertyRealloc' > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapfile.c -o mapfile.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maplegend.c -o maplegend.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maputil.c -o maputil.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapscale.c -o mapscale.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapquery.c -o mapquery.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maplabel.c -o maplabel.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maperror.c -o maperror.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapprimitive.c -o mapprimitive.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapproject.c -o mapproject.o > mapproject.c: In function `msGetEPSGProj': > mapproject.c:460: warning: return makes pointer from integer without a cast > mapproject.c: At top level: > mapproject.c:469: warning: `msProjFinder' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapraster.c -o mapraster.o > mapraster.c: In function `readGEOTiff': > mapraster.c:417: warning: dereferencing type-punned pointer will break > strict-aliasing rules > mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from incompatible > pointer type > mapraster.c:421: warning: dereferencing type-punned pointer will break > strict-aliasing rules > mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from incompatible > pointer type > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapsde.c -o mapsde.o > g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapogr.cpp -o mapogr.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mappostgis.c -o mappostgis.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapmygis.c -o mapmygis.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maplayer.c -o maplayer.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapresample.c -o mapresample.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapwms.c -o mapwms.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapwmslayer.c -o mapwmslayer.o > mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used > mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maporaclespatial.c -o maporaclespatial.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapgml.c -o mapgml.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapprojhack.c -o mapprojhack.o > mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapthread.c -o mapthread.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapdraw.c -o mapdraw.o > mapdraw.c: In function `msDrawMap': > mapdraw.c:107: warning: unused variable `lastconnectiontype' > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapgd.c -o mapgd.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapoutput.c -o mapoutput.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapgdal.c -o mapgdal.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapswf.c -o mapswf.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapimagemap.c -o mapimagemap.o > mapimagemap.c:58: warning: `searchImageCache' defined but not used > mapimagemap.c:94: warning: `addImageCache' defined but not used > mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used > mapimagemap.c:378: warning: `imagePolyline' defined but not used > mapimagemap.c:1414: warning: `billboardIM' defined but not used > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapows.c -o mapows.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapwfs.c -o mapwfs.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapwfslayer.c -o mapwfslayer.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapcontext.c -o mapcontext.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maphttp.c -o maphttp.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapdrawgdal.c -o mapdrawgdal.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mappdf.c -o mappdf.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapjoin.c -o mapjoin.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapgraticule.c -o mapgraticule.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapcopy.c -o mapcopy.o > mapcopy.c: In function `msCopyProjection': > mapcopy.c:103: warning: unused variable `i' > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapogcfilter.c -o mapogcfilter.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapogcsld.c -o mapogcsld.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include maptime.c -o maptime.o > maptime.c: In function `msStrptime': > maptime.c:92: warning: implicit declaration of function `strptime' > maptime.c:92: warning: return makes pointer from integer without a cast > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include mapwcs.c -o mapwcs.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include cgiutil.c -o cgiutil.o > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include epplib.c -o epplib.o > ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o > mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o > mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o > mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o > mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o > maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o > mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o > mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o > mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o epplib.o > ranlib libmap.a > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -I/usr/include shp2img.c -o shp2img.o > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/usr/include > shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz -ltiff > -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img > ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': > : undefined reference to `lexer_cleanup' > ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5bab): In function `loadExpressionString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x5bbb): In function `loadExpressionString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x5be7): In function `loadExpressionString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5c19): In function `loadExpressionString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': > : undefined reference to `msyyrestart' > ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to `msyytext' > follow > ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': > : undefined reference to `msyynumber' > ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': > : undefined reference to `msyystring' > ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': > : undefined reference to `msyystate' > ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': > : undefined reference to `msyyrestart' > ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': > : undefined reference to `msyylex' > ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': > : undefined reference to `msyyin' > ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': > : undefined reference to `msyytext' > ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': > : undefined reference to `msyylineno' > ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': > : undefined reference to `msyytext' > ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': > : undefined reference to `msyystate' > ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': > : undefined reference to `msyystring' > ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': > : undefined reference to `msyystate' > ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': > : undefined reference to `msyystring' > ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': > : undefined reference to `msyyerror' > ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': > : undefined reference to `msyylex' > ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': > : undefined reference to `msyyerror' > ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': > : undefined reference to `msyyerror' > ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': > : undefined reference to `msyyin' > ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': > : undefined reference to `msyyin' > ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': > : undefined reference to `msyyin' > ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': > : undefined reference to `msyyrestart' > ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': > : undefined reference to `msyylineno' > ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': > : undefined reference to `msyytext' > ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': > : undefined reference to `msyylex' > ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': > : undefined reference to `msyyin' > ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': > : undefined reference to `msyystate' > ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': > : undefined reference to `msyystring' > ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': > : undefined reference to `msyystate' > ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': > : undefined reference to `msyystring' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > From dahnken at MAIL.BT-GIS.DE Wed May 17 01:03:40 2006 From: dahnken at MAIL.BT-GIS.DE (Jens Dahnken) Date: Wed, 17 May 2006 10:03:40 +0200 Subject: AW: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES 9 In-Reply-To: <446ACFD5.4070906@spiekermann.de> Message-ID: Thanks for the hint ! What is this lex or flex for ? Is it a library or program ? I have flex installed, but that is for building text-scanners. Jens \-----Urspr?ngliche Nachricht----- \Von: Manfred Meier [mailto:m.meier at spiekermann.de] \Gesendet: Mittwoch, 17. Mai 2006 09:25 \An: Jens Dahnken \Cc: mapserver \Betreff: Re: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES \9 \ \Perhaps you have to install lex or flex. \Manfred \ \ \Jens Dahnken schrieb: \> I'm trying to compile the mapserver 4.2.0 under SLES 9. \> I call ./configure and that runs through to Makefile. \> Starting make it ends with: \> \> collect2: ld returned 1 exit status \> make: *** [shp2img] Error 1 \> \> Any idea how to solve this problem? \> The whole make protocol is attached. \> \> Thanks in advance, \> Jens \> -------------------- \> Jens Dahnken \> BT-GIS \> Bonn \> -------------------- \> \> make \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maptemplate.c -o maptemplate.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapbits.c -o mapbits.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maphash.c -o maphash.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapshape.c -o mapshape.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapxbase.c -o mapxbase.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapparser.c -o mapparser.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maplexer.c -o maplexer.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maptree.c -o maptree.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapsearch.c -o mapsearch.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapstring.c -o mapstring.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapsymbol.c -o mapsymbol.o \> mapsymbol.c: In function `msCopySymbolSet': \> mapsymbol.c:785: warning: implicit declaration of function \> `copyStringPropertyRealloc' \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapfile.c -o mapfile.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maplegend.c -o maplegend.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maputil.c -o maputil.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapscale.c -o mapscale.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapquery.c -o mapquery.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maplabel.c -o maplabel.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maperror.c -o maperror.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapprimitive.c -o mapprimitive.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapproject.c -o mapproject.o \> mapproject.c: In function `msGetEPSGProj': \> mapproject.c:460: warning: return makes pointer from integer without a \cast \> mapproject.c: At top level: \> mapproject.c:469: warning: `msProjFinder' defined but not used \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapraster.c -o mapraster.o \> mapraster.c: In function `readGEOTiff': \> mapraster.c:417: warning: dereferencing type-punned pointer will break \> strict-aliasing rules \> mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from \incompatible \> pointer type \> mapraster.c:421: warning: dereferencing type-punned pointer will break \> strict-aliasing rules \> mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from \incompatible \> pointer type \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapsde.c -o mapsde.o \> g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapogr.cpp -o mapogr.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mappostgis.c -o mappostgis.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapmygis.c -o mapmygis.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maplayer.c -o maplayer.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapresample.c -o mapresample.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapwms.c -o mapwms.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapwmslayer.c -o mapwmslayer.o \> mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used \> mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maporaclespatial.c -o maporaclespatial.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapgml.c -o mapgml.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapprojhack.c -o mapprojhack.o \> mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not \used \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapthread.c -o mapthread.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapdraw.c -o mapdraw.o \> mapdraw.c: In function `msDrawMap': \> mapdraw.c:107: warning: unused variable `lastconnectiontype' \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapgd.c -o mapgd.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapoutput.c -o mapoutput.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapgdal.c -o mapgdal.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapswf.c -o mapswf.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapimagemap.c -o mapimagemap.o \> mapimagemap.c:58: warning: `searchImageCache' defined but not used \> mapimagemap.c:94: warning: `addImageCache' defined but not used \> mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used \> mapimagemap.c:378: warning: `imagePolyline' defined but not used \> mapimagemap.c:1414: warning: `billboardIM' defined but not used \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapows.c -o mapows.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapwfs.c -o mapwfs.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapwfslayer.c -o mapwfslayer.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapcontext.c -o mapcontext.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maphttp.c -o maphttp.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapdrawgdal.c -o mapdrawgdal.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mappdf.c -o mappdf.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapjoin.c -o mapjoin.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapgraticule.c -o mapgraticule.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapcopy.c -o mapcopy.o \> mapcopy.c: In function `msCopyProjection': \> mapcopy.c:103: warning: unused variable `i' \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapogcfilter.c -o mapogcfilter.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapogcsld.c -o mapogcsld.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include maptime.c -o maptime.o \> maptime.c: In function `msStrptime': \> maptime.c:92: warning: implicit declaration of function `strptime' \> maptime.c:92: warning: return makes pointer from integer without a cast \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include mapwcs.c -o mapwcs.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include cgiutil.c -o cgiutil.o \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include epplib.c -o epplib.o \> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o \> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o \> mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o \maperror.o \> mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o \> mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o \> maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o \> mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o \mapwfslayer.o \> mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o \> mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o \epplib.o \> ranlib libmap.a \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> -I/usr/include shp2img.c -o shp2img.o \> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF - \DUSE_JPEG \> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - \I/usr/include \> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz - \ltiff \> -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img \> ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': \> : undefined reference to `lexer_cleanup' \> ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5bab): In function `loadExpressionString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x5bbb): In function `loadExpressionString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x5be7): In function `loadExpressionString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5c19): In function `loadExpressionString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': \> : undefined reference to `msyyrestart' \> ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to \`msyytext' \> follow \> ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': \> : undefined reference to `msyynumber' \> ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': \> : undefined reference to `msyystring' \> ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': \> : undefined reference to `msyystate' \> ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': \> : undefined reference to `msyyrestart' \> ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': \> : undefined reference to `msyylex' \> ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': \> : undefined reference to `msyyin' \> ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': \> : undefined reference to `msyytext' \> ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': \> : undefined reference to `msyylineno' \> ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': \> : undefined reference to `msyytext' \> ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': \> : undefined reference to `msyystate' \> ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': \> : undefined reference to `msyystring' \> ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': \> : undefined reference to `msyystate' \> ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': \> : undefined reference to `msyystring' \> ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': \> : undefined reference to `msyyerror' \> ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': \> : undefined reference to `msyylex' \> ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': \> : undefined reference to `msyyerror' \> ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': \> : undefined reference to `msyyerror' \> ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': \> : undefined reference to `msyyin' \> ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': \> : undefined reference to `msyyin' \> ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': \> : undefined reference to `msyyin' \> ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': \> : undefined reference to `msyyrestart' \> ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': \> : undefined reference to `msyylineno' \> ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': \> : undefined reference to `msyytext' \> ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': \> : undefined reference to `msyylex' \> ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': \> : undefined reference to `msyyin' \> ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': \> : undefined reference to `msyystate' \> ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': \> : undefined reference to `msyystring' \> ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': \> : undefined reference to `msyystate' \> ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': \> : undefined reference to `msyystring' \> collect2: ld returned 1 exit status \> make: *** [shp2img] Error 1 \> \> \ \-- \No virus found in this incoming message. \Checked by AVG Free Edition. \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 \ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 From m.meier at SPIEKERMANN.DE Wed May 17 01:19:58 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 17 May 2006 10:19:58 +0200 Subject: AW: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES 9 In-Reply-To: <000001c67988$6c6b91e0$32000e0a@jens> Message-ID: As far as I know: Mapserver uses flex to parse the mapfile. It is a library. In the beginning of un*x it was lex and later there was a new version flex (perhaps fast-lex???). Manfred Jens Dahnken schrieb: > Thanks for the hint ! > What is this lex or flex for ? Is it a library or program ? > I have flex installed, but that is for building text-scanners. > Jens > > \-----Urspr?ngliche Nachricht----- > \Von: Manfred Meier [mailto:m.meier at spiekermann.de] > \Gesendet: Mittwoch, 17. Mai 2006 09:25 > \An: Jens Dahnken > \Cc: mapserver > \Betreff: Re: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES > \9 > \ > \Perhaps you have to install lex or flex. > \Manfred > \ > \ > \Jens Dahnken schrieb: > \> I'm trying to compile the mapserver 4.2.0 under SLES 9. > \> I call ./configure and that runs through to Makefile. > \> Starting make it ends with: > \> > \> collect2: ld returned 1 exit status > \> make: *** [shp2img] Error 1 > \> > \> Any idea how to solve this problem? > \> The whole make protocol is attached. > \> > \> Thanks in advance, > \> Jens > \> -------------------- > \> Jens Dahnken > \> BT-GIS > \> Bonn > \> -------------------- > \> > \> make > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maptemplate.c -o maptemplate.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapbits.c -o mapbits.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maphash.c -o maphash.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapshape.c -o mapshape.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapxbase.c -o mapxbase.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapparser.c -o mapparser.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maplexer.c -o maplexer.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maptree.c -o maptree.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapsearch.c -o mapsearch.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapstring.c -o mapstring.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapsymbol.c -o mapsymbol.o > \> mapsymbol.c: In function `msCopySymbolSet': > \> mapsymbol.c:785: warning: implicit declaration of function > \> `copyStringPropertyRealloc' > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapfile.c -o mapfile.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maplegend.c -o maplegend.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maputil.c -o maputil.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapscale.c -o mapscale.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapquery.c -o mapquery.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maplabel.c -o maplabel.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maperror.c -o maperror.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapprimitive.c -o mapprimitive.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapproject.c -o mapproject.o > \> mapproject.c: In function `msGetEPSGProj': > \> mapproject.c:460: warning: return makes pointer from integer without a > \cast > \> mapproject.c: At top level: > \> mapproject.c:469: warning: `msProjFinder' defined but not used > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapraster.c -o mapraster.o > \> mapraster.c: In function `readGEOTiff': > \> mapraster.c:417: warning: dereferencing type-punned pointer will break > \> strict-aliasing rules > \> mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from > \incompatible > \> pointer type > \> mapraster.c:421: warning: dereferencing type-punned pointer will break > \> strict-aliasing rules > \> mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from > \incompatible > \> pointer type > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapsde.c -o mapsde.o > \> g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapogr.cpp -o mapogr.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mappostgis.c -o mappostgis.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapmygis.c -o mapmygis.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maplayer.c -o maplayer.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapresample.c -o mapresample.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapwms.c -o mapwms.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapwmslayer.c -o mapwmslayer.o > \> mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used > \> mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maporaclespatial.c -o maporaclespatial.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapgml.c -o mapgml.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapprojhack.c -o mapprojhack.o > \> mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not > \used > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapthread.c -o mapthread.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapdraw.c -o mapdraw.o > \> mapdraw.c: In function `msDrawMap': > \> mapdraw.c:107: warning: unused variable `lastconnectiontype' > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapgd.c -o mapgd.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapoutput.c -o mapoutput.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapgdal.c -o mapgdal.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapswf.c -o mapswf.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapimagemap.c -o mapimagemap.o > \> mapimagemap.c:58: warning: `searchImageCache' defined but not used > \> mapimagemap.c:94: warning: `addImageCache' defined but not used > \> mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used > \> mapimagemap.c:378: warning: `imagePolyline' defined but not used > \> mapimagemap.c:1414: warning: `billboardIM' defined but not used > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapows.c -o mapows.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapwfs.c -o mapwfs.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapwfslayer.c -o mapwfslayer.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapcontext.c -o mapcontext.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maphttp.c -o maphttp.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapdrawgdal.c -o mapdrawgdal.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mappdf.c -o mappdf.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapjoin.c -o mapjoin.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapgraticule.c -o mapgraticule.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapcopy.c -o mapcopy.o > \> mapcopy.c: In function `msCopyProjection': > \> mapcopy.c:103: warning: unused variable `i' > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapogcfilter.c -o mapogcfilter.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapogcsld.c -o mapogcsld.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include maptime.c -o maptime.o > \> maptime.c: In function `msStrptime': > \> maptime.c:92: warning: implicit declaration of function `strptime' > \> maptime.c:92: warning: return makes pointer from integer without a cast > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include mapwcs.c -o mapwcs.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include cgiutil.c -o cgiutil.o > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include epplib.c -o epplib.o > \> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o > \> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o > \> mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o > \maperror.o > \> mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o > \> mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o > \> maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o > \> mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o > \mapwfslayer.o > \> mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o > \> mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o > \epplib.o > \> ranlib libmap.a > \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> -I/usr/include shp2img.c -o shp2img.o > \> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF - > \DUSE_JPEG > \> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > \I/usr/include > \> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz - > \ltiff > \> -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img > \> ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': > \> : undefined reference to `lexer_cleanup' > \> ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5bab): In function `loadExpressionString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x5bbb): In function `loadExpressionString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x5be7): In function `loadExpressionString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5c19): In function `loadExpressionString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': > \> : undefined reference to `msyyrestart' > \> ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to > \`msyytext' > \> follow > \> ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': > \> : undefined reference to `msyynumber' > \> ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': > \> : undefined reference to `msyyrestart' > \> ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': > \> : undefined reference to `msyytext' > \> ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': > \> : undefined reference to `msyystate' > \> ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': > \> : undefined reference to `msyystring' > \> ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': > \> : undefined reference to `msyystate' > \> ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': > \> : undefined reference to `msyyerror' > \> ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': > \> : undefined reference to `msyyerror' > \> ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': > \> : undefined reference to `msyyerror' > \> ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': > \> : undefined reference to `msyyrestart' > \> ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': > \> : undefined reference to `msyylineno' > \> ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': > \> : undefined reference to `msyytext' > \> ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': > \> : undefined reference to `msyylex' > \> ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': > \> : undefined reference to `msyyin' > \> ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': > \> : undefined reference to `msyystring' > \> ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': > \> : undefined reference to `msyystate' > \> ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': > \> : undefined reference to `msyystring' > \> collect2: ld returned 1 exit status > \> make: *** [shp2img] Error 1 > \> > \> > \ > \-- > \No virus found in this incoming message. > \Checked by AVG Free Edition. > \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 > \ > From dahnken at MAIL.BT-GIS.DE Wed May 17 02:10:33 2006 From: dahnken at MAIL.BT-GIS.DE (Jens Dahnken) Date: Wed, 17 May 2006 11:10:33 +0200 Subject: AW: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES 9 In-Reply-To: <446ADCAE.8030609@spiekermann.de> Message-ID: The correct flex library installed, but doesn't solve the problem! Any further ideas? Thx, Jens \> \Jens Dahnken schrieb: \> \> I'm trying to compile the mapserver 4.2.0 under SLES 9. \> \> I call ./configure and that runs through to Makefile. \> \> Starting make it ends with: \> \> \> \> collect2: ld returned 1 exit status \> \> make: *** [shp2img] Error 1 \> \> \> \> Any idea how to solve this problem? \> \> The whole make protocol is attached. \> \> \> \> Thanks in advance, \> \> Jens \> \> -------------------- \> \> Jens Dahnken \> \> BT-GIS \> \> Bonn \> \> -------------------- \> \> \> \> make \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maptemplate.c -o maptemplate.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapbits.c -o mapbits.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maphash.c -o maphash.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapshape.c -o mapshape.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapxbase.c -o mapxbase.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapparser.c -o mapparser.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maplexer.c -o maplexer.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maptree.c -o maptree.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapsearch.c -o mapsearch.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapstring.c -o mapstring.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapsymbol.c -o mapsymbol.o \> \> mapsymbol.c: In function `msCopySymbolSet': \> \> mapsymbol.c:785: warning: implicit declaration of function \> \> `copyStringPropertyRealloc' \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapfile.c -o mapfile.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maplegend.c -o maplegend.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maputil.c -o maputil.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapscale.c -o mapscale.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapquery.c -o mapquery.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maplabel.c -o maplabel.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maperror.c -o maperror.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapprimitive.c -o mapprimitive.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapproject.c -o mapproject.o \> \> mapproject.c: In function `msGetEPSGProj': \> \> mapproject.c:460: warning: return makes pointer from integer without a \> \cast \> \> mapproject.c: At top level: \> \> mapproject.c:469: warning: `msProjFinder' defined but not used \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapraster.c -o mapraster.o \> \> mapraster.c: In function `readGEOTiff': \> \> mapraster.c:417: warning: dereferencing type-punned pointer will break \> \> strict-aliasing rules \> \> mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from \> \incompatible \> \> pointer type \> \> mapraster.c:421: warning: dereferencing type-punned pointer will break \> \> strict-aliasing rules \> \> mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from \> \incompatible \> \> pointer type \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapsde.c -o mapsde.o \> \> g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapogr.cpp -o mapogr.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mappostgis.c -o mappostgis.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapmygis.c -o mapmygis.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maplayer.c -o maplayer.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapresample.c -o mapresample.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapwms.c -o mapwms.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapwmslayer.c -o mapwmslayer.o \> \> mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used \> \> mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maporaclespatial.c -o maporaclespatial.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapgml.c -o mapgml.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapprojhack.c -o mapprojhack.o \> \> mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not \> \used \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapthread.c -o mapthread.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapdraw.c -o mapdraw.o \> \> mapdraw.c: In function `msDrawMap': \> \> mapdraw.c:107: warning: unused variable `lastconnectiontype' \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapgd.c -o mapgd.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapoutput.c -o mapoutput.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapgdal.c -o mapgdal.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapswf.c -o mapswf.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapimagemap.c -o mapimagemap.o \> \> mapimagemap.c:58: warning: `searchImageCache' defined but not used \> \> mapimagemap.c:94: warning: `addImageCache' defined but not used \> \> mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used \> \> mapimagemap.c:378: warning: `imagePolyline' defined but not used \> \> mapimagemap.c:1414: warning: `billboardIM' defined but not used \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapows.c -o mapows.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapwfs.c -o mapwfs.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapwfslayer.c -o mapwfslayer.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapcontext.c -o mapcontext.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maphttp.c -o maphttp.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapdrawgdal.c -o mapdrawgdal.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mappdf.c -o mappdf.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapjoin.c -o mapjoin.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapgraticule.c -o mapgraticule.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapcopy.c -o mapcopy.o \> \> mapcopy.c: In function `msCopyProjection': \> \> mapcopy.c:103: warning: unused variable `i' \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapogcfilter.c -o mapogcfilter.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapogcsld.c -o mapogcsld.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include maptime.c -o maptime.o \> \> maptime.c: In function `msStrptime': \> \> maptime.c:92: warning: implicit declaration of function `strptime' \> \> maptime.c:92: warning: return makes pointer from integer without a \cast \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include mapwcs.c -o mapwcs.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include cgiutil.c -o cgiutil.o \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include epplib.c -o epplib.o \> \> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o \> \> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o \> \> mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o \> \maperror.o \> \> mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o \> \> mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o \> \> maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o \mapgd.o \> \> mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o \> \mapwfslayer.o \> \> mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o \> \> mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o \> \epplib.o \> \> ranlib libmap.a \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT \> \> -I/usr/include shp2img.c -o shp2img.o \> \> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF - \> \DUSE_JPEG \> \> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - \> \I/usr/include \> \> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz - \> \ltiff \> \> -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img \> \> ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': \> \> : undefined reference to `lexer_cleanup' \> \> ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5bab): In function \`loadExpressionString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x5bbb): In function \`loadExpressionString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x5be7): In function \`loadExpressionString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5c19): In function \`loadExpressionString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': \> \> : undefined reference to `msyyrestart' \> \> ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to \> \`msyytext' \> \> follow \> \> ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': \> \> : undefined reference to `msyynumber' \> \> ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': \> \> : undefined reference to `msyyrestart' \> \> ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': \> \> : undefined reference to `msyyerror' \> \> ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': \> \> : undefined reference to `msyyerror' \> \> ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': \> \> : undefined reference to `msyyerror' \> \> ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': \> \> : undefined reference to `msyyrestart' \> \> ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': \> \> : undefined reference to `msyylineno' \> \> ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': \> \> : undefined reference to `msyytext' \> \> ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': \> \> : undefined reference to `msyylex' \> \> ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': \> \> : undefined reference to `msyyin' \> \> ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': \> \> : undefined reference to `msyystring' \> \> ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': \> \> : undefined reference to `msyystate' \> \> ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': \> \> : undefined reference to `msyystring' \> \> collect2: ld returned 1 exit status \> \> make: *** [shp2img] Error 1 \> \> \> \> \> \ \> \-- \> \No virus found in this incoming message. \> \Checked by AVG Free Edition. \> \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: \16.05.2006 \> \ \> \ \-- \No virus found in this incoming message. \Checked by AVG Free Edition. \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 \ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 From b.vdeijnden at AGI.RWS.MINVENW.NL Tue May 16 05:50:57 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 16 May 2006 14:50:57 +0200 Subject: Anti Aliasing Message-ID: Hi Perry, I don't think 2 will work, since transparency cannot be defined at the STYLE level. See also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1155 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Pericles S. Nacionales Verzonden: dinsdag 16 mei 2006 14:53 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Anti Aliasing Two things you can try... 1. define two layers--one for polygon without outline color with transparency set to whatever number, and the other layer defined as line and with transparency set to alpha. 2. Create two styles within the layer--1 for the polygon fill with transparency set to whatever value you want, 1 for the outlinecolor with transparency alpha. I haven't tried the second one so I don't know if it works. ;) Make sure the line layer (or the outline style) is drawn on top. If you don't want the lines, then I don't know the answer. -Perry Vincent Schut wrote: > Steve Lime wrote: >> You need a couple of other things: >> >> - a 24-bit output format (e.g. IMAGETYPE PNG24) >> - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA) >> >> That should get it working... > > To chime in: > But what if I want to have antialiasing *and* semi-transparency? How > would I define e.g. a opacity of 60 when I already have 'transparency > alpha' in my layer? > > Vincent. > >> Steve >> >> Stephen Lime >> Data & Applications Manager >> >> Minnesota DNR >> 500 Lafayette Road >> St. Paul, MN 55155 >> 651-259-5473 >>>>> ramesh karra 05/15/06 6:49 PM >>> >> Hi, >> >> I have added 'ANTIALIAS TRUE' to all my STYLE objects >> but I do not see any difference in the map that's >> displayed. I was hoping to see smooth lines but there >> was no difference in the way lines(representing roads) >> are drawn with or without anti-aliasing. Is this the >> expected behavior? How can I get smooth lines? >> >> My layer is defined as follows: >> >> LAYER >> NAME roads >> DATA droad1 >> STATUS OFF >> TYPE LINE >> >> PROJECTION >> "init=epsg:4326" >> END >> >> CLASS >> NAME "Roads" >> MAXSCALE 80000 >> MINSCALE 20000 >> STYLE >> ANTIALIAS TRUE >> COLOR 150 150 150 >> WIDTH 3 >> END >> STYLE >> ANTIALIAS TRUE >> COLOR 255 255 255 >> WIDTH 1 >> END >> END >> END >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> > > . > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.meier at SPIEKERMANN.DE Wed May 17 03:14:37 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 17 May 2006 12:14:37 +0200 Subject: AW: [UMN_MAPSERVER-USERS] compiling error mapserver 4.2 under SLES 9 In-Reply-To: <000101c67991$c3e08d50$32000e0a@jens> Message-ID: Hello, no, sorry. In your link list are maplexer.o and mapparser.o. So I'm not sure if you need flex at all, sorry. Are you sure libmap.a is there and is the only version on your system? Manfred Jens Dahnken schrieb: > The correct flex library installed, but doesn't solve the problem! > Any further ideas? > Thx, > > Jens > \> \Jens Dahnken schrieb: > \> \> I'm trying to compile the mapserver 4.2.0 under SLES 9. > \> \> I call ./configure and that runs through to Makefile. > \> \> Starting make it ends with: > \> \> > \> \> collect2: ld returned 1 exit status > \> \> make: *** [shp2img] Error 1 > \> \> > \> \> Any idea how to solve this problem? > \> \> The whole make protocol is attached. > \> \> > \> \> Thanks in advance, > \> \> Jens > \> \> -------------------- > \> \> Jens Dahnken > \> \> BT-GIS > \> \> Bonn > \> \> -------------------- > \> \> > \> \> make > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maptemplate.c -o maptemplate.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapbits.c -o mapbits.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maphash.c -o maphash.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapshape.c -o mapshape.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapxbase.c -o mapxbase.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapparser.c -o mapparser.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maplexer.c -o maplexer.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maptree.c -o maptree.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapsearch.c -o mapsearch.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapstring.c -o mapstring.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapsymbol.c -o mapsymbol.o > \> \> mapsymbol.c: In function `msCopySymbolSet': > \> \> mapsymbol.c:785: warning: implicit declaration of function > \> \> `copyStringPropertyRealloc' > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapfile.c -o mapfile.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maplegend.c -o maplegend.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maputil.c -o maputil.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapscale.c -o mapscale.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapquery.c -o mapquery.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maplabel.c -o maplabel.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maperror.c -o maperror.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapprimitive.c -o mapprimitive.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapproject.c -o mapproject.o > \> \> mapproject.c: In function `msGetEPSGProj': > \> \> mapproject.c:460: warning: return makes pointer from integer without a > \> \cast > \> \> mapproject.c: At top level: > \> \> mapproject.c:469: warning: `msProjFinder' defined but not used > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapraster.c -o mapraster.o > \> \> mapraster.c: In function `readGEOTiff': > \> \> mapraster.c:417: warning: dereferencing type-punned pointer will break > \> \> strict-aliasing rules > \> \> mapraster.c:417: warning: passing arg 1 of `TIFFSwabLong' from > \> \incompatible > \> \> pointer type > \> \> mapraster.c:421: warning: dereferencing type-punned pointer will break > \> \> strict-aliasing rules > \> \> mapraster.c:421: warning: passing arg 1 of `TIFFSwabLong' from > \> \incompatible > \> \> pointer type > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapsde.c -o mapsde.o > \> \> g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapogr.cpp -o mapogr.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mappostgis.c -o mappostgis.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapmygis.c -o mapmygis.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maplayer.c -o maplayer.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapresample.c -o mapresample.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapwms.c -o mapwms.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapwmslayer.c -o mapwmslayer.o > \> \> mapwmslayer.c:128: warning: `msSetWMSParamString' defined but not used > \> \> mapwmslayer.c:151: warning: `msSetWMSParamInt' defined but not used > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maporaclespatial.c -o maporaclespatial.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapgml.c -o mapgml.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapprojhack.c -o mapprojhack.o > \> \> mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not > \> \used > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapthread.c -o mapthread.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapdraw.c -o mapdraw.o > \> \> mapdraw.c: In function `msDrawMap': > \> \> mapdraw.c:107: warning: unused variable `lastconnectiontype' > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapgd.c -o mapgd.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapoutput.c -o mapoutput.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapgdal.c -o mapgdal.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapswf.c -o mapswf.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapimagemap.c -o mapimagemap.o > \> \> mapimagemap.c:58: warning: `searchImageCache' defined but not used > \> \> mapimagemap.c:94: warning: `addImageCache' defined but not used > \> \> mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used > \> \> mapimagemap.c:378: warning: `imagePolyline' defined but not used > \> \> mapimagemap.c:1414: warning: `billboardIM' defined but not used > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapows.c -o mapows.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapwfs.c -o mapwfs.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapwfslayer.c -o mapwfslayer.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapcontext.c -o mapcontext.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maphttp.c -o maphttp.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapdrawgdal.c -o mapdrawgdal.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mappdf.c -o mappdf.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapjoin.c -o mapjoin.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapgraticule.c -o mapgraticule.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapcopy.c -o mapcopy.o > \> \> mapcopy.c: In function `msCopyProjection': > \> \> mapcopy.c:103: warning: unused variable `i' > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapogcfilter.c -o mapogcfilter.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapogcsld.c -o mapogcsld.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include maptime.c -o maptime.o > \> \> maptime.c: In function `msStrptime': > \> \> maptime.c:92: warning: implicit declaration of function `strptime' > \> \> maptime.c:92: warning: return makes pointer from integer without a > \cast > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include mapwcs.c -o mapwcs.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include cgiutil.c -o cgiutil.o > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include epplib.c -o epplib.o > \> \> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o > \> \> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o > \> \> mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o > \> \maperror.o > \> \> mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o > \> \> mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o > \> \> maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o > \mapgd.o > \> \> mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o > \> \mapwfslayer.o > \> \> mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o > \> \> mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o cgiutil.o > \> \epplib.o > \> \> ranlib libmap.a > \> \> gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > \> \> -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > \> \> -I/usr/include shp2img.c -o shp2img.o > \> \> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF - > \> \DUSE_JPEG > \> \> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT - > \> \I/usr/include > \> \> shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lz - > \> \ltiff > \> \> -ljpeg -lfreetype -lz -ljpeg -lm -lstdc++ -o shp2img > \> \> ./libmap.a(mapfile.o)(.text+0x9d6): In function `getCharacter': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x9e2): In function `getCharacter': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x9f5): In function `getCharacter': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x9fb): In function `getCharacter': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xa26): In function `getInteger': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0xa43): In function `getInteger': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0xa57): In function `getInteger': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xa5d): In function `getInteger': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xa86): In function `getDouble': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0xa96): In function `getDouble': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0xa9c): In function `getDouble': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0xaae): In function `getDouble': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xab5): In function `getDouble': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xbed): In function `loadColor': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xcb6): In function `getToken': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0xcbe): In function `getToken': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xcd6): In function `getString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0xce6): In function `getString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xcf6): In function `getString': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xcfc): In function `getString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x34d6): In function `msCleanup': > \> \> : undefined reference to `lexer_cleanup' > \> \> ./libmap.a(mapfile.o)(.text+0x3b16): In function `loadHashTable': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x3b54): In function `loadHashTable': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x3b74): In function `loadHashTable': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x3b7b): In function `loadHashTable': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x3c01): In function `loadWeb': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x3e04): In function `loadWeb': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x3e0a): In function `loadWeb': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x48ff): In function `getSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x4924): In function `getSymbol': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x492b): In function `getSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x4960): In function `loadLabelString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x497d): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4987): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x49b3): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x49bd): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x49d1): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x49db): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x49ff): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4a09): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4a20): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4a2a): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4a72): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4a7c): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4aa3): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4aad): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4ac2): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4acc): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4b0e): In function `loadLabelString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x4b4c): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4b56): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4b73): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4b87): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4bcd): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4bd7): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4c04): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4c0e): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4c4a): In function `loadLabelString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x4c54): In function `loadLabelString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x4c83): In function `loadLabelString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x4c89): In function `loadLabelString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x4cad): In function `loadLabelString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x4cc9): In function `loadQueryMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x4d98): In function `loadLabel': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x4e26): In function `loadLabel': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5033): In function `loadLabel': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x5039): In function `loadLabel': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x505d): In function `loadLabel': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x51a7): In function `loadLabel': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x51bb): In function `loadLabel': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x51c2): In function `loadLabel': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5211): In function `loadScalebar': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x527e): In function `loadScalebar': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5485): In function `loadScalebar': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x548c): In function `loadScalebar': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x54d2): In function `loadLegend': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5542): In function `loadLegend': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x56cf): In function `loadLegend': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x56d6): In function `loadLegend': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5731): In function `loadReferenceMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5788): In function `loadReferenceMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x587f): In function `loadReferenceMap': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x5896): In function `loadReferenceMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x592c): In function `loadReferenceMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x5932): In function `loadReferenceMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x59a9): In function `loadStyle': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5a02): In function `loadStyle': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5adf): In function `loadStyle': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x5af5): In function `loadStyle': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5b58): In function `loadStyle': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x5b5e): In function `loadStyle': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5bab): In function > \`loadExpressionString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x5bbb): In function > \`loadExpressionString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x5be7): In function > \`loadExpressionString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5c19): In function > \`loadExpressionString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5c7f): In function `loadExpression': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x5cc2): In function `loadClass': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5d36): In function `loadClass': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x5e0b): In function `loadClass': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x5e95): In function `loadClass': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x60b5): In function `loadClass': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x6106): In function `loadClass': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x6260): In function `loadClass': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x6267): In function `loadClass': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x62f5): In function `loadJoin': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x63fd): In function `loadJoin': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x6403): In function `loadJoin': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x64b7): In function `loadLayer': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x657c): In function `loadLayer': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x686e): In function `loadLayer': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x68d0): In function `loadLayer': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x6901): In function `loadLayer': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x6c4c): In function `loadLayer': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x6d38): In function `loadLayer': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x6d3f): In function `loadLayer': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x6f00): In function `loadLayer': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x6f06): In function `loadLayer': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x6fca): In function `loadLayer': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x6fd0): In function `loadLayer': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x7015): In function `loadLayer': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x701c): In function `loadLayer': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x719e): In function `msTokenizeMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0x71c9): In function `msTokenizeMap': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x71d2): In function `msTokenizeMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x71da): In function `msTokenizeMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0x71e7): In function `msTokenizeMap': > \> \> : undefined reference to `msyyrestart' > \> \> ./libmap.a(mapfile.o)(.text+0x71ed): In function `msTokenizeMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x721b): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x725e): In function `msTokenizeMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x7286): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x72a8): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x72c4): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x72ea): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x730c): In function `msTokenizeMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x7332): more undefined references to > \> \`msyytext' > \> \> follow > \> \> ./libmap.a(mapfile.o)(.text+0x7361): In function `msTokenizeMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0x7390): In function `loadClassString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x73a9): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x73b3): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x73ee): In function `loadClassString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x7435): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x743f): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x745c): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7466): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7484): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7493): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x749e): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x74b2): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x74bf): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x74ca): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x74d9): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x74e3): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x75a1): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x75ab): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x75ea): In function `loadClassString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x75fe): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7608): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7625): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x765c): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7671): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7683): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x768d): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x76ab): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x76c3): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x76cd): In function `loadClassString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x76f9): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x770b): In function `loadClassString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7722): In function `loadClassString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x775b): In function `loadClassString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x77c3): In function `loadLayerString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x787b): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7885): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7983): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x798d): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7a92): In function `loadLayerString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x7b2d): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7b37): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7c13): In function `loadLayerString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x7c61): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7c67): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7c92): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7c9c): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7d08): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7d12): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7d29): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x7d33): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x7db6): In function `loadLayerString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x7ddc): In function `loadLayerString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x8010): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x801a): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x807d): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8087): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x80b0): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x80ba): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x80ea): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x80f4): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x812a): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8134): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x815c): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8166): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x821e): In function `loadLayerString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8228): In function `loadLayerString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x833b): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8347): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8359): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x8366): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x836f): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x8386): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x83da): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x83e8): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8497): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x84a1): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x854b): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8559): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8601): In function `msLoadMapString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x866a): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x8697): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x86a1): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8739): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x87aa): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x87d9): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x87e3): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x882f): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x886a): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8874): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8896): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x88a0): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x88b7): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x88c1): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8955): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x895f): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x89f9): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8a03): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8a9c): In function `msLoadMapString': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x8aed): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8af7): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8b45): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8b4f): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8b8d): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8b97): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8c7e): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8c88): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8cc4): In function `msLoadMapString': > \> \> : undefined reference to `msyynumber' > \> \> ./libmap.a(mapfile.o)(.text+0x8cfc): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8d06): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8d76): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8d80): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8d97): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8da1): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8deb): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8df4): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8e18): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8e22): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8e4f): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8e5b): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8ea2): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8eac): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8ee5): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8eef): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8f22): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8f2b): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8f42): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8f4b): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8f6e): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8f78): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8fa4): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8fad): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8fc8): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x8fd2): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x8ffc): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9006): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9038): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9042): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9071): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x907b): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9094): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x909f): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x90eb): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x90f5): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x910f): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9119): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9132): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x913e): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9162): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x916c): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x91a8): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x91b6): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x922d): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9237): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9259): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x9263): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9298): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x92a2): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x92df): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x92e9): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9385): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x938e): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x93d2): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x93db): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9450): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x945a): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x9480): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x948a): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x94a0): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x94a9): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x94cb): In function `msLoadMapString': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapfile.o)(.text+0x94d9): In function `msLoadMapString': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x94f4): In function `msLoadMapString': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0x95ab): In function `msLoadMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0x95f4): In function `msLoadMap': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapfile.o)(.text+0x95fd): In function `msLoadMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x9606): In function `msLoadMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0x960c): In function `msLoadMap': > \> \> : undefined reference to `msyyrestart' > \> \> ./libmap.a(mapfile.o)(.text+0x9619): In function `msLoadMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x9684): In function `msLoadMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x976d): In function `msLoadMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x9a47): In function `msLoadMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x9aa0): In function `msLoadMap': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapfile.o)(.text+0x9fab): In function `msLoadMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0x9fb2): In function `msLoadMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xa20d): In function `msLoadMap': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapfile.o)(.text+0xa43d): In function `msLoadMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xa444): In function `msLoadMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xa458): In function `msLoadMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xa45e): In function `msLoadMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapfile.o)(.text+0xa4dc): In function `msLoadMap': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapfile.o)(.text+0xa4e2): In function `msLoadMap': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(maputil.o)(.text+0x1a32): In function `msEvalExpression': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(maputil.o)(.text+0x1a3c): In function `msEvalExpression': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(maputil.o)(.text+0x1cc1): In function `msEvalContext': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(maputil.o)(.text+0x1cd1): In function `msEvalContext': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapparser.o)(.text+0x50b): In function `msyyparse': > \> \> : undefined reference to `msyyerror' > \> \> ./libmap.a(mapparser.o)(.text+0xa94): In function `msyyparse': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapparser.o)(.text+0xabe): In function `msyyparse': > \> \> : undefined reference to `msyyerror' > \> \> ./libmap.a(mapparser.o)(.text+0xbd5): In function `msyyparse': > \> \> : undefined reference to `msyyerror' > \> \> ./libmap.a(mapsymbol.o)(.text+0xf29): In function `loadSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0xf7f): In function `loadSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1014): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1042): In function `loadSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0x11ac): In function `loadSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0x11d6): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x12fa): In function `loadSymbol': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1313): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1342): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x13e4): In function `loadSymbol': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x13ea): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1405): In function `loadSymbol': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapsymbol.o)(.text+0x148c): In function `loadSymbol': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1493): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x154f): In function `loadSymbol': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1556): In function `loadSymbol': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x156e): In function `loadSymbol': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x160f): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1626): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1632): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1638): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyyrestart' > \> \> ./libmap.a(mapsymbol.o)(.text+0x164c): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyylineno' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1655): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyytext' > \> \> ./libmap.a(mapsymbol.o)(.text+0x1674): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyylex' > \> \> ./libmap.a(mapsymbol.o)(.text+0x16d4): In function `msLoadSymbolSet': > \> \> : undefined reference to `msyyin' > \> \> ./libmap.a(mapraster.o)(.text+0xe7f): In function `msGetClass_Float': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapraster.o)(.text+0xe8a): In function `msGetClass_Float': > \> \> : undefined reference to `msyystring' > \> \> ./libmap.a(mapraster.o)(.text+0x1186): In function `msGetClass': > \> \> : undefined reference to `msyystate' > \> \> ./libmap.a(mapraster.o)(.text+0x1191): In function `msGetClass': > \> \> : undefined reference to `msyystring' > \> \> collect2: ld returned 1 exit status > \> \> make: *** [shp2img] Error 1 > \> \> > \> \> > \> \ > \> \-- > \> \No virus found in this incoming message. > \> \Checked by AVG Free Edition. > \> \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: > \16.05.2006 > \> \ > \> > \ > \-- > \No virus found in this incoming message. > \Checked by AVG Free Edition. > \Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 16.05.2006 > \ > From stefan.schwarzer at GRID.UNEP.CH Wed May 17 05:48:46 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 17 May 2006 14:48:46 +0200 Subject: React on query error Message-ID: Hi, my application offers the possibility to preselect countries that should be displayed on the map. Thus, instead of having all countries, I get only these preselected ones mapped; the others are grayed out. But if a user now uses the query tool and clicks on one of those not-preselected countries, than an mapscript error occurs (naturally). Is there a way to react on such an error warning and continue at another point, so that this "problem" is just ignored and the application can continue to work? if (!$imgbox) $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); // here is then the error else $map -> queryByRect($click_rt); "Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in /www/geodataportal/htdocs/mod_map/etc/php/query.php on line 42" Thanks for any help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed May 17 06:40:53 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 17 May 2006 15:40:53 +0200 Subject: GDAL raster access and shapepath Message-ID: Hi list, using Mapserver 4.8.3 and GDAL 1.3.2 we have a problem accessing an ECW file relative to the SHAPEPATH. If we use an absolute path in the DATA statement all works fine. So: MAP SHAPEPATH "/data/geopakhuis/" and: LAYER DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" does not work (case 1), whereas DATA "/data/geopakhuis/erogrid_nl2005/Aerogrid_NL2005_40cm.ecw" does work (case 2). Attached the log after setting CPL_DEBUG to ON. Case 1: [Wed May 17 15:22:09 2006] [error] [client 145.50.39.34] Wed May 17 15:22:09 2006 - msDrawRaster(): Unable to access file. (ae rogrid_nl2005/Aerogrid_NL2005_40cm.ecw) Case 2: [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2 005_40cm.ecw): eErr = 0 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: FileInfo: SizeXY=690000,800000 Bands=3 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: projection=LOCAL, datum=WGS84 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] GDAL: GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm. ecw) succeeds as ECW. [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL: GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm .ecw) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL: GDALDeregister_GTiff() called. Any ideas what could be wrong? Best regards, Bart From zhonghaiw at GMAIL.COM Wed May 17 06:50:45 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 17 May 2006 15:50:45 +0200 Subject: ogr2ogr reprojection Message-ID: Hi there, I have a folder with ESRI shapefiles (WIN XP), and now I want to reproject them with the command ogr2ogr. are there any batch commands to do this? thanks zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Wed May 17 06:58:44 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 17 May 2006 15:58:44 +0200 Subject: getFeature: Results are not correct Message-ID: >Hi All, now I have testet to set up the WFS with using a MySQL-Database instead of PostgreSQL. With MySQL everything works fine but with PostgreSQL it doesn't. A "ogrinfo" request on the commandline works perfect in both cases. With a WMS its the same, only the WFS which doesn't work with PostgreSQL. Has anybody an idea what can be the reason for that? Best Regards Christian --- Urspr?ngliche Nachricht --- > Von: Christian Wilmes > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] getFeature: Results are not correct > Datum: Tue, 16 May 2006 14:54:18 +0200 > > >Here is a short cut-out from the README_INSTALL where you can see my > version-numbers: > > - Apache version 2.0.55 > > - PHP version 4.4.3-dev > > - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, > Python) > > - support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.3.2, > PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, > libcurl 7.15.0 > > - mapserver utilities > > - gdal/ogr utilities > > - proj.4 utilities > > - shp2tile utility > > - shapelib utilities > > - shpdiff utility > > - PHP_OGR Extension 1.1.1 > > - OWTChart 1.2.0 > > I have not installed some of them separat so that are the versions I'm > using. > > I tried out your idea to use CONFIG "OGR_FID" "name_of_your_primary_key", > but the result is still the same. I think posting the newest Mapfile can > never be bad: > MAP > NAME WFS_Server > STATUS ON > WEB > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:4326" > END > END > > PROJECTION > "init=EPSG:4326" > END > > CONFIG "OGR_FID" "id" > > LAYER > NAME myWFS > METADATA > "wfs_title" "myWFS" > "gml_include_items" "all" > > END > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > PROJECTION > "init=EPSG:4326" > END > DUMP TRUE > > END > END > > > Best Regards > Christian > > > > > > --- Urspr?ngliche Nachricht --- > > Von: "Eijnden, B. van den (Bart)" > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > Betreff: Re: [UMN_MAPSERVER-USERS] getFeature: Results are not correct > > Datum: Tue, 16 May 2006 12:41:58 +0200 > > > > This is most likely because OGR cannot determine a primary key on your > > table. It needs a primary key to operate queries (not for a map > display). > > > > A few questions: > > 1) which version of GDAL? > > 2) which version of Mapserver? > > 3) you can try to use CONFIG "OGR_FID" "name_of_your_primary_key" at > your > > MAP object if automatic detection of the primary key fails > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Christian Wilmes > > Verzonden: dinsdag 16 mei 2006 12:29 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] getFeature: Results are not correct > > > > > > Hello, > > > > first of all sorry for cross posting, but I've got no idea where I have > to > > search the mistake so I post it to the GDAL and the Mapserver > Mailinglist. > > > > I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a > > PostgreSQL-Database (no PostGIS!). So the connection to the data is over > > "Virtual Spatial Data". The getCapabilities and DescribeFeatureType > > request > > both work very well. Only the GML-Document getting with the getFeature > > request is not correct. The number of features in the GML-Document are > > correct too every time, but the features are not in the Bounding Box. > The > > features in the GML-Document are always the feature which are on the top > > of > > the table they come from. Only the number of feature is correct. The MBR > > (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the > > correct one. So it don't fit to the features in the document. Testing > the > > connection with "ogrinfo" and a Boundig-Box is working correct. If I'm > > trying to make a WMS-Server with the same Data and the same OGR-file it > > works very well. > > > > So here is my Mapfile: > > > > MAP > > NAME WFS_Server > > STATUS ON > > WEB > > METADATA > > "wfs_title" "WFS Server" > > "wfs_onlineresource" > > "http://127.0.0.1/cgi-bin/mapserv.exe?" > > "wfs_srs" "EPSG:4326" > > END > > END > > > > PROJECTION > > "init=EPSG:4326" > > END > > > > > > LAYER > > NAME myWFS > > METADATA > > "wfs_title" "myWFS" > > "gml_include_items" "all" > > END > > TYPE POINT > > STATUS ON > > CONNECTIONTYPE OGR > > CONNECTION "test.ovf" > > PROJECTION > > "init=EPSG:4326" > > END > > DUMP TRUE > > > > END > > END > > > > > > > > > > > > and the OGR-File test.ovf: > > > > > > > > PG:host=192.168.5.86 user=cwilmes dbname=rosoapcw > > password=xxx > > feature > > wkbPoint > > EPSG:4326 > > > > > > > > > > > > Here is a URL which I used for testing > > the > > WFS > > getFeature-Request: > > > http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVI > > CE=WFS&TYPENAME=myWFS&&BBox=9.98,7.98,10,8 > > > > > > ....and here is the result: > > > ?> > > > > - > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > > xmlns:wfs="http://www.opengis.net/wfs" > > xmlns:gml="http://www.opengis.net/gml" > > xmlns:ogc="http://www.opengis.net/ogc" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > http://mapserver.gis.umn.edu/mapserver > > > http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=Descr > > ibeFeatureType&TYPENAME=myWFS&OUTPUTFORMAT=XMLSCHEMA"> > > - > > - > > 9.980700,7.984220 9.997500,7.995010 > > > > > > - > > - > > - > > - > > 9.682230,7.653260 9.682230,7.653260 > > > > > > - > > - > > 9.682230,7.653260 > > > > > > 16 > > > > > > - > > - > > - > > - > > 9.768800,7.835870 9.768800,7.835870 > > > > > > - > > - > > 9.768800,7.835870 > > > > > > 17 > > > > > > - > > - > > - > > - > > 9.296530,7.426330 9.296530,7.426330 > > > > > > - > > - > > 9.296530,7.426330 > > > > > > 18 > > > > > > - > > - > > - > > - > > 9.111500,7.645390 9.111500,7.645390 > > > > > > - > > - > > 9.111500,7.645390 > > > > > > 20 > > > > > > > > > > > > > > > > I will be very thankful for every idea where the mistake could! > > > > Please excuse my bad english! > > > > > > > > Best Regards > > Christian > > > > > > > > -- > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > -- > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > > > > > -- > > Mobile Internet - E-Mail und Internet immer und ?berall! > > GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb > > > > > > > > Disclaimer > > ************************************************************************ > > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. > > This message is intended solely for the addressee. > > If you have received this message in error, please delete it and > > notify the sender immediately. When in doubt whether this message > > is correct or complete, please contact the sender. > > ************************************************************************ > > > > > > -- > Mobile Internet - E-Mail und Internet immer und ?berall! > GMX zum Mitnehmen: http://www.gmx.net/de/go/pocketweb > -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From Steve.Lime at DNR.STATE.MN.US Wed May 17 07:02:28 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 May 2006 09:02:28 -0500 Subject: Python mapscript in IIS Message-ID: Gary: I did a quick search and found (should have know) that Howard Butler has pre-compiled versions at: http://hobu.stat.iastate.edu/mapserver/ Question. What is the source of your Windows MapServer setup (and what version)? From Howard, MS4W, build-your-own? I worry about mismatched versions of things. Steve >>> Gary Watry 05/16/06 12:17 PM >>> How do you load Python mapscript in IIS I am working on http://gw102.coaps.fsu.edu/httpdocs/example.php I need to load Pythom Mapscript in IIS in order to get my legend to work? Thoughts? ______________________________________________________________ Gary L. Watry ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu From hobu at IASTATE.EDU Wed May 17 07:18:32 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 17 May 2006 09:18:32 -0500 Subject: Python mapscript in IIS In-Reply-To: Message-ID: Steve, I should take those pages down, as they are now out of date with respect to MapServer 4.8.3. Working with Jeff and Assefa on the build kit, we were able to include Python MapScript in MS4W 1.5.3 (and Java, C#, and PHP of course). Additionally, pre-compiled dlls for SDE and Oracle are also included in MS4W 1.5.3 (requires some dll swapping). These two additions to MS4W make my "Kitchen sink" stuff obsolete. My suggestion to Gary is grab a copy of MS4W 1.5.3 and extract the Python MapScript that is available in there and install it in his Python's site-packages. Howard At 9:02 AM -0500 5/17/06, Steve Lime wrote: >Gary: I did a quick search and found (should have know) that Howard Butler = >has pre-compiled versions at: > > http://hobu.stat.iastate.edu/mapserver/ > >Question. What is the source of your Windows MapServer setup (and what = >version)? From Howard, MS4W, build-your-own? I worry about mismatched = >versions of things. > >Steve > >>>> Gary Watry 05/16/06 12:17 PM >>> >How do you load Python mapscript in IIS > >=20 > >I am working on > >=20 > >http://gw102.coaps.fsu.edu/httpdocs/example.php > >=20 > >I need to load Pythom Mapscript in IIS in order to get my legend to work? > >=20 > >Thoughts? > >______________________________________________________________ > >Gary L. Watry > >=20 > >=20 > >=20 > >______________________________________________________________ > >Gary L. Watry > > >GIS Coordinator >Center for Ocean-Atmospheric Prediction Studies >FSU / COAPS >Johnson Building, RM 215 >2035 East Paul Dirac Drive >Tallahassee, Florida 32306-2840 > >=20 > >E-Mail: watry at coaps.fsu.edu > >=20 From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed May 17 07:19:24 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Wed, 17 May 2006 10:19:24 -0400 Subject: Anti Aliasing Message-ID: Interesting ... My reading of the docs suggests that TRANSPARENCY ALPHA should only respect the alpha channel in pixmap symbols ... Yet apparently rendered line work (which isn't pixmap based) is also "smoothed"? Is that right? J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of ramesh karra Sent: May 16, 2006 6:07 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing Thanks steve! I have upgraded to 4.8.3 and the roads/lines are smooth... Looks really good. Thanks Ramesh --- Steve Lime wrote: > You need 4.8 or later to use antialiasing... ;-) > > >>> ramesh karra 5/16/2006 > 1:35:15 PM >>> > Thanks steve! > > I made the changes you suggested but I started getting script errors. > It looks like the errors are due to 'PNG24'. I am using Mapserver 4.6. > Do I need to use > 4.8 or later to successfully use PNG24? > > Thanks > Krishna > > --- Steve Lime wrote: > > > You need a couple of other things: > > > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > > - alpha blending turned on for the layer (e.g. > > TRANSPARENCY ALPHA) > > > > That should get it working... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-259-5473 > > >>> ramesh karra 05/15/06 6:49 > > PM >>> > > Hi, > > > > I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not > > see any difference in the map that's displayed. I was hoping to see > > smooth lines but there was no difference in the way > > lines(representing > > roads) > > are drawn with or without anti-aliasing. Is this > the > > expected behavior? How can I get smooth lines? > > > > My layer is defined as follows: > > > > LAYER > > NAME roads > > DATA droad1 > > STATUS OFF > > TYPE LINE > > > > PROJECTION > > "init=epsg:4326" > > END > > > > CLASS > > NAME "Roads" > > MAXSCALE 80000 > > MINSCALE 20000 > > STYLE > > ANTIALIAS TRUE > > COLOR 150 150 150 > > WIDTH 3 > > END > > STYLE > > ANTIALIAS TRUE > > COLOR 255 255 255 > > WIDTH 1 > > END > > END > > END > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From watry at COAPS.FSU.EDU Wed May 17 07:20:58 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Wed, 17 May 2006 10:20:58 -0400 Subject: Python mapscript in IIS In-Reply-To: Message-ID: Okay from the top, I am running Mapserver from the latest MS4W by copying cgi-bin directory from MS4W into my directory structure. I then installed your dbox_demo_alpha.tar.gz into my directory structure. I updated the javascripts with all the new .js files you sent me. I downloaded and installed python-2.4.3.msi from www.python.org and installed it. I downloaded and installed mapscript-4.6.win32-py2.4-debug.exe from http://hobu.stat.iastate.edu/mapserver/ I configured IIS to run Python by using the procedure listed in http://urbanware.netfirms.com/python/pythonIIS.html and checked it by looking at http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B276494 ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Wednesday, May 17, 2006 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript in IIS Gary: I did a quick search and found (should have know) that Howard Butler has pre-compiled versions at: http://hobu.stat.iastate.edu/mapserver/ Question. What is the source of your Windows MapServer setup (and what version)? From Howard, MS4W, build-your-own? I worry about mismatched versions of things. Steve >>> Gary Watry 05/16/06 12:17 PM >>> How do you load Python mapscript in IIS I am working on http://gw102.coaps.fsu.edu/httpdocs/example.php I need to load Pythom Mapscript in IIS in order to get my legend to work? Thoughts? ______________________________________________________________ Gary L. Watry ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu From lfilak at MEDINACO.ORG Wed May 17 07:05:39 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 17 May 2006 10:05:39 -0400 Subject: React on query error In-Reply-To: <764B978D-1D29-4AD0-A22A-DCA2733656EB@grid.unep.ch> Message-ID: Stefan Schwarzer writes: > Hi, > > my application offers the possibility to preselect countries that should > be displayed on the map. Thus, instead of having all countries, I get > only these preselected ones mapped; the others are grayed out. But if a > user now uses the query tool and clicks on one of those not-preselected > countries, than an mapscript error occurs (naturally). Is there a way to > react on such an error warning and continue at another point, so that > this "problem" is just ignored and the application can continue to work? > > if (!$imgbox) > $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); // here is then the > error > else > $map -> queryByRect($click_rt); > > "Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) > found. in /www/geodataportal/htdocs/mod_map/etc/php/query.php on line 42" > > Thanks for any help! > > Stefan, Being that is just a warning message you should be able to set a variable to the result of the queryByPoint and then test for MS_SUCCESS or MS_FAILURE and react accordingly. Lowell From watry at COAPS.FSU.EDU Wed May 17 07:25:32 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Wed, 17 May 2006 10:25:32 -0400 Subject: Python mapscript in IIS In-Reply-To: Message-ID: Okay, I will give this a try, uninstall python, reinstall python to get clean install, install MS4W copy Python mapscript into my directory structure go fishing ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Howard Butler Sent: Wednesday, May 17, 2006 10:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript in IIS Steve, I should take those pages down, as they are now out of date with respect to MapServer 4.8.3. Working with Jeff and Assefa on the build kit, we were able to include Python MapScript in MS4W 1.5.3 (and Java, C#, and PHP of course). Additionally, pre-compiled dlls for SDE and Oracle are also included in MS4W 1.5.3 (requires some dll swapping). These two additions to MS4W make my "Kitchen sink" stuff obsolete. My suggestion to Gary is grab a copy of MS4W 1.5.3 and extract the Python MapScript that is available in there and install it in his Python's site-packages. Howard At 9:02 AM -0500 5/17/06, Steve Lime wrote: >Gary: I did a quick search and found (should have know) that Howard Butler = >has pre-compiled versions at: > > http://hobu.stat.iastate.edu/mapserver/ > >Question. What is the source of your Windows MapServer setup (and what = >version)? From Howard, MS4W, build-your-own? I worry about mismatched = >versions of things. > >Steve > >>>> Gary Watry 05/16/06 12:17 PM >>> >How do you load Python mapscript in IIS > >=20 > >I am working on > >=20 > >http://gw102.coaps.fsu.edu/httpdocs/example.php > >=20 > >I need to load Pythom Mapscript in IIS in order to get my legend to work? > >=20 > >Thoughts? > >______________________________________________________________ > >Gary L. Watry > >=20 > >=20 > >=20 > >______________________________________________________________ > >Gary L. Watry > > >GIS Coordinator >Center for Ocean-Atmospheric Prediction Studies >FSU / COAPS >Johnson Building, RM 215 >2035 East Paul Dirac Drive >Tallahassee, Florida 32306-2840 > >=20 > >E-Mail: watry at coaps.fsu.edu > >=20 From stefan.schwarzer at GRID.UNEP.CH Wed May 17 07:38:55 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 17 May 2006 16:38:55 +0200 Subject: React on query error In-Reply-To: <20060517140539.DAD004D278@webmail.medinaco.org> Message-ID: >> Hi, my application offers the possibility to preselect countries >> that should be displayed on the map. Thus, instead of having all >> countries, I get only these preselected ones mapped; the others >> are grayed out. But if a user now uses the query tool and clicks >> on one of those not-preselected countries, than an mapscript >> error occurs (naturally). Is there a way to react on such an >> error warning and continue at another point, so that this >> "problem" is just ignored and the application can continue to >> work? if (!$imgbox) >> $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); // here is >> then the error >> else >> $map -> queryByRect($click_rt); "Warning: [MapServer Error]: >> msQueryByPoint(): No matching record(s) found. in /www/ >> geodataportal/htdocs/mod_map/etc/php/query.php on line 42" Thanks >> for any help! > > Stefan, > Being that is just a warning message you should be able to set a > variable to the result of the queryByPoint and then test for > MS_SUCCESS or MS_FAILURE and react accordingly. > Lowell Thanks for that. I did it now the following way: //Query the Map at the point clicked if (!$imgbox) @ $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else @ $a = $map -> queryByRect($click_rt); if ($a == MS_SUCCESS) { xxxx } From mswort at GMAIL.COM Wed May 17 07:35:22 2006 From: mswort at GMAIL.COM (Matthew Swort) Date: Wed, 17 May 2006 10:35:22 -0400 Subject: PHP Mapscript Message-ID: I have a question concerning PHP Mapscript. I am using the same Mapfile that we used previously in Perl Mapscript and can get all of my layers to show up. However, my text and labels do not show up on the map. As far as I can tell everything is installed correctly. I am using Mapserver 4.8.3 on RHEL 4u3 ES (2.6.9-32.ELsmp) with PHP 4.4.2 Any assistance you can provide would be greatly appreciated. Matt From jeff at PROPERTYKEY.COM Wed May 17 07:09:32 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Wed, 17 May 2006 09:09:32 -0500 Subject: Problems with Java Mapscript on Tomcat/Windows Message-ID: I'm trying to do some Java Mapscript development work using Tomcat on Windows and I'm having trouble getting a stable development environment going. I've got a pretty much identical setup on Linux that's been going well, but my main development machine is Windows so I'd prefer to work on it there instead. Everything seems to work in Windows until I try to reload my web app, then Tomcat crashes pretty spectacularly. I'm using the MS4W (1.5.3) version of mapscript.dll/mapscript.jar & Tomcat 5.5.17. I've read about problems with reloading, but it sounds like as long as you put the mapscript.jar into tomcat/common/lib you shouldn't be getting any reloading problems anymore. Does anyone have any suggestions on what I can do to fix my problem? -- Jeff Hoffmann Head Plate Spinner From baas at SPEERIT.NL Wed May 17 08:18:12 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 17 May 2006 17:18:12 +0200 Subject: ogr2ogr reprojection In-Reply-To: <2534c4120605170650k607696a2r3c6fcfea97435337@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi there, > > I have a folder with ESRI shapefiles (WIN XP), and now I want to > reproject them with the command ogr2ogr. are there any batch commands to > do this? start -> run -> cmd cd for %a in (*.shp) do ogr2ogr.exe %a Message-ID: Jens Dahnken writes: > The correct flex library installed, but doesn't solve the problem! > Any further ideas? > Thx, > > Jens > \> \Jens Dahnken schrieb: > \> \> I'm trying to compile the mapserver 4.2.0 under SLES 9. > \> \> I call ./configure and that runs through to Makefile. > \> \> Starting make it ends with: > \> \> > \> \> collect2: ld returned 1 exit status > \> \> make: *** [shp2img] Error 1 > \> \> > \> \> Any idea how to solve this problem? > \> \> The whole make protocol is attached. > \> \> Jens, I think you need bison along with flex. Lowell From David.Hunter at FNF.COM Wed May 17 08:37:42 2006 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 17 May 2006 10:37:42 -0500 Subject: ogr2ogr and Oracle Message-ID: Is it possible to use ogr2ogr to export Oracle Spatial data into Mapinfo files? I'm having trouble hunting down any examples of this. If not, are there any other ways to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed May 17 08:56:21 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 17 May 2006 17:56:21 +0200 Subject: Anti Aliasing In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7F43@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: antialiasing true/off works well, and what you have to do are: 1. comment your "OUTPUTFORMAT...END"ONJECT, add "IMAGETYPE PNG24" 2. set "TRANSPARENCY ALPHA" in your layer object 3. set "ANTIALIAS TRUE" in style object. that's all! zhonghai 17.05.2006 On 5/17/06, Doyon, Jean-Francois wrote: > > Interesting ... My reading of the docs suggests that TRANSPARENCY ALPHA > should only respect the alpha channel in pixmap symbols ... > > Yet apparently rendered line work (which isn't pixmap based) is also > "smoothed"? Is that right? > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of ramesh karra > Sent: May 16, 2006 6:07 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing > > Thanks steve! > > I have upgraded to 4.8.3 and the roads/lines are smooth... Looks really > good. > > Thanks > Ramesh > > --- Steve Lime wrote: > > > You need 4.8 or later to use antialiasing... ;-) > > > > >>> ramesh karra 5/16/2006 > > 1:35:15 PM >>> > > Thanks steve! > > > > I made the changes you suggested but I started getting script errors. > > It looks like the errors are due to 'PNG24'. I am using Mapserver 4.6. > > Do I need to use > > 4.8 or later to successfully use PNG24? > > > > Thanks > > Krishna > > > > --- Steve Lime wrote: > > > > > You need a couple of other things: > > > > > > - a 24-bit output format (e.g. IMAGETYPE PNG24) > > > - alpha blending turned on for the layer (e.g. > > > TRANSPARENCY ALPHA) > > > > > > That should get it working... > > > > > > Steve > > > > > > Stephen Lime > > > Data & Applications Manager > > > > > > Minnesota DNR > > > 500 Lafayette Road > > > St. Paul, MN 55155 > > > 651-259-5473 > > > >>> ramesh karra 05/15/06 6:49 > > > PM >>> > > > Hi, > > > > > > I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not > > > see any difference in the map that's displayed. I was hoping to see > > > smooth lines but there was no difference in the way > > > lines(representing > > > roads) > > > are drawn with or without anti-aliasing. Is this > > the > > > expected behavior? How can I get smooth lines? > > > > > > My layer is defined as follows: > > > > > > LAYER > > > NAME roads > > > DATA droad1 > > > STATUS OFF > > > TYPE LINE > > > > > > PROJECTION > > > "init=epsg:4326" > > > END > > > > > > CLASS > > > NAME "Roads" > > > MAXSCALE 80000 > > > MINSCALE 20000 > > > STYLE > > > ANTIALIAS TRUE > > > COLOR 150 150 150 > > > WIDTH 3 > > > END > > > STYLE > > > ANTIALIAS TRUE > > > COLOR 255 255 255 > > > WIDTH 1 > > > END > > > END > > > END > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > http://mail.yahoo.com > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed May 17 09:24:43 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 17 May 2006 18:24:43 +0200 Subject: ogr2ogr and Oracle In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B0172FAD2@smbfnis-chi01.fnis.com> Message-ID: It should be possible, take a look here, maybe your can find something you need. http://gdal.maptools.org/ogr/ogr2ogr.html zhonghai On 5/17/06, Hunter, David - St. Louis Park, MN wrote: > > Is it possible to use ogr2ogr to export Oracle Spatial data into Mapinfo > files? I'm having trouble hunting down any examples of this. If not, are > there any other ways to do this? > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubydunes at YAHOO.COM Wed May 17 10:00:29 2006 From: rubydunes at YAHOO.COM (rubydunes) Date: Wed, 17 May 2006 10:00:29 -0700 Subject: Feature Selection/Get Info In-Reply-To: Message-ID: Thanks for the reply. Here's the layer def for the Parcels shapefile: LAYER NAME Parcels TYPE POLYGON STATUS ON DATA Parcels TRANSPARENCY 45 TOLERANCE 3 TOLERANCEUNITS PIXELS CLASSITEM OID MAXSCALE 0 MINSCALE 0 SYMBOLSCALE 10000 LABELITEM 'PARCELID' LABELMAXSCALE 20000 LABELMINSCALE 0 TRANSFORM TRUE CLASS EXPRESSION /./ TEMPLATE 'Parcels.html' NAME Parcels COLOR 197 217 151 OUTLINECOLOR 60 79 30 LABEL FORCE TRUE WRAP '@' COLOR 0 0 0 SHADOWCOLOR 64 0 0 SHADOWSIZE 0 0 TYPE TRUETYPE FONT courier SIZE 4 ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 1 BUFFER 1 END END END In my template (Parcels.html) that gets launched after the query for Parcels shapefile I just have a couple of test fields. The file is simply: [PARCELID] [STREET] Thanks for your time. Bill --- Steve Lime wrote: > Hi Bill: Sounds like you're very close. Pasting in > the layer def for parcels might help us diagnose > some possible problems. > > The item tags are case sensitive and must match > what's in the datasource exactly. For > shaefiles that's typically all upper case but I have > run into .dbf files with mixed case names. > I'd check the actual names to make sure those match > the tags you're using. > > Steve > > >>> rubydunes 5/16/2006 > 2:14:02 PM >>> > Hey folks. I've tried everything and can't get a > selection / get info tool to work. I set the MODE > to > QUERY and then click on a feature and it goes to the > template for the layer as it should, but all I see > are > the field tags and not the information that should > replace them. > > For example, if I click on a Parcel, the browser > goes > to Parcel.html (the template) but all I see is this: > > [PARCELID] > [STREET] > [NUMBER] > > etc... > > I must be missing an important step that sends these > valuse to the template file. Right now it's like > it's > just opening the file. > > Any ideas? Thanks!!! > > Bill > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From lfilak at MEDINACO.ORG Wed May 17 12:04:34 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 17 May 2006 15:04:34 -0400 Subject: PHP Mapscript In-Reply-To: <6f880fb10605170735i359f7f8fp1949c9bf4c09d22f@mail.gmail.com> Message-ID: Matthew Swort writes: > I have a question concerning PHP Mapscript. > > I am using the same Mapfile that we used previously in Perl Mapscript > and can get all of my layers to show up. However, my text and labels > do not show up on the map. As far as I can tell everything is > installed correctly. > > I am using Mapserver 4.8.3 on RHEL 4u3 ES (2.6.9-32.ELsmp) with PHP 4.4.2 > > Any assistance you can provide would be greatly appreciated. Matt, If the mapfile contains the definition for the text & labels and they are not created by mapscript the problem most likely lies in the path to the fonts or such. shp2img may help point you in the right direction as it will take mapscript out of the picture. Lowell From mcgrawj at AGR.GC.CA Wed May 17 12:52:29 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Wed, 17 May 2006 15:52:29 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Hi all, I am trying to load a MAP file that does a JOIN to connect a shapefile with a geolinked dbf. But, when I try to load the map file in a browser from our Linux server, I get a "Premature end of script headers: mapserv" in the Apache error_log. I've read a bunch of posts to the forum and all seem to suggest that "Premature end of script headers" messages are usually the result of libraries not being loaded properly. How can I learn what library is missing or not properly loading? I don't get any additional message helping to identify this in Apache's error_log. I've done a little testing and find that just using OGR seems to be the problem. I've created a simple map file with a single layer in it and set the following attributes: LAYER NAME "ecozones" DATA "ecozones" # CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" : END In the browser, when I enter the following URL with the above definition, the image appears fine: http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones However, if I comment the 'DATA "ecozones"' line and uncomment the lines referring to OGR, the image displays correctly from a Windows server; so, I'm fairly confident the syntax in the file is fine. But, the same map file (with a different path to the ecozones.shp file obviously) gives the "Premature end of script headers" error. Any pointers as to how I can identify what is causing the error are greatly appreciated. I'm stuck! Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite From mcgrawj at AGR.GC.CA Wed May 17 13:25:18 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Wed, 17 May 2006 16:25:18 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: On an additional note, when I use the Linux ogrinfo utility and pass the JOIN select query which I am ultimately trying to run, I get the proper strings returned. I just wanted to pass this along to further highlight that the problem does not appear to be a syntax one of the map file. Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: McGraw, Joanne Sent: Wednesday, May 17, 2006 3:52 PM To: 'mapserver-users at lists.umn.edu' Subject: OGR failing on Linux with Premature end of script headers Hi all, I am trying to load a MAP file that does a JOIN to connect a shapefile with a geolinked dbf. But, when I try to load the map file in a browser from our Linux server, I get a "Premature end of script headers: mapserv" in the Apache error_log. I've read a bunch of posts to the forum and all seem to suggest that "Premature end of script headers" messages are usually the result of libraries not being loaded properly. How can I learn what library is missing or not properly loading? I don't get any additional message helping to identify this in Apache's error_log. I've done a little testing and find that just using OGR seems to be the problem. I've created a simple map file with a single layer in it and set the following attributes: LAYER NAME "ecozones" DATA "ecozones" # CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" : END In the browser, when I enter the following URL with the above definition, the image appears fine: http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones However, if I comment the 'DATA "ecozones"' line and uncomment the lines referring to OGR, the image displays correctly from a Windows server; so, I'm fairly confident the syntax in the file is fine. But, the same map file (with a different path to the ecozones.shp file obviously) gives the "Premature end of script headers" error. Any pointers as to how I can identify what is causing the error are greatly appreciated. I'm stuck! Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite From zhonghaiw at GMAIL.COM Wed May 17 15:33:54 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 00:33:54 +0200 Subject: question about shp2tile Message-ID: Hi folks, I have a large shapefile, now I am trying to use shp2tile command to slice it into pieces, with -r and -c is ok, but I do not fully understand the -q parameter, what does it actually mean? and what number should a use for this parameter normally? or something like this? -- >shp2tile -q 10000 input_shapefile output_shapefile any clues? zhonghai 18.05.2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Wed May 17 15:42:04 2006 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 17 May 2006 17:42:04 -0500 Subject: question about shp2tile In-Reply-To: Message-ID: The number parameter is telling the slicer/chopper to stop adding to a particular tile one that number is reached. The -q paramter stands for Quad-tree tiling, which uses a overlapping unequal tiling scheme that's based on the number of elements in the tile. This works very well for point datasets for example, where there are concentration of points in cerain areas and sparsly populated areas in other locations. if the data is more os less even spaced over the coverage area you can use a gridded tiling system instead with essentially the same results. As far as what number to use, that's a trial and error matter, try one, build the tiles, do a query, then try another . . . . I've got some datasets with millions of points in them where I went down to 10000 points per tile with good results. If you know what the number of average results a particular view is likely to have in it, you could use that number for the tiling to get you started. The benefits of tiling the data go down the more tiles you need to look at at query time. bobb Zhonghai Wang wrote: >------=_Part_23654_11415646.1147905234312 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: quoted-printable >Content-Disposition: inline > >Hi folks, > >I have a large shapefile, now I am trying to use shp2tile command to slice >it into pieces, with -r and -c is ok, but I do not fully understand the -q >parameter, what does it actually mean? and what number should a use for thi= >s >parameter normally? > >or something like this? -- >shp2tile -q 10000 input_shapefile >output_shapefile > >any clues? > >zhonghai > >18.05.2006 > >------=_Part_23654_11415646.1147905234312 >Content-Type: text/html; charset=ISO-8859-1 >Content-Transfer-Encoding: quoted-printable >Content-Disposition: inline > >Hi folks,

I have a large shapefile, now I am trying to use shp2tile = >command to slice it into pieces, with -r and -c is ok, but I do not fully u= >nderstand the -q parameter, what does it actually mean? and what number sho= >uld a use for this parameter normally? >

or something like this? -- >shp2tile -q 10000 input_shapefile ou= >tput_shapefile

any clues?

zhonghai

18.05.2006
> >------=_Part_23654_11415646.1147905234312-- > > > > From woodbri at SWOODBRIDGE.COM Wed May 17 19:11:00 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 17 May 2006 22:11:00 -0400 Subject: question about shp2tile In-Reply-To: <2534c4120605171533l40aa516crb2e63c33ab83b788@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi folks, > > I have a large shapefile, now I am trying to use shp2tile command to > slice it into pieces, with -r and -c is ok, but I do not fully > understand the -q parameter, what does it actually mean? and what number > should a use for this parameter normally? > > or something like this? -- >shp2tile -q 10000 input_shapefile > output_shapefile Hi Zhonghai, The -r -c option breaks the extents of your shapefile into R x C rows and columns and then tries to fit the objects into the best tile. I any tile crosses a tile boundary by 5-10% then it is put into a "supertile" the could be the same extents as the original shape file. So typically you will end up with r X c + 1 tiles. The -q N option splits the extents in half either vertically or horizontally and then sorts the objects into the 2 halves or put them in a supertile. Then if the either of the two halves has more than N objects it is again split in half and this continues until all files have less than N objects. This can cause some strange effects like tiles with 1 or a small number of objects and most tiles will have less than N objects in them. Since this algorithm tends to spatially cluster objects in a file, there is a good chance that if you need the file that all or most objects in the file will be used. I recommend trying numbers like 10,000 and 20,000 as you initial tries. I think you should probably not use numbers less then 8000, but it is really up to you to try and measure the results to find what works best for your data. -Steve W. From baas at SPEERIT.NL Wed May 17 22:17:06 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 18 May 2006 07:17:06 +0200 Subject: ogr2ogr reprojection In-Reply-To: <2534c4120605171541l7404fa39rfe5de87ef132c34b@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi, > > I've tried with this batch command, but I failed, because I don't know > how to specify the -s_srs and -t_srs parameters, should it be something > like this? > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 -init=world:CH1903 > > **init=world:CH1903 is for switzerland, and I am sure that this > projection code is right. yeah, this should do it. Sorry for my short last response though. This should execute ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 For each .shp file you have. What is the error you receive? Perhaps the ogr2ogr.exe isn't in the same folder? -- Jelmer Baas From Jukka.Rahkonen at MMMTIKE.FI Wed May 17 23:05:30 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 18 May 2006 09:05:30 +0300 Subject: ogr2ogr reprojection Message-ID: Hi, Another alternative is to make one batch file (.bat) for the actual conversion and call it with parameters from another. Like this convert.bat ======== ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 call_convert.bat =========== call convert.bat destination_1 source_1 call convert.bat destination_2 source_2 call convert.bat destination_3 source_3 etc. Conversion is started by running "call_convert.bat", and "destination_1" and "source_1" will be treated as %1 and %2 by the "convert.bat", respectively. To start with call_conver.bat you can first insert all your shapefiles there by command dir /b *.shp >call_convert.bat dir /b /s puts there all shapefiles from subdirectories as well. This may be a brutal way but it has some advantages. For example you can add some extra commands to "convert.bat" to be executed after each conversion. This way I use to make log files with time stamps about raster file batch conversions. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas L?hetetty: to 18.5.2006 8:17 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection Zhonghai Wang wrote: > Hi, > > I've tried with this batch command, but I failed, because I don't know > how to specify the -s_srs and -t_srs parameters, should it be something > like this? > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 -init=world:CH1903 > > **init=world:CH1903 is for switzerland, and I am sure that this > projection code is right. yeah, this should do it. Sorry for my short last response though. This should execute ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 For each .shp file you have. What is the error you receive? Perhaps the ogr2ogr.exe isn't in the same folder? -- Jelmer Baas From zhonghaiw at GMAIL.COM Wed May 17 23:53:06 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 08:53:06 +0200 Subject: question about shp2tile In-Reply-To: <446BD7B4.6000108@swoodbridge.com> Message-ID: Hi Bob, Steve, thank you very much for all these helpful clues, now I think I've got the points of the shp2tile command, it's really a good tool to slice shapefile. zhonghai On 5/18/06, Stephen Woodbridge wrote: > > Zhonghai Wang wrote: > > Hi folks, > > > > I have a large shapefile, now I am trying to use shp2tile command to > > slice it into pieces, with -r and -c is ok, but I do not fully > > understand the -q parameter, what does it actually mean? and what number > > should a use for this parameter normally? > > > > or something like this? -- >shp2tile -q 10000 input_shapefile > > output_shapefile > > Hi Zhonghai, > > The -r -c option breaks the extents of your shapefile into R x C rows > and columns and then tries to fit the objects into the best tile. I any > tile crosses a tile boundary by 5-10% then it is put into a "supertile" > the could be the same extents as the original shape file. So typically > you will end up with r X c + 1 tiles. > > The -q N option splits the extents in half either vertically or > horizontally and then sorts the objects into the 2 halves or put them in > a supertile. Then if the either of the two halves has more than N > objects it is again split in half and this continues until all files > have less than N objects. This can cause some strange effects like tiles > with 1 or a small number of objects and most tiles will have less than N > objects in them. Since this algorithm tends to spatially cluster objects > in a file, there is a good chance that if you need the file that all or > most objects in the file will be used. > > I recommend trying numbers like 10,000 and 20,000 as you initial tries. > I think you should probably not use numbers less then 8000, but it is > really up to you to try and measure the results to find what works best > for your data. > > -Steve W. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Thu May 18 00:47:06 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 18 May 2006 16:47:06 +0900 Subject: Font Question Message-ID: Hello Everyone, I have a question about font styling. My style sheet is asking for a stroke-width of 0.5. Do I set this up like a polygon with an outlinecolor of less than 1? If so, does anyone know how to do that? Here's my style sheet exerpt: stroke:#7F7F7F;stroke-width:0.4; fill:#E000A1; and my layer so far ... LAYER NAME c_eki_oh STATUS ON TILEINDEX "c_eki_oh_ix" TILEITEM "location" TYPE ANNOTATION LABELITEM "label" ###Z5 CLASS # MAXSCALE 20000 #Z5 MAX # MINSCALE 16001 #Z5 MIN LABEL TYPE TRUETYPE MINDISTANCE 250 FONT kochi-mincho SIZE 7.5 COLOR 0 0 0 #WIDTH 0.3 POSITION AUTO ENCODING SJIS PARTIALS FALSE END END ###Z5 CLASS # MAXSCALE 20000 #Z5 MAX # MINSCALE 16001 #Z5 MIN LABEL TYPE TRUETYPE MINDISTANCE 250 FONT kochi-mincho SIZE 7.5 COLOR 0 0 0 #WIDTH 0.3 POSITION AUTO ENCODING SJIS PARTIALS FALSE END END END Uncommenting WIDTH crashes it. Thank you in advance, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Thu May 18 02:10:22 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 11:10:22 +0200 Subject: question about shp2tile In-Reply-To: <2534c4120605172353k2b8fab7dka80c52eaf34d2da7@mail.gmail.com> Message-ID: Hi guys, I've tried to make a efficient map layer with the commands shp2tile, tile4ms, and shptree, but something seems not right, because MapServer can not draw the maps. I've made a test in a seperate folder, and I've done the following processes: *** data -- Forests.shp (for a country) *** 1. >shp2tile -r 50 -c 50 Forests.shp Forests_Test.shp >>>results for this step: shp, shx, and dbf files, there is no prj file for the output file >>>error info on the console: failed to create shp Forests_Test.shp -1833 2. >tile4ms ---- get the tileindex.shx, tileindex.shp and tileindex.dbffiles for the Forests_Test.shp, there is still no prj file for tileindex.shp >>>no error messages appear at this step 3. >shptree -- to genetare .qix file for all shapefiles in this subfolder >>> results for this step: Forests.qix, Forests_Test.qix, and tileindex.qix >>>no error info on the console but, only if I set DATA "Forests" in the layer object the map will be rendered, others like DATA "Forests_Test" or TTILEINDEX "tileindex" TILEITEM "location" do not work, the server simply sends back a blank image. did I make any mistakes or it really do not work well. (I am using MS4W 4.8.1) I guess some errors occur when I perform the command shp2tile. thanks for any further info. zhonghai On 5/18/06, Zhonghai Wang wrote: > > Hi Bob, Steve, > > thank you very much for all these helpful clues, now I think I've got the > points of the shp2tile command, it's really a good tool to slice shapefile. > > zhonghai > > On 5/18/06, Stephen Woodbridge wrote: > > > > Zhonghai Wang wrote: > > > Hi folks, > > > > > > I have a large shapefile, now I am trying to use shp2tile command to > > > slice it into pieces, with -r and -c is ok, but I do not fully > > > understand the -q parameter, what does it actually mean? and what > > number > > > should a use for this parameter normally? > > > > > > or something like this? -- >shp2tile -q 10000 input_shapefile > > > output_shapefile > > > > Hi Zhonghai, > > > > The -r -c option breaks the extents of your shapefile into R x C rows > > and columns and then tries to fit the objects into the best tile. I any > > tile crosses a tile boundary by 5-10% then it is put into a "supertile" > > the could be the same extents as the original shape file. So typically > > you will end up with r X c + 1 tiles. > > > > The -q N option splits the extents in half either vertically or > > horizontally and then sorts the objects into the 2 halves or put them in > > > > a supertile. Then if the either of the two halves has more than N > > objects it is again split in half and this continues until all files > > have less than N objects. This can cause some strange effects like tiles > > with 1 or a small number of objects and most tiles will have less than N > > objects in them. Since this algorithm tends to spatially cluster objects > > in a file, there is a good chance that if you need the file that all or > > most objects in the file will be used. > > > > I recommend trying numbers like 10,000 and 20,000 as you initial tries. > > I think you should probably not use numbers less then 8000, but it is > > really up to you to try and measure the results to find what works best > > for your data. > > > > -Steve W. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Thu May 18 02:55:53 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 18 May 2006 11:55:53 +0200 Subject: GDAL raster access and shapepath Message-ID: Some more information on this issue. If we use GDAL to access a TIFF file, SHAPEPATH is used. If we use GDAL to access an ECW file, SHAPEPATH is not used! How is this possible? TIFF: [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL: GDALOpen(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.au x) succeeds as HFA. [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL: GDALClose(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.a ux) [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL: GDALOpen(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.ti f) succeeds as GTiff. [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL: GDALClose(/data/geopakhuis/ahn_100/geogegevens/raster/landsdekkend/ahn_100.t if) [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] [Thu May 18 12:01:18 2006] [error] [client 145.50.148.45] GDAL: GDALDeregister_GTiff() called. ECW: [Thu May 18 12:02:24 2006] [error] [client 145.50.148.45] Thu May 18 12:02:24 2006 - msDrawRaster(): Unable to access file. (ahn_100/geogegevens/raster/landsdekkend/ahn_100.ecw) Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Bart van den Eijnden (OSGIS) Verzonden: woensdag 17 mei 2006 15:41 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] GDAL raster access and shapepath Hi list, using Mapserver 4.8.3 and GDAL 1.3.2 we have a problem accessing an ECW file relative to the SHAPEPATH. If we use an absolute path in the DATA statement all works fine. So: MAP SHAPEPATH "/data/geopakhuis/" and: LAYER DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" does not work (case 1), whereas DATA "/data/geopakhuis/erogrid_nl2005/Aerogrid_NL2005_40cm.ecw" does work (case 2). Attached the log after setting CPL_DEBUG to ON. Case 1: [Wed May 17 15:22:09 2006] [error] [client 145.50.39.34] Wed May 17 15:22:09 2006 - msDrawRaster(): Unable to access file. (ae rogrid_nl2005/Aerogrid_NL2005_40cm.ecw) Case 2: [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2 005_40cm.ecw): eErr = 0 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: FileInfo: SizeXY=690000,800000 Bands=3 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECW: projection=LOCAL, datum=WGS84 [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] GDAL: GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm. ecw) succeeds as ECW. [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:23 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] ECWRasterBand: RasterIO(nXOff=270272,nYOff=279099,nXSize=9944,nYSize= 5972 -> 750x450) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL: GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm .ecw) [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] [Wed May 17 15:21:24 2006] [error] [client 145.50.39.34] GDAL: GDALDeregister_GTiff() called. Any ideas what could be wrong? Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Thu May 18 03:29:05 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 12:29:05 +0200 Subject: ogr2ogr reprojection In-Reply-To: Message-ID: Hi Jukka, I've tried what you said, but it doen't work. the command "dir /b *.shp>call_convert.bat" just simply writes the file path into the call_convert.bat file, and the convert.bat command is never be called. after performing "dir /b *.shp>call_convert.bat" I get the file path in the call_convert.bat instead of call convert.bat destination_1 source_1 and call convert.bat destination_2 source_2. something is wrong? thanks zhonghai On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > Another alternative is to make one batch file (.bat) for the actual > conversion and call it with parameters from another. Like this > > convert.bat > ======== > > ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 > > > call_convert.bat > =========== > call convert.bat destination_1 source_1 > call convert.bat destination_2 source_2 > call convert.bat destination_3 source_3 > etc. > > Conversion is started by running "call_convert.bat", and "destination_1" > and "source_1" will be treated as %1 and %2 by the "convert.bat", > respectively. > > To start with call_conver.bat you can first insert all your shapefiles > there by command > dir /b *.shp >call_convert.bat > > dir /b /s puts there all shapefiles from subdirectories as well. > > This may be a brutal way but it has some advantages. For example you can > add some extra commands to "convert.bat" to be executed after each > conversion. This way I use to make log files with time stamps about raster > file batch conversions. > > Regards, > > -Jukka Rahkonen- > > > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas > L?hetetty: to 18.5.2006 8:17 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > > Zhonghai Wang wrote: > > Hi, > > > > I've tried with this batch command, but I failed, because I don't know > > how to specify the -s_srs and -t_srs parameters, should it be something > > like this? > > > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 -init=world:CH1903 > > > > **init=world:CH1903 is for switzerland, and I am sure that this > > projection code is right. > > yeah, this should do it. Sorry for my short last response though. > > This should execute > ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 > > For each .shp file you have. What is the error you receive? Perhaps the > ogr2ogr.exe isn't in the same folder? > > -- > Jelmer Baas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Thu May 18 03:34:46 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Thu, 18 May 2006 11:34:46 +0100 Subject: GDAL v1.3.2 on linux - no PGEO driver Message-ID: Dear all I am currently working through a method of accessing personal geodatabases from a linux platform. I have now upgraded my gdal to 1.3.2, but the PGeo driver doesn't seem to be available anymore. It was available to me on 1.3.1 - are there any special flags I need to use when compiling? And if not is there a way to rollback to 1.3.1 (I know there is no 'make uninstall' (bug 133)). thanks in advance Stu -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From Jukka.Rahkonen at MMMTIKE.FI Thu May 18 03:36:25 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 18 May 2006 13:36:25 +0300 Subject: ogr2ogr and Oracle Message-ID: Hi Mr. Hunter, I made a trial by following the manual, and this command really worked for me with the ogr2ogr from the latest MS4W package and Oracle 9i: ogr2ogr -f "MapInfo File" 887.mif OCI:username/password at database:gis_polygons -nlt POLYGON -sql "select g.plohkonro, g.geoloc from gis_polygons g where knro=887" Regards, -Jukka Rahkonen ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Hunter, David - St. Louis Park, MN L?hetetty: ke 17.5.2006 18:37 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] ogr2ogr and Oracle Is it possible to use ogr2ogr to export Oracle Spatial data into Mapinfo files? I'm having trouble hunting down any examples of this. If not, are there any other ways to do this? From Jukka.Rahkonen at MMMTIKE.FI Thu May 18 03:48:39 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 18 May 2006 13:48:39 +0300 Subject: ogr2ogr reprojection Message-ID: Hi, I'm sorry about not being clear enough. You must manually edit the "call_convert.bat" by adding the missing parts, that is "call convert.bat " in the beginning of each row, and target name at the end of the row. Redirecting the file list to batch file prototype is only to help you in creating the working launching bat-file including all your shapefiles. I suggest you to make first make manually a launch file with two or three rows only and test with that. When you see that it works you can put all your shapefiles on the list. Regards, -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Zhonghai Wang L?hetetty: to 18.5.2006 13:29 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection Hi Jukka, I've tried what you said, but it doen't work. the command "dir /b *.shp>call_convert.bat" just simply writes the file path into the call_convert.bat file, and the convert.bat command is never be called. after performing "dir /b *.shp>call_convert.bat" I get the file path in the call_convert.bat instead of call convert.bat destination_1 source_1 and call convert.bat destination_2 source_2. something is wrong? thanks zhonghai On 5/18/06, Rahkonen Jukka wrote: Hi, Another alternative is to make one batch file (.bat) for the actual conversion and call it with parameters from another. Like this convert.bat ======== ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 call_convert.bat =========== call convert.bat destination_1 source_1 call convert.bat destination_2 source_2 call convert.bat destination_3 source_3 etc. Conversion is started by running "call_convert.bat", and "destination_1" and "source_1" will be treated as %1 and %2 by the "convert.bat ", respectively. To start with call_conver.bat you can first insert all your shapefiles there by command dir /b *.shp >call_convert.bat dir /b /s puts there all shapefiles from subdirectories as well. This may be a brutal way but it has some advantages. For example you can add some extra commands to "convert.bat" to be executed after each conversion. This way I use to make log files with time stamps about raster file batch conversions. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas L?hetetty: to 18.5.2006 8:17 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection Zhonghai Wang wrote: > Hi, > > I've tried with this batch command, but I failed, because I don't know > how to specify the -s_srs and -t_srs parameters, should it be something > like this? > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 -init=world:CH1903 > > **init=world:CH1903 is for switzerland, and I am sure that this > projection code is right. yeah, this should do it. Sorry for my short last response though. This should execute ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 For each .shp file you have. What is the error you receive? Perhaps the ogr2ogr.exe isn't in the same folder? -- Jelmer Baas From D.Stone at ED.AC.UK Thu May 18 05:06:43 2006 From: D.Stone at ED.AC.UK (DjwStone) Date: Thu, 18 May 2006 05:06:43 -0700 Subject: Querying PostGIS point layer Message-ID: Some time ago, I had trouble using CGI to query a PostGIS point layer defined by: DATA "geom FROM (select from testloc where () AS foo USING UNIQUE USING srid=27700" In browse mode, this layer displayed OK as symbols on the map, but changing the [mode] to 'query', and clicking a point should have invoked a simple template showing formatted with boilerplate text. But what actually appeared was a completely blank page. The workaround (thanks to Perry Nacionales) was simply to leave out the 'USING UNIQUE ', and sure enough this remedies the problem. However, everything I've read suggests that the USING UNIQUE... is de rigueur for querying. Does leaving it out imply a performance hit? (OK, working slowly is better than not working at all) Or is there some other wrinkle I've overlooked that's needed to make the thing work with USING UNIQUE? Dave Footnote: 'testloc' in the DATA statement above is a 5-table join view. I've tried specifying the as both a base column-name and an alias without success. -- View this message in context: http://www.nabble.com/Querying-PostGIS-point-layer-t1642656.html#a4449204 Sent from the Mapserver - User forum at Nabble.com. From fsozzi at INTERCAD.CH Thu May 18 05:26:48 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 18 May 2006 14:26:48 +0200 Subject: "Click to activate and use this control" on JBox Message-ID: Hi Sean, here you are what I've made. Hope this helps Best regards Francesco ------------------------------------------------------------------ from main php page I call a php function "htmlWriteMapJBox": ------------------------------------------------------------------
ID="idFormMap">
------------------------------------------------------------------ the implementation of "htmlWriteMapJBox" note that I commented the old way, and after that I've wrirtten the new way note also that JBox loading is demanded to a JScripi function "LoadJBox" ------------------------------------------------------------------ function htmlWriteMapJBox() { global $gHost; global $gImageUrl; global $hiddenMapClientWidth; global $hiddenMapClientHeight; $lMapClientWidth=$hiddenMapClientWidth - 36; $lMapClientHeight=$hiddenMapClientHeight - 36; if($gImageUrl!="") { echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
\""\""\""
\"" "; //Note: old way to activate map control. see below for the new one // echo " "; // echo " "; // echo " "; // echo " "; //Note: Workaround to automatically activate control avoiding tooltip //"Click to activate and use this control" echo " "; echo " \""
\""\""\""
"; } } ------------------------------------------------------------------ the implementation of JScript function "LoadJBox" is: ------------------------------------------------------------------ function LoadJBox(host,mapClientWidth,mapClientHeight,imageUrl) { document.write(" "); document.write(" "); document.write(" "); document.write(" "); } ----- Original Message ----- From: "Sean Fadum" To: "Francesco Sozzi" Sent: Wednesday, May 17, 2006 10:38 PM Subject: Re: [UMN_MAPSERVER-USERS] "Click to activate and use this control" on JBox > Hi Francesco, > > I am trying to load the Rosa applet using a jscript (document.write) > function too. It seems to load properly but there is no image. Would it > be possible to see how you got your applet running properly? > > Sean > > ----- Original Message ----- > From: Francesco Sozzi > Date: Monday, May 15, 2006 4:23 am > Subject: Re: [UMN_MAPSERVER-USERS] "Click to activate and use this > control" on JBox > >> Thank you Jelmer, this solves my problem (now I'm using >> document.write() in >> a JScript function to load applet) >> >> Regards >> >> Francesco >> >> ----- Original Message ----- >> From: "Jelmer Baas" >> To: >> Sent: Monday, May 15, 2006 10:37 AM >> Subject: Re: [UMN_MAPSERVER-USERS] "Click to activate and use this >> control" >> on JBox >> >> >> > Francesco Sozzi wrote: >> >> In the new MS Internet Explorer version, user must click on >> JBox control >> >> before using it (everitime, after every refresh). >> >> When user drag mouse over JBox, IE shows a tooltip: "Click to >> activate >> >> and use this control". >> >> Are there any workaround for that? >> > >> > Here you can read all about it: >> > >> > >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp> >> > -- >> > Jelmer >> > >> > > From fredlucca at GMAIL.COM Thu May 18 06:40:05 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 18 May 2006 10:40:05 -0300 Subject: Question about querybypoint Message-ID: Hello list, I'm querying a layer by point, using tolerance in meters because I need to find some street in a point using Decimal Degrees and a range in meters. Something like: layer.setSizeunits(mapscript.MS_METERS); layer.setToleranceunits(mapscript.MS_METERS); layer.setTolerance(radius); layer.queryByPoint(map, point, mapscript.MS_SINGLE, -1) Comparing two radius, 100 and 50 meters, I think 50 is twice faster than 100, is this true? What's the difference between MS_SINGLE and MS_MULTIPLE. MS_SINGLE find one, and only one feature??? MS_SINGLE is much faster than MS_MULTIPLE? Supousing that I need to return the nearest street name and some streets don't have name, is better to querybypoint with 50 meters and if the street don't have a name find again, with 100 meters? Or find MS_MULTIPLE with 100 meters? querybyrect or querybyshape are faster? I need the fastest result because i need to query in 10 layers very quickly. Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu May 18 06:44:16 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 18 May 2006 09:44:16 -0400 Subject: question about shp2tile In-Reply-To: <2534c4120605180210x7c5a14ar5e7dba1f3bf593a3@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi guys, > > I've tried to make a efficient map layer with the commands shp2tile, > tile4ms, and shptree, but something seems not right, because MapServer > can not draw the maps. I've made a test in a seperate folder, and I've > done the following processes: > > *** > data -- Forests.shp (for a country) > *** > 1. >shp2tile -r 50 -c 50 Forests.shp Forests_Test.shp > >>>results for this step: shp, shx, and dbf files, there is no prj file > for the output file > >>>error info on the console: failed to create shp Forests_Test.shp -1833 This is likely because you are trying to create 2501 files (50 x 50 + 1) and they all half to be open at the same time for this mode so you likely ran into a process file handle limit. Also how many point do you have in this layer? What is the value of Num_points/2500, this number should not be smaller than 8000 - 10000. > 2. >tile4ms ---- get the tileindex.shx, tileindex.shp and tileindex.dbf > files for the Forests_Test.shp, there is still no prj file for tileindex.shp > >>>no error messages appear at this step There are no prj files created. Mapserver does not use them. > 3. >shptree -- to genetare .qix file for all shapefiles in this subfolder > >>> results for this step: Forests.qix, Forests_Test.qix, and tileindex.qix > >>>no error info on the console > > but, only if I set DATA "Forests" in the layer object the map will be > rendered, others like DATA "Forests_Test" or TTILEINDEX "tileindex" > TILEITEM "location" do not work, the server simply sends back a blank > image. > > did I make any mistakes or it really do not work well. (I am using MS4W > 4.8.1) > > I guess some errors occur when I perform the command shp2tile. What version of shp2tile are you using? woodbri at carto:/data/mdata$ ~/dev/shptools/shp2tile -v $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ If it does not respond with the Id string above you need to upgrade as there is a serious crashing bug for point data in the earlier version if you are using the -q option. It should work for the row col option, just try to decrease the number of tiles. Also if you do not have something like R x C files in your directory then the process failed. For the row col option you can also specify --no-write to just get a stats report of how the data is put into the tiles. -Steve > thanks for any further info. > > zhonghai > > On 5/18/06, *Zhonghai Wang* > wrote: > > Hi Bob, Steve, > > thank you very much for all these helpful clues, now I think I've > got the points of the shp2tile command, it's really a good tool to > slice shapefile. > > zhonghai > > On 5/18/06, *Stephen Woodbridge* > wrote: > > Zhonghai Wang wrote: >> Hi folks, >> >> I have a large shapefile, now I am trying to use shp2tile > command to >> slice it into pieces, with -r and -c is ok, but I do not fully >> understand the -q parameter, what does it actually mean? and > what number >> should a use for this parameter normally? >> >> or something like this? -- >shp2tile -q 10000 input_shapefile >> output_shapefile > > Hi Zhonghai, > > The -r -c option breaks the extents of your shapefile into R x C > rows > and columns and then tries to fit the objects into the best > tile. I any > tile crosses a tile boundary by 5-10% then it is put into a > "supertile" > the could be the same extents as the original shape file. So > typically > you will end up with r X c + 1 tiles. > > The -q N option splits the extents in half either vertically or > horizontally and then sorts the objects into the 2 halves or put > them in > a supertile. Then if the either of the two halves has more than N > objects it is again split in half and this continues until all files > have less than N objects. This can cause some strange effects > like tiles > with 1 or a small number of objects and most tiles will have > less than N > objects in them. Since this algorithm tends to spatially cluster > objects > in a file, there is a good chance that if you need the file that > all or > most objects in the file will be used. > > I recommend trying numbers like 10,000 and 20,000 as you initial > tries. > I think you should probably not use numbers less then 8000, but > it is > really up to you to try and measure the results to find what > works best > for your data. > > -Steve W. > > > From eric.belenfant at AC-ORLEANS-TOURS.FR Thu May 18 07:27:13 2006 From: eric.belenfant at AC-ORLEANS-TOURS.FR (Eric Belenfant) Date: Thu, 18 May 2006 16:27:13 +0200 Subject: PROBLEM QUERYING ONE POINT LAYER Message-ID: Hi, i have a layer in a map file i want to show dynamicly from FORM parameters choosed by user. This is a POINT layer. When i do a queryByAttributes on that layer mapserver returns several shapes but points doesn't appear, nor labels defined in layer. What do i miss ? Points should be drawn with draw() method ? Is there any particularity when querying POINT LAYERS ? I tested the same thing on POLYGON layers and it works fine ! When i turn this POINT LAYER ON points are drawn fine. Here is my POINT LAYER : LAYER NAME "colPU" TYPE POINT STATUS OFF CONNECTIONTYPE OGR CONNECTION "data/etablissements/E-clgpu05.TAB" CLASSITEM "ETAB" METADATA "DESCRIPTION" "|||Etablissements" "RESULT_FIELDS" "ETAB,NOM,DEPT,SECT" "RESULT_HEADERS" "|||Numero d'?tablissement,Nom ?tablissement,D?partement,Secteur" "RESULT_HYPERLINK" "ETAB" END LABELITEM "NOM" CLASS NAME "Coll?ge public" TEMPLATE void COLOR 139 0 139 SYMBOL 'circle' SIZE 5 LABEL COLOR 139 0 139 POSITION AUTO TYPE bitmap SIZE tiny WRAP " " FORCE TRUE END END END Here piece of PHP code : $db =& DB::connect($dsn, $options); # r?cup?ration de la liste des ?tablissements $modele = & new carteModel($db); $modele->listeEtabSect($secteur); $Lcommunes=$map->getLayerByName("colPU"); $Lcommunes->set("status", MS_ON); while ($item = $modele->getItem()) { if (!$item["numetab"]) continue; @$Lcommunes->queryByAttributes("ETAB",$item["numetab"],MS_MULTIPLE); if (!$nb = $Lcommunes->getNumResults()) continue; $resultat=$Lcommunes->getResult(0); $Lcommunes->open(); $nb = $Lcommunes->getNumResults(); echo "{$item["numetab"]} Nombre de r?sulats $nb\n
"; $Lcommunes->close(); $shape->free(); $Lcommunes->close(); } $db->disconnect(); -- Eric BELENFANT Tel : 02.38.79.45.97 INGENIEUR D'ETUDES INFORMATIQUE DEP - Division Etudes et Prospectives Rectorat d'Orl?ans-Tours -------------- next part -------------- An HTML attachment was scrubbed... URL: From knkoehn at HOTMAIL.COM Thu May 18 07:48:02 2006 From: knkoehn at HOTMAIL.COM (Kelly Koehn) Date: Thu, 18 May 2006 09:48:02 -0500 Subject: mapserv not following extents? Message-ID: I've been working with the USGS Counties and States maps (located at nationalatlas.gov) and the GIS maps from the NOAA and I've been running into a stumbling block. I've been able to get the maps to display but it seems that the mapserv cgi app only pays attention to one of the extents. I'll copy my map file below but for my example use the following line: EXTENT -100.05 37.1 -94.85 37.85 It seems to fit the -100.05 and -94.85 just fine on the map and that gives me the coordinates I need on the X axis but it never seems to follow on the Y-axis. Its like it tries to create something porportional. What the end result is a map that is squished from top to bottom. (see at http://www.aspiredillusion.com/cgi-bin/mapserv?map=/nexrad/map/nexrad.map&mode=map ) Has anyone else experienced this or know of a way around it? Here is the -v info from mapserv: MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Thanks Kelly Koehn --------- Copy of nexrad.map --- MAP IMAGETYPE GIF SIZE 400 400 SHAPEPATH "/nexrad/map" TRANSPARENT ON UNITS DD EXTENT -100.05 37.1 -94.85 37.85 FONTSET "font.set" LAYER NAME c100000jan2902 DATA c100000jan2902 STATUS DEFAULT TYPE POLYGON #FILTERITEM county #FILTER "Sedgwick County" LABELITEM "COUNTYNAME" CLASS NAME "US Counties" OUTLINECOLOR 0 0 0 LABEL TYPE truetype FONT arial SIZE 6 ANTIALIAS TRUE COLOR 255 0 0 OUTLINECOLOR 255 255 255 ANGLE 0 PARTIALS false END END END END _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ed at TOPOZONE.COM Thu May 18 09:14:50 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 18 May 2006 12:14:50 -0400 Subject: mapserv not following extents? Message-ID: Kelly - You're asking (in the mapfile) for a square image (400x400 pixels) with a decidedly NON-square extent - 5.2 degrees by 0.75 degrees. You can't do both at the same time, so MapServer is honoring the larger extent (the X dimension) and extending the smaller extent (the Y dimension) in order to fill the size of the image you requested. MapServer uses this algorithm to ensure that you always get the geographic extent you requested, and gives you more if needed. What output do you really want? You're asking for a map of an area that's 7 times wider than it is tall. Is that the area you want, or do you want something different? - 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kelly Koehn Sent: Thursday, May 18, 2006 10:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserv not following extents? I've been working with the USGS Counties and States maps (located at nationalatlas.gov) and the GIS maps from the NOAA and I've been running into a stumbling block. I've been able to get the maps to display but it seems that the mapserv cgi app only pays attention to one of the extents. I'll copy my map file below but for my example use the following line: EXTENT -100.05 37.1 -94.85 37.85 It seems to fit the -100.05 and -94.85 just fine on the map and that gives me the coordinates I need on the X axis but it never seems to follow on the Y-axis. Its like it tries to create something porportional. What the end result is a map that is squished from top to bottom. (see at http://www.aspiredillusion.com/cgi-bin/mapserv?map=/nexrad/map/nexrad.ma p&mode=map ) Has anyone else experienced this or know of a way around it? Here is the -v info from mapserv: MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Thanks Kelly Koehn --------- Copy of nexrad.map --- MAP IMAGETYPE GIF SIZE 400 400 SHAPEPATH "/nexrad/map" TRANSPARENT ON UNITS DD EXTENT -100.05 37.1 -94.85 37.85 FONTSET "font.set" LAYER NAME c100000jan2902 DATA c100000jan2902 STATUS DEFAULT TYPE POLYGON #FILTERITEM county #FILTER "Sedgwick County" LABELITEM "COUNTYNAME" CLASS NAME "US Counties" OUTLINECOLOR 0 0 0 LABEL TYPE truetype FONT arial SIZE 6 ANTIALIAS TRUE COLOR 255 0 0 OUTLINECOLOR 255 255 255 ANGLE 0 PARTIALS false END END END END _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From zhonghaiw at GMAIL.COM Thu May 18 09:28:46 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 18:28:46 +0200 Subject: question about shp2tile In-Reply-To: <446C7A30.5040305@swoodbridge.com> Message-ID: Hi Steve, I've tried again like you said, this time I get something, but still no map images are rendered. the version is exactly the same, updated version. First test example: data -- admin.shp (administration area, which includes 5 polygons) **** when performing shp2tile command, no parameters are set, and by default the shapefile is sliced into 2*2+1 shapefiles. With the following layer object definition, map image is drawn: LAYER NAME "administration" GROUP "country" STATUS DEFAULT TILEINDEX "index" TILEITEM "LOCATION" TYPE POLYGON DEBUG ON TRANSPARENCY ALPHA CLASS NAME "woodland" STYLE COLOR 204 204 255 ANTIALIAS TRUE END END END ********** Second test example: data -- settlement.shp, which contains 2155664 polygons **** when performing shp2tile command for this shapefile, I set 10*10, each slice contians therefore about 21557 polygons. It's also ok with tile4ms and shptree commands. hm... seems exciting... but, with this layer object definition no settlements are drawn : LAYER NAME "Settlement" GROUP "settlements" STATUS DEFAULT TILEINDEX "settlementindex" TILEITEM "LOCATION" MAXSCALE 100000 TYPE POLYGON DEBUG ON TRANSPARENCY ALPHA CLASS NAME "SM" STYLE COLOR 153 153 102 ANTIALIAS TRUE END END END ***** I have now really no idea where the problems should be. Steve, any clues? thanks for your info. zhonghai On 5/18/06, Stephen Woodbridge wrote: > > Zhonghai Wang wrote: > > Hi guys, > > > > I've tried to make a efficient map layer with the commands shp2tile, > > tile4ms, and shptree, but something seems not right, because MapServer > > can not draw the maps. I've made a test in a seperate folder, and I've > > done the following processes: > > > > *** > > data -- Forests.shp (for a country) > > *** > > 1. >shp2tile -r 50 -c 50 Forests.shp Forests_Test.shp > > >>>results for this step: shp, shx, and dbf files, there is no prj file > > for the output file > > >>>error info on the console: failed to create shp Forests_Test.shp > -1833 > > This is likely because you are trying to create 2501 files (50 x 50 + 1) > and they all half to be open at the same time for this mode so you > likely ran into a process file handle limit. Also how many point do you > have in this layer? What is the value of Num_points/2500, this number > should not be smaller than 8000 - 10000. > > > 2. >tile4ms ---- get the tileindex.shx, tileindex.shp and tileindex.dbf > > files for the Forests_Test.shp, there is still no prj file for > tileindex.shp > > >>>no error messages appear at this step > > There are no prj files created. Mapserver does not use them. > > > 3. >shptree -- to genetare .qix file for all shapefiles in this > subfolder > > >>> results for this step: Forests.qix, Forests_Test.qix, and > tileindex.qix > > >>>no error info on the console > > > > but, only if I set DATA "Forests" in the layer object the map will be > > rendered, others like DATA "Forests_Test" or TTILEINDEX "tileindex" > > TILEITEM "location" do not work, the server simply sends back a blank > > image. > > > > did I make any mistakes or it really do not work well. (I am using MS4W > > 4.8.1) > > > > I guess some errors occur when I perform the command shp2tile. > > What version of shp2tile are you using? > > woodbri at carto:/data/mdata$ ~/dev/shptools/shp2tile -v > $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ > > If it does not respond with the Id string above you need to upgrade as > there is a serious crashing bug for point data in the earlier version if > you are using the -q option. It should work for the row col option, just > try to decrease the number of tiles. > > Also if you do not have something like R x C files in your directory > then the process failed. For the row col option you can also specify > --no-write to just get a stats report of how the data is put into the > tiles. > > -Steve > > > thanks for any further info. > > > > zhonghai > > > > On 5/18/06, *Zhonghai Wang* < zhonghaiw at gmail.com > > > wrote: > > > > Hi Bob, Steve, > > > > thank you very much for all these helpful clues, now I think I've > > got the points of the shp2tile command, it's really a good tool to > > slice shapefile. > > > > zhonghai > > > > On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > > wrote: > > > > Zhonghai Wang wrote: > >> Hi folks, > >> > >> I have a large shapefile, now I am trying to use shp2tile > > command to > >> slice it into pieces, with -r and -c is ok, but I do not fully > >> understand the -q parameter, what does it actually mean? and > > what number > >> should a use for this parameter normally? > >> > >> or something like this? -- >shp2tile -q 10000 input_shapefile > >> output_shapefile > > > > Hi Zhonghai, > > > > The -r -c option breaks the extents of your shapefile into R x C > > > rows > > and columns and then tries to fit the objects into the best > > tile. I any > > tile crosses a tile boundary by 5-10% then it is put into a > > "supertile" > > the could be the same extents as the original shape file. So > > typically > > you will end up with r X c + 1 tiles. > > > > The -q N option splits the extents in half either vertically or > > horizontally and then sorts the objects into the 2 halves or put > > them in > > a supertile. Then if the either of the two halves has more than > N > > objects it is again split in half and this continues until all > files > > have less than N objects. This can cause some strange effects > > like tiles > > with 1 or a small number of objects and most tiles will have > > less than N > > objects in them. Since this algorithm tends to spatially cluster > > > objects > > in a file, there is a good chance that if you need the file that > > all or > > most objects in the file will be used. > > > > I recommend trying numbers like 10,000 and 20,000 as you initial > > > tries. > > I think you should probably not use numbers less then 8000, but > > it is > > really up to you to try and measure the results to find what > > works best > > for your data. > > > > -Steve W. > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Thu May 18 09:54:39 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 18:54:39 +0200 Subject: ogr2ogr reprojection In-Reply-To: Message-ID: Hi, what you have said works fine, but now something is wrong again with the srs definition, the error messages on the console are: >>>SRS_Def can be a full WKT definition, or a well known definition, i.e. epsg:4326 or a file with a WKT definition. in the call_convert.bat, I defined like this: call convert.bat boundary.shp COUNTRY_region.shp call convert.bat forests.shp FOREST_region.shp and in the convert.bat file: ogr2ogr -init=world:CH1903 -init=epsg:4326 %1 %2 it seems that the project definition "-init=world:CH1903" is not right, but I use it also in other mapfiles, and it works well. anything wrong? zhonghai On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > I'm sorry about not being clear enough. You must manually edit the > "call_convert.bat" by adding the missing parts, that is "call convert.bat" in the beginning of each row, and target name at the end of the row. > Redirecting the file list to batch file prototype is only to help you in > creating the working launching bat-file including all your shapefiles. > > I suggest you to make first make manually a launch file with two or three > rows only and test with that. When you see that it works you can put all > your shapefiles on the list. > > Regards, > > -Jukka- > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Zhonghai Wang > L?hetetty: to 18.5.2006 13:29 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > Hi Jukka, > > I've tried what you said, but it doen't work. > > the command "dir /b *.shp>call_convert.bat" just simply writes the file > path into the call_convert.bat file, and the convert.bat command is never > be called. > > after performing "dir /b *.shp>call_convert.bat" I get the file path in > the call_convert.bat instead of call convert.bat destination_1 source_1 > and call convert.bat destination_2 source_2. > > something is wrong? > > thanks > > zhonghai > > On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > Another alternative is to make one batch file (.bat) for the actual > conversion and call it with parameters from another. Like this > > convert.bat > ======== > > ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 > > > call_convert.bat > =========== > call convert.bat destination_1 source_1 > call convert.bat destination_2 source_2 > call convert.bat destination_3 source_3 > etc. > > Conversion is started by running "call_convert.bat", and > "destination_1" and "source_1" will be treated as %1 and %2 by the " > convert.bat ", respectively. > > To start with call_conver.bat you can first insert all your > shapefiles there by command > dir /b *.shp >call_convert.bat > > dir /b /s puts there all shapefiles from subdirectories as well. > > This may be a brutal way but it has some advantages. For example > you can add some extra commands to "convert.bat" to be executed after > each conversion. This way I use to make log files with time stamps about > raster file batch conversions. > > Regards, > > -Jukka Rahkonen- > > > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas > L?hetetty: to 18.5.2006 8:17 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > > Zhonghai Wang wrote: > > Hi, > > > > I've tried with this batch command, but I failed, because I don't > know > > how to specify the -s_srs and -t_srs parameters, should it be > something > > like this? > > > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 > -init=world:CH1903 > > > > **init=world:CH1903 is for switzerland, and I am sure that this > > projection code is right. > > yeah, this should do it. Sorry for my short last response though. > > This should execute > ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 > > For each .shp file you have. What is the error you receive? Perhaps > the > ogr2ogr.exe isn't in the same folder? > > -- > Jelmer Baas > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu May 18 10:41:33 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 18 May 2006 20:41:33 +0300 Subject: ogr2ogr reprojection Message-ID: Hi, I cannot make a test right now, nor check the documentation, but if I remember right with ogr2ogr something like -s_srs "epsg:4323" should work if there exists epsg-code for your projection. Similarly -t_srs "epsg: " for the target projection. -Jukka- -----Original Message----- From: UMN MapServer Users List on behalf of Zhonghai Wang Sent: Thu 18.5.2006 19:54 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection Hi, what you have said works fine, but now something is wrong again with the srs definition, the error messages on the console are: >>>SRS_Def can be a full WKT definition, or a well known definition, i.e. epsg:4326 or a file with a WKT definition. in the call_convert.bat, I defined like this: call convert.bat boundary.shp COUNTRY_region.shp call convert.bat forests.shp FOREST_region.shp and in the convert.bat file: ogr2ogr -init=world:CH1903 -init=epsg:4326 %1 %2 it seems that the project definition "-init=world:CH1903" is not right, but I use it also in other mapfiles, and it works well. anything wrong? zhonghai On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > I'm sorry about not being clear enough. You must manually edit the > "call_convert.bat" by adding the missing parts, that is "call convert.bat" in the beginning of each row, and target name at the end of the row. > Redirecting the file list to batch file prototype is only to help you in > creating the working launching bat-file including all your shapefiles. > > I suggest you to make first make manually a launch file with two or three > rows only and test with that. When you see that it works you can put all > your shapefiles on the list. > > Regards, > > -Jukka- > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Zhonghai Wang > L?hetetty: to 18.5.2006 13:29 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > Hi Jukka, > > I've tried what you said, but it doen't work. > > the command "dir /b *.shp>call_convert.bat" just simply writes the file > path into the call_convert.bat file, and the convert.bat command is never > be called. > > after performing "dir /b *.shp>call_convert.bat" I get the file path in > the call_convert.bat instead of call convert.bat destination_1 source_1 > and call convert.bat destination_2 source_2. > > something is wrong? > > thanks > > zhonghai > > On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > Another alternative is to make one batch file (.bat) for the actual > conversion and call it with parameters from another. Like this > > convert.bat > ======== > > ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 > > > call_convert.bat > =========== > call convert.bat destination_1 source_1 > call convert.bat destination_2 source_2 > call convert.bat destination_3 source_3 > etc. > > Conversion is started by running "call_convert.bat", and > "destination_1" and "source_1" will be treated as %1 and %2 by the " > convert.bat ", respectively. > > To start with call_conver.bat you can first insert all your > shapefiles there by command > dir /b *.shp >call_convert.bat > > dir /b /s puts there all shapefiles from subdirectories as well. > > This may be a brutal way but it has some advantages. For example > you can add some extra commands to "convert.bat" to be executed after > each conversion. This way I use to make log files with time stamps about > raster file batch conversions. > > Regards, > > -Jukka Rahkonen- > > > > ________________________________ > > L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas > L?hetetty: to 18.5.2006 8:17 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > > Zhonghai Wang wrote: > > Hi, > > > > I've tried with this batch command, but I failed, because I don't > know > > how to specify the -s_srs and -t_srs parameters, should it be > something > > like this? > > > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 > -init=world:CH1903 > > > > **init=world:CH1903 is for switzerland, and I am sure that this > > projection code is right. > > yeah, this should do it. Sorry for my short last response though. > > This should execute > ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 > > For each .shp file you have. What is the error you receive? Perhaps > the > ogr2ogr.exe isn't in the same folder? > > -- > Jelmer Baas > > > > From warmerdam at POBOX.COM Thu May 18 11:15:27 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 May 2006 14:15:27 -0400 Subject: ogr2ogr reprojection In-Reply-To: <2534c4120605180954o46618b34kf0a3054f323e645a@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > Hi, > > what you have said works fine, but now something is wrong again with the > srs definition, the error messages on the console are: > > >>>SRS_Def can be a full WKT definition, or a well known definition, > i.e. epsg:4326 or a file with a WKT definition. > > in the call_convert.bat, I defined like this: > > call convert.bat boundary.shp COUNTRY_region.shp > call convert.bat forests.shp FOREST_region.shp > > and in the convert.bat file: > > ogr2ogr -init=world:CH1903 -init=epsg:4326 %1 %2 Zhonghai Wang, I think the above should be expressed: ogr2ogr -s_srs +init=world:CH1903 -t_srs EPSG:4326 %1 %2 Sometimes, depending on environment variable settings, the init file support won't work. If that occurs you would be better off looking up the proj4 string and inserting the whole thing. If you do that don't forget to quote the argument. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From baas at SPEERIT.NL Thu May 18 11:38:39 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 18 May 2006 20:38:39 +0200 Subject: ogr2ogr reprojection In-Reply-To: Message-ID: Rahkonen Jukka wrote: No offence, Rahkonen, but IMHO you're only making it harder for him. A simple for loop would suffice. If only I knew what went wrong and what his command line arguments are.... -- Met vriendelijke groet, Jelmer Baas Speer IT B.V. From sergiodlopez at YAHOO.COM Thu May 18 11:48:16 2006 From: sergiodlopez at YAHOO.COM (=?iso-8859-1?q?Sergio=20L=F3pez?=) Date: Thu, 18 May 2006 15:48:16 -0300 Subject: Possible bug? Message-ID: Hello, I need help because I have bumped into a weird issue while migrating from Mapserver 4.6 to 4.8. I have several applications running perfectly well based on MS4W 1.3.0. They?re developed in PHPMapscript and I use shapefile and POSTGIS data. When I migrated to mapserver 4.8 (in MS4W 1.5.0), This error appears when I tried to query POSTGIS point layers (only postgis, not shapefiles): ---------------------------------------------------------------------------------------- Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from ejidos WHERE the_geom && setSRID('BOX3D(5676966.1875 6041297.8425,5800095.4875 6139801.2825)'::BOX3D, find_srid('','ejidos','the_geom') )' Postgresql reports the error as 'ERROR: cursor "mycursor" already exists ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. in /opt/fgs/www/htdocs/BA2ss/index.php on line 115 Fatal error: Call to a member function on a non-object in /opt/fgs/www/htdocs/BA2ss/index.php on line 116 ---------------------------------------------------------------------------------------- Analyzing the problem I found out that error occurs when I query a point layer which has other layers below in the map file. For example if I have a cities layers over a state layer error occurs, but if I turn off the polygon layer don?t. I have to remark that this only happens with POINT layers. I have to say that until mapserver 4.6 all worked perfectly!. By the way, I tried the code in a XP box and in a SUSE 10 one, and the same happens. I?m also using POSTGRESQL 8.1 with POSTGIS 1.1 The code I use to make the point queries is: ---------------------------------------------------------------------------------------- $pun_cons = ms_newpointobj(); $pun_cons->setxy($geo_x, $geo_y); $layerbyname = layer_seleccionado($_GET['obj_layer1']); $capa_activa = $mapa->getLayerbyname($layerbyname); //layerObj getLayer(int index) //$nombre_layer= $capa_activa->name; //nombre del layer activo consultado //$resul_cons = @$capa_activa->queryByPoint($pun_cons, MS_SINGLE, -1); if(@$capa_activa->queryByPoint($pun_cons, MS_SINGLE,$tolerancia) == MS_FAILURE) { //return array("NO SE INTERSECTO RASGO!",$nombre_layer);//$resul_cons;// $vacio = "
Consulta Vacia
"; return $vacio; exit; }else if ($capa_activa->status == MS_ON){ $resultados = $capa_activa->getresult(0); //Returns a resultCacheMemberObj by index from a layer object withindex in the range 0 to numresults-1. //Returns a valid object or FALSE(0) if index is invalid. $shape_index = $resultados->shapeindex; // Instances of ResultCacheMemberObj are always obtained through //layerObj's getResult() method. $tile_index = $resultados->tileindex; if($capa_activa->open() == MS_FAILURE) { return "No se pudo abrir ".$resultados->name; exit; } //  $shape = $capa_activa->getshape($tileindex, $shape_index); $capa_activa->close; ---------------------------------------------------------------------------------------- Please help me if you can?t because I analized the code and as far as I know seems right to me. Thanks in advance Sergio Argentina --------------------------------- Yahoo! Autos. M?s de 100 veh?culos vendidos por d?a. ?Qu? esper?s para vender el tuyo? Hacelo ahora y ganate un premio de Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu May 18 12:04:11 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 May 2006 15:04:11 -0400 Subject: GDAL raster access and shapepath In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97B91@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Eijnden, B. van den (Bart) wrote: > Some more information on this issue. > > If we use GDAL to access a TIFF file, SHAPEPATH is used. > If we use GDAL to access an ECW file, SHAPEPATH is not used! > > How is this possible? Bart, Is your ECW file larger than 2GB? There is a problem in all released versions with fopen() failing on large files, so the attempt to "try" shapepath seems to fail to MapServer even though the actual ECW file would have opened ok. There was a bug submitted on this, and a patch has been applied in CVS (on the 4.8 branch as well) so the next releases on 4.8.x and 4.9+ should be corrected. This will also affect other GDAL supported formats where the actual file is more than 2GB. It only affects SHAPEPATH use though. Direct access always works ok. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From zhonghaiw at GMAIL.COM Thu May 18 12:35:53 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 21:35:53 +0200 Subject: ogr2ogr reprojection In-Reply-To: Message-ID: Hi Jukka, thanks for your help, I've got it, Yippee!!!!! I've forgot to specify the -t_srs and s_srs indicators, it's fool........... thanks again. zhonghai On 5/18/06, Rahkonen Jukka wrote: > > Hi, > > I cannot make a test right now, nor check the documentation, but if I > remember right with ogr2ogr something like -s_srs "epsg:4323" should work if > there exists epsg-code for your projection. Similarly -t_srs "epsg: " for > the target projection. > > -Jukka- > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Zhonghai Wang > Sent: Thu 18.5.2006 19:54 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > Hi, > > what you have said works fine, but now something is wrong again with the > srs > definition, the error messages on the console are: > > >>>SRS_Def can be a full WKT definition, or a well known definition, i.e. > epsg:4326 or a file with a WKT definition. > > in the call_convert.bat, I defined like this: > > call convert.bat boundary.shp COUNTRY_region.shp > call convert.bat forests.shp FOREST_region.shp > > and in the convert.bat file: > > ogr2ogr -init=world:CH1903 -init=epsg:4326 %1 %2 > > it seems that the project definition "-init=world:CH1903" is not right, > but > I use it also in other mapfiles, and it works well. > > anything wrong? > > zhonghai > > On 5/18/06, Rahkonen Jukka wrote: > > > > Hi, > > > > I'm sorry about not being clear enough. You must manually edit the > > "call_convert.bat" by adding the missing parts, that is "call > convert.bat" in the beginning of each row, and target name at the end of > the row. > > Redirecting the file list to batch file prototype is only to help you in > > creating the working launching bat-file including all your shapefiles. > > > > I suggest you to make first make manually a launch file with two or > three > > rows only and test with that. When you see that it works you can put all > > your shapefiles on the list. > > > > Regards, > > > > -Jukka- > > > > ________________________________ > > > > L?hett?j?: UMN MapServer Users List puolesta: Zhonghai Wang > > L?hetetty: to 18.5.2006 13:29 > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > > > > Hi Jukka, > > > > I've tried what you said, but it doen't work. > > > > the command "dir /b *.shp>call_convert.bat" just simply writes the file > > path into the call_convert.bat file, and the convert.bat command is > never > > be called. > > > > after performing "dir /b *.shp>call_convert.bat" I get the file path in > > the call_convert.bat instead of call convert.bat destination_1 source_1 > > and call convert.bat destination_2 source_2. > > > > something is wrong? > > > > thanks > > > > zhonghai > > > > On 5/18/06, Rahkonen Jukka wrote: > > > > Hi, > > > > Another alternative is to make one batch file (.bat) for the > actual > > conversion and call it with parameters from another. Like this > > > > convert.bat > > ======== > > > > ogr2ogr [-all fixed parameters like -s_srs and -t_srs here] %1 %2 > > > > > > call_convert.bat > > =========== > > call convert.bat destination_1 source_1 > > call convert.bat destination_2 source_2 > > call convert.bat destination_3 source_3 > > etc. > > > > Conversion is started by running "call_convert.bat", and > > "destination_1" and "source_1" will be treated as %1 and %2 by the " > > convert.bat ", respectively. > > > > To start with call_conver.bat you can first insert all your > > shapefiles there by command > > dir /b *.shp >call_convert.bat > > > > dir /b /s puts there all shapefiles from subdirectories as well. > > > > This may be a brutal way but it has some advantages. For example > > you can add some extra commands to "convert.bat" to be executed after > > each conversion. This way I use to make log files with time stamps about > > raster file batch conversions. > > > > Regards, > > > > -Jukka Rahkonen- > > > > > > > > ________________________________ > > > > L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas > > L?hetetty: to 18.5.2006 8:17 > > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > > Aihe: Re: [UMN_MAPSERVER-USERS] ogr2ogr reprojection > > > > > > > > Zhonghai Wang wrote: > > > Hi, > > > > > > I've tried with this batch command, but I failed, because I > don't > > know > > > how to specify the -s_srs and -t_srs parameters, should it be > > something > > > like this? > > > > > >> for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 > > -init=world:CH1903 > > > > > > **init=world:CH1903 is for switzerland, and I am sure that this > > > projection code is right. > > > > yeah, this should do it. Sorry for my short last response though. > > > > This should execute > > ogr2ogr.exe -init=epsg:4326 -init=world:CH1903 > > > > For each .shp file you have. What is the error you receive? > Perhaps > > the > > ogr2ogr.exe isn't in the same folder? > > > > -- > > Jelmer Baas > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu May 18 12:43:36 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 May 2006 15:43:36 -0400 Subject: OGR failing on Linux with Premature end of script headers In-Reply-To: Message-ID: McGraw, Joanne wrote: > LAYER NAME "ecozones" DATA "ecozones" > > # CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # > CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" > > : END > > In the browser, when I enter the following URL with the above definition, > the image appears fine: > http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones > > > However, if I comment the 'DATA "ecozones"' line and uncomment the lines > referring to OGR, the image displays correctly from a Windows server; so, > I'm fairly confident the syntax in the file is fine. But, the same map file > (with a different path to the ecozones.shp file obviously) gives the > "Premature end of script headers" error. > > Any pointers as to how I can identify what is causing the error are greatly > appreciated. I'm stuck! Joanne, You might want to try "shp2img" on your map file as it will generally give you better error messages. In fact, I usually see specific messages for missing shared libraries in my Apache error_log, so I'm surprised you don't see more details. Perhaps an old OGR (libgdal.so) is getting picked up in your case and this is causing a crash without details. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From ealpert at DIGITALGLOBE.COM Thu May 18 12:56:01 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 18 May 2006 13:56:01 -0600 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Yes this is usually a shared library problem. Check your LD_LIBRARY_PATH environment variable is set in the apache httpd.conf file. It's not surprising that ogrinfo would work at the command line but ogr would fail when apache calls it. The apache user has a different environment. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Wednesday, May 17, 2006 1:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Hi all, I am trying to load a MAP file that does a JOIN to connect a shapefile with a geolinked dbf. But, when I try to load the map file in a browser from our Linux server, I get a "Premature end of script headers: mapserv" in the Apache error_log. I've read a bunch of posts to the forum and all seem to suggest that "Premature end of script headers" messages are usually the result of libraries not being loaded properly. How can I learn what library is missing or not properly loading? I don't get any additional message helping to identify this in Apache's error_log. I've done a little testing and find that just using OGR seems to be the problem. I've created a simple map file with a single layer in it and set the following attributes: LAYER NAME "ecozones" DATA "ecozones" # CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" : END In the browser, when I enter the following URL with the above definition, the image appears fine: http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones However, if I comment the 'DATA "ecozones"' line and uncomment the lines referring to OGR, the image displays correctly from a Windows server; so, I'm fairly confident the syntax in the file is fine. But, the same map file (with a different path to the ecozones.shp file obviously) gives the "Premature end of script headers" error. Any pointers as to how I can identify what is causing the error are greatly appreciated. I'm stuck! Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite From mcgrawj at AGR.GC.CA Thu May 18 13:11:06 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Thu, 18 May 2006 16:11:06 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Hi Frank, Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. I tried your suggestion and didn't get any additional information: [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png Segmentation fault [mcgrawj at siswebdev temp]$ I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. Thanks for the suggestion. jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Thursday, May 18, 2006 3:44 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers McGraw, Joanne wrote: > LAYER NAME "ecozones" DATA "ecozones" > > # CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # > CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" > > : END > > In the browser, when I enter the following URL with the above definition, > the image appears fine: > http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones > > > However, if I comment the 'DATA "ecozones"' line and uncomment the lines > referring to OGR, the image displays correctly from a Windows server; so, > I'm fairly confident the syntax in the file is fine. But, the same map file > (with a different path to the ecozones.shp file obviously) gives the > "Premature end of script headers" error. > > Any pointers as to how I can identify what is causing the error are greatly > appreciated. I'm stuck! Joanne, You might want to try "shp2img" on your map file as it will generally give you better error messages. In fact, I usually see specific messages for missing shared libraries in my Apache error_log, so I'm surprised you don't see more details. Perhaps an old OGR (libgdal.so) is getting picked up in your case and this is causing a crash without details. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From woodbri at SWOODBRIDGE.COM Thu May 18 13:17:28 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 18 May 2006 16:17:28 -0400 Subject: OGR failing on Linux with Premature end of script headers In-Reply-To: Message-ID: Try "locate libgdal" which should show you where all copies of files with libgdal in the name are located on your system. -Steve McGraw, Joanne wrote: > Hi Frank, > Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. > > I tried your suggestion and didn't get any additional information: > > [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png > Segmentation fault > [mcgrawj at siswebdev temp]$ > > I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. > > Thanks for the suggestion. > jtm > > Joanne T. McGraw > GIS Data Analyst / Analyste des donn?es du SIG > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: 613 759-6103 > Facsimile/T?l?copieur: 613 759-1937 > 960 Carling Ave, Bldg. 20, Rm. 1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > www.agr.gc.ca/nlwis-snite > > > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam > Sent: Thursday, May 18, 2006 3:44 PM > To: McGraw, Joanne > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers > > McGraw, Joanne wrote: > >>LAYER NAME "ecozones" DATA "ecozones" >> >># CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # >>CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" >> >>: END >> >>In the browser, when I enter the following URL with the above definition, >>the image appears fine: >>http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones >> >> >>However, if I comment the 'DATA "ecozones"' line and uncomment the lines >>referring to OGR, the image displays correctly from a Windows server; so, >>I'm fairly confident the syntax in the file is fine. But, the same map file >>(with a different path to the ecozones.shp file obviously) gives the >>"Premature end of script headers" error. >> >>Any pointers as to how I can identify what is causing the error are greatly >>appreciated. I'm stuck! > > > Joanne, > > You might want to try "shp2img" on your map file as it will generally give > you better error messages. In fact, I usually see specific messages for > missing shared libraries in my Apache error_log, so I'm surprised you don't > see more details. Perhaps an old OGR (libgdal.so) is getting picked up > in your case and this is causing a crash without details. > > Good luck, From mcgrawj at AGR.GC.CA Thu May 18 13:18:43 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Thu, 18 May 2006 16:18:43 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: I did. There's about six of them. I don't have access to the Apache config files. Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, May 18, 2006 4:17 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Try "locate libgdal" which should show you where all copies of files with libgdal in the name are located on your system. -Steve McGraw, Joanne wrote: > Hi Frank, > Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. > > I tried your suggestion and didn't get any additional information: > > [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png > Segmentation fault > [mcgrawj at siswebdev temp]$ > > I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. > > Thanks for the suggestion. > jtm > > Joanne T. McGraw > GIS Data Analyst / Analyste des donn?es du SIG > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: 613 759-6103 > Facsimile/T?l?copieur: 613 759-1937 > 960 Carling Ave, Bldg. 20, Rm. 1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > www.agr.gc.ca/nlwis-snite > > > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam > Sent: Thursday, May 18, 2006 3:44 PM > To: McGraw, Joanne > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers > > McGraw, Joanne wrote: > >>LAYER NAME "ecozones" DATA "ecozones" >> >># CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # >>CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" >> >>: END >> >>In the browser, when I enter the following URL with the above definition, >>the image appears fine: >>http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones >> >> >>However, if I comment the 'DATA "ecozones"' line and uncomment the lines >>referring to OGR, the image displays correctly from a Windows server; so, >>I'm fairly confident the syntax in the file is fine. But, the same map file >>(with a different path to the ecozones.shp file obviously) gives the >>"Premature end of script headers" error. >> >>Any pointers as to how I can identify what is causing the error are greatly >>appreciated. I'm stuck! > > > Joanne, > > You might want to try "shp2img" on your map file as it will generally give > you better error messages. In fact, I usually see specific messages for > missing shared libraries in my Apache error_log, so I'm surprised you don't > see more details. Perhaps an old OGR (libgdal.so) is getting picked up > in your case and this is causing a crash without details. > > Good luck, From ealpert at DIGITALGLOBE.COM Thu May 18 13:38:36 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 18 May 2006 14:38:36 -0600 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Here's a little PHP script you can put in your document root to see what the environment variables are for apache. If you don't have access to httpd.conf your going to have trouble unless you can install your shared libraries in a path apache already knows about. HTTP_{$vars[$i]}_VARS"; if(is_array(${"HTTP_{$vars[$i]}_VARS"})) { echo ''; foreach(${"HTTP_{$vars[$i]}_VARS"} as $var=>$val) { echo ""; if($php_version<410) { $GLOBALS["_{$vars[$i]}"][$var] = $val; } unset($$key); } echo '
$var$val
'; } unset(${"HTTP_{$vars[$i]}_VARS"}); } ?> -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Thursday, May 18, 2006 2:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers I did. There's about six of them. I don't have access to the Apache config files. Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, May 18, 2006 4:17 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Try "locate libgdal" which should show you where all copies of files with libgdal in the name are located on your system. -Steve McGraw, Joanne wrote: > Hi Frank, > Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. > > I tried your suggestion and didn't get any additional information: > > [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png > Segmentation fault > [mcgrawj at siswebdev temp]$ > > I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. > > Thanks for the suggestion. > jtm > > Joanne T. McGraw > GIS Data Analyst / Analyste des donn?es du SIG > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: 613 759-6103 > Facsimile/T?l?copieur: 613 759-1937 > 960 Carling Ave, Bldg. 20, Rm. 1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > www.agr.gc.ca/nlwis-snite > > > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam > Sent: Thursday, May 18, 2006 3:44 PM > To: McGraw, Joanne > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers > > McGraw, Joanne wrote: > >>LAYER NAME "ecozones" DATA "ecozones" >> >># CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # >>CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" >> >>: END >> >>In the browser, when I enter the following URL with the above definition, >>the image appears fine: >>http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones >> >> >>However, if I comment the 'DATA "ecozones"' line and uncomment the lines >>referring to OGR, the image displays correctly from a Windows server; so, >>I'm fairly confident the syntax in the file is fine. But, the same map file >>(with a different path to the ecozones.shp file obviously) gives the >>"Premature end of script headers" error. >> >>Any pointers as to how I can identify what is causing the error are greatly >>appreciated. I'm stuck! > > > Joanne, > > You might want to try "shp2img" on your map file as it will generally give > you better error messages. In fact, I usually see specific messages for > missing shared libraries in my Apache error_log, so I'm surprised you don't > see more details. Perhaps an old OGR (libgdal.so) is getting picked up > in your case and this is causing a crash without details. > > Good luck, From mcgrawj at AGR.GC.CA Thu May 18 13:45:36 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Thu, 18 May 2006 16:45:36 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Thanks for the script, Ethan. I'll keep it for the future. Frank's last suggestion allowed me to see that we are not pointing to the same library MapServer was compiled with. I'll need to talk to the system administrator tomorrow about this. Thanks everyone! I'll let you know how it goes... jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, May 18, 2006 4:39 PM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Here's a little PHP script you can put in your document root to see what the environment variables are for apache. If you don't have access to httpd.conf your going to have trouble unless you can install your shared libraries in a path apache already knows about. HTTP_{$vars[$i]}_VARS"; if(is_array(${"HTTP_{$vars[$i]}_VARS"})) { echo ''; foreach(${"HTTP_{$vars[$i]}_VARS"} as $var=>$val) { echo ""; if($php_version<410) { $GLOBALS["_{$vars[$i]}"][$var] = $val; } unset($$key); } echo '
$var$val
'; } unset(${"HTTP_{$vars[$i]}_VARS"}); } ?> -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Thursday, May 18, 2006 2:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers I did. There's about six of them. I don't have access to the Apache config files. Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, May 18, 2006 4:17 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Try "locate libgdal" which should show you where all copies of files with libgdal in the name are located on your system. -Steve McGraw, Joanne wrote: > Hi Frank, > Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. > > I tried your suggestion and didn't get any additional information: > > [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png > Segmentation fault > [mcgrawj at siswebdev temp]$ > > I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. > > Thanks for the suggestion. > jtm > > Joanne T. McGraw > GIS Data Analyst / Analyste des donn?es du SIG > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: 613 759-6103 > Facsimile/T?l?copieur: 613 759-1937 > 960 Carling Ave, Bldg. 20, Rm. 1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > www.agr.gc.ca/nlwis-snite > > > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam > Sent: Thursday, May 18, 2006 3:44 PM > To: McGraw, Joanne > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers > > McGraw, Joanne wrote: > >>LAYER NAME "ecozones" DATA "ecozones" >> >># CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # >>CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" >> >>: END >> >>In the browser, when I enter the following URL with the above definition, >>the image appears fine: >>http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones >> >> >>However, if I comment the 'DATA "ecozones"' line and uncomment the lines >>referring to OGR, the image displays correctly from a Windows server; so, >>I'm fairly confident the syntax in the file is fine. But, the same map file >>(with a different path to the ecozones.shp file obviously) gives the >>"Premature end of script headers" error. >> >>Any pointers as to how I can identify what is causing the error are greatly >>appreciated. I'm stuck! > > > Joanne, > > You might want to try "shp2img" on your map file as it will generally give > you better error messages. In fact, I usually see specific messages for > missing shared libraries in my Apache error_log, so I'm surprised you don't > see more details. Perhaps an old OGR (libgdal.so) is getting picked up > in your case and this is causing a crash without details. > > Good luck, From zhonghaiw at GMAIL.COM Thu May 18 13:54:36 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 18 May 2006 22:54:36 +0200 Subject: question about shp2tile In-Reply-To: <2534c4120605181330s2f40bc33r4088abaa3d6d434@mail.gmail.com> Message-ID: Hi All, with the shp2tile command, I get some strange results: data -- forests.shp (includes 9638 polygons) -- only used for example after performing the commands shp2tile, tile4ms and shptree, this time I perform additionally the command shptreevis for each shapefile, and I get the quadtree views for the shapefiles. When I open the forest_quad.shp and overlay the tileindex_quad.shp on it with QGIS, the tileindex_quad.shp covers only a small part of the whole forest map extent, and the returned map image is rendered in the same way, forest covers only a small part of the map extent. P.S>I tile the shapefile without any additional parameters: shp2tile forests.shp ff.shp -- it gives 2*2 tiling three pictures are enclosed in the attachment. where: 1. quadtree.jpeg -- the quadtree shapefiles opened in QGIS; 2. map.jpeg -- map image rendered with TILEINDEX "tileindex" and TILEITEM "LOCATION"; 3. forest.jpeg -- forest area rendered with original forests.shp file. thanks for any further info zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: quadtree.jpg Type: image/jpeg Size: 23237 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.jpg Type: image/jpeg Size: 14968 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: forest.jpg Type: image/jpeg Size: 17982 bytes Desc: not available URL: From warmerdam at POBOX.COM Thu May 18 13:55:40 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 May 2006 16:55:40 -0400 Subject: Problem with Mapserver Virtual Spatial Data (ogr) In-Reply-To: <3101.1147774120@www038.gmx.net> Message-ID: Christian Wilmes wrote: > Hello, > > first of all sorry for cross posting, but I've got no idea where I have to > search the mistake so I post it to the GDAL and the Mapserver Mailinglist. > > I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a > PostgreSQL-Database (no PostGIS!). So the connection to the data is over > "Virtual Spatial Data". The getCapabilities and DescribeFeatureType request > both work very well. Only the GML-Document getting with the getFeature > request is not correct. The number of features in the GML-Document are > correct too every time, but the features are not in the Bounding Box. The > features in the GML-Document are always the feature which are on the top of > the table they come from. Only the number of feature is correct. The MBR > (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the > correct one. So it don't fit to the features in the document. Testing the > connection with "ogrinfo" and a Boundig-Box is working correct. If I'm > trying to make a WMS-Server with the same Data and the same OGR-file it > works very well. Christian, I believe the problem is that OGR is not successfully identifying a column in the table to use as a "feature id". For WFS queries the results are fetched in two passes for various historical reasons. The first pass results in a fetch of the feature ids of the features, and the second pass fetches features by id. Unfortunately, if OGR cannot select a good unique feature id column, then it assigns them serially. The first pass has the spatial query "in place" so the resulting fids are 1, 2, 3, etc. But the second pass does not have the spatial filter in place, so it ends up returning the wrong features. Ideally you would ensure you have a single integer column setup as a primary index for your postgres table. If that is the case it *should* get used as the fid. If not, you may be able to include the following line in your MAP file (in the MAP section, not the layer): CONFIG "PGSQL_OGR_FID=fieldname" to indicate what fieldname should get used as FID. This should be available with GDAL/OGR 1.3.2. PS. the much talked about one-pass-query would resolve this problem. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From knkoehn at HOTMAIL.COM Thu May 18 14:04:42 2006 From: knkoehn at HOTMAIL.COM (Kelly Koehn) Date: Thu, 18 May 2006 16:04:42 -0500 Subject: mapserv not following extents? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDD6F@ptolemy.topozone.com> Message-ID: Ed: Thanks for the response. I feel kind of stupid now for not realizing my coordinates were wrong :) After some reworking of the extent values I finally achieved what I wanted. Thanks! Kelly > >Kelly - > >You're asking (in the mapfile) for a square image (400x400 pixels) with >a decidedly NON-square extent - 5.2 degrees by 0.75 degrees. You can't >do both at the same time, so MapServer is honoring the larger extent >(the X dimension) and extending the smaller extent (the Y dimension) in >order to fill the size of the image you requested. MapServer uses this >algorithm to ensure that you always get the geographic extent you >requested, and gives you more if needed. > >What output do you really want? You're asking for a map of an area >that's 7 times wider than it is tall. Is that the area you want, or do >you want something different? > > - 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: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Kelly Koehn >Sent: Thursday, May 18, 2006 10:48 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] mapserv not following extents? > >I've been working with the USGS Counties and States maps (located at >nationalatlas.gov) and the GIS maps from the NOAA and I've been running >into a stumbling block. I've been able to get the maps to display but >it seems that the mapserv cgi app only pays attention to one of the >extents. > >I'll copy my map file below but for my example use the following line: > EXTENT -100.05 37.1 -94.85 37.85 > >It seems to fit the -100.05 and -94.85 just fine on the map and that >gives me the coordinates I need on the X axis but it never seems to >follow on the Y-axis. Its like it tries to create something >porportional. What the end result is a map that is squished from top to >bottom. (see at >http://www.aspiredillusion.com/cgi-bin/mapserv?map=/nexrad/map/nexrad.ma >p&mode=map >) > >Has anyone else experienced this or know of a way around it? Here is >the -v info from mapserv: >MapServer version 4.9 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE >SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 >INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > >Thanks >Kelly Koehn > > > >--------- > >Copy of nexrad.map >--- >MAP > IMAGETYPE GIF > SIZE 400 400 > SHAPEPATH "/nexrad/map" > TRANSPARENT ON > UNITS DD > EXTENT -100.05 37.1 -94.85 37.85 > FONTSET "font.set" > > LAYER > NAME c100000jan2902 > DATA c100000jan2902 > STATUS DEFAULT > TYPE POLYGON > #FILTERITEM county > #FILTER "Sedgwick County" > LABELITEM "COUNTYNAME" > CLASS > NAME "US Counties" > OUTLINECOLOR 0 0 0 > LABEL > TYPE truetype > FONT arial > > SIZE 6 > ANTIALIAS TRUE > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 > ANGLE 0 > PARTIALS false > END > END > END >END > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From Steve.Lime at DNR.STATE.MN.US Thu May 18 14:10:28 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 18 May 2006 16:10:28 -0500 Subject: Font Question Message-ID: Thomas: MapServer deals only with integral SIZEs and WIDTHs. I know that's true with the GD driver where things are measured in pixels. GD has no concept of fractional width in its drawing routines. In your case you are using an unsupported parameter (WIDTH) in a label object and that's the reason for any error messages. Steve >>> Thomas Hammerlund 5/18/2006 2:47:06 AM >>> Hello Everyone, I have a question about font styling. My style sheet is asking for a stroke-width of 0.5. Do I set this up like a polygon with an outlinecolor of less than 1? If so, does anyone know how to do that? Here's my style sheet exerpt: stroke:#7F7F7F;stroke-width:0.4; fill:#E000A1; and my layer so far ... LAYER NAME c_eki_oh STATUS ON TILEINDEX "c_eki_oh_ix" TILEITEM "location" TYPE ANNOTATION LABELITEM "label" ###Z5 CLASS # MAXSCALE 20000 #Z5 MAX # MINSCALE 16001 #Z5 MIN LABEL TYPE TRUETYPE MINDISTANCE 250 FONT kochi-mincho SIZE 7.5 COLOR 0 0 0 #WIDTH 0.3 POSITION AUTO ENCODING SJIS PARTIALS FALSE END END ###Z5 CLASS # MAXSCALE 20000 #Z5 MAX # MINSCALE 16001 #Z5 MIN LABEL TYPE TRUETYPE MINDISTANCE 250 FONT kochi-mincho SIZE 7.5 COLOR 0 0 0 #WIDTH 0.3 POSITION AUTO ENCODING SJIS PARTIALS FALSE END END END Uncommenting WIDTH crashes it. Thank you in advance, Tom From thip at AIT.AC.TH Thu May 18 14:20:45 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Fri, 19 May 2006 04:20:45 +0700 Subject: Select point within polygon Message-ID: Hello, Is there anyone experience in putting statement in mapfile to get the point within polyon. ex. select village(as point) where flooding (as polygon). THanks, Thip ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From Steve.Lime at DNR.STATE.MN.US Thu May 18 14:21:37 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 18 May 2006 16:21:37 -0500 Subject: Question about querybypoint Message-ID: Layer tolerances are used to set a spatial filter that is used to identify target features. Those features are then processed to make sure they meet the target criterea. For example, if you query a layer with a tolerance of 100 meters then MapServer constructs a bbox 200 meters on a side centered on the query point and uses that to find candidate features. There is no predictable relationship between tolerance and query speed although in practice smaller tolerances should produce faster queries since there are likely to be less candidate features to process. MS_SINGLE will find the closest feature in a point query situation (potentially across multiple layers). MS_MULTIPLE will find all features that meet the tolerance settings. MS_SINGLE can be much faster in certain situations, especially when querying a polygon layer since being inside the polygon gives you a distance of 0 and stops the query process. When querying points and lines where a perfect 0 distance is unlikely you end up having to process all candidate features to make sure you identify the closest one. Querybyrect is faster than querybyshape. Steve >>> Frederico Lucca 5/18/2006 8:40:05 AM >>> Hello list, I'm querying a layer by point, using tolerance in meters because I need to find some street in a point using Decimal Degrees and a range in meters. Something like: layer.setSizeunits(mapscript.MS_METERS); layer.setToleranceunits(mapscript.MS_METERS); layer.setTolerance(radius); layer.queryByPoint(map, point, mapscript.MS_SINGLE, -1) Comparing two radius, 100 and 50 meters, I think 50 is twice faster than 100, is this true? What's the difference between MS_SINGLE and MS_MULTIPLE. MS_SINGLE find one, and only one feature??? MS_SINGLE is much faster than MS_MULTIPLE? Supousing that I need to return the nearest street name and some streets don't have name, is better to querybypoint with 50 meters and if the street don't have a name find again, with 100 meters? Or find MS_MULTIPLE with 100 meters? querybyrect or querybyshape are faster? I need the fastest result because i need to query in 10 layers very quickly. Thanks in advance. Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From fredlucca at GMAIL.COM Thu May 18 16:25:07 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Thu, 18 May 2006 20:25:07 -0300 Subject: Question about querybypoint In-Reply-To: Message-ID: Steve, Thank you for the explanation. I speed up my queries removing from the layer the features without information and using MS_SINGLE, because I just need the closest feature. Another question if you have time. querybypoint is faster than querybyrect? Thanks again, Fred On 5/18/06, Steve Lime wrote: > > Layer tolerances are used to set a spatial filter that is used to identify > target > features. Those features are then processed to make sure they meet the > target criterea. For example, if you query a layer with a tolerance of 100 > meters > then MapServer constructs a bbox 200 meters on a side centered on the > query point and uses that to find candidate features. > > There is no predictable relationship between tolerance and query speed > although > in practice smaller tolerances should produce faster queries since there > are likely > to be less candidate features to process. > > MS_SINGLE will find the closest feature in a point query situation > (potentially > across multiple layers). MS_MULTIPLE will find all features that meet the > tolerance > settings. MS_SINGLE can be much faster in certain situations, especially > when > querying a polygon layer since being inside the polygon gives you a > distance > of 0 and stops the query process. When querying points and lines where a > perfect 0 distance is unlikely you end up having to process all candidate > features > to make sure you identify the closest one. > > Querybyrect is faster than querybyshape. > > Steve > > >>> Frederico Lucca 5/18/2006 8:40:05 AM >>> > Hello list, > > I'm querying a layer by point, using tolerance in meters because I need to > find some street in a point using Decimal Degrees and a range in meters. > > Something like: > > layer.setSizeunits(mapscript.MS_METERS); > layer.setToleranceunits(mapscript.MS_METERS); > layer.setTolerance(radius); > > layer.queryByPoint(map, point, mapscript.MS_SINGLE, -1) > > Comparing two radius, 100 and 50 meters, I think 50 is twice faster than > 100, is this true? > > What's the difference between MS_SINGLE and MS_MULTIPLE. > MS_SINGLE find one, and only one feature??? MS_SINGLE is much faster than > MS_MULTIPLE? > Supousing that I need to return the nearest street name and some streets > don't have name, is better to querybypoint with 50 meters and if the > street > don't have a name find again, with 100 meters? Or find MS_MULTIPLE with > 100 > meters? > querybyrect or querybyshape are faster? > > I need the fastest result because i need to query in 10 layers very > quickly. > > Thanks in advance. > > Fred > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Thu May 18 17:57:21 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Fri, 19 May 2006 09:57:21 +0900 Subject: Font Question Message-ID: Thank you Steve. I figured that since it wasn't in the documentation it wasn't supported, but I thought I'd give it a shot. Tom ----- Original Message ----- From: "Steve Lime" To: Sent: Friday, May 19, 2006 6:10 AM Subject: Re: [UMN_MAPSERVER-USERS] Font Question > Thomas: MapServer deals only with integral SIZEs and WIDTHs. I know that's > true with the GD driver where things are measured in pixels. GD has no > concept of fractional width in its drawing routines. > > In your case you are using an unsupported parameter (WIDTH) in a label > object and that's the reason for any error messages. > > Steve > >>>> Thomas Hammerlund 5/18/2006 2:47:06 AM >>> > Hello Everyone, > > I have a question about font styling. My style sheet is asking for a > stroke-width of 0.5. Do I set this up like a polygon with an outlinecolor > of less than 1? If so, does anyone know how to do that? > > Here's my style sheet exerpt: > > > > > stroke:#7F7F7F;stroke-width:0.4; > fill:#E000A1; > > > > > > and my layer so far ... > > LAYER > NAME c_eki_oh > STATUS ON > TILEINDEX "c_eki_oh_ix" > TILEITEM "location" > TYPE ANNOTATION > LABELITEM "label" > > > ###Z5 > CLASS > # MAXSCALE 20000 #Z5 MAX > # MINSCALE 16001 #Z5 MIN > LABEL > TYPE TRUETYPE > MINDISTANCE 250 > FONT kochi-mincho > SIZE 7.5 > COLOR 0 0 0 > #WIDTH 0.3 > POSITION AUTO > ENCODING SJIS > PARTIALS FALSE > END > END > > > ###Z5 > CLASS > # MAXSCALE 20000 #Z5 MAX > # MINSCALE 16001 #Z5 MIN > LABEL > TYPE TRUETYPE > MINDISTANCE 250 > FONT kochi-mincho > SIZE 7.5 > COLOR 0 0 0 > #WIDTH 0.3 > POSITION AUTO > ENCODING SJIS > PARTIALS FALSE > END > END > > END > > Uncommenting WIDTH crashes it. > > Thank you in advance, > Tom > > From knkoehn at HOTMAIL.COM Thu May 18 18:00:55 2006 From: knkoehn at HOTMAIL.COM (Kelly Koehn) Date: Thu, 18 May 2006 20:00:55 -0500 Subject: Drawing single point Message-ID: What would be the proper method to draw a single point on a map? I tried to do a FEATURE and use the POINTS command but couldn't get it to show (in a new ANNOTATION layer). I read around that you have to have a symbolset but I couldn't find any examples of this file's format so I couldn't create one. Any help would be appreciated! Thanks! Kelly Koehn _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From woodbri at SWOODBRIDGE.COM Thu May 18 18:22:22 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 18 May 2006 21:22:22 -0400 Subject: question about shp2tile In-Reply-To: <2534c4120605181519l303386f2sec07a69c70c08465@mail.gmail.com> Message-ID: Zhonghai, Here is a log of what I did. I always make a directory to put the tiles into, woodland for this example. > woodbri at linus:~/test$ ls > CA_NAV_COUNTRY_region.dbf CA_NAV_WOODLAND_region.prj > CA_NAV_COUNTRY_region.prj CA_NAV_WOODLAND_region.qix > CA_NAV_COUNTRY_region.qix CA_NAV_WOODLAND_region.shp > CA_NAV_COUNTRY_region.shp CA_NAV_WOODLAND_region.shx > CA_NAV_COUNTRY_region.shx test.rar > CA_NAV_WOODLAND_region.dbf make a dir for the tiles > woodbri at linus:~/test$ mkdir woodland > woodbri at linus:~/test$ shp2tile > Usage: shp2tile > where are: > [-v|--version] print version string and exit > [-s|--no-stats] do not print stats > [-w|--no-write] do not write output files > [-r|--row] generate rows in Y > [-c|--col] generate cols in X > [-e|--square-ext] adjust extent to produce square tiles > [-q|--quadtree] quadtree type of index (auto split tiles > n objects) > name of file to read and split into tiles > output file names: -. check how big the shapfile is > woodbri at linus:~/test$ shpdump CA_NAV_WOODLAND_region | head > Shapefile Type: Polygon # of Shapes: 9638 > > File Bounds: ( 6.055, 45.818,0,0) > to ( 10.489, 47.808,0,0) > > Shape:0 (Polygon) nVertices=62, nParts=1 > Bounds:( 7.602, 47.573, 0, 0) > to ( 7.627, 47.579, 0, 0) > ( 7.609, 47.578, 0, 0) Ring > ( 7.610, 47.578, 0, 0) check that I am working with the most recent version > woodbri at linus:~/test$ shp2tile -v > $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ run a test -w says down write tiles, just print stats > woodbri at linus:~/test$ shp2tile -r 3 -c 3 -w CA_NAV_WOODLAND_region.shp woodland/woodland > Shapefile Type: Polygon # of Shapes: 9638 > > File Bounds: ( 6.055040, 45.818020) > to ( 10.489220, 47.808380) > > Divided into 3 rows X 3 columns (dx, dy) = ( 1.478060, 0.663453) > > Index Cell Count XMin YMin YMax YMax > 0 [ 0, 0] 1062 6.055040 45.818020 7.533100 46.481473 > 1 [ 0, 1] 1867 7.533100 45.818020 9.011160 46.481473 > 2 [ 0, 2] 556 9.011160 45.818020 10.489220 46.481473 > 3 [ 1, 0] 888 6.055040 46.481473 7.533100 47.144927 > 4 [ 1, 1] 1206 7.533100 46.481473 9.011160 47.144927 > 5 [ 1, 2] 2059 9.011160 46.481473 10.489220 47.144927 > 6 [ 2, 0] 100 6.055040 47.144927 7.533100 47.808380 > 7 [ 2, 1] 1413 7.533100 47.144927 9.011160 47.808380 > 8 [ 2, 2] 475 9.011160 47.144927 10.489220 47.808380 > 9 [ global] 12 6.055040 45.818020 10.489220 47.808380 > -------- > 9638 > Global cell contains: 0 objects. These are too small a cound so do the 2 x 2 > woodbri at linus:~/test$ shp2tile -r 2 -c 2 -w CA_NAV_WOODLAND_region.shp woodland/woodland > Shapefile Type: Polygon # of Shapes: 9638 > > File Bounds: ( 6.055040, 45.818020) > to ( 10.489220, 47.808380) > > Divided into 2 rows X 2 columns (dx, dy) = ( 2.217090, 0.995180) > > Index Cell Count XMin YMin YMax YMax > 0 [ 0, 0] 3096 6.055040 45.818020 8.272130 46.813200 > 1 [ 0, 1] 2751 8.272130 45.818020 10.489220 46.813200 > 2 [ 1, 0] 1679 6.055040 46.813200 8.272130 47.808380 > 3 [ 1, 1] 2107 8.272130 46.813200 10.489220 47.808380 > 4 [ global] 5 6.055040 45.818020 10.489220 47.808380 > -------- > 9638 > Global cell contains: 0 objects. Now really do the 2x2 and write the files > woodbri at linus:~/test$ shp2tile -r 2 -c 2 CA_NAV_WOODLAND_region.shp woodland/woodland > Shapefile Type: Polygon # of Shapes: 9638 > > File Bounds: ( 8.272390, 46.764400) > to ( 10.489220, 47.808380) > > Divided into 2 rows X 2 columns (dx, dy) = ( 2.217090, 0.995180) > > Index Cell Count XMin YMin YMax YMax > 0 [ 0, 0] 3096 6.055040 45.909350 8.277650 46.859200 > 1 [ 0, 1] 2751 8.274860 45.818020 10.479450 46.834150 > 2 [ 1, 0] 1679 6.432630 46.783620 8.373900 47.613070 > 3 [ 1, 1] 2107 8.272390 46.764400 10.489220 47.808380 > 4 [ global] 5 6.055040 45.818020 10.489220 47.808380 > -------- > 9638 > Global cell contains: 5 objects. list the new files > woodbri at linus:~/test$ ls woodland/ > woodland-0.dbf woodland-1.dbf woodland-2.dbf woodland-3.dbf woodland-4.dbf > woodland-0.shp woodland-1.shp woodland-2.shp woodland-3.shp woodland-4.shp > woodland-0.shx woodland-1.shx woodland-2.shx woodland-3.shx woodland-4.shx create the spatial indexes > woodbri at linus:~/test$ find woodland/ -name \*.shp -exec shptree {} \; > creating index of new LSB format > creating index of new LSB format > creating index of new LSB format > creating index of new LSB format > creating index of new LSB format create the metatile input file > woodbri at linus:~/test$ find woodland/ -name \*.shp > woodland.in check the command syntax > woodbri at linus:~/test$ tile4ms > > usage: tile4ms [-tile-path-only] > INPUT file containing list of shapefile names > (complete paths 255 chars max, no extension) > OUTPUT shape file of extent rectangles and names > of tiles in .dbf > -tile-path-only Optional flag. If specified then only the path to the > shape files will be stored in the LOCATION field > instead of storing the full filename. > create the tileindex > woodbri at linus:~/test$ tile4ms woodland.in woodland-tile > Processed 5 of 5 files See what we have got > woodbri at linus:~/test$ ls > CA_NAV_COUNTRY_region.dbf CA_NAV_WOODLAND_region.shx > CA_NAV_COUNTRY_region.prj county > CA_NAV_COUNTRY_region.qix test.rar > CA_NAV_COUNTRY_region.shp woodland > CA_NAV_COUNTRY_region.shx woodland-tile.dbf > CA_NAV_WOODLAND_region.dbf woodland-tile.shp > CA_NAV_WOODLAND_region.prj woodland-tile.shx > CA_NAV_WOODLAND_region.qix woodland.in > CA_NAV_WOODLAND_region.shp Oh, add spatial index to the tileindex > woodbri at linus:~/test$ shptree woodland-tile.shp > creating index of new LSB format check the country file size > woodbri at linus:~/test$ shpdump CA_NAV_COUNTRY_region.shp | head > Shapefile Type: Polygon # of Shapes: 5 > > File Bounds: ( 5.956, 45.818,0,0) > to ( 10.492, 47.808,0,0) > > Shape:0 (Polygon) nVertices=15977, nParts=3 > Bounds:( 5.956, 45.818, 0, 0) > to ( 10.492, 47.808, 0, 0) > ( 10.047, 46.544, 0, 0) Ring > ( 10.047, 46.543, 0, 0) country file is too small to index. Make a mapfile to view the results: MAP EXTENT 5.956 45.818 10.492 47.808 IMAGECOLOR 240 204 102 SHAPEPATH /u/test SIZE 600 400 UNITS DD LAYER NAME "administration" GROUP "country" STATUS DEFAULT DATA "CA_NAV_COUNTRY_region" TYPE POLYGON DEBUG ON CLASS NAME "country" STYLE COLOR 255 255 204 END END END LAYER NAME "woodland" GROUP "country" STATUS DEFAULT TILEINDEX "woodland-tile" TYPE POLYGON DEBUG ON CLASS NAME "woodland" STYLE COLOR 102 255 102 END END END END Here is a url to see the results. http://swoodbridge.com/linus/cgi-bin/mapserv461?mode=map&map=/u/test/test.map you should be able to do the same and get the same results. -Steve Zhonghai Wang wrote: > Hi Steve, > > the example shapefiles are enclosed in the attachment as a .rar file, > the coordinate system is swiss national system, epsg:21781 or world:CH1903. > > specify any parameter values won't work, only using default 2*2 images > can be rendered, as I said, only part of the map extent. > > thanks > > zhongahi > > On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > wrote: > > Zhonghai, > > Can you send me the forest and settlement shap files. > > tar czf data-for-steve.tgz forest.* settlement.* > > and email me the file. I will take a look. It might be a bug. > > -Steve > > Zhonghai Wang wrote: > > Hi All, > > > > with the shp2tile command, I get some strange results: > > > > data -- forests.shp (includes 9638 polygons) -- only used for example > > > > after performing the commands shp2tile, tile4ms and shptree, this > time I > > perform additionally the command shptreevis for each shapefile, > and I > > get the quadtree views for the shapefiles. When I open the > > forest_quad.shp and overlay the tileindex_quad.shp on it with > QGIS, the > > tileindex_quad.shp covers only a small part of the whole forest map > > extent, and the returned map image is rendered in the same way, > forest > > covers only a small part of the map extent. > > > > P.S>I tile the shapefile without any additional parameters: shp2tile > > forests.shp ff.shp -- it gives 2*2 tiling > > > > two pictures are enclosed in the attachment. > > > > where: > > 1. quadtree.jpeg -- the quadtree shapefiles opened in QGIS; > > 2. map.jpeg -- map image rendered with TILEINDEX "tileindex" and > > TILEITEM "LOCATION"; > > 3. forest.jpeg -- forest area rendered with original forests.shp > file. > > > > thanks for any further info > > > > zhonghai > > > > On 5/18/06, *Zhonghai Wang* < zhonghaiw at gmail.com > > > >> wrote: > > > > Hi Steve, > > > > I've tried again like you said, this time I get something, > but still > > no map images are rendered. > > > > the version is exactly the same, updated version. > > > > First test example: > > > > data -- admin.shp (administration area, which includes 5 > polygons) > > > > **** > > when performing shp2tile command, no parameters are set, and by > > default the shapefile is sliced into 2*2+1 shapefiles. With the > > following layer object definition, map image is drawn: > > > > LAYER > > NAME "administration" > > GROUP "country" > > STATUS DEFAULT > > TILEINDEX "index" > > TILEITEM "LOCATION" > > TYPE POLYGON > > DEBUG ON > > TRANSPARENCY ALPHA > > CLASS > > NAME "woodland" > > STYLE > > COLOR 204 204 255 > > ANTIALIAS TRUE > > END > > END > > END > > ********** > > Second test example: > > > > data -- settlement.shp, which contains 2155664 polygons > > > > **** > > when performing shp2tile command for this shapefile, I set 10*10, > > each slice contians therefore about 21557 polygons. It's also ok > > with tile4ms and shptree commands. > > > > hm... seems exciting... > > > > but, with this layer object definition no settlements are drawn : > > > > LAYER > > NAME "Settlement" > > GROUP "settlements" > > STATUS DEFAULT > > TILEINDEX "settlementindex" > > TILEITEM "LOCATION" > > MAXSCALE 100000 > > TYPE POLYGON > > DEBUG ON > > TRANSPARENCY ALPHA > > CLASS > > NAME "SM" > > STYLE > > COLOR 153 153 102 > > ANTIALIAS TRUE > > END > > END > > END > > ***** > > I have now really no idea where the problems should be. > > > > Steve, any clues? > > > > thanks for your info. > > > > zhonghai > > > > On 5/18/06, *Stephen Woodbridge* > > >> wrote: > > > > Zhonghai Wang wrote: > >> Hi guys, > >> > >> I've tried to make a efficient map layer with the commands > > shp2tile, > >> tile4ms, and shptree, but something seems not right, because > > MapServer > >> can not draw the maps. I've made a test in a seperate folder, > > and I've > >> done the following processes: > >> > >> *** > >> data -- Forests.shp (for a country) > >> *** > >> 1. >shp2tile -r 50 -c 50 Forests.shp Forests_Test.shp > >> >>>results for this step: shp, shx, and dbf files, there is no > > prj file > >> for the output file > >> >>>error info on the console: failed to create shp > > Forests_Test.shp -1833 > > > > This is likely because you are trying to create 2501 > files (50 x > > 50 + 1) > > and they all half to be open at the same time for this > mode so you > > likely ran into a process file handle limit. Also how > many point > > do you > > have in this layer? What is the value of Num_points/2500, > this > > number > > should not be smaller than 8000 - 10000. > > > >> 2. >tile4ms ---- get the tileindex.shx, tileindex.shp and > > tileindex.dbf > >> files for the Forests_Test.shp, there is still no prj file for > > tileindex.shp > >> >>>no error messages appear at this step > > > > There are no prj files created. Mapserver does not use them. > > > >> 3. >shptree -- to genetare .qix file for all shapefiles in > > this subfolder > >> >>> results for this step: Forests.qix, Forests_Test.qix, and > > tileindex.qix > >> >>>no error info on the console > >> > >> but, only if I set DATA "Forests" in the layer object the map > > will be > >> rendered, others like DATA "Forests_Test" or TTILEINDEX > > "tileindex" > >> TILEITEM "location" do not work, the server simply sends back > > a blank > >> image. > >> > >> did I make any mistakes or it really do not work well. (I am > > using MS4W > >> 4.8.1) > >> > >> I guess some errors occur when I perform the command shp2tile. > > > > What version of shp2tile are you using? > > > > woodbri at carto:/data/mdata$ ~/dev/shptools/shp2tile -v > > $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ > > > > If it does not respond with the Id string above you need to > > upgrade as > > there is a serious crashing bug for point data in the earlier > > version if > > you are using the -q option. It should work for the row col > > option, just > > try to decrease the number of tiles. > > > > Also if you do not have something like R x C files in > your directory > > then the process failed. For the row col option you can also > > specify > > --no-write to just get a stats report of how the data is put > > into the tiles. > > > > -Steve > > > >> thanks for any further info. > >> > >> zhonghai > >> > >> On 5/18/06, *Zhonghai Wang* < zhonghaiw at gmail.com > > > > > >> > >>> wrote: > >> > >> Hi Bob, Steve, > >> > >> thank you very much for all these helpful clues, now I > > think I've > >> got the points of the shp2tile command, it's really a good > > tool to > >> slice shapefile. > >> > >> zhonghai > >> > >> On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > > > > >> > > >>> wrote: > >> > >> Zhonghai Wang wrote: > >> > Hi folks, > >> > > >> > I have a large shapefile, now I am trying to use shp2tile > >> command to > >> > slice it into pieces, with -r and -c is ok, but I do not fully > >> > understand the -q parameter, what does it actually mean? and > >> what number > >> > should a use for this parameter normally? > >> > > >> > or something like this? -- >shp2tile -q 10000 input_shapefile > >> > output_shapefile > >> > >> Hi Zhonghai, > >> > >> The -r -c option breaks the extents of your shapefile > > into R x C > >> rows > >> and columns and then tries to fit the objects into the best > >> tile. I any > >> tile crosses a tile boundary by 5-10% then it is put > > into a > >> "supertile" > >> the could be the same extents as the original shape > > file. So > >> typically > >> you will end up with r X c + 1 tiles. > >> > >> The -q N option splits the extents in half either > > vertically or > >> horizontally and then sorts the objects into the 2 > > halves or put > >> them in > >> a supertile. Then if the either of the two halves has > > more than N > >> objects it is again split in half and this continues > > until all files > >> have less than N objects. This can cause some strange > > effects > >> like tiles > >> with 1 or a small number of objects and most tiles will > > have > >> less than N > >> objects in them. Since this algorithm tends to > > spatially cluster > >> objects > >> in a file, there is a good chance that if you need the > > file that > >> all or > >> most objects in the file will be used. > >> > >> I recommend trying numbers like 10,000 and 20,000 as > > you initial > >> tries. > >> I think you should probably not use numbers less then > > 8000, but > >> it is > >> really up to you to try and measure the results to find > > what > >> works best > >> for your data. > >> > >> -Steve W. > >> > >> > >> > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > ------------------------------------------------------------------------ > > > > > > > > ------------------------------------------------------------------------ > > > > From Steve.Lime at DNR.STATE.MN.US Thu May 18 20:42:53 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 18 May 2006 22:42:53 -0500 Subject: Question about querybypoint Message-ID: Generally a query by point is faster since you compute distances as opposed to detecting intersections when the simple bbox tests (that both methods use) are inconclusive. Only the point query can give you a single result. By rect or shape give you all that intersect the selection feature. Steve >>> "Frederico Lucca" 05/18/06 6:25 PM >>> Steve, Thank you for the explanation. I speed up my queries removing from the layer the features without information and using MS_SINGLE, because I just need the closest feature. Another question if you have time. querybypoint is faster than querybyrect? Thanks again, Fred On 5/18/06, Steve Lime wrote: > > Layer tolerances are used to set a spatial filter that is used to identify > target > features. Those features are then processed to make sure they meet the > target criterea. For example, if you query a layer with a tolerance of 100 > meters > then MapServer constructs a bbox 200 meters on a side centered on the > query point and uses that to find candidate features. > > There is no predictable relationship between tolerance and query speed > although > in practice smaller tolerances should produce faster queries since there > are likely > to be less candidate features to process. > > MS_SINGLE will find the closest feature in a point query situation > (potentially > across multiple layers). MS_MULTIPLE will find all features that meet the > tolerance > settings. MS_SINGLE can be much faster in certain situations, especially > when > querying a polygon layer since being inside the polygon gives you a > distance > of 0 and stops the query process. When querying points and lines where a > perfect 0 distance is unlikely you end up having to process all candidate > features > to make sure you identify the closest one. > > Querybyrect is faster than querybyshape. > > Steve > > >>> Frederico Lucca 5/18/2006 8:40:05 AM >>> > Hello list, > > I'm querying a layer by point, using tolerance in meters because I need to > find some street in a point using Decimal Degrees and a range in meters. > > Something like: > > layer.setSizeunits(mapscript.MS_METERS); > layer.setToleranceunits(mapscript.MS_METERS); > layer.setTolerance(radius); > > layer.queryByPoint(map, point, mapscript.MS_SINGLE, -1) > > Comparing two radius, 100 and 50 meters, I think 50 is twice faster than > 100, is this true? > > What's the difference between MS_SINGLE and MS_MULTIPLE. > MS_SINGLE find one, and only one feature??? MS_SINGLE is much faster than > MS_MULTIPLE? > Supousing that I need to return the nearest street name and some streets > don't have name, is better to querybypoint with 50 meters and if the > street > don't have a name find again, with 100 meters? Or find MS_MULTIPLE with > 100 > meters? > querybyrect or querybyshape are faster? > > I need the fastest result because i need to query in 10 layers very > quickly. > > Thanks in advance. > > Fred > > -- > "Everything under the sun is in tune > But the sun is eclipsed by the moon" > -- "Everything under the sun is in tune But the sun is eclipsed by the moon" From Steve.Lime at DNR.STATE.MN.US Thu May 18 20:46:02 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 18 May 2006 22:46:02 -0500 Subject: Drawing single point Message-ID: This would work assuming the coordinate is in pixels (remove the transform line if in map coordinates): LAYER NAME 'my_point' STATUS DEFAULT TYPE POINT TRANSFORM FALSE FEATURE POINTS 50 50 END END CLASS SYMBOL 'a_circle' COLOR 255 0 0 SIZE 10 END END To use an annotation layer you'd need to: - define some text for the feature - define a label for the class Steve >>> Kelly Koehn 05/18/06 8:00 PM >>> What would be the proper method to draw a single point on a map? I tried to do a FEATURE and use the POINTS command but couldn't get it to show (in a new ANNOTATION layer). I read around that you have to have a symbolset but I couldn't find any examples of this file's format so I couldn't create one. Any help would be appreciated! Thanks! Kelly Koehn _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From b.vdeijnden at AGI.RWS.MINVENW.NL Thu May 18 22:37:57 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Fri, 19 May 2006 07:37:57 +0200 Subject: GDAL raster access and shapepath Message-ID: Hi Frank, that was the issue. We'll try the patch soon. Thanks. Best regards, Bart -----Oorspronkelijk bericht----- Van: Frank Warmerdam [mailto:fwarmerdam at gmail.com]Namens Frank Warmerdam Verzonden: donderdag 18 mei 2006 21:04 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] GDAL raster access and shapepath Eijnden, B. van den (Bart) wrote: > Some more information on this issue. > > If we use GDAL to access a TIFF file, SHAPEPATH is used. > If we use GDAL to access an ECW file, SHAPEPATH is not used! > > How is this possible? Bart, Is your ECW file larger than 2GB? There is a problem in all released versions with fopen() failing on large files, so the attempt to "try" shapepath seems to fail to MapServer even though the actual ECW file would have opened ok. There was a bug submitted on this, and a patch has been applied in CVS (on the 4.8 branch as well) so the next releases on 4.8.x and 4.9+ should be corrected. This will also affect other GDAL supported formats where the actual file is more than 2GB. It only affects SHAPEPATH use though. Direct access always works ok. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Thu May 18 23:39:52 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 19 May 2006 08:39:52 +0200 Subject: Problem with Mapserver Virtual Spatial Data (ogr) In-Reply-To: <446CDF4C.6090102@pobox.com> Message-ID: Hi Frank, thank you very much for your help! With the line CONFIG "PGSQL_OGR_FID" "fieldname" in the Map section everything works very well. But now I've still got one more question, just an understanding one. I've got testet the "Virtual Spatial Data" with a MySQL Database a few days ago and there everything works well without a line like that. Where could be the reason? Best Regards Christian -------- Original-Nachricht -------- Betreff: Re: [UMN_MAPSERVER-USERS] Problem with Mapserver Virtual Spatial Data (ogr) Datum: Thu, 18 May 2006 16:55:40 -0400 Von: Frank Warmerdam An: MAPSERVER-USERS at LISTS.UMN.EDU > Christian Wilmes wrote: > > Hello, > > > > first of all sorry for cross posting, but I've got no idea where I have > to > > search the mistake so I post it to the GDAL and the Mapserver > Mailinglist. > > > > I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a > > PostgreSQL-Database (no PostGIS!). So the connection to the data is over > > "Virtual Spatial Data". The getCapabilities and DescribeFeatureType > request > > both work very well. Only the GML-Document getting with the getFeature > > request is not correct. The number of features in the GML-Document are > > correct too every time, but the features are not in the Bounding Box. > The > > features in the GML-Document are always the feature which are on the top > of > > the table they come from. Only the number of feature is correct. The MBR > > (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the > > correct one. So it don't fit to the features in the document. Testing > the > > connection with "ogrinfo" and a Boundig-Box is working correct. If I'm > > trying to make a WMS-Server with the same Data and the same OGR-file it > > works very well. > > Christian, > > I believe the problem is that OGR is not successfully identifying a column > in the table to use as a "feature id". For WFS queries the results are > fetched in two passes for various historical reasons. The first pass > results in a fetch of the feature ids of the features, and the second > pass fetches features by id. Unfortunately, if OGR cannot select a good > unique feature id column, then it assigns them serially. The first pass > has the spatial query "in place" so the resulting fids are 1, 2, 3, etc. > But the second pass does not have the spatial filter in place, so it ends > up returning the wrong features. > > Ideally you would ensure you have a single integer column setup as a > primary index for your postgres table. If that is the case it *should* > get used as the fid. > > If not, you may be able to include the following line in your MAP file > (in the MAP section, not the layer): > > CONFIG "PGSQL_OGR_FID=fieldname" > > to indicate what fieldname should get used as FID. This should be > available with GDAL/OGR 1.3.2. > > PS. the much talked about one-pass-query would resolve this problem. > > Good luck, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From bartvde at XS4ALL.NL Thu May 18 23:51:45 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 19 May 2006 08:51:45 +0200 Subject: WCS raster output black & white on ECW Message-ID: Hi list, using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we are running into a strange issue. This is on Red Hat Enterprise 3. We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID format. If we use a Geotiff as a source, all output from Mapserver WCS is okay. If we use an aerial photo in ECW format as input, all output (ECW, MrSID as well as Geotiff) comes out black and white instead of colour. WMS output is just fine. Any ideas what could be causing this? Btw, a direct gdal_translate works fine and outputs in colour: [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin 185269.9 324394.4 185771.2 324093.7 /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw /tmp/testbart.tif Input file size is 690000, 800000 Computed -srcwin 443174 749014 1253 752 from projected window. 0...10...20...30...40...50...60...70...80...90...100 - done. These are the output formats used: OUTPUTFORMAT NAME "GEOTIFF" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGBA" EXTENSION "tif" FORMATOPTION "COMPRESS=PACKBITS" END OUTPUTFORMAT NAME "ECW" DRIVER "GDAL/ECW" MIMETYPE "image/ecw" IMAGEMODE "RGBA" EXTENSION "ecw" END OUTPUTFORMAT NAME "MrSID" DRIVER "GDAL/MrSID" MIMETYPE "image/mrsid" IMAGEMODE "RGBA" EXTENSION "sid" END This is the gdalinfo output from the source ECW file: [root at poseidon gdelivery]# gdalinfo /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw Driver: ECW/ERMapper Compressed Wavelets Size is 690000, 800000 Coordinate System is: LOCAL_CS["LOCAL", UNIT["Meter",1]] Origin = (8000.000000,624000.200000) Pixel Size = (0.40000000,-0.40000000) Corner Coordinates: Upper Left ( 8000.000, 624000.200) Lower Left ( 8000.000, 304000.200) Upper Right ( 284000.000, 624000.200) Lower Right ( 284000.000, 304000.200) Center ( 146000.000, 464000.200) Band 1 Block=690000x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=690000x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary Thanks in advance. Best regards, Bart From b.vdeijnden at AGI.RWS.MINVENW.NL Thu May 18 23:42:26 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Fri, 19 May 2006 08:42:26 +0200 Subject: Problem with Mapserver Virtual Spatial Data (ogr) Message-ID: OGR tries to automatically detect the primary key of a table. This does not always work automatically. The reason could be for instance the data type used for your primary key, or maybe a small flaw in the driver's code. Another example, using ODBC on Access, there is trouble detecting the primary key because of a not implemented ODBC function in the Microsoft driver. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Christian Wilmes Verzonden: vrijdag 19 mei 2006 8:40 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Problem with Mapserver Virtual Spatial Data (ogr) Hi Frank, thank you very much for your help! With the line CONFIG "PGSQL_OGR_FID" "fieldname" in the Map section everything works very well. But now I've still got one more question, just an understanding one. I've got testet the "Virtual Spatial Data" with a MySQL Database a few days ago and there everything works well without a line like that. Where could be the reason? Best Regards Christian -------- Original-Nachricht -------- Betreff: Re: [UMN_MAPSERVER-USERS] Problem with Mapserver Virtual Spatial Data (ogr) Datum: Thu, 18 May 2006 16:55:40 -0400 Von: Frank Warmerdam An: MAPSERVER-USERS at LISTS.UMN.EDU > Christian Wilmes wrote: > > Hello, > > > > first of all sorry for cross posting, but I've got no idea where I have > to > > search the mistake so I post it to the GDAL and the Mapserver > Mailinglist. > > > > I'm trying to publish a WFS-Server. The Data (only Point-Data) are in a > > PostgreSQL-Database (no PostGIS!). So the connection to the data is over > > "Virtual Spatial Data". The getCapabilities and DescribeFeatureType > request > > both work very well. Only the GML-Document getting with the getFeature > > request is not correct. The number of features in the GML-Document are > > correct too every time, but the features are not in the Bounding Box. > The > > features in the GML-Document are always the feature which are on the top > of > > the table they come from. Only the number of feature is correct. The MBR > > (Minimum Boundig Rectangle) on the top of the GML-Document amasingly the > > correct one. So it don't fit to the features in the document. Testing > the > > connection with "ogrinfo" and a Boundig-Box is working correct. If I'm > > trying to make a WMS-Server with the same Data and the same OGR-file it > > works very well. > > Christian, > > I believe the problem is that OGR is not successfully identifying a column > in the table to use as a "feature id". For WFS queries the results are > fetched in two passes for various historical reasons. The first pass > results in a fetch of the feature ids of the features, and the second > pass fetches features by id. Unfortunately, if OGR cannot select a good > unique feature id column, then it assigns them serially. The first pass > has the spatial query "in place" so the resulting fids are 1, 2, 3, etc. > But the second pass does not have the spatial filter in place, so it ends > up returning the wrong features. > > Ideally you would ensure you have a single integer column setup as a > primary index for your postgres table. If that is the case it *should* > get used as the fid. > > If not, you may be able to include the following line in your MAP file > (in the MAP section, not the layer): > > CONFIG "PGSQL_OGR_FID=fieldname" > > to indicate what fieldname should get used as FID. This should be > available with GDAL/OGR 1.3.2. > > PS. the much talked about one-pass-query would resolve this problem. > > Good luck, > -- > ---------------------------------------+------------------------------------ -- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGF, http://osgeo.org -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri May 19 00:12:15 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 19 May 2006 09:12:15 +0200 Subject: WCS raster output black & white on ECW In-Reply-To: <10480.145.50.39.8.1148021505.squirrel@webmail.xs4all.nl> Message-ID: In addition, this is the output when CPL_DEBUG is ON: [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw): eErr = 0 [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: FileInfo: SizeXY=690000,800000 Bands=3 [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: projection=LOCAL, datum=WGS84 [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] GDAL: GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) succeeds as ECW. [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECWRasterBand: RasterIO(nXOff=443174,nYOff=749014,nXSize=1254,nYSize=751 -> 1252x750) [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: GDALDriver::Create(MEM,msSaveImageGDAL_temp,1252,750,4,Byte,(nil)) [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: GetGDTProjDat(28992) = NUTM31/RD [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: Writing with PROJ=NUTM31, DATUM=RD [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: NCScbmOpenFileView(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw): eErr = 0 [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: FileInfo: SizeXY=1252,750 Bands=4 [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] OriginXY=185270,324394 CellIncrementXY=0.40016,-0.4 [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: projection=NUTM31, datum=RD [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: GDALOpen(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) succeeds as ECW. [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: GDALClose(msSaveImageGDAL_temp) [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: GDALClose(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: GDALDeregister_GTiff() called. Best regards, Bart > Hi list, > > using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we are > running into a strange issue. This is on Red Hat Enterprise 3. > > We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID format. > If we use a Geotiff as a source, all output from Mapserver WCS is okay. If > we use an aerial photo in ECW format as input, all output (ECW, MrSID as > well as Geotiff) comes out black and white instead of colour. WMS output > is just fine. Any ideas what could be causing this? > > Btw, a direct gdal_translate works fine and outputs in colour: > > [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin 185269.9 > 324394.4 185771.2 324093.7 > /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw > /tmp/testbart.tif > Input file size is 690000, 800000 > Computed -srcwin 443174 749014 1253 752 from projected window. > 0...10...20...30...40...50...60...70...80...90...100 - done. > > These are the output formats used: > > OUTPUTFORMAT > NAME "GEOTIFF" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGBA" > EXTENSION "tif" > FORMATOPTION "COMPRESS=PACKBITS" > END > > OUTPUTFORMAT > NAME "ECW" > DRIVER "GDAL/ECW" > MIMETYPE "image/ecw" > IMAGEMODE "RGBA" > EXTENSION "ecw" > END > > OUTPUTFORMAT > NAME "MrSID" > DRIVER "GDAL/MrSID" > MIMETYPE "image/mrsid" > IMAGEMODE "RGBA" > EXTENSION "sid" > END > > This is the gdalinfo output from the source ECW file: > > [root at poseidon gdelivery]# gdalinfo > /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw > Driver: ECW/ERMapper Compressed Wavelets > Size is 690000, 800000 > Coordinate System is: > LOCAL_CS["LOCAL", > UNIT["Meter",1]] > Origin = (8000.000000,624000.200000) > Pixel Size = (0.40000000,-0.40000000) > Corner Coordinates: > Upper Left ( 8000.000, 624000.200) > Lower Left ( 8000.000, 304000.200) > Upper Right ( 284000.000, 624000.200) > Lower Right ( 284000.000, 304000.200) > Center ( 146000.000, 464000.200) > Band 1 Block=690000x1 Type=Byte, ColorInterp=Red > Overviews: arbitrary > Band 2 Block=690000x1 Type=Byte, ColorInterp=Green > Overviews: arbitrary > Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue > Overviews: arbitrary > > Thanks in advance. > > Best regards, > Bart > From fsozzi at INTERCAD.CH Fri May 19 00:53:16 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 19 May 2006 09:53:16 +0200 Subject: tooltips on JBox Message-ID: I would like to display a tooltip when i move mouse icon on an object. I use JBox. Anybody knows if it is possible and how to do that? Best regards Francesco Sozzi -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Fri May 19 02:17:13 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 19 May 2006 11:17:13 +0200 Subject: getMap from a WFS Message-ID: Hi All, I want to make a getMap-Request on my own WFS but get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'RosoftWFS'. msOGRFileOpen(): OGR error. Open failed for OGR connection `/tmp/\a3cee2f593a1a7016aec7da4cfaaa8cd.tmp.gml'. File not found or unsupported format. I think, that something with the Imagepath / Imageurl in my WFS is not OK The mapfile for WFS is in c:\ms4w\wfs.map Here is the WEB-Section of the mapfile: WEB IMAGEPATH "\Apache\cgi-bin\tmp\" IMAGEURL "/cgi-bin/tmp" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:4326" END END Has anybody an idea how I can fix the error? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From bartvde at XS4ALL.NL Fri May 19 02:23:13 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 19 May 2006 11:23:13 +0200 Subject: getMap from a WFS In-Reply-To: <20060519091713.72980@gmx.net> Message-ID: See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1770 Best regards, Bart > Hi All, > > I want to make a getMap-Request on my own WFS but get the following error: > msDrawMap(): Image handling error. Failed to draw layer > named 'RosoftWFS'. msOGRFileOpen(): OGR error. Open failed for OGR > connection `/tmp/\a3cee2f593a1a7016aec7da4cfaaa8cd.tmp.gml'. File not > found or unsupported format. > > I think, that something with the Imagepath / Imageurl in my WFS is not OK > > The mapfile for WFS is in c:\ms4w\wfs.map > > Here is the WEB-Section of the mapfile: > WEB > IMAGEPATH "\Apache\cgi-bin\tmp\" > IMAGEURL "/cgi-bin/tmp" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:4326" > END > END > > > Has anybody an idea how I can fix the error? > > Best Regards > Christian > -- > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > From matthew at MAPSOLUTIONS.COM.AU Fri May 19 02:24:20 2006 From: matthew at MAPSOLUTIONS.COM.AU (Matthew Lock) Date: Fri, 19 May 2006 02:24:20 -0700 Subject: Calculating the extent for a coordinate and zoom level in MapScrip Message-ID: Hello, How do I go about calculating an extent for a given coordinate and zoom level in MapScript? My application receives map coordinates as x and y (in my current projection) and a zoom level in my current map units. How do I calculate an extent that I can use to center my map on this coordinate at the required zoom level? Regards, Matthew Lock -- View this message in context: http://www.nabble.com/Calculating+the+extent+for+a+coordinate+and+zoom+level+in+MapScrip-t1649104.html#a4466366 Sent from the Mapserver - User forum at Nabble.com. From thip at AIT.AC.TH Fri May 19 02:59:18 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Fri, 19 May 2006 16:59:18 +0700 Subject: message "msPOSTGISLayerRetrievePK: field length = $i" Message-ID: Hi there, When I query to the feature, I got attribute information fine but have this message after all the time. "msPOSTGISLayerRetrievePK: field length = $i" Do anyone know how to get rid of this message? Thanks in advance. Thip ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From C.Wilmes at GMX.DE Fri May 19 03:00:35 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Fri, 19 May 2006 12:00:35 +0200 Subject: getMap from a WFS In-Reply-To: <14866.145.50.39.8.1148030593.squirrel@webmail.xs4all.nl> Message-ID: Thank you for the hint. But is there now a possibility to solve the problem or isn't it yet? I tried out something like this but it doesn't work: IMAGEPATH "c:\ms4w\Apache\cgi-bin\tmp\" IMAGEURL "/cgi-bin/tmp" -------- Original-Nachricht -------- Betreff: Re: [UMN_MAPSERVER-USERS] getMap from a WFS Datum: Fri, 19 May 2006 11:23:13 +0200 Von: "Bart van den Eijnden (OSGIS)" An: MAPSERVER-USERS at LISTS.UMN.EDU > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1770 > > Best regards, > Bart > > > Hi All, > > > > I want to make a getMap-Request on my own WFS but get the following > error: > > msDrawMap(): Image handling error. Failed to draw > layer > > named 'RosoftWFS'. msOGRFileOpen(): OGR error. Open failed for OGR > > connection `/tmp/\a3cee2f593a1a7016aec7da4cfaaa8cd.tmp.gml'. File not > > found or unsupported format. > > > > I think, that something with the Imagepath / Imageurl in my WFS is not > OK > > > > The mapfile for WFS is in c:\ms4w\wfs.map > > > > Here is the WEB-Section of the mapfile: > > WEB > > IMAGEPATH "\Apache\cgi-bin\tmp\" > > IMAGEURL "/cgi-bin/tmp" > > METADATA > > "wfs_title" "WFS Server" > > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > > "wfs_srs" "EPSG:4326" > > END > > END > > > >> Has anybody an idea how I can fix the error? > > > > Best Regards > > Christian > > -- > > > >> Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > > > -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From Jukka.Rahkonen at MMMTIKE.FI Fri May 19 05:30:25 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 19 May 2006 15:30:25 +0300 Subject: MapServer from FWTools and JPEG 2000 drivers Message-ID: Hello, FWTools package include gdal version supporting JPEG 2000 through Kakadu driver and Mapserver version 4.9. Now I have a question: - This gdal version seems to have two JPEG 2000 drivers, JP2KAK and JP2ECW. Which one will be used by Mapserver for JPEG 2000 layer? Can it be selected somehow in the mapfile? Regards, -Jukka Rahkonen- From bartvde at XS4ALL.NL Fri May 19 05:32:53 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 19 May 2006 14:32:53 +0200 Subject: WCS raster output black & white on ECW In-Reply-To: <17979.145.50.39.8.1148022735.squirrel@webmail.xs4all.nl> Message-ID: Just found out after many hours that this is caused by having OWS_EXTENT METADATA. If I comment out the OWS_EXTENT metadata, I get the coverage in colour. Frank, any ideas what could cause this? LAYER METADATA "WMS_LAYER_GROUP" "/LUCHTFOTO/DIGITAAL KLEUREN LUCHTFOTOGRAFIE" "OWS_TITLE" "Luchtfoto 2005" "OWS_ABSTRACT" "Luchtfoto 2005" #"OWS_EXTENT" "10000 305000 280000 619000" "WMS_METADATAURL_TYPE" "TC211" "WMS_METADATAURL_FORMAT" "text/xml" "WMS_METADATAURL_HREF" "http://145.50.148.28/geoservices/widgets/GeoservicesCatalogSearch/WCASWrapper.php?WCASURL=http://145.50.148.28:8082/deegreewcas/wcas&FILEIDENTIFIER=AAA216" "WFS_MAXFEATURES" "50" "WCS_LABEL" "Digitale Kleuren Luchtfoto's Nederland. Landsdekkende fotografie van Nederland." "WCS_RANGESET_NAME" "Luchtfoto's" "WCS_RANGESET_LABEL" "Luchtfoto's" "WCS_FORMATS" "GEOTIFF,ECW,MRSID" "WCS_RESOLUTION" "0.4 0.4" "WCS_SIZE" "690000 800000" "GML_INCLUDE_ITEMS" "all" "GML_EXCLUDE_ITEMS" "class" END PROJECTION "init=epsg:28992" END NAME "AAA216" # zie basispakket.mdb, ISO19115 DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" STATUS ON DUMP TRUE TYPE RASTER UNITS METERS MAXSCALE 150000 END Best regards, Bart > In addition, this is the output when CPL_DEBUG is ON: > > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: > NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw): > eErr = 0 > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: FileInfo: > SizeXY=690000,800000 Bands=3 > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: > projection=LOCAL, datum=WGS84 > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] GDAL: > GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) > succeeds as ECW. > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECWRasterBand: > RasterIO(nXOff=443174,nYOff=749014,nXSize=1254,nYSize=751 -> 1252x750) > [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: > GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) > [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] > [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: > GDALDriver::Create(MEM,msSaveImageGDAL_temp,1252,750,4,Byte,(nil)) > [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: > GetGDTProjDat(28992) = NUTM31/RD > [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: Writing with > PROJ=NUTM31, DATUM=RD > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: > NCScbmOpenFileView(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw): > eErr = 0 > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: FileInfo: > SizeXY=1252,750 Bands=4 > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > OriginXY=185270,324394 CellIncrementXY=0.40016,-0.4 > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: > projection=NUTM31, datum=RD > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > GDALOpen(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) succeeds > as ECW. > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > GDALClose(msSaveImageGDAL_temp) > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > GDALClose(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > GDALDeregister_GTiff() called. > > Best regards, > Bart > >> Hi list, >> >> using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we are >> running into a strange issue. This is on Red Hat Enterprise 3. >> >> We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID format. >> If we use a Geotiff as a source, all output from Mapserver WCS is okay. >> If >> we use an aerial photo in ECW format as input, all output (ECW, MrSID as >> well as Geotiff) comes out black and white instead of colour. WMS output >> is just fine. Any ideas what could be causing this? >> >> Btw, a direct gdal_translate works fine and outputs in colour: >> >> [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin 185269.9 >> 324394.4 185771.2 324093.7 >> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >> /tmp/testbart.tif >> Input file size is 690000, 800000 >> Computed -srcwin 443174 749014 1253 752 from projected window. >> 0...10...20...30...40...50...60...70...80...90...100 - done. >> >> These are the output formats used: >> >> OUTPUTFORMAT >> NAME "GEOTIFF" >> DRIVER "GDAL/GTiff" >> MIMETYPE "image/tiff" >> IMAGEMODE "RGBA" >> EXTENSION "tif" >> FORMATOPTION "COMPRESS=PACKBITS" >> END >> >> OUTPUTFORMAT >> NAME "ECW" >> DRIVER "GDAL/ECW" >> MIMETYPE "image/ecw" >> IMAGEMODE "RGBA" >> EXTENSION "ecw" >> END >> >> OUTPUTFORMAT >> NAME "MrSID" >> DRIVER "GDAL/MrSID" >> MIMETYPE "image/mrsid" >> IMAGEMODE "RGBA" >> EXTENSION "sid" >> END >> >> This is the gdalinfo output from the source ECW file: >> >> [root at poseidon gdelivery]# gdalinfo >> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >> Driver: ECW/ERMapper Compressed Wavelets >> Size is 690000, 800000 >> Coordinate System is: >> LOCAL_CS["LOCAL", >> UNIT["Meter",1]] >> Origin = (8000.000000,624000.200000) >> Pixel Size = (0.40000000,-0.40000000) >> Corner Coordinates: >> Upper Left ( 8000.000, 624000.200) >> Lower Left ( 8000.000, 304000.200) >> Upper Right ( 284000.000, 624000.200) >> Lower Right ( 284000.000, 304000.200) >> Center ( 146000.000, 464000.200) >> Band 1 Block=690000x1 Type=Byte, ColorInterp=Red >> Overviews: arbitrary >> Band 2 Block=690000x1 Type=Byte, ColorInterp=Green >> Overviews: arbitrary >> Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue >> Overviews: arbitrary >> >> Thanks in advance. >> >> Best regards, >> Bart >> > > > From bartvde at XS4ALL.NL Fri May 19 05:42:42 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 19 May 2006 14:42:42 +0200 Subject: WCS raster output black & white on ECW In-Reply-To: <11388.145.50.39.8.1148041973.squirrel@webmail.xs4all.nl> Message-ID: After inspecting the source code I think I know what is going on ... :-) If ows_extent is set, Mapserver does not inspect the file to get the extent. So it also does not determine how many bands a file has, and the number of bands apparently defaults to 1. If I set wcs_bandcount to 3 and keep ows_extent, it works fine. Best regards, Bart > Just found out after many hours that this is caused by having OWS_EXTENT > METADATA. If I comment out the OWS_EXTENT metadata, I get the coverage in > colour. > > Frank, any ideas what could cause this? > > LAYER > METADATA > "WMS_LAYER_GROUP" "/LUCHTFOTO/DIGITAAL KLEUREN > LUCHTFOTOGRAFIE" > "OWS_TITLE" "Luchtfoto 2005" > "OWS_ABSTRACT" "Luchtfoto 2005" > #"OWS_EXTENT" "10000 305000 280000 619000" > "WMS_METADATAURL_TYPE" "TC211" > "WMS_METADATAURL_FORMAT" "text/xml" > "WMS_METADATAURL_HREF" > "http://145.50.148.28/geoservices/widgets/GeoservicesCatalogSearch/WCASWrapper.php?WCASURL=http://145.50.148.28:8082/deegreewcas/wcas&FILEIDENTIFIER=AAA216" > "WFS_MAXFEATURES" "50" > "WCS_LABEL" "Digitale Kleuren Luchtfoto's Nederland. > Landsdekkende fotografie van Nederland." > "WCS_RANGESET_NAME" "Luchtfoto's" > "WCS_RANGESET_LABEL" "Luchtfoto's" > "WCS_FORMATS" "GEOTIFF,ECW,MRSID" > "WCS_RESOLUTION" "0.4 0.4" > "WCS_SIZE" "690000 800000" > "GML_INCLUDE_ITEMS" "all" > "GML_EXCLUDE_ITEMS" "class" > END > PROJECTION > "init=epsg:28992" > END > NAME "AAA216" # zie basispakket.mdb, ISO19115 > DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" > STATUS ON > DUMP TRUE > TYPE RASTER > UNITS METERS > MAXSCALE 150000 > END > > Best regards, > Bart > >> In addition, this is the output when CPL_DEBUG is ON: >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: >> NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw): >> eErr = 0 >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: FileInfo: >> SizeXY=690000,800000 Bands=3 >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: >> projection=LOCAL, datum=WGS84 >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] GDAL: >> GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) >> succeeds as ECW. >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECWRasterBand: >> RasterIO(nXOff=443174,nYOff=749014,nXSize=1254,nYSize=751 -> 1252x750) >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: >> GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: >> GDALDriver::Create(MEM,msSaveImageGDAL_temp,1252,750,4,Byte,(nil)) >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: >> GetGDTProjDat(28992) = NUTM31/RD >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: Writing >> with >> PROJ=NUTM31, DATUM=RD >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: >> NCScbmOpenFileView(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw): >> eErr = 0 >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: FileInfo: >> SizeXY=1252,750 Bands=4 >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> OriginXY=185270,324394 CellIncrementXY=0.40016,-0.4 >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: >> projection=NUTM31, datum=RD >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> GDALOpen(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) succeeds >> as ECW. >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> GDALClose(msSaveImageGDAL_temp) >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> GDALClose(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> GDALDeregister_GTiff() called. >> >> Best regards, >> Bart >> >>> Hi list, >>> >>> using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we are >>> running into a strange issue. This is on Red Hat Enterprise 3. >>> >>> We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID >>> format. >>> If we use a Geotiff as a source, all output from Mapserver WCS is okay. >>> If >>> we use an aerial photo in ECW format as input, all output (ECW, MrSID >>> as >>> well as Geotiff) comes out black and white instead of colour. WMS >>> output >>> is just fine. Any ideas what could be causing this? >>> >>> Btw, a direct gdal_translate works fine and outputs in colour: >>> >>> [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin 185269.9 >>> 324394.4 185771.2 324093.7 >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >>> /tmp/testbart.tif >>> Input file size is 690000, 800000 >>> Computed -srcwin 443174 749014 1253 752 from projected window. >>> 0...10...20...30...40...50...60...70...80...90...100 - done. >>> >>> These are the output formats used: >>> >>> OUTPUTFORMAT >>> NAME "GEOTIFF" >>> DRIVER "GDAL/GTiff" >>> MIMETYPE "image/tiff" >>> IMAGEMODE "RGBA" >>> EXTENSION "tif" >>> FORMATOPTION "COMPRESS=PACKBITS" >>> END >>> >>> OUTPUTFORMAT >>> NAME "ECW" >>> DRIVER "GDAL/ECW" >>> MIMETYPE "image/ecw" >>> IMAGEMODE "RGBA" >>> EXTENSION "ecw" >>> END >>> >>> OUTPUTFORMAT >>> NAME "MrSID" >>> DRIVER "GDAL/MrSID" >>> MIMETYPE "image/mrsid" >>> IMAGEMODE "RGBA" >>> EXTENSION "sid" >>> END >>> >>> This is the gdalinfo output from the source ECW file: >>> >>> [root at poseidon gdelivery]# gdalinfo >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >>> Driver: ECW/ERMapper Compressed Wavelets >>> Size is 690000, 800000 >>> Coordinate System is: >>> LOCAL_CS["LOCAL", >>> UNIT["Meter",1]] >>> Origin = (8000.000000,624000.200000) >>> Pixel Size = (0.40000000,-0.40000000) >>> Corner Coordinates: >>> Upper Left ( 8000.000, 624000.200) >>> Lower Left ( 8000.000, 304000.200) >>> Upper Right ( 284000.000, 624000.200) >>> Lower Right ( 284000.000, 304000.200) >>> Center ( 146000.000, 464000.200) >>> Band 1 Block=690000x1 Type=Byte, ColorInterp=Red >>> Overviews: arbitrary >>> Band 2 Block=690000x1 Type=Byte, ColorInterp=Green >>> Overviews: arbitrary >>> Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue >>> Overviews: arbitrary >>> >>> Thanks in advance. >>> >>> Best regards, >>> Bart >>> >> >> >> > > > From dpinte at ITAE.BE Fri May 19 08:13:51 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 19 May 2006 17:13:51 +0200 Subject: pixmap symbol quality question Message-ID: Hi, I'm using two pixmap symbols. The rendering in the legend is perfect but the color of the symbols in the map is not exactly the same. Is it possible to correct the problem ? I'm running mapserver 4.4 and the output is PNG file. I can provide lots of details if needed (even some example images). Many thanks for your help. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From sgillies at FRII.COM Fri May 19 08:43:29 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 19 May 2006 09:43:29 -0600 Subject: pixmap symbol quality question In-Reply-To: Message-ID: On May 19, 2006, at 9:13 AM, Didrik Pinte wrote: > --=-vmznnAR18jfoNynBfdtJ > Content-Type: text/plain > Content-Transfer-Encoding: quoted-printable > > Hi, > > I'm using two pixmap symbols. > > The rendering in the legend is perfect but the color of the symbols in > the map is not exactly the same.=20 > > Is it possible to correct the problem ? > > I'm running mapserver 4.4 and the output is PNG file. > > I can provide lots of details if needed (even some example images). > > Many thanks for your help. > > Didrik Didrik, Are you using a 256 color output format? If so, it is possible that the palette is filled before the symbols are rendered onto the map. In that case, GD tries to do its best to find nearest colors from the palette. You could switch to a RGB output format, or you could try the following hack: create a layer at the head of your mapfile which renders the symbol once using an inline feature. This will push all the symbol's colors into the image palette early. Then render the rest of your map on top. Of course, this really just pushes the problem (lack of colors) into another layer, but maybe it wouldn't appear so bad for another layer. cheers, Sean --- Sean Gillies http://zcologia.com From dpinte at ITAE.BE Fri May 19 09:06:59 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 19 May 2006 18:06:59 +0200 Subject: pixmap symbol quality question In-Reply-To: <5ED39B8A-32EA-47A4-9F34-F54113B57B20@frii.com> Message-ID: Le vendredi 19 mai 2006 ? 09:43 -0600, Sean Gillies a ?crit : > On May 19, 2006, at 9:13 AM, Didrik Pinte wrote: > > > > Didrik > > Didrik, > > Are you using a 256 color output format? If so, it is possible that > the palette is filled before the symbols are rendered onto the map. > In that case, GD tries to do its best to find nearest colors from the > palette. Hi Sean, So cool, i've changed the output format IMAGEMODE from PC256 to RGB and it's really perfect now. I just need to change some white pixels of my pixmap to transparent. Many thanks, Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From jack.gibb at MOHAWKCOLLEGE.CA Fri May 19 09:14:26 2006 From: jack.gibb at MOHAWKCOLLEGE.CA (Jack Gibb) Date: Fri, 19 May 2006 12:14:26 -0400 Subject: Problem writing multiple selections for FILTER Message-ID: I want to select two roads to display (518 Highway and Tally-ho Road). It works when I just select one road, how to add the other? Thanks in advance Cheers Jack LAYER NAME road STATUS OFF DATA road TYPE LINE LABELCACHE ON LABELITEM "FULLSTREET" FILTERITEM "FULLSTREET" FILTER '518 HIGHWAY' or 'TALLY-HO ROAD' CLASS NAME "Road" STYLE SYMBOL "Bigline" SIZE 3 COLOR 255 0 0 END # End of Style LABEL TYPE truetype FONT "arialbd" Size 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 MINFEATURESIZE AUTO POSITION auto ANGLE auto END # End of label TEMPLATE "templates/road.html" END # End of Class From dpinte at ITAE.BE Fri May 19 09:26:14 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 19 May 2006 18:26:14 +0200 Subject: pixmap transparency [WAS]Re: [UMN_MAPSERVER-USERS] pixmap symbol quality question In-Reply-To: <1148054819.17209.31.camel@geru-itae> Message-ID: Le vendredi 19 mai 2006 ? 18:06 +0200, Didrik Pinte a ?crit : > > Hi Sean, > > So cool, i've changed the output format IMAGEMODE from PC256 to RGB and > it's really perfect now. I just need to change some white pixels of my > pixmap to transparent. > > Many thanks, > > Didrik My pixmap is a little bullet. It's red and the color palette shows no white at all when displayed in the Gimp. I've seen i can define a TRANSPARENT attribute to my SYMBOL giving a index of the color palette that won't be shown. In this case, there is no white in the color palette but all the transparent part of the gif file appears white when rendered in the map. I've googled a lot and read the different howto's on symbology but did not found any interesting hints. Do someone here have a great idea to solve the problem ? Thanks Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From fluyoz at HOTMAIL.COM Fri May 19 10:52:16 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Fri, 19 May 2006 12:52:16 -0500 Subject: I have formed my file ogc, but it leaves east message Message-ID: Hi Hello, I am new using mapserver and preparing a WMS, but I have problems. I use Arcview 3,2 with its extension Arc3Wms_beta 2.0.1 I have formed my file ogc, but it leaves east message --------------------------- WMS Client for Arcview Error --------------------------- Service Exception Error: The server returned an invalid XML response: Document not well-formed. http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&mode=browse&Format=image/jpeg&Version=1.1.1&LAYERS=Departamento,Sinabip&Styles=&REQUEST=GetMap&Srs=EPSG:24878&bbox=288476%2E976623642490000,8660109%2E974671948700000,305003%2E292143642490000,8673309%2E907195908900000&width=313&height=249&Exceptions=application/vnd.ogc.se_xml& --------------------------- Aceptar --------------------------- some recommendation? attach mapfile and file ogc ************************************************************ file ogc : MapSBN.ogc ************************************************************ 1.1.1 http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&amp;mode=browse& image/jpeg EPSG:24878 Sinabip ************************************************************ map file : MapSbn_ ************************************************************ MAP NAME "MapSbn" STATUS ON SIZE 400 300 IMAGECOLOR 160 200 255 IMAGETYPE JPEG EXTENT -293181.4714 7921617.1938 1319223.322 10052167.8914 #extension de peru psad56 zn 18 s FONTSET "fonts/fonts.list" SYMBOLSET "symbols/symbol.sym" #simbolos ocurre error si retira el # CONFIG "PROJ_LIB" "C:/MapServer/proj/nad/" WEB METADATA "wms_title" "MapSBN desde 192.168.1.199" "wms_onlineresource" "http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&mode=browse" "wms_srs" "epsg:24878" "wms_exceptions_format" "application/vnd.ogc.se_xml" END # metadata TEMPLATE 'Editar_BGE.html' EMPTY "http://192.168.1.199/WMS_SBN/info.html" # path relative to the webserver document root IMAGEPATH "c:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\tmp\" # full path to image tmp dir, so cgi can find it IMAGEURL "http://192.168.1.199/WMS_SBN/tmp/" # url location of image tmp dir, so web browser can find it END # Web PROJECTION "proj=utm" "zone=18" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END #Projection epsg: 24878 LAYER NAME Sinabip TYPE POLYGON STATUS ON DATA "geo_poligono from ag_sinabip_18" CONNECTION "user=postgres password=password dbname=YachayWasi host=Wanka port=5432" CONNECTIONTYPE postgis TRANSPARENCY 60 PROJECTION "proj=utm" "zone=18" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END #projection METADATA "wms_title" "Propiedad del Estado" "autor" "JPR" END #metadata LABELMAXSCALE 5000 LABELITEM "col_codigopredio" TOLERANCE 3 DUMP TRUE HEADER "Sinabip_header.html" TEMPLATE "Sinabip_qry.html" FOOTER "Sinabip_footer.html" CLASSITEM "col_interno" CLASS NAME "SBN - ASIENTOS" EXPRESSION ('[col_tipo]' = 'SBN01') COLOR 255 000 000 OUTLINECOLOR 32 32 32 LABEL SIZE TINY COLOR 128 0 0 OUTLINECOLOR 255 255 255 TYPE BITMAP ANTIALIAS TRUE POSITION CR END #label END #class END # asientos END # Map File atte Fernando Luyo -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri May 19 11:37:30 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 19 May 2006 13:37:30 -0500 Subject: Problem writing multiple selections for FILTER Message-ID: Jack: FILTERITEM "FULLSTREET" FILTER '518 HIGHWAY' or 'TALLY-HO ROAD' becomes: FILTER ('[FULLSTREET]' = '518 HIGHWAY' or '[FULLSTREET]' = 'TALLY-HO ROAD') Steve >>> Jack Gibb 5/19/2006 11:14:26 AM >>> I want to select two roads to display (518 Highway and Tally-ho Road). It works when I just select one road, how to add the other? Thanks in advance Cheers Jack LAYER NAME road STATUS OFF DATA road TYPE LINE LABELCACHE ON LABELITEM "FULLSTREET" FILTERITEM "FULLSTREET" FILTER '518 HIGHWAY' or 'TALLY-HO ROAD' CLASS NAME "Road" STYLE SYMBOL "Bigline" SIZE 3 COLOR 255 0 0 END # End of Style LABEL TYPE truetype FONT "arialbd" Size 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 MINFEATURESIZE AUTO POSITION auto ANGLE auto END # End of label TEMPLATE "templates/road.html" END # End of Class From fluyoz at HOTMAIL.COM Fri May 19 13:15:08 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Fri, 19 May 2006 15:15:08 -0500 Subject: I have formed my file ogc, but it leaves east message Message-ID: Hi Hello, I am new using mapserver and preparing a WMS, but I have problems. I use Arcview 3,2 with its extension Arc3Wms_beta 2.0.1 I have formed my file ogc, but it leaves east message --------------------------- WMS Client for Arcview Error --------------------------- Service Exception Error: The server returned an invalid XML response: Document not well-formed. http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&mode=browse&Format=image/jpeg&Version=1.1.1&LAYERS=Departamento,Sinabip&Styles=&REQUEST=GetMap&Srs=EPSG:24878&bbox=288476%2E976623642490000,8660109%2E974671948700000,305003%2E292143642490000,8673309%2E907195908900000&width=313&height=249&Exceptions=application/vnd.ogc.se_xml& --------------------------- Aceptar --------------------------- some recommendation? attach mapfile and file ogc ************************************************************ file ogc : MapSBN.ogc ************************************************************ 1.1.1 http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&amp;mode=browse& image/jpeg EPSG:24878 Sinabip ************************************************************ map file : MapSbn_ ************************************************************ MAP NAME "MapSbn" STATUS ON SIZE 400 300 IMAGECOLOR 160 200 255 IMAGETYPE JPEG EXTENT -293181.4714 7921617.1938 1319223.322 10052167.8914 #extension de peru psad56 zn 18 s FONTSET "fonts/fonts.list" SYMBOLSET "symbols/symbol.sym" #simbolos ocurre error si retira el # CONFIG "PROJ_LIB" "C:/MapServer/proj/nad/" WEB METADATA "wms_title" "MapSBN desde 192.168.1.199" "wms_onlineresource" "http://192.168.1.199/cgi-bin/PostGis/mapserv_44.exe?map=C:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\MapSbn_WMS.map&mode=browse" "wms_srs" "epsg:24878" "wms_exceptions_format" "application/vnd.ogc.se_xml" END # metadata TEMPLATE 'Editar_BGE.html' EMPTY "http://192.168.1.199/WMS_SBN/info.html" # path relative to the webserver document root IMAGEPATH "c:\Archivos de programa\Apache Group\Apache2\htdocs\WMS_SBN\tmp\" # full path to image tmp dir, so cgi can find it IMAGEURL "http://192.168.1.199/WMS_SBN/tmp/" # url location of image tmp dir, so web browser can find it END # Web PROJECTION "proj=utm" "zone=18" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END #Projection epsg: 24878 LAYER NAME Sinabip TYPE POLYGON STATUS ON DATA "geo_poligono from ag_sinabip_18" CONNECTION "user=postgres password=password dbname=YachayWasi host=Wanka port=5432" CONNECTIONTYPE postgis TRANSPARENCY 60 PROJECTION "proj=utm" "zone=18" "south" "ellps=intl" "towgs84=-288,175,-376,0,0,0,0" "units=m" "no_defs" END #projection METADATA "wms_title" "Propiedad del Estado" "autor" "JPR" END #metadata LABELMAXSCALE 5000 LABELITEM "col_codigopredio" TOLERANCE 3 DUMP TRUE HEADER "Sinabip_header.html" TEMPLATE "Sinabip_qry.html" FOOTER "Sinabip_footer.html" CLASSITEM "col_interno" CLASS NAME "SBN - ASIENTOS" EXPRESSION ('[col_tipo]' = 'SBN01') COLOR 255 000 000 OUTLINECOLOR 32 32 32 LABEL SIZE TINY COLOR 128 0 0 OUTLINECOLOR 255 255 255 TYPE BITMAP ANTIALIAS TRUE POSITION CR END #label END #class END # asientos END # Map File atte Fernando Luyo -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Fri May 19 13:33:41 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 19 May 2006 16:33:41 -0400 Subject: getMap from a WFS In-Reply-To: <20060519100035.78600@gmx.net> Message-ID: Hi, with the current release, in an ms4w environemt(installed on c: dirive), the following should work : IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" problems were appearing when the drive was not given. Does your latest setting (c:\ms4w\Apache\cgi-bin\tmp\) gives the same kind of error message ? Later, Christian Wilmes wrote: > Thank you for the hint. But is there now a possibility to solve the problem or isn't it yet? > I tried out something like this but it doesn't work: > IMAGEPATH "c:\ms4w\Apache\cgi-bin\tmp\" > IMAGEURL "/cgi-bin/tmp" > > > > -------- Original-Nachricht -------- > Betreff: Re: [UMN_MAPSERVER-USERS] getMap from a WFS > Datum: Fri, 19 May 2006 11:23:13 +0200 > Von: "Bart van den Eijnden (OSGIS)" > An: MAPSERVER-USERS at LISTS.UMN.EDU > > >>See: >> >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1770 >> >>Best regards, >>Bart >> >> >>>Hi All, >>> >>>I want to make a getMap-Request on my own WFS but get the following >> >>error: >> >>>msDrawMap(): Image handling error. Failed to draw >> >>layer >> >>>named 'RosoftWFS'. msOGRFileOpen(): OGR error. Open failed for OGR >>>connection `/tmp/\a3cee2f593a1a7016aec7da4cfaaa8cd.tmp.gml'. File not >>>found or unsupported format. >>> >>>I think, that something with the Imagepath / Imageurl in my WFS is not >> >>OK >> >>>The mapfile for WFS is in c:\ms4w\wfs.map >>> >>>Here is the WEB-Section of the mapfile: >>>WEB >>> IMAGEPATH "\Apache\cgi-bin\tmp\" >>> IMAGEURL "/cgi-bin/tmp" >>> METADATA >>> "wfs_title" "WFS Server" >>> "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" >>> "wfs_srs" "EPSG:4326" >>> END >>> END >>> >>> >>>>Has anybody an idea how I can fix the error? >>> >>>Best Regards >>>Christian >>>-- >>> >>> >>>>Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! >>> >>> Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer >>> >>> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From tim at COMMENSPACE.ORG Fri May 19 14:56:20 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri, 19 May 2006 14:56:20 -0700 Subject: message "msPOSTGISLayerRetrievePK: field length = $i" Message-ID: > "msPOSTGISLayerRetrievePK: field length = $i" > > Do anyone know how to get rid of this message? I think you can add "USING UNIQUE gid" (or something similar) to your postgis layer definition to get rid of this message. Or edit mappostgis.c and recompile yourself. I don't know when it went away, but I think MapServer 4.8.1 had this problem (didn't check for a debug flag before reporting that message - maybe I'm wrong about that being a problem). Maybe someone who knows more about mappostgis.c can give a definitive answer. Tim PS - In case it's not clear, the DATA for your LAYER should be defined with something like: DATA "the_geom from my_table using unique gid" Where gid is a field of unique id's for each record. > Thanks in advance. > Thip > > ---------------------------------------------------------- > This mail sent through AIT WebMail : http://www.ait.ac.th/ > From mhwang4 at UIUC.EDU Fri May 19 15:15:08 2006 From: mhwang4 at UIUC.EDU (Myunghwa Hwang) Date: Fri, 19 May 2006 17:15:08 -0500 Subject: Enabling WMS server functions with Python Mapscript Message-ID: Hello! I developed a web map service by using Python Mapscript. This application is based on CGI, that is, basic CGI in Apache executes python script. I didn't use mod_python. Till now, I didn't include any tags for metadata in my map file, so now I want to include them. I looked at how-to doc in MapServer homepage, and got a question. The doc says for wms_onlineresource I have to use the url of mapserv cgi. But if I do that, it means that I have to use mapserv cgi for distributing my data and also use a simple cgi using python for my application, doesn't it? And this structure seems to be wierd. I found a python script for providing metadata and it used mod_python. So if I use mod_python, then don't I need to use mapserv? Is there any way for WMS by using only python without any changes? The next question is if I use mod_python, can I improve the performance of my application? I wonder if other people using python and mapserver prefer mod_python to simple cgi. Thanks for your answers ^^. from Myunghwa Hwang From thip at AIT.AC.TH Fri May 19 19:21:23 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Sat, 20 May 2006 09:21:23 +0700 Subject: message "msPOSTGISLayerRetrievePK: field length = $i" In-Reply-To: Message-ID: Dear Tim, Thanks a lot. The problem was solved. :) Thip Quoting Tim Schaub : > > "msPOSTGISLayerRetrievePK: field length = $i" > > > > Do anyone know how to get rid of this message? > > I think you can add "USING UNIQUE gid" (or something similar) to your > postgis layer definition to get rid of this message. > > Or edit mappostgis.c and recompile yourself. I don't know when it went > away, but I think MapServer 4.8.1 had this problem (didn't check for a > debug flag before reporting that message - maybe I'm wrong about that > being a problem). > > Maybe someone who knows more about mappostgis.c can give a definitive > answer. > > Tim > > PS - In case it's not clear, the DATA for your LAYER should be defined > with something like: > DATA "the_geom from my_table using unique gid" > Where gid is a field of unique id's for each record. > > > Thanks in advance. > > Thip > > > > ---------------------------------------------------------- > > This mail sent through AIT WebMail : http://www.ait.ac.th/ > > > ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From zhonghaiw at GMAIL.COM Sat May 20 02:27:39 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Sat, 20 May 2006 11:27:39 +0200 Subject: question about shp2tile In-Reply-To: <446D1DCE.6070008@swoodbridge.com> Message-ID: Hi Steve, sorry for the delay. But at first I'm glad to tell you good news that it works well. Thanks so much for the detailed analysis and being so patient with me. the only problem for me when I did that is: I did not make any subfolder for the tiled shapefiles, and this stupid error makes things confusing. P.S.> Steve, if I have now a large scanned paper map as jpeg format, and I want to slice it again like the shapeflies, how do I do that? zhonghai 20.05.2006 On 5/19/06, Stephen Woodbridge wrote: > > Zhonghai, > > Here is a log of what I did. I always make a directory to put the tiles > into, woodland for this example. > > > woodbri at linus:~/test$ ls > > CA_NAV_COUNTRY_region.dbf CA_NAV_WOODLAND_region.prj > > CA_NAV_COUNTRY_region.prj CA_NAV_WOODLAND_region.qix > > CA_NAV_COUNTRY_region.qix CA_NAV_WOODLAND_region.shp > > CA_NAV_COUNTRY_region.shp CA_NAV_WOODLAND_region.shx > > CA_NAV_COUNTRY_region.shx test.rar > > CA_NAV_WOODLAND_region.dbf > > make a dir for the tiles > > > woodbri at linus:~/test$ mkdir woodland > > woodbri at linus:~/test$ shp2tile > > Usage: shp2tile > > where are: > > [-v|--version] print version string and exit > > [-s|--no-stats] do not print stats > > [-w|--no-write] do not write output files > > [-r|--row] generate rows in Y > > [-c|--col] generate cols in X > > [-e|--square-ext] adjust extent to produce square tiles > > [-q|--quadtree] quadtree type of index (auto split tiles > n > objects) > > name of file to read and split into tiles > > output file names: -. > > check how big the shapfile is > > > woodbri at linus:~/test$ shpdump CA_NAV_WOODLAND_region | head > > Shapefile Type: Polygon # of Shapes: 9638 > > > > File Bounds: ( 6.055, 45.818,0,0) > > to ( 10.489, 47.808 ,0,0) > > > > Shape:0 (Polygon) nVertices=62, nParts=1 > > Bounds:( 7.602, 47.573, 0, 0) > > to ( 7.627, 47.579, 0, 0) > > ( 7.609, 47.578, 0, 0) Ring > > ( 7.610, 47.578, 0, 0) > > check that I am working with the most recent version > > > woodbri at linus:~/test$ shp2tile -v > > $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ > > run a test -w says down write tiles, just print stats > > > woodbri at linus:~/test$ shp2tile -r 3 -c 3 -w CA_NAV_WOODLAND_region.shp > woodland/woodland > > Shapefile Type: Polygon # of Shapes: 9638 > > > > File Bounds: ( 6.055040, 45.818020) > > to ( 10.489220, 47.808380) > > > > Divided into 3 rows X 3 columns (dx, dy) = ( 1.478060, 0.663453) > > > > Index Cell Count XMin YMin YMax YMax > > > 0 [ 0, 0] 1062 6.055040 45.818020 7.533100 > 46.481473 > > 1 [ 0, 1] 1867 7.533100 45.818020 9.011160 > 46.481473 > > 2 [ 0, 2] 556 9.011160 45.818020 10.489220 > 46.481473 > > 3 [ 1, 0] 888 6.055040 46.481473 7.533100 > 47.144927 > > 4 [ 1, 1] 1206 7.533100 46.481473 9.011160 > 47.144927 > > 5 [ 1, 2] 2059 9.011160 46.481473 10.489220 > 47.144927 > > 6 [ 2, 0] 100 6.055040 47.144927 7.533100 > 47.808380 > > 7 [ 2, 1] 1413 7.533100 47.144927 9.011160 > 47.808380 > > 8 [ 2, 2] 475 9.011160 47.144927 10.489220 > 47.808380 > > 9 [ global] 12 6.055040 45.818020 10.489220 > 47.808380 > > -------- > > 9638 > > Global cell contains: 0 objects. > > These are too small a cound so do the 2 x 2 > > > woodbri at linus:~/test$ shp2tile -r 2 -c 2 -w CA_NAV_WOODLAND_region.shp > woodland/woodland > > Shapefile Type: Polygon # of Shapes: 9638 > > > > File Bounds: ( 6.055040, 45.818020) > > to ( 10.489220, 47.808380) > > > > Divided into 2 rows X 2 columns (dx, dy) = ( 2.217090, 0.995180) > > > > Index Cell Count XMin YMin YMax YMax > > > 0 [ 0, 0] 3096 6.055040 45.818020 8.272130 > 46.813200 > > 1 [ 0, 1] 2751 8.272130 45.818020 10.489220 > 46.813200 > > 2 [ 1, 0] 1679 6.055040 46.813200 8.272130 > 47.808380 > > 3 [ 1, 1] 2107 8.272130 46.813200 10.489220 > 47.808380 > > 4 [ global] 5 6.055040 45.818020 10.489220 > 47.808380 > > -------- > > 9638 > > Global cell contains: 0 objects. > > Now really do the 2x2 and write the files > > > woodbri at linus:~/test$ shp2tile -r 2 -c 2 CA_NAV_WOODLAND_region.shp > woodland/woodland > > Shapefile Type: Polygon # of Shapes: 9638 > > > > File Bounds: ( 8.272390, 46.764400) > > to ( 10.489220, 47.808380) > > > > Divided into 2 rows X 2 columns (dx, dy) = ( 2.217090, 0.995180) > > > > Index Cell Count XMin YMin YMax YMax > > 0 [ 0, 0] 3096 6.055040 45.909350 8.277650 > 46.859200 > > 1 [ 0, 1] 2751 8.274860 45.818020 10.479450 > 46.834150 > > 2 [ 1, 0] 1679 6.432630 46.783620 8.373900 > 47.613070 > > 3 [ 1, 1] 2107 8.272390 46.764400 10.489220 > 47.808380 > > 4 [ global] 5 6.055040 45.818020 10.489220 > 47.808380 > > -------- > > 9638 > > Global cell contains: 5 objects. > > list the new files > > > woodbri at linus:~/test$ ls woodland/ > > woodland-0.dbf woodland-1.dbf woodland-2.dbf woodland-3.dbf > woodland-4.dbf > > woodland-0.shp woodland-1.shp woodland-2.shp woodland-3.shp > woodland-4.shp > > woodland-0.shx woodland-1.shx woodland-2.shx woodland-3.shx > woodland-4.shx > > create the spatial indexes > > > woodbri at linus:~/test$ find woodland/ -name \*.shp -exec shptree {} \; > > creating index of new LSB format > > creating index of new LSB format > > creating index of new LSB format > > creating index of new LSB format > > creating index of new LSB format > > create the metatile input file > > > woodbri at linus:~/test$ find woodland/ -name \*.shp > woodland.in > > check the command syntax > > > woodbri at linus:~/test$ tile4ms > > > > usage: tile4ms [-tile-path-only] > > INPUT file containing list of shapefile names > > (complete paths 255 chars max, no extension) > > OUTPUT shape file of extent rectangles and names > > of tiles in .dbf > > -tile-path-only Optional flag. If specified then only the path to the > > shape files will be stored in the LOCATION field > > instead of storing the full filename. > > > create the tileindex > > > woodbri at linus:~/test$ tile4ms woodland.in woodland-tile > > Processed 5 of 5 files > > See what we have got > > > woodbri at linus:~/test$ ls > > CA_NAV_COUNTRY_region.dbf CA_NAV_WOODLAND_region.shx > > CA_NAV_COUNTRY_region.prj county > > CA_NAV_COUNTRY_region.qix test.rar > > CA_NAV_COUNTRY_region.shp woodland > > CA_NAV_COUNTRY_region.shx woodland-tile.dbf > > CA_NAV_WOODLAND_region.dbf woodland-tile.shp > > CA_NAV_WOODLAND_region.prj woodland-tile.shx > > CA_NAV_WOODLAND_region.qix woodland.in > > CA_NAV_WOODLAND_region.shp > > Oh, add spatial index to the tileindex > > > woodbri at linus:~/test$ shptree woodland-tile.shp > > creating index of new LSB format > > check the country file size > > > woodbri at linus:~/test$ shpdump CA_NAV_COUNTRY_region.shp | head > > Shapefile Type: Polygon # of Shapes: 5 > > > > File Bounds: ( 5.956, 45.818,0,0) > > to ( 10.492, 47.808,0,0) > > > > Shape:0 (Polygon) nVertices=15977, nParts=3 > > Bounds:( 5.956, 45.818, 0, 0) > > to ( 10.492, 47.808, 0, 0) > > ( 10.047, 46.544, 0, 0) Ring > > ( 10.047, 46.543, 0, 0) > > country file is too small to index. > > Make a mapfile to view the results: > > MAP > EXTENT 5.956 45.818 10.492 47.808 > IMAGECOLOR 240 204 102 > SHAPEPATH /u/test > SIZE 600 400 > UNITS DD > > LAYER > NAME "administration" > GROUP "country" > STATUS DEFAULT > DATA "CA_NAV_COUNTRY_region" > TYPE POLYGON > DEBUG ON > CLASS > NAME "country" > STYLE > COLOR 255 255 204 > END > END > END > > LAYER > NAME "woodland" > GROUP "country" > STATUS DEFAULT > TILEINDEX "woodland-tile" > TYPE POLYGON > DEBUG ON > CLASS > NAME "woodland" > STYLE > COLOR 102 255 102 > END > END > END > END > > Here is a url to see the results. > > > http://swoodbridge.com/linus/cgi-bin/mapserv461?mode=map&map=/u/test/test.map > > you should be able to do the same and get the same results. > > -Steve > > Zhonghai Wang wrote: > > Hi Steve, > > > > the example shapefiles are enclosed in the attachment as a .rar file, > > the coordinate system is swiss national system, epsg:21781 or > world:CH1903. > > > > specify any parameter values won't work, only using default 2*2 images > > can be rendered, as I said, only part of the map extent. > > > > thanks > > > > zhongahi > > > > On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > > wrote: > > > > Zhonghai, > > > > Can you send me the forest and settlement shap files. > > > > tar czf data-for-steve.tgz forest.* settlement.* > > > > and email me the file. I will take a look. It might be a bug. > > > > -Steve > > > > Zhonghai Wang wrote: > > > Hi All, > > > > > > with the shp2tile command, I get some strange results: > > > > > > data -- forests.shp (includes 9638 polygons) -- only used for > example > > > > > > after performing the commands shp2tile, tile4ms and shptree, this > > > time I > > > perform additionally the command shptreevis for each shapefile, > > and I > > > get the quadtree views for the shapefiles. When I open the > > > forest_quad.shp and overlay the tileindex_quad.shp on it with > > QGIS, the > > > tileindex_quad.shp covers only a small part of the whole forest > map > > > extent, and the returned map image is rendered in the same way, > > forest > > > covers only a small part of the map extent. > > > > > > P.S>I tile the shapefile without any additional parameters: > shp2tile > > > forests.shp ff.shp -- it gives 2*2 tiling > > > > > > two pictures are enclosed in the attachment. > > > > > > where: > > > 1. quadtree.jpeg -- the quadtree shapefiles opened in QGIS; > > > 2. map.jpeg -- map image rendered with TILEINDEX "tileindex" and > > > TILEITEM "LOCATION"; > > > 3. forest.jpeg -- forest area rendered with original forests.shp > > file. > > > > > > thanks for any further info > > > > > > zhonghai > > > > > > On 5/18/06, *Zhonghai Wang* < zhonghaiw at gmail.com > > > > > >> > wrote: > > > > > > Hi Steve, > > > > > > I've tried again like you said, this time I get something, > > but still > > > no map images are rendered. > > > > > > the version is exactly the same, updated version. > > > > > > First test example: > > > > > > data -- admin.shp (administration area, which includes 5 > > polygons) > > > > > > **** > > > when performing shp2tile command, no parameters are set, and > by > > > default the shapefile is sliced into 2*2+1 shapefiles. With > the > > > following layer object definition, map image is drawn: > > > > > > LAYER > > > NAME "administration" > > > GROUP "country" > > > STATUS DEFAULT > > > TILEINDEX "index" > > > TILEITEM "LOCATION" > > > TYPE POLYGON > > > DEBUG ON > > > TRANSPARENCY ALPHA > > > CLASS > > > NAME "woodland" > > > STYLE > > > COLOR 204 204 255 > > > ANTIALIAS TRUE > > > END > > > END > > > END > > > ********** > > > Second test example: > > > > > > data -- settlement.shp, which contains 2155664 polygons > > > > > > **** > > > when performing shp2tile command for this shapefile, I set > 10*10, > > > each slice contians therefore about 21557 polygons. It's also > ok > > > with tile4ms and shptree commands. > > > > > > hm... seems exciting... > > > > > > but, with this layer object definition no settlements are > drawn : > > > > > > LAYER > > > NAME "Settlement" > > > GROUP "settlements" > > > STATUS DEFAULT > > > TILEINDEX "settlementindex" > > > TILEITEM "LOCATION" > > > MAXSCALE 100000 > > > TYPE POLYGON > > > DEBUG ON > > > TRANSPARENCY ALPHA > > > CLASS > > > NAME "SM" > > > STYLE > > > COLOR 153 153 102 > > > ANTIALIAS TRUE > > > END > > > END > > > END > > > ***** > > > I have now really no idea where the problems should be. > > > > > > Steve, any clues? > > > > > > thanks for your info. > > > > > > zhonghai > > > > > > On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > > > > > >> wrote: > > > > > > Zhonghai Wang wrote: > > >> Hi guys, > > >> > > >> I've tried to make a efficient map layer with the commands > > > shp2tile, > > >> tile4ms, and shptree, but something seems not right, because > > > MapServer > > >> can not draw the maps. I've made a test in a seperate folder, > > > and I've > > >> done the following processes: > > >> > > >> *** > > >> data -- Forests.shp (for a country) > > >> *** > > >> 1. >shp2tile -r 50 -c 50 Forests.shp Forests_Test.shp > > >> >>>results for this step: shp, shx, and dbf files, there is no > > > prj file > > >> for the output file > > >> >>>error info on the console: failed to create shp > > > Forests_Test.shp -1833 > > > > > > This is likely because you are trying to create 2501 > > files (50 x > > > 50 + 1) > > > and they all half to be open at the same time for this > > mode so you > > > likely ran into a process file handle limit. Also how > > many point > > > do you > > > have in this layer? What is the value of Num_points/2500, > > > this > > > number > > > should not be smaller than 8000 - 10000. > > > > > >> 2. >tile4ms ---- get the tileindex.shx, tileindex.shp and > > > tileindex.dbf > > >> files for the Forests_Test.shp, there is still no prj file for > > > tileindex.shp > > >> >>>no error messages appear at this step > > > > > > There are no prj files created. Mapserver does not use > them. > > > > > >> 3. >shptree -- to genetare .qix file for all shapefiles in > > > this subfolder > > >> >>> results for this step: Forests.qix, Forests_Test.qix, and > > > tileindex.qix > > >> >>>no error info on the console > > >> > > >> but, only if I set DATA "Forests" in the layer object the map > > > will be > > >> rendered, others like DATA "Forests_Test" or TTILEINDEX > > > "tileindex" > > >> TILEITEM "location" do not work, the server simply sends back > > > a blank > > >> image. > > >> > > >> did I make any mistakes or it really do not work well. (I am > > > using MS4W > > >> 4.8.1) > > >> > > >> I guess some errors occur when I perform the command shp2tile. > > > > > > What version of shp2tile are you using? > > > > > > woodbri at carto:/data/mdata$ ~/dev/shptools/shp2tile -v > > > $Id: shp2tile.c,v 1.13 2005/12/05 22:38:08 woodbri Exp $ > > > > > > If it does not respond with the Id string above you need > to > > > upgrade as > > > there is a serious crashing bug for point data in the > earlier > > > version if > > > you are using the -q option. It should work for the row > col > > > option, just > > > try to decrease the number of tiles. > > > > > > Also if you do not have something like R x C files in > > your directory > > > then the process failed. For the row col option you can > also > > > specify > > > --no-write to just get a stats report of how the data is > put > > > into the tiles. > > > > > > -Steve > > > > > >> thanks for any further info. > > >> > > >> zhonghai > > >> > > >> On 5/18/06, *Zhonghai Wang* < zhonghaiw at gmail.com > > > > > >> > > >> > > >>> wrote: > > >> > > >> Hi Bob, Steve, > > >> > > >> thank you very much for all these helpful clues, now I > > > think I've > > >> got the points of the shp2tile command, it's really a good > > > tool to > > >> slice shapefile. > > >> > > >> zhonghai > > >> > > >> On 5/18/06, *Stephen Woodbridge* < woodbri at swoodbridge.com > > > > > > > > > >> > > > > > >>> wrote: > > >> > > >> Zhonghai Wang wrote: > > >> > Hi folks, > > >> > > > >> > I have a large shapefile, now I am trying to use shp2tile > > >> command to > > >> > slice it into pieces, with -r and -c is ok, but I do not > fully > > >> > understand the -q parameter, what does it actually mean? and > > >> what number > > >> > should a use for this parameter normally? > > >> > > > >> > or something like this? -- >shp2tile -q 10000 input_shapefile > > >> > output_shapefile > > >> > > >> Hi Zhonghai, > > >> > > >> The -r -c option breaks the extents of your shapefile > > > into R x C > > >> rows > > >> and columns and then tries to fit the objects into the > best > > >> tile. I any > > >> tile crosses a tile boundary by 5-10% then it is put > > > into a > > >> "supertile" > > >> the could be the same extents as the original shape > > > file. So > > >> typically > > >> you will end up with r X c + 1 tiles. > > >> > > >> The -q N option splits the extents in half either > > > vertically or > > >> horizontally and then sorts the objects into the 2 > > > halves or put > > >> them in > > >> a supertile. Then if the either of the two halves has > > > more than N > > >> objects it is again split in half and this continues > > > until all files > > >> have less than N objects. This can cause some strange > > > effects > > >> like tiles > > >> with 1 or a small number of objects and most tiles will > > > have > > >> less than N > > >> objects in them. Since this algorithm tends to > > > spatially cluster > > >> objects > > >> in a file, there is a good chance that if you need the > > > file that > > >> all or > > >> most objects in the file will be used. > > >> > > >> I recommend trying numbers like 10,000 and 20,000 as > > > you initial > > >> tries. > > >> I think you should probably not use numbers less then > > > 8000, but > > >> it is > > >> really up to you to try and measure the results to find > > > what > > >> works best > > >> for your data. > > >> > > >> -Steve W. > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From parrott.sarah at GOOGLEMAIL.COM Sat May 20 04:56:23 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Sat, 20 May 2006 12:56:23 +0100 Subject: MapServer Itasca demo error Message-ID: Hi, I'm trying to get the itasca demo for mapserver working. I've changed the parameters in the HTML file so I can get the initial screen up ok. when I click 'Initialise' I get the following: getString(): Symbol definition error. Parsing error near (none):(line 44) The URL it is going to is: http://localhost/cgi-bin/mapserv.exe?map=c%3A%2Fms4w%2Fapache%2Fhtdocs%2Fitasca%2Fdemo.map&layer=lakespy2&layer=dlgstln2&zoomsize=2&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=C%3A%2Fms4w%2Ftmp&map_web_imageurl=%2Ftmp%2F Does anyone know what might be going on? I haven't changed anything except the paths in the html file. Cheers, Sparrott -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sat May 20 05:08:50 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 20 May 2006 14:08:50 +0200 Subject: MapServer Itasca demo error In-Reply-To: <23c59e280605200456p3201a2c7ud2919019ec19a325@mail.gmail.com> Message-ID: None was introduced as a keyword, so use "none" instead for wms_accessconstraints (note the quotes around it). Best regards, Bart Sarah Parrott wrote: > Hi, > > I'm trying to get the itasca demo for mapserver working. I've changed > the parameters in the HTML file so I can get the initial screen up ok. > when I click 'Initialise' I get the following: > > getString(): Symbol definition error. Parsing error near (none):(line 44) > > The URL it is going to is: > > http://localhost/cgi-bin/mapserv.exe?map=c%3A%2Fms4w%2Fapache%2Fhtdocs%2Fitasca%2Fdemo.map&layer=lakespy2&layer=dlgstln2&zoomsize=2&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=C%3A%2Fms4w%2Ftmp&map_web_imageurl=%2Ftmp%2F > > > Does anyone know what might be going on? I haven't changed anything > except the paths in the html file. > > Cheers, > Sparrott -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dpinte at ITAE.BE Sat May 20 07:47:45 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 20 May 2006 16:47:45 +0200 Subject: pixmap transparency In-Reply-To: <1148055975.17209.35.camel@geru-itae> Message-ID: Le vendredi 19 mai 2006 ? 18:26 +0200, Didrik Pinte a ?crit : > > My pixmap is a little bullet. It's red and the color palette shows no > white at all when displayed in the Gimp. > > I've seen i can define a TRANSPARENT attribute to my SYMBOL giving a > index of the color palette that won't be shown. > > In this case, there is no white in the color palette but all the > transparent part of the gif file appears white when rendered in the map. > > I've googled a lot and read the different howto's on symbology but did > not found any interesting hints. > > Do someone here have a great idea to solve the problem ? > > Thanks > > Didrik I've tested lots of things but this pixmap transparency does not seem to work. My outputformat is PNG24. I've replaced the transparent pixels of my gif file with white (adding the white color to the color palette of the file). Then I added TRANSPARENT attribute to the symbol. But it's still visible. I've tried with PNG file type for the symbol. Still not working I've added a TRANSPARENT ON to the OUTPUTFORMAT. Then the white pixels around the bullet are grey but not transparent at all. ... What's the next step ? Using only squared symbols ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bartvde at XS4ALL.NL Sat May 20 07:49:53 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 20 May 2006 16:49:53 +0200 Subject: pixmap transparency In-Reply-To: <1148136465.17209.57.camel@geru-itae> Message-ID: > I've added a TRANSPARENT ON to the OUTPUTFORMAT. Then the white pixels > around the bullet are grey but not transparent at all. Are you using IE to view? IE has a bug with transparent 24-bit PNG's which makes them come out gray. Check in Firefox. Best regards, Bart Didrik Pinte wrote: >Le vendredi 19 mai 2006 ? 18:26 +0200, Didrik Pinte a ?crit : > > >>My pixmap is a little bullet. It's red and the color palette shows no >>white at all when displayed in the Gimp. >> >>I've seen i can define a TRANSPARENT attribute to my SYMBOL giving a >>index of the color palette that won't be shown. >> >>In this case, there is no white in the color palette but all the >>transparent part of the gif file appears white when rendered in the map. >> >>I've googled a lot and read the different howto's on symbology but did >>not found any interesting hints. >> >>Do someone here have a great idea to solve the problem ? >> >>Thanks >> >>Didrik >> >> > >I've tested lots of things but this pixmap transparency does not seem to >work. > >My outputformat is PNG24. > >I've replaced the transparent pixels of my gif file with white (adding >the white color to the color palette of the file). Then I added >TRANSPARENT attribute to the symbol. But it's still visible. > >I've tried with PNG file type for the symbol. Still not working > >I've added a TRANSPARENT ON to the OUTPUTFORMAT. Then the white pixels >around the bullet are grey but not transparent at all. > >... > >What's the next step ? Using only squared symbols ? > >Didrik > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dpinte at ITAE.BE Sat May 20 08:07:14 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sat, 20 May 2006 17:07:14 +0200 Subject: pixmap transparency In-Reply-To: <446F2C91.5020008@xs4all.nl> Message-ID: Le samedi 20 mai 2006 ? 16:49 +0200, Bart van den Eijnden (OSGIS) a ?crit : > > I've added a TRANSPARENT ON to the OUTPUTFORMAT. Then the white pixels > > around the bullet are grey but not transparent at all. > > Are you using IE to view? IE has a bug with transparent 24-bit PNG's which makes them come out gray. Check in Firefox. > > Best regards, > Bart Hi Bart, I'm using Epiphany and Firefox : same rendering with both of them. My clients is mostly using IEX... So i have two problems : 1) how to have a correct rendering with this transparent parts of my pixmaps ? 2) then how to get it working for IEX ? I'm still searching ;-) Didrik From hydromap at GMAIL.COM Sat May 20 08:48:59 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sun, 21 May 2006 01:48:59 +1000 Subject: WCS raster output black & white on ECW In-Reply-To: <14336.145.50.39.8.1148042562.squirrel@webmail.xs4all.nl> Message-ID: Bart/Frank do u think its worth filing a bug on this? On 5/19/06, Bart van den Eijnden (OSGIS) wrote: > After inspecting the source code I think I know what is going on ... :-) > > If ows_extent is set, Mapserver does not inspect the file to get the > extent. So it also does not determine how many bands a file has, and the > number of bands apparently defaults to 1. > > If I set wcs_bandcount to 3 and keep ows_extent, it works fine. > > Best regards, > Bart > > > Just found out after many hours that this is caused by having OWS_EXTENT > > METADATA. If I comment out the OWS_EXTENT metadata, I get the coverage in > > colour. > > > > Frank, any ideas what could cause this? > > > > LAYER > > METADATA > > "WMS_LAYER_GROUP" "/LUCHTFOTO/DIGITAAL KLEUREN > > LUCHTFOTOGRAFIE" > > "OWS_TITLE" "Luchtfoto 2005" > > "OWS_ABSTRACT" "Luchtfoto 2005" > > #"OWS_EXTENT" "10000 305000 280000 619000" > > "WMS_METADATAURL_TYPE" "TC211" > > "WMS_METADATAURL_FORMAT" "text/xml" > > "WMS_METADATAURL_HREF" > > "http://145.50.148.28/geoservices/widgets/GeoservicesCatalogSearch/WCASWrapper.php?WCASURL=http://145.50.148.28:8082/deegreewcas/wcas&FILEIDENTIFIER=AAA216" > > "WFS_MAXFEATURES" "50" > > "WCS_LABEL" "Digitale Kleuren Luchtfoto's Nederland. > > Landsdekkende fotografie van Nederland." > > "WCS_RANGESET_NAME" "Luchtfoto's" > > "WCS_RANGESET_LABEL" "Luchtfoto's" > > "WCS_FORMATS" "GEOTIFF,ECW,MRSID" > > "WCS_RESOLUTION" "0.4 0.4" > > "WCS_SIZE" "690000 800000" > > "GML_INCLUDE_ITEMS" "all" > > "GML_EXCLUDE_ITEMS" "class" > > END > > PROJECTION > > "init=epsg:28992" > > END > > NAME "AAA216" # zie basispakket.mdb, ISO19115 > > DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" > > STATUS ON > > DUMP TRUE > > TYPE RASTER > > UNITS METERS > > MAXSCALE 150000 > > END > > > > Best regards, > > Bart > > > >> In addition, this is the output when CPL_DEBUG is ON: > >> > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: > >> NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw): > >> eErr = 0 > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: FileInfo: > >> SizeXY=690000,800000 Bands=3 > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > >> OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: > >> projection=LOCAL, datum=WGS84 > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] GDAL: > >> GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) > >> succeeds as ECW. > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECWRasterBand: > >> RasterIO(nXOff=443174,nYOff=749014,nXSize=1254,nYSize=751 -> 1252x750) > >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: > >> GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) > >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: > >> GDALDriver::Create(MEM,msSaveImageGDAL_temp,1252,750,4,Byte,(nil)) > >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: > >> GetGDTProjDat(28992) = NUTM31/RD > >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: Writing > >> with > >> PROJ=NUTM31, DATUM=RD > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: > >> NCScbmOpenFileView(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw): > >> eErr = 0 > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: FileInfo: > >> SizeXY=1252,750 Bands=4 > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > >> OriginXY=185270,324394 CellIncrementXY=0.40016,-0.4 > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: > >> projection=NUTM31, datum=RD > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > >> GDALOpen(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) succeeds > >> as ECW. > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > >> GDALClose(msSaveImageGDAL_temp) > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > >> GDALClose(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] > >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: > >> GDALDeregister_GTiff() called. > >> > >> Best regards, > >> Bart > >> > >>> Hi list, > >>> > >>> using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we are > >>> running into a strange issue. This is on Red Hat Enterprise 3. > >>> > >>> We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID > >>> format. > >>> If we use a Geotiff as a source, all output from Mapserver WCS is okay. > >>> If > >>> we use an aerial photo in ECW format as input, all output (ECW, MrSID > >>> as > >>> well as Geotiff) comes out black and white instead of colour. WMS > >>> output > >>> is just fine. Any ideas what could be causing this? > >>> > >>> Btw, a direct gdal_translate works fine and outputs in colour: > >>> > >>> [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin 185269.9 > >>> 324394.4 185771.2 324093.7 > >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw > >>> /tmp/testbart.tif > >>> Input file size is 690000, 800000 > >>> Computed -srcwin 443174 749014 1253 752 from projected window. > >>> 0...10...20...30...40...50...60...70...80...90...100 - done. > >>> > >>> These are the output formats used: > >>> > >>> OUTPUTFORMAT > >>> NAME "GEOTIFF" > >>> DRIVER "GDAL/GTiff" > >>> MIMETYPE "image/tiff" > >>> IMAGEMODE "RGBA" > >>> EXTENSION "tif" > >>> FORMATOPTION "COMPRESS=PACKBITS" > >>> END > >>> > >>> OUTPUTFORMAT > >>> NAME "ECW" > >>> DRIVER "GDAL/ECW" > >>> MIMETYPE "image/ecw" > >>> IMAGEMODE "RGBA" > >>> EXTENSION "ecw" > >>> END > >>> > >>> OUTPUTFORMAT > >>> NAME "MrSID" > >>> DRIVER "GDAL/MrSID" > >>> MIMETYPE "image/mrsid" > >>> IMAGEMODE "RGBA" > >>> EXTENSION "sid" > >>> END > >>> > >>> This is the gdalinfo output from the source ECW file: > >>> > >>> [root at poseidon gdelivery]# gdalinfo > >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw > >>> Driver: ECW/ERMapper Compressed Wavelets > >>> Size is 690000, 800000 > >>> Coordinate System is: > >>> LOCAL_CS["LOCAL", > >>> UNIT["Meter",1]] > >>> Origin = (8000.000000,624000.200000) > >>> Pixel Size = (0.40000000,-0.40000000) > >>> Corner Coordinates: > >>> Upper Left ( 8000.000, 624000.200) > >>> Lower Left ( 8000.000, 304000.200) > >>> Upper Right ( 284000.000, 624000.200) > >>> Lower Right ( 284000.000, 304000.200) > >>> Center ( 146000.000, 464000.200) > >>> Band 1 Block=690000x1 Type=Byte, ColorInterp=Red > >>> Overviews: arbitrary > >>> Band 2 Block=690000x1 Type=Byte, ColorInterp=Green > >>> Overviews: arbitrary > >>> Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue > >>> Overviews: arbitrary > >>> > >>> Thanks in advance. > >>> > >>> Best regards, > >>> Bart > >>> > >> > >> > >> > > > > > > > From thip at AIT.AC.TH Sat May 20 20:03:26 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Sun, 21 May 2006 10:03:26 +0700 Subject: Select point within particular polygon Message-ID: Dear all, I need to select some points from point layer in particular polygon layer. Could anyone give me a clue how to make a query in map file? Thanks Thip ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From woklist at KYNGCHAOS.COM Sat May 20 21:58:46 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Sat, 20 May 2006 23:58:46 -0500 Subject: Big Mac OS X packages update Message-ID: That is, my installers for Mac OS X for Graphics Libs, GIS Libs, PHP4, Postgres/PostGIS and MapServer. See the full details on my site. Here's a summary: - All packages are now both Panther and Tiger compatible, instead of the old separate packages for Panther and Tiger. These are built on Tiger with GCC 4, so any developers using GCC 3.3 won't be able to use them (C++ compatibility). The Panther-only packages will still be available, but may lag behind. - mcrypt, mhash and sqlite 3 were added to PHP - DAP added, and now supported in GDAL - I finally figured out how to build HDF5 Universal - Python 2.4.3 Universal support added: GDAL, Postgres, MapServer - GDAL updated to 1.3.2 - many other version updates I'm working on a PHP5 installer, with PHP MapScript to go along with it, and Perl MapScript (getting a Universal build of that requires both PPC and Intel Macs because of deficiencies in the Universal SDK). An Intel Mac is in the mail so I can work out Perl MapScript and do some serious testing of everything. ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From kkoehn at ASPIREDILLUSION.COM Sat May 20 22:21:59 2006 From: kkoehn at ASPIREDILLUSION.COM (Kelly Koehn) Date: Sun, 21 May 2006 00:21:59 -0500 Subject: Variation in lat/long distances Message-ID: I'm working with some NEXRAD radar data and reading the binary data and drawing it on a map. I'm using Mapserver on the backend to produce the map. What i'm basically doing is calculating 124 nautical miles (142 statute miles) from a center point (the radar) and then drawing my radar data on top of that. I found this nifty little formula on the net that supposedly converts nautical miles to statute miles but it doesn't seem to really be working as expected. The formula is as follows: (((sm * 0.0254) * 63360) / 1852) / 60 = nm where sm = statute miles and nm = nautical miles At that point I take the value that I receive above and do the appropriate + or - calclations from the radar's location (lat/long) and get the extent for the map which is pushed through the URL. What I've noticed is that the latitude seems to be correct but the longitude always falls short 20 or 30 miles from what it should be (almost cutting off a county on either side). Has anyone else experienced this? I've checked the x and y distances and they are both equal. I'm producing a 460 x 460 GIF image that uses the nationalatlas.gov SHP files. I'm using the county and states sets. I can post my .map files and anything else that might be helpful (including sample images). Thanks Kelly Koehn -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkoehn at ASPIREDILLUSION.COM Sat May 20 22:41:25 2006 From: kkoehn at ASPIREDILLUSION.COM (Kelly Koehn) Date: Sun, 21 May 2006 00:41:25 -0500 Subject: Variation in lat/long distances Message-ID: I'm working with Level III data pulled from their FTP site (in the process of setting up a NOAAPORT system though). It all started with a desire to learn how to read it and then it just built into something more. I don't use anything to process the files and read them in with PHP and decode everything bit by bit :) I've been doing some reading and I guess calculating the distance over longitudes are somewhat more complicated because the distances change as the latitude changes. Anyone know how to calculate that? Kelly ----- Original Message ----- From: "Gerry Creager" To: "Kelly Koehn" Sent: Sunday, May 21, 2006 12:36 AM Subject: [SPAM] Re: [UMN_MAPSERVER-USERS] Variation in lat/long distances >I suspect you and I need to talk. Are you using LEvel II or Level III >data? We're doing a fair bit w/ Nexrad data and using Gempak to create the >imagery for display. > > gerry > > Kelly Koehn wrote: >> I'm working with some NEXRAD radar data and reading the binary data and >> drawing it on a map. I'm using Mapserver on the backend to produce the >> map. What i'm basically doing is calculating 124 nautical miles (142 >> statute miles) from a center point (the radar) and then drawing my radar >> data on top of that. I found this nifty little formula on the net that >> supposedly converts nautical miles to statute miles but it doesn't seem >> to really be working as expected. >> The formula is as follows: >> (((sm * 0.0254) * 63360) / 1852) / 60 = nm >> where sm = statute miles and nm = nautical miles >> At that point I take the value that I receive above and do the >> appropriate + or - calclations from the radar's location (lat/long) and >> get the extent for the map which is pushed through the URL. What I've >> noticed is that the latitude seems to be correct but the longitude always >> falls short 20 or 30 miles from what it should be (almost cutting off a >> county on either side). Has anyone else experienced this? I've checked >> the x and y distances and they are both equal. I'm producing a 460 x 460 >> GIF image that uses the nationalatlas.gov SHP files. I'm using the >> county and states sets. >> I can post my .map files and anything else that might be helpful >> (including sample images). >> Thanks >> Kelly Koehn >> > > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: > 979.458.4020 FAX 979.862.3983 > MAIL: AATLT, 3139 TAMU > Physical: 1700 Research Parkway, Suite 160, > College Station, TX 77843-3139 > From bartvde at XS4ALL.NL Sun May 21 04:27:09 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 21 May 2006 13:27:09 +0200 Subject: WCS raster output black & white on ECW In-Reply-To: <60c6835d0605200848j6e881ea5r790e00fe950bac52@mail.gmail.com> Message-ID: The question is then, what would the correct/intended behaviour be? Probably a warning in the GetCapabilities WCS response would be the way to go, the warning stating that wcs_bandcount is not set and has a default value of 1, just like WMS does. Best regards, Bart Shoaib Burq wrote: > Bart/Frank do u think its worth filing a bug on this? > > On 5/19/06, Bart van den Eijnden (OSGIS) wrote: > >> After inspecting the source code I think I know what is going on ... :-) >> >> If ows_extent is set, Mapserver does not inspect the file to get the >> extent. So it also does not determine how many bands a file has, and the >> number of bands apparently defaults to 1. >> >> If I set wcs_bandcount to 3 and keep ows_extent, it works fine. >> >> Best regards, >> Bart >> >> > Just found out after many hours that this is caused by having >> OWS_EXTENT >> > METADATA. If I comment out the OWS_EXTENT metadata, I get the >> coverage in >> > colour. >> > >> > Frank, any ideas what could cause this? >> > >> > LAYER >> > METADATA >> > "WMS_LAYER_GROUP" "/LUCHTFOTO/DIGITAAL KLEUREN >> > LUCHTFOTOGRAFIE" >> > "OWS_TITLE" "Luchtfoto 2005" >> > "OWS_ABSTRACT" "Luchtfoto 2005" >> > #"OWS_EXTENT" "10000 305000 280000 619000" >> > "WMS_METADATAURL_TYPE" "TC211" >> > "WMS_METADATAURL_FORMAT" "text/xml" >> > "WMS_METADATAURL_HREF" >> > >> "http://145.50.148.28/geoservices/widgets/GeoservicesCatalogSearch/WCASWrapper.php?WCASURL=http://145.50.148.28:8082/deegreewcas/wcas&FILEIDENTIFIER=AAA216" >> >> > "WFS_MAXFEATURES" "50" >> > "WCS_LABEL" "Digitale Kleuren Luchtfoto's >> Nederland. >> > Landsdekkende fotografie van Nederland." >> > "WCS_RANGESET_NAME" "Luchtfoto's" >> > "WCS_RANGESET_LABEL" "Luchtfoto's" >> > "WCS_FORMATS" "GEOTIFF,ECW,MRSID" >> > "WCS_RESOLUTION" "0.4 0.4" >> > "WCS_SIZE" "690000 800000" >> > "GML_INCLUDE_ITEMS" "all" >> > "GML_EXCLUDE_ITEMS" "class" >> > END >> > PROJECTION >> > "init=epsg:28992" >> > END >> > NAME "AAA216" # zie basispakket.mdb, ISO19115 >> > DATA "aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw" >> > STATUS ON >> > DUMP TRUE >> > TYPE RASTER >> > UNITS METERS >> > MAXSCALE 150000 >> > END >> > >> > Best regards, >> > Bart >> > >> >> In addition, this is the output when CPL_DEBUG is ON: >> >> >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: >> >> >> NCScbmOpenFileView(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw): >> >> >> eErr = 0 >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: >> FileInfo: >> >> SizeXY=690000,800000 Bands=3 >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> >> OriginXY=8000,624000 CellIncrementXY=0.4,-0.4 >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] ECW: >> >> projection=LOCAL, datum=WGS84 >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALOpen(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) >> >> succeeds as ECW. >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:05:44 2006] [error] [client 145.50.90.64] >> ECWRasterBand: >> >> RasterIO(nXOff=443174,nYOff=749014,nXSize=1254,nYSize=751 -> >> 1252x750) >> >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALClose(/data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw) >> >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALDriver::Create(MEM,msSaveImageGDAL_temp,1252,750,4,Byte,(nil)) >> >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: >> >> GetGDTProjDat(28992) = NUTM31/RD >> >> [Fri May 19 09:05:45 2006] [error] [client 145.50.90.64] ECW: Writing >> >> with >> >> PROJ=NUTM31, DATUM=RD >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: >> >> >> NCScbmOpenFileView(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw): >> >> >> eErr = 0 >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: >> FileInfo: >> >> SizeXY=1252,750 Bands=4 >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> >> OriginXY=185270,324394 CellIncrementXY=0.40016,-0.4 >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] ECW: >> >> projection=NUTM31, datum=RD >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALOpen(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) >> succeeds >> >> as ECW. >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALClose(msSaveImageGDAL_temp) >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALClose(/data/OGC_UMN_services/tmp/ms_tmp/114802234574260.ecw) >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] >> >> [Fri May 19 09:06:00 2006] [error] [client 145.50.90.64] GDAL: >> >> GDALDeregister_GTiff() called. >> >> >> >> Best regards, >> >> Bart >> >> >> >>> Hi list, >> >>> >> >>> using Mapserver 4.8.3, GDAL 1.3.2 final and the latest ECW SDK we >> are >> >>> running into a strange issue. This is on Red Hat Enterprise 3. >> >>> >> >>> We use Mapserver WCS to output rasters in ECW, Geotiff and MrSID >> >>> format. >> >>> If we use a Geotiff as a source, all output from Mapserver WCS is >> okay. >> >>> If >> >>> we use an aerial photo in ECW format as input, all output (ECW, >> MrSID >> >>> as >> >>> well as Geotiff) comes out black and white instead of colour. WMS >> >>> output >> >>> is just fine. Any ideas what could be causing this? >> >>> >> >>> Btw, a direct gdal_translate works fine and outputs in colour: >> >>> >> >>> [root at poseidon gdelivery]# gdal_translate -of "Gtiff" -projwin >> 185269.9 >> >>> 324394.4 185771.2 324093.7 >> >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >> >>> /tmp/testbart.tif >> >>> Input file size is 690000, 800000 >> >>> Computed -srcwin 443174 749014 1253 752 from projected window. >> >>> 0...10...20...30...40...50...60...70...80...90...100 - done. >> >>> >> >>> These are the output formats used: >> >>> >> >>> OUTPUTFORMAT >> >>> NAME "GEOTIFF" >> >>> DRIVER "GDAL/GTiff" >> >>> MIMETYPE "image/tiff" >> >>> IMAGEMODE "RGBA" >> >>> EXTENSION "tif" >> >>> FORMATOPTION "COMPRESS=PACKBITS" >> >>> END >> >>> >> >>> OUTPUTFORMAT >> >>> NAME "ECW" >> >>> DRIVER "GDAL/ECW" >> >>> MIMETYPE "image/ecw" >> >>> IMAGEMODE "RGBA" >> >>> EXTENSION "ecw" >> >>> END >> >>> >> >>> OUTPUTFORMAT >> >>> NAME "MrSID" >> >>> DRIVER "GDAL/MrSID" >> >>> MIMETYPE "image/mrsid" >> >>> IMAGEMODE "RGBA" >> >>> EXTENSION "sid" >> >>> END >> >>> >> >>> This is the gdalinfo output from the source ECW file: >> >>> >> >>> [root at poseidon gdelivery]# gdalinfo >> >>> /data/geopakhuis/aerogrid_nl2005/Aerogrid_NL2005_40cm.ecw >> >>> Driver: ECW/ERMapper Compressed Wavelets >> >>> Size is 690000, 800000 >> >>> Coordinate System is: >> >>> LOCAL_CS["LOCAL", >> >>> UNIT["Meter",1]] >> >>> Origin = (8000.000000,624000.200000) >> >>> Pixel Size = (0.40000000,-0.40000000) >> >>> Corner Coordinates: >> >>> Upper Left ( 8000.000, 624000.200) >> >>> Lower Left ( 8000.000, 304000.200) >> >>> Upper Right ( 284000.000, 624000.200) >> >>> Lower Right ( 284000.000, 304000.200) >> >>> Center ( 146000.000, 464000.200) >> >>> Band 1 Block=690000x1 Type=Byte, ColorInterp=Red >> >>> Overviews: arbitrary >> >>> Band 2 Block=690000x1 Type=Byte, ColorInterp=Green >> >>> Overviews: arbitrary >> >>> Band 3 Block=690000x1 Type=Byte, ColorInterp=Blue >> >>> Overviews: arbitrary >> >>> >> >>> Thanks in advance. >> >>> >> >>> Best regards, >> >>> Bart >> >>> >> >> >> >> >> >> >> > >> > >> > >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From thip at AIT.AC.TH Sun May 21 07:36:25 2006 From: thip at AIT.AC.TH (SUBSCRIBE MAPSERVER-USERS Joe H. Smith) Date: Sun, 21 May 2006 21:36:25 +0700 Subject: Select point within particular polygon In-Reply-To: <1148190931.17209.65.camel@geru-itae> Message-ID: Dear Didrik, Thanks for the suggestion. figured it out that I can query using where contain clause and now it is working. Thanks a lot. Thip Quoting Didrik Pinte : > Le dimanche 21 mai 2006 ?? 10:03 +0700, SUBSCRIBE MAPSERVER-USERS Joe H. > Smith a ??crit : > > Dear all, > > > > I need to select some points from point layer in particular polygon layer. > Could > > anyone give me a clue how to make a query in map file? > > > > Thanks > > Thip > > Hi Thip, > > If you're using one of the mapscript language : > Have a look a the queryByShape method > (http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#layerobj) > > If you're using the CGI mode, have a look at the FEATUREQUERY mode > (http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages) > > Didrik > ---------------------------------------------------------- This mail sent through AIT WebMail : http://www.ait.ac.th/ From drewtimmins at GMAIL.COM Sun May 21 08:22:22 2006 From: drewtimmins at GMAIL.COM (Andrew Timmins) Date: Sun, 21 May 2006 11:22:22 -0400 Subject: Min / nMake/ makefile.vc Message-ID: Hello All! I am currently new to Map server but looking at using it and have some questions. I am looking at using Flash to help develop my application and map server seems to have this capability. I have done some readings and have found a library called MING 0.2a that will allow this to happen. I need some help installing this Lib. I am running Map server and php on a Windows desktop right now. Is this a library for php ? or is this for Map Server? I have found this documentation on how to get started but i am stuck.. http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html Just a bit down th page its says to do the following nmake ?f makefile.vc What is nmake? and how to i run this? (Dos ?) Drew -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun May 21 08:35:11 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 21 May 2006 17:35:11 +0200 Subject: Min / nMake/ makefile.vc In-Reply-To: Message-ID: Hi, if you use the MS4W package, it has flash capabilities (OUTPUT=SWF). You don't need to compile Mapserver yourself then. http://www.maptools.org/ms4w/index.phtml c:\ms4w\Apache\cgi-bin>mapserv -v MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPO RTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SH APEFILE DEBUG=MSDEBUG Best regards, Bart Andrew Timmins wrote: > Hello All! > > > > I am currently new to Map server but looking at using it and have some > questions. > > > > I am looking at using Flash to help develop my application and map > server seems to have this capability. I have done some readings and > have found a library called MING 0.2a that will allow this to happen. > > > > I need some help installing this Lib. > > I am running Map server and php on a Windows desktop right now. > > > > Is this a library for php ? or is this for Map Server? > > > > I have found this documentation on how to get started but i am stuck.. > > http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html > > > > Just a bit down th page its says to do the following > > nmake ?f makefile.vc > > What is nmake? and how to i run this? (Dos ?) > > Drew -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From funkbucket at GMAIL.COM Sun May 21 16:43:34 2006 From: funkbucket at GMAIL.COM (B Tuttle) Date: Sun, 21 May 2006 17:43:34 -0600 Subject: newbie query question Message-ID: Hi- We are trying to set up our first mapserver app. We have two polygon features one is an index and the other is counties. What we'd like to do is be able to type in a county name and get back all the polygons from the index feature that are intersected by that county (so if even a portion of the index polygon is in the county it would be returned as a result). The index polygon feature does not have county names in it so we are hoping to do this without trying to add county names to the index feature (especially since an index polygon can be in more than one county). From marcin.izo at GMAIL.COM Sun May 21 17:36:06 2006 From: marcin.izo at GMAIL.COM (izo) Date: Sun, 21 May 2006 20:36:06 -0400 Subject: Style classes for roads display Message-ID: Hi, Is there anybody that would be willing to share mapfile with style and classes description to displays nice roads depending on a scale and road type ? regards m. From s_jubeh at YAHOO.COM Sun May 21 18:13:10 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Sun, 21 May 2006 18:13:10 -0700 Subject: coordinate system Message-ID: Hi all, i have mapserver javascript library , i see this code function Mapserv_applybox(minx, miny, maxx, maxy) { var temp = new Array(4); temp[0] = this.extent[0] + this.cellsize*minx; temp[1] = this.extent[3] - this.cellsize*maxy; temp[2] = this.extent[0] + this.cellsize*maxx; temp[3] = this.extent[3] - this.cellsize*miny; this.extent = temp; ......................... i find it strange a little bit, i have non projected image and the extent of this image 0,0,370,450 when i display it with mapserver it gave me the lower Right coordinate for the image 370,0 while the upper left 0,450. i cannot understand this behavior. why i did not get the upper left 00 and the lower right 370,450. i will be glade if some one explain to me. --------------------------------- Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon May 22 01:55:13 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 May 2006 10:55:13 +0200 Subject: about the Apache error.log file. Message-ID: Hi guys, if I open the error.log file in the Apache Logs folder, there is some info like this: >>>[Mon May 22 10:44:35 2006] [error] [client 127.0.0.1] msDrawMap() total time: 1.031s\r which means there is an msDrawMap() error occurs, but actually the map image is successfully returned to the web browser, and it takes only 1.031 second. why does this error message appear? a mistake from MapServer or something really happened? thanks for any info. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From dpinte at ITAE.BE Mon May 22 02:59:13 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 22 May 2006 11:59:13 +0200 Subject: about the Apache error.log file. In-Reply-To: <2534c4120605220155ydec890fge0c269712d17774d@mail.gmail.com> Message-ID: Zhonghai Wang a ?crit : > Hi guys, > > if I open the error.log file in the Apache Logs folder, there is some > info like this: > > >>>[Mon May 22 10:44:35 2006] [error] [client 127.0.0.1 > ] msDrawMap() total time: 1.031s\r > > which means there is an msDrawMap() error occurs, but actually the map > image is successfully returned to the web browser, and it takes only > 1.031 second. > > why does this error message appear? a mistake from MapServer or > something really happened? > > thanks for any info. > > zhonghai It's not an error message. It means you have some DEBUG ON lines in your map file. Didrik From zhonghaiw at GMAIL.COM Mon May 22 06:29:49 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 May 2006 15:29:49 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) Message-ID: Hi All, I have a subfolder of raster files, which are in the format of gif+tab, the tab file gives the projection information for the corresponding gif file. Now I am trying to gdaltindex all these raster images, I've done it exactly following the example here: http://gdal.maptools.org/gdaltindex.html but I get only error messages: >>>tem\*.gif does not exist in the file system, and is not recognised as a supported dataset name. but all the *.gif raster files are really there. I`ve performed gdaltindex command like this: ***** C\.....\rasterdata>gdaltindex test_tiled.shp tem\*.gif where: the tem folder is a subfolder of rasterdata folder. ***** thanks for any clues. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Mon May 22 06:50:52 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 22 May 2006 16:50:52 +0300 Subject: gdaltindex raster files (MapInfo gif + tab format) Message-ID: Hi, Very first you can try giving the full path to your images, I mean c:\...\rasterdata\tem\*.gif. Let's see what happens. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Zhonghai Wang L?hetetty: ma 22.5.2006 16:29 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] gdaltindex raster files (MapInfo gif + tab format) Hi All, I have a subfolder of raster files, which are in the format of gif+tab, the tab file gives the projection information for the corresponding gif file. Now I am trying to gdaltindex all these raster images, I've done it exactly following the example here: http://gdal.maptools.org/gdaltindex.html but I get only error messages: >>>tem\*.gif does not exist in the file system, and is not recognised as a supported dataset name. but all the *.gif raster files are really there. I`ve performed gdaltindex command like this: ***** C\.....\rasterdata>gdaltindex test_tiled.shp tem\*.gif where: the tem folder is a subfolder of rasterdata folder. ***** thanks for any clues. zhonghai From mateusz at LOSKOT.NET Mon May 22 06:57:32 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Mon, 22 May 2006 15:57:32 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: <2534c4120605220629x2cd62a0bo68ea9a41f026cd1a@mail.gmail.com> Message-ID: Zhonghai Wang wrote: > I have a subfolder of raster files, which are in the format of > gif+tab, the tab file gives the projection information for the > corresponding gif file. Now I am trying to gdaltindex all these raster > images, I've done it exactly following the example here: > > http://gdal.maptools.org/gdaltindex.html > > but I get only error messages: > >>>>tem\*.gif does not exist in the file system, and is not recognised as > a supported dataset name. > > but all the *.gif raster files are really there. I`ve performed > gdaltindex command like this: > > ***** > C\.....\rasterdata>gdaltindex test_tiled.shp tem\*.gif > > where: the tem folder is a subfolder of rasterdata folder. > ***** Is your GDAL compiled with GIF support? Check if this format is listed by gdalinfo: gdalinfo --formats Cheers -- Mateusz ?oskot http://mateusz.loskot.net From mateusz at LOSKOT.NET Mon May 22 07:02:38 2006 From: mateusz at LOSKOT.NET (Mateusz Loskot) Date: Mon, 22 May 2006 16:02:38 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Very first you can try giving the full path to your images, I mean > c:\...\rasterdata\tem\*.gif. Let's see what happens. It should not be the case. I've checked gdaltindex from latest FWTools on Windows and it works with relative and absolute paths. Also, you can use forward or back slash: gdaltindex test.shp data/*.tif gdaltindex test.shp data\*.tif Although, gdaltindex usage message suggests to use the former version with Unix-like forward slash. Cheers -- Mateusz ?oskot http://mateusz.loskot.net From zhonghaiw at GMAIL.COM Mon May 22 07:22:39 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 May 2006 16:22:39 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: <4471C47E.3020806@loskot.net> Message-ID: Hi guys, I've found a way to do that, like this: c:\.....rasterdata>dir /b /s tem\*.gif > index.txt c:\.....rasterdata>gdaltindex index.shp --optfile index.txt and this works well. but georeferencing information in the TAB file can not be found by the command, an error message is something like: >>>no georeferencing info is available, gdaltindex performance will be skipped. actually there is georeferencing info in the TAB file, for each small gif image there is a corresponding TAB, e.g.: *** !table !version 300 !charset WindowsLatin1 Definition Table File "m_1_1_1000.gif" Type "RASTER" (5.290517,48.2308475) (1392,987) Label "Pt 1", (5.25001439194036,48.25) (0,0) Label "Pt 2", (5.25001439194036,48.211695) (0,1974) Label "Pt 3", (5.33101960805964,48.25) (2784,0) Label "Pt 4", (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" CoordSys Earth Projection 1, 104 Units "degree" *** why can it not be read by gdal? thanks a lot zhonghai On 5/22/06, Mateusz Loskot wrote: > Rahkonen Jukka wrote: > > Very first you can try giving the full path to your images, I mean > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > It should not be the case. > I've checked gdaltindex from latest FWTools on Windows and > it works with relative and absolute paths. > Also, you can use forward or back slash: > > gdaltindex test.shp data/*.tif > > gdaltindex test.shp data\*.tif > > Although, gdaltindex usage message suggests to use the former version > with Unix-like forward slash. > > Cheers > -- > Mateusz ?oskot > http://mateusz.loskot.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon May 22 07:31:49 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 May 2006 16:31:49 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: <2534c4120605220722j74eb3566w5a5035e2dd14b6c9@mail.gmail.com> Message-ID: Hi guys, I get some info again from the "Raster Dat Access" document, and it indicates that: **** GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer will also be able to read GIF files for raster layers. The only way to georeference GIF files is with a world file. If GD is not configured with GIF support, it may still be available in GDAL **** Is it true that GIF raster images can only be georeferenced with a worldfiles? TAB files are not supported? zhonghai On 5/22/06, Zhonghai Wang wrote: > > Hi guys, > > I've found a way to do that, like this: > > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt > > and this works well. > > but georeferencing information in the TAB file can not be found by the > command, an error message is something like: > > >>>no georeferencing info is available, gdaltindex performance will be > skipped. > > actually there is georeferencing info in the TAB file, for each small gif > image there is a corresponding TAB, e.g.: > *** > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "m_1_1_1000.gif" > Type "RASTER" > (5.290517,48.2308475) (1392,987) Label "Pt 1", > (5.25001439194036,48.25) (0,0) Label "Pt 2", > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3", > (5.33101960805964,48.25) (2784,0) Label "Pt 4", > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" > CoordSys Earth Projection 1, 104 > Units "degree" > *** > > why can it not be read by gdal? > > thanks a lot > zhonghai > > On 5/22/06, Mateusz Loskot wrote: > > > Rahkonen Jukka wrote: > > > Very first you can try giving the full path to your images, I mean > > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > > > It should not be the case. > > I've checked gdaltindex from latest FWTools on Windows and > > it works with relative and absolute paths. > > Also, you can use forward or back slash: > > > > gdaltindex test.shp data/*.tif > > > > gdaltindex test.shp data\*.tif > > > > Although, gdaltindex usage message suggests to use the former version > > with Unix-like forward slash. > > > > Cheers > > -- > > Mateusz ?oskot > > http://mateusz.loskot.net > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon May 22 07:42:40 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 May 2006 16:42:40 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: <2534c4120605220731q64fd8915h4d14faa0859c25cf@mail.gmail.com> Message-ID: Hi, I've checked using "mapserv -v" and the GIF is supported. but it's strange that I can not performed "gdalinfo --formats" or "gdal-congif --formats" to check if the GIF format is supported. I am using the precomplied MS4W on WinXP. Does this mean that my gdal utility is not really working? but I still can use some commands such as "gdalinfo" and "gdal_translate". zhongahi On 5/22/06, Zhonghai Wang wrote: > > Hi guys, > > I get some info again from the "Raster Dat Access" document, and it > indicates that: > > **** > GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer > will also be able to read GIF files for raster layers. The only way to > georeference GIF files is with a world file. > > If GD is not configured with GIF support, it may still be available in > GDAL > > **** > > Is it true that GIF raster images can only be georeferenced with a > worldfiles? TAB files are not supported? > > zhonghai > On 5/22/06, Zhonghai Wang wrote: > > > > Hi guys, > > > > I've found a way to do that, like this: > > > > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt > > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt > > > > and this works well. > > > > but georeferencing information in the TAB file can not be found by the > > command, an error message is something like: > > > > >>>no georeferencing info is available, gdaltindex performance will be > > skipped. > > > > actually there is georeferencing info in the TAB file, for each small > > gif image there is a corresponding TAB, e.g.: > > *** > > !table > > !version 300 > > !charset WindowsLatin1 > > > > Definition Table > > File "m_1_1_1000.gif" > > Type "RASTER" > > (5.290517,48.2308475) (1392,987) Label "Pt 1", > > (5.25001439194036,48.25) (0,0) Label "Pt 2", > > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3", > > (5.33101960805964,48.25) (2784,0) Label "Pt 4", > > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" > > CoordSys Earth Projection 1, 104 > > Units "degree" > > *** > > > > why can it not be read by gdal? > > > > thanks a lot > > zhonghai > > > > On 5/22/06, Mateusz Loskot wrote: > > > > > Rahkonen Jukka wrote: > > > > Very first you can try giving the full path to your images, I mean > > > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > > > > > It should not be the case. > > > I've checked gdaltindex from latest FWTools on Windows and > > > it works with relative and absolute paths. > > > Also, you can use forward or back slash: > > > > > > gdaltindex test.shp data/*.tif > > > > > > gdaltindex test.shp data\*.tif > > > > > > Although, gdaltindex usage message suggests to use the former version > > > with Unix-like forward slash. > > > > > > Cheers > > > -- > > > Mateusz ?oskot > > > http://mateusz.loskot.net > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Mon May 22 08:30:10 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 22 May 2006 17:30:10 +0200 Subject: STYLEITEM=Auto removes labels Message-ID: Hi list, Quick question: if I set a layer to STYLEITEM "AUTO", the labels for that layer disapear. Is there any way to override this? I want to use the settins from my source file (mapInfo .TAB file), just WITH labels. Any ideas? -- Jelmer Baas From j_siever at YAHOO.COM Mon May 22 09:22:44 2006 From: j_siever at YAHOO.COM (Jason Sievers) Date: Mon, 22 May 2006 09:22:44 -0700 Subject: Template trouble Message-ID: I have a MapServer HTML Template and am performing template substitutions. I would like reference values using JavaScript variables containing the template substitution. For example, simply getting the MapServer version number is easy via "[ROADS]", where 'ROADS' is the name of a field in a dBase file. But I want to get the value as a variable like myVariable0 = "ROADS"; myVariable1 = '"[' + myVariable0 + ']"'; Any thoughts are welcome. Thanks, Jason Sievers __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon May 22 09:50:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 22 May 2006 12:50:15 -0400 Subject: WCS raster output black & white on ECW In-Reply-To: <44704E8D.4020702@xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > The question is then, what would the correct/intended behaviour be? > > Probably a warning in the GetCapabilities WCS response would be the way > to go, the warning stating that wcs_bandcount is not set and has a > default value of 1, just like WMS does. > Shoaib Burq wrote: > >> Bart/Frank do u think its worth filing a bug on this? Shoaib / Bart, Yes, please do file a bug. I would like a chance to dig through why the problem occurs as it does. If nothing better comes to mind Bart's solution would be a good start. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From bartvde at XS4ALL.NL Mon May 22 10:20:33 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 22 May 2006 19:20:33 +0200 Subject: WCS raster output black & white on ECW In-Reply-To: <4471EBC7.50306@pobox.com> Message-ID: I have filed a bug about this so we don't forget: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1787 Best regards, Bart Frank Warmerdam wrote: > Bart van den Eijnden (OSGIS) wrote: > >> The question is then, what would the correct/intended behaviour be? >> >> Probably a warning in the GetCapabilities WCS response would be the >> way to go, the warning stating that wcs_bandcount is not set and has >> a default value of 1, just like WMS does. > > >> Shoaib Burq wrote: >> >>> Bart/Frank do u think its worth filing a bug on this? >> > > Shoaib / Bart, > > Yes, please do file a bug. I would like a chance to dig through why the > problem occurs as it does. If nothing better comes to mind Bart's > solution > would be a good start. > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From rubydunes at YAHOO.COM Mon May 22 11:25:32 2006 From: rubydunes at YAHOO.COM (rubydunes) Date: Mon, 22 May 2006 11:25:32 -0700 Subject: Feature Selection/Get Info Message-ID: Hi folks. I'm still having trouble getting field values after selecting a feature. As far as I can tell, I have the layer def and the template file setup right, and the field names are a perfect match. When I select a feature with a selection tool, it seems like a feature is found and the template file for the shapefile (Parcels.html) is launched... but I don't get any of the field tags filled in with actual data. All I see are the field tags themselves. I'm sure I'm missing something simple, and any ideas are much appreciated. Since I didn't see much documentation on how to do this, it must either be very simple to do or there should be some more instructions somewhere. Below is the layer definition for Parcels.shp and following that is the template for the query, Parcels.html. Seems like I need to change something in the way the map form sends the values. Here's the layer def for the Parcels shapefile: LAYER NAME Parcels TYPE POLYGON STATUS ON DATA Parcels TRANSPARENCY 45 TOLERANCE 3 TOLERANCEUNITS PIXELS CLASSITEM OID MAXSCALE 0 MINSCALE 0 SYMBOLSCALE 10000 LABELITEM 'PARCELID' LABELMAXSCALE 20000 LABELMINSCALE 0 TRANSFORM TRUE CLASS EXPRESSION /./ TEMPLATE 'Parcels.html' NAME Parcels COLOR 197 217 151 OUTLINECOLOR 60 79 30 LABEL FORCE TRUE WRAP '@' COLOR 0 0 0 SHADOWCOLOR 64 0 0 SHADOWSIZE 0 0 TYPE TRUETYPE FONT courier SIZE 4 ANTIALIAS TRUE POSITION CC PARTIALS FALSE MINDISTANCE 1 BUFFER 1 END END END In my template (Parcels.html) that gets launched after the query for Parcels shapefile I just have a couple of test fields. The file is simply: [PARCELID] [STREET] Thanks!!!!! Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jfuch at INDEC.MECON.GOV.AR Mon May 22 11:54:19 2006 From: jfuch at INDEC.MECON.GOV.AR (Fuchs Juan Carlos) Date: Mon, 22 May 2006 15:54:19 -0300 Subject: RV: PostGis Join, wont show up map Message-ID: > Hi Folks! > Im struggling with a weird problem > Here the scenario: > Linux, HostGis 10 buildup, Mapserver 4.6, Postgres 8. up > address to try out http://200.32.100.173 > from the Hostgis menu, the PostGres JOIN failed option. > > from the map file > MAP # Abrir mapa > # > DEBUG ON > NAME MapaDinamico > STATUS ON > SIZE 604 604 > > EXTENT 1688948.00 3785439.00 5996706.00 7725558.00 > > UNITS METERS > DATAPATTERN "/var/www/mapdata/" > SHAPEPATH "/var/www/mapdata/tiles/" > FONTSET "/var/www/mapdata/fonts.inc" > IMAGECOLOR 255 255 255 > IMAGETYPE GIF > > OUTPUTFORMAT > NAME GIF > DRIVER "GD/GIF" > FORMATOPTION "INTERLACE=ON" > MIMETYPE "image/gif" > IMAGEMODE PC256 > END > > # web interface definition > > WEB > # the template for browsing mode > TEMPLATE "/var/www/htdocs/example/main.html" > IMAGEPATH "/var/www/mapdata/www/temp/" > IMAGEURL "/temp/" > LOG Mapserverlog.txt > END > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE truetype > FONT Vera > SIZE 7 > COLOR 0 0 0 > END > STATUS ON > END > > PROJECTION > "init=epsg:22193" > END > .... > > the layer that works ... > > #****************************************************************** > #************** PostGresSQL Radios Rurales FAJA 3 ***************** > #****************************************************************** > > LAYER > CONNECTIONTYPE postgis > NAME "delpostgis-gisdata-sql" > CONNECTION "user=myuser password=mypassword dbname=mydb > host=localhost" > DATA "the_geom FROM paisradp" > STATUS OFF > TYPE POLYGON > MAXSCALE 25000000 > MINSCALE 100 > PROJECTION > "init=epsg:22193" > END > CLASS > STYLE > RANGEITEM "symbol" > DATARANGE 1 6 > COLORRANGE 255 255 178 189 0 38 > END > END > END > > > #****************************************************************** > #**************FIN PostGresSQL Radios Rurales FAJA 3 ************** > #****************************************************************** > > the layer that dont work ... > > #****************************************************************** > #************** PostGresSQL Pob Total Radios Rurales FAJA 3 ******* > #****************************************************************** > > LAYER > CONNECTIONTYPE postgis > NAME "delpostgis-mapas-mymap-sql" > CONNECTION "user=myuser password=mypassword dbname=mydb > host=localhost" > DATA "SELECT a.the_geom, a.gid, a.tpp_t, a.idcompuesto FROM > (SELECT p.idcompuesto, p.tpp_t, m.* > FROM prov01 m LEFT JOIN > poblacion_provincia p > ON p.idcompuesto = m.prov > WHERE p.idcompuesto <> '02') > AS algo a > USING UNIQUE gid > USING SRID=22193" > > STATUS OFF > TYPE POLYGON > PROJECTION > "init=epsg:22193" > END > CLASS > STYLE > RANGEITEM "algo.tpp_t" > DATARANGE 99356 13708902 #1 40000 > COLORRANGE 255 255 178 189 0 38 > OUTLINECOLOR 0 0 0 > #COLOR 200 200 200 > END > END > END > > > #****************************************************************** > #**************FIN PostGresSQL Pob Tot Radios Rurales FAJA 3 ****** > #****************************************************************** > > end # end of layer > > the log from MapServer > > Mon May 22 15:29:37 2006, > 9930, > 172.26.68.166, > MapaDinamico, > 4, > 1434001.464365 3784641.243572 6251652.535635 7726355.756428, > -1.000000 -1.000000, > delpostgis-mapas-mymap-sql pais_prov , > normal execution > > ??? but the map does not show up ??? > > May some one give me a hand with this, please !!! > > Thanks in advance > > Juan Carlos Fuchs. > > From Steve.Lime at DNR.STATE.MN.US Mon May 22 12:12:30 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 22 May 2006 14:12:30 -0500 Subject: MapServer Itasca demo error Message-ID: Sara: After the demo was written 'none' became a MapServer keyword. You can fix by editing demo.map and quoting 'none' on the line in question. Steve >>> Sarah Parrott 5/20/2006 6:56:23 AM >>> Hi, I'm trying to get the itasca demo for mapserver working. I've changed the parameters in the HTML file so I can get the initial screen up ok. when I click 'Initialise' I get the following: getString(): Symbol definition error. Parsing error near (none):(line 44) The URL it is going to is: http://localhost/cgi-bin/mapserv.exe?map=c%3A%2Fms4w%2Fapache%2Fhtdocs%2Fitasca%2Fdemo.map&layer=lakespy2&layer=dlgstln2&zoomsize=2&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=C%3A%2Fms4w%2Ftmp&map_web_imageurl=%2Ftmp%2F Does anyone know what might be going on? I haven't changed anything except the paths in the html file. Cheers, Sparrott From mauro_0211 at YAHOO.COM Mon May 22 12:19:23 2006 From: mauro_0211 at YAHOO.COM (Andres Mauricio Ramirez) Date: Mon, 22 May 2006 14:19:23 -0500 Subject: Problems with example 1.9 Message-ID: Hi list, I am trying to do the mapserver tutorial but I have had problems with the example 1.9, I have the next html code: Ejem1_9
The first part, mode map or mode static works fine, the image is showed, but the second part doesn't work, the image is not showed. And when I click on image missed it bring me the next error: msEvalRegex(): Regular expression error. String ([map]) failed expression test. I don't know what happen, please help me, I thought that problems was Fedora core 4 and I changed to windows, in both I have the same problem. Regards, Mauricio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Mon May 22 13:25:27 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 22 May 2006 22:25:27 +0200 Subject: STYLEITEM=Auto removes labels In-Reply-To: <4471D902.4070005@speerit.nl> Message-ID: Hi, In http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1435 i was proposing that msOGRGetAutoStyle should change only the settings that exist in the data source and have a suitable value. However i did not look into it in more detail and how to achieve this. Another problem with the current autostyle implementation is the delay loading of the style if the layer is not displayed at a given scale, so the legend does not reflect theese styles until the first shape is rendered. Best Regards, Tamas Szekeres -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jelmer Baas Sent: Monday, May 22, 2006 5:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] STYLEITEM=Auto removes labels Hi list, Quick question: if I set a layer to STYLEITEM "AUTO", the labels for that layer disapear. Is there any way to override this? I want to use the settins from my source file (mapInfo .TAB file), just WITH labels. Any ideas? -- Jelmer Baas -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 2006.05.22. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 2006.05.22. From fluyoz at HOTMAIL.COM Mon May 22 15:29:13 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Mon, 22 May 2006 17:29:13 -0500 Subject: problems with msWMSLoadGetMapParams Message-ID: Hi I am constructing my WMS, but it leaves east message to me - msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels. some recommendation to investigate thanks Fernando Luyo -------------- next part -------------- An HTML attachment was scrubbed... URL: From uchoa at OPENGEO.COM.BR Mon May 22 14:47:23 2006 From: uchoa at OPENGEO.COM.BR (Helton Nogueira Uchoa) Date: Mon, 22 May 2006 21:47:23 +0000 Subject: new software: phpPgGIS Message-ID: Hi list, I'd like to present a new FOSS GIS aplication! phpPgGIS is a PHP Web system to manager PostgreSQL/PostGIS. It was developed under the phpPgAdmin and the MapServer. It's simple and make easy to manager spatial data in PostGIS. More information: http://sourceforge.net/projects/phppggis/ Best regards, Uchoa -- Helton UCHOA :: uchoa@{opengeo.com.br;geolivre.org.br;open3dgis.org} Consultant in Free Software for Geomatics - 55 21 8272-4899 OpenGEO :: On-demand training and solutions :: www.opengeo.com.br Geolivre Conference 2007 :: FOSS GIS solutions :: www.geolivre.org GEO Livre community:: Because Geoinformation should be free :: www.geolivre.org.br Open3DGIS.org :: The Open Source Web 3D GIS :: www.open3dgis.org Be free by using Free Software, such as MapServer, uDIG, Open 3D GIS, QGIS... -------------- next part -------------- A non-text attachment was scrubbed... Name: uchoa.vcf Type: text/x-vcard Size: 173 bytes Desc: not available URL: From ben at REMOTEINFORMATION.COM.AU Mon May 22 18:25:38 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Tue, 23 May 2006 09:25:38 +0800 Subject: shptree & .qix files Message-ID: G'day all, I have a very large shapefile, which with various queries to produce a multilayered map depending on data in a MSSQL database is taking 145 seconds to render a map (using php/mapscript). A simpler (but still 50MB) shapefile is producing a map in about 2 secs. The time is all in the $map->draw() statement, so looking around for ways to speed it up, i realised that it wasn't indexed. After running shptree on it, and getting a .qix file, it was taking just as long... aha you say, and yes, you were right, I was still calling "map.shp"! So I changed that to just "map", and now it takes 194 seconds? Needless to say, I changed it back to .shp, back to 145 seconds. My understanding (from the mapserver site) is that shapefiles are the default format for mapserver, and that creating an index should speed them up, not slow them down. have I misinterpreted this, or am I way over my head. The queries in MSSQL are taking negligible time, the php script is taking negligible time, this is over a wireless LAN, so it must be the mapserver engine. I appreciated Stuart's suggestions for speed, but we have already given up reprojection, and none of these files have any projection associated with them as far as I can tell... how can I tell? cheers Ben -- Ben Madin Remote Information Pty Ltd t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From ben at REMOTEINFORMATION.COM.AU Mon May 22 18:38:54 2006 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Tue, 23 May 2006 09:38:54 +0800 Subject: label___scale confusion, or, Can I find out the scale? Message-ID: Hopefully a quick one, but I am struggling with getting labels to display when zoomed in. the mapscript seems to be working OK, as the output mapfile looks OK, but the labels choose to either display or not throughout the resulting map whether I zoom in or out. Ignore the actual values as I have tried quite a range in both orders! LABELITEM "ADMIN1" LABELMAXSCALE 5e+006 LABELMINSCALE 10 METADATA END NAME "default_layer" PROJECTION "proj=latlong" "ellps=WGS84" END My questions are : 1. can I find the actual value of the "scale" and display it on the screen (realising that it has no value to the user) (ideally in php- mapscript) 2. how does reprojecting the map affect the scale, and if we reproject, for which projection do we have to specify when the labels are added. (to expand on 2, the map is ulitmately reprojected to orthographic) cheers Ben -- Ben Madin t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From A.Versteegen at BOM.GOV.AU Mon May 22 18:35:33 2006 From: A.Versteegen at BOM.GOV.AU (Adrian Versteegen) Date: Tue, 23 May 2006 11:35:33 +1000 Subject: imagemap not following bounding box Message-ID: Hi, I am trying to produce an imagemap using mapserver 4.8.3 cgi. The issue is that I can't seem to make it respect the bounding box or image size specified in the url request. When trying the shp2img utility with the -e flag, the extents are obeyed and the html is produced for the restricted area. The image and the imagemap are produced by a perl script calling the mapserv executable with the following commands: http://my_url/mapserver/mapserv?map="/mapserver/simple.map&version=1.1.1&service=WMS&request=GetMap&layers=${layers}&bbox=${bbox}&height=${height}&width=${width} http://my_url/mapserver/mapserv?map="/mapserver/simple.map&qlayer=name_tag&mode=nquery&searchmap=true&bbox=${bbox}&height=${height}&width=${width} The aim being that with the bbox, height and width variables we can alter the image to suit a particular client. This works well with the image but the imagemap insists on sticking to the size and extent from the original map file. How do we make the imagemap use the bounding box and size restrictions? Or am I going about it the hard way and should be using mapscript? Thanks, Adrian Extract of map file: MAP NAME "WEATHER" SIZE 600 600 UNITS kilometers EXTENT 0 0 5232 5965 SHAPEPATH "/shp/" FONTSET "fonts/font.list" SYMBOLSET "symbols/symbols.dat" IMAGECOLOR 172 212 232 WEB TEMPLATE "/htdocs/aust.html" IMAGEPATH "/temp/" IMAGEURL "/temp/" END PROJECTION "proj=merc" # coordinates are of lower left corner "lon_0=111e" "y_0=6075085" # 48.0s "units=km" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME imagemap DRIVER "imagemap" MIMETYPE "text/html" END LAYER NAME name_tag STATUS on DATA 'latest_obs' PROJECTION "proj=latlong" END TYPE point LABELITEM "Name" TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" CLASS COLOR -1 -1 -1 LABEL POSITION AUTO OFFSET 1 1 TYPE TRUETYPE FONT verdana ANTIALIAS true SIZE 8 COLOR 0 0 0 END END END # end layer END # map file bodytemplate.html: [Name] From Antti.Roppola at BRS.GOV.AU Mon May 22 20:44:07 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Tue, 23 May 2006 13:44:07 +1000 Subject: shptree & .qix files Message-ID: Hi Ben, If your map extent takes in the whole shapefile, the index will return all the geometries in the shapefile. In such a case, the index would in fact be an overhead as you end up reading every polygon from map.shp anyway. You can test this by zooming into a small portion of the layer. If the index is working, the performance increase should be noticeable as the index will tell Mapserver to skip reading sections of the shapefile that are not in the viewed extent. This is all of course quite separate from any database attribute joins being done. If you have a complex query against a database that then does an atrribute based filtering, that'll add time as well. If your geometries and attribute query were in the same database, the database query planner would be abe to pick a balanced strategy for you (or at the least tell you which part of the query was causing the problem). Antti -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin Sent: Tuesday, 23 May 2006 11:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shptree & .qix files G'day all, I have a very large shapefile, which with various queries to produce a multilayered map depending on data in a MSSQL database is taking 145 seconds to render a map (using php/mapscript). A simpler (but still 50MB) shapefile is producing a map in about 2 secs. The time is all in the $map->draw() statement, so looking around for ways to speed it up, i realised that it wasn't indexed. After running shptree on it, and getting a .qix file, it was taking just as long... aha you say, and yes, you were right, I was still calling "map.shp"! So I changed that to just "map", and now it takes 194 seconds? Needless to say, I changed it back to .shp, back to 145 seconds. My understanding (from the mapserver site) is that shapefiles are the default format for mapserver, and that creating an index should speed them up, not slow them down. have I misinterpreted this, or am I way over my head. The queries in MSSQL are taking negligible time, the php script is taking negligible time, this is over a wireless LAN, so it must be the mapserver engine. I appreciated Stuart's suggestions for speed, but we have already given up reprojection, and none of these files have any projection associated with them as far as I can tell... how can I tell? cheers Ben -- Ben Madin Remote Information Pty Ltd t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From baas at SPEERIT.NL Mon May 22 23:23:29 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 23 May 2006 08:23:29 +0200 Subject: STYLEITEM=Auto removes labels In-Reply-To: <44721e0f.522e67b7.478a.5014@mx.gmail.com> Message-ID: Tamas Szekeres wrote: > In http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1435 i was proposing > that msOGRGetAutoStyle should change only the settings that > exist in the data source and have a suitable value. However i did not look > into it in more detail and how to achieve this. > > Another problem with the current autostyle implementation is the delay > loading of the style if the layer is not displayed at a given scale, so the > legend does not reflect theese styles until the first shape is rendered. I saw your thread some time ago, but it's something different, in my eyes. I would like a way to let my MapInfo file to set style properties for my layers, but I still want to override certain properties (like displaying a label). -- Jelmer Baas From b.vdeijnden at AGI.RWS.MINVENW.NL Mon May 22 02:05:41 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 22 May 2006 11:05:41 +0200 Subject: about the Apache error.log file. Message-ID: Hi, Mapserver also logs debug info to the Apache error log, or any other file you specify with MS_ERRORFILE. This only happens if DEBUG is set on your MAP or LAYER objects. So if you don't want it, remove the DEBUG statements from your MAP file. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Zhonghai Wang Verzonden: maandag 22 mei 2006 10:55 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] about the Apache error.log file. Hi guys, if I open the error.log file in the Apache Logs folder, there is some info like this: >>>[Mon May 22 10:44:35 2006] [error] [client 127.0.0.1 ] msDrawMap() total time: 1.031s\r which means there is an msDrawMap() error occurs, but actually the map image is successfully returned to the web browser, and it takes only 1.031 second. why does this error message appear? a mistake from MapServer or something really happened? thanks for any info. zhonghai Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Tue May 23 01:25:33 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 23 May 2006 11:25:33 +0300 Subject: label___scale confusion, or, Can I find out the scale? Message-ID: Hi, Being not a label specialist, either, here is one whole layer that worked just fine for me when I made my trial with LABELMAXSCALE. Regards, -Jukka Rahkonen- LAYER NAME "siat" STATUS ON DATA "AIvalvonta.qix" TYPE POINT CLASSITEM "ELAINLAJI" UNITS METERS SIZEUNITS METERS SYMBOLSCALE 5 LABELITEM "TKTUNNUS" LABELMAXSCALE 100000 TOLERANCE 1 TOLERANCEUNITS PIXELS FILTER ([ELAINLAJI] =03) FILTERITEM "ELAINLAJI" MAXFEATURES 10000 TEMPLATE "../../../../../../..//ms101/data/query.html" METADATA "wms_title" "siat" END PROJECTION END CLASS NAME "siat" LABEL TYPE BITMAP SIZE MEDIUM POSITION AUTO COLOR 150 0 200 END STYLE SYMBOL 7 COLOR 150 0 200 OUTLINECOLOR 0 0 0 MINSIZE 10 MAXSIZE 10 END END END ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Ben Madin L?hetetty: ti 23.5.2006 4:38 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] label___scale confusion, or, Can I find out the scale? Hopefully a quick one, but I am struggling with getting labels to display when zoomed in. the mapscript seems to be working OK, as the output mapfile looks OK, but the labels choose to either display or not throughout the resulting map whether I zoom in or out. Ignore the actual values as I have tried quite a range in both orders! LABELITEM "ADMIN1" LABELMAXSCALE 5e+006 LABELMINSCALE 10 METADATA END NAME "default_layer" PROJECTION "proj=latlong" "ellps=WGS84" END My questions are : 1. can I find the actual value of the "scale" and display it on the screen (realising that it has no value to the user) (ideally in php- mapscript) 2. how does reprojecting the map affect the scale, and if we reproject, for which projection do we have to specify when the labels are added. (to expand on 2, the map is ulitmately reprojected to orthographic) cheers Ben -- Ben Madin t/f: 08 9192 5535 m: 0448 887 220 ben at remoteinformation.com.au From M.J.Pritchard at RL.AC.UK Tue May 23 01:28:29 2006 From: M.J.Pritchard at RL.AC.UK (Pritchard, MJ (Matt)) Date: Tue, 23 May 2006 09:28:29 +0100 Subject: Dbox with other projections Message-ID: Any tips on how to use the new dbox example with layers that are in other projections (e.g. external WMS layers in epsg:4326) ? Thanks, Matt ------------------------------------------- NERC Earth Observation Data Centre Space Science & Technology Dept. CCLRC Rutherford Appleton Laboratory Chilton, Didcot OX11 0QX 01235 445645 (tel) / 445848 (fax) http://www.neodc.rl.ac.uk/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue May 23 02:23:59 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 23 May 2006 11:23:59 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) In-Reply-To: <2534c4120605220742vce9464ck9577925a4d750196@mail.gmail.com> Message-ID: Hi guys, any further ideas for this topic? l am really overwhelmed by it. since I have a amount of small GIF+TAB files, if I really need to create worldfiles for all the GIFs, it will be a huge project and seems not be possible. thanks a lot for any idea I can try. zhonghai On 5/22/06, Zhonghai Wang wrote: > > Hi, > > I've checked using "mapserv -v" and the GIF is supported. > > but it's strange that I can not performed "gdalinfo --formats" or > "gdal-congif --formats" to check if the GIF format is supported. I am using > the precomplied MS4W on WinXP. Does this mean that my gdal utility is not > really working? but I still can use some commands such as "gdalinfo" and > "gdal_translate". > > zhongahi > > On 5/22/06, Zhonghai Wang wrote: > > > > Hi guys, > > > > I get some info again from the "Raster Dat Access" document, and it > > indicates that: > > > > **** > > GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer > > will also be able to read GIF files for raster layers. The only way to > > georeference GIF files is with a world file. > > > > If GD is not configured with GIF support, it may still be available in > > GDAL > > > > **** > > > > Is it true that GIF raster images can only be georeferenced with a > > worldfiles? TAB files are not supported? > > > > zhonghai > > On 5/22/06, Zhonghai Wang wrote: > > > > > > Hi guys, > > > > > > I've found a way to do that, like this: > > > > > > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt > > > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt > > > > > > and this works well. > > > > > > but georeferencing information in the TAB file can not be found by the > > > command, an error message is something like: > > > > > > >>>no georeferencing info is available, gdaltindex performance will be > > > skipped. > > > > > > actually there is georeferencing info in the TAB file, for each small > > > gif image there is a corresponding TAB, e.g.: > > > *** > > > !table > > > !version 300 > > > !charset WindowsLatin1 > > > > > > Definition Table > > > File "m_1_1_1000.gif" > > > Type "RASTER" > > > (5.290517,48.2308475) (1392,987) Label "Pt 1", > > > (5.25001439194036,48.25) (0,0) Label "Pt 2", > > > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3", > > > (5.33101960805964,48.25) (2784,0) Label "Pt 4", > > > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" > > > CoordSys Earth Projection 1, 104 > > > Units "degree" > > > *** > > > > > > why can it not be read by gdal? > > > > > > thanks a lot > > > zhonghai > > > > > > On 5/22/06, Mateusz Loskot wrote: > > > > > > > Rahkonen Jukka wrote: > > > > > Very first you can try giving the full path to your images, I mean > > > > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > > > > > > > It should not be the case. > > > > I've checked gdaltindex from latest FWTools on Windows and > > > > it works with relative and absolute paths. > > > > Also, you can use forward or back slash: > > > > > > > > gdaltindex test.shp data/*.tif > > > > > > > > gdaltindex test.shp data\*.tif > > > > > > > > Although, gdaltindex usage message suggests to use the former > > > > version > > > > with Unix-like forward slash. > > > > > > > > Cheers > > > > -- > > > > Mateusz ?oskot > > > > http://mateusz.loskot.net > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Tue May 23 08:06:04 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 23 May 2006 14:06:04 -0100 Subject: gdaltindex raster files (MapInfo gif + tab format) {Scanned} {Scanned} In-Reply-To: <2534c4120605230223o2409c4a3tcf864bd32f12b862@mail.gmail.com> Message-ID: Hi, You must create world files from mapinfo tabs. I could do it by an awk script, but my case was special. Nonearth coordinates and the four corners were given in the tab files and no rotation. ^ y |3 4 +----------+ | | | | +----------+ ------> x 1 2 tab file contains raster coordinates like (0,0) for point 3 and the world coordinates. you can get the first row in the world file: (x2 - x1) / (col2 - col1) called dx The second and third rows are zeros if no rotation fourth row (y3 - y1) / (row3 - row1) called dy (it is always negative) the last two rows are the x,y coordinates of the center of the top-left pixel x3 + dx / 2 y3 + dy / 2 I hope this helps you Zoltan On Tue, 23 May 2006, Zhonghai Wang wrote: > Hi guys, any further ideas for this topic? l am really overwhelmed by it. since I have a amount of small GIF+TAB files, if I really need to create worldfiles for all the GIFs, it will be a huge project and seems not be possible. thanks a lot for any idea I can try. zhonghai On 5/22/06, Zhonghai Wang wrote: > > Hi, > > I've checked using "mapserv -v" and the GIF is supported. > > but it's strange that I can not performed "gdalinfo --formats" or > "gdal-congif --formats" to check if the GIF format is supported. I am using > the precomplied MS4W on WinXP. Does this mean that my gdal utility is not > really working? but I still can use some commands such as "gdalinfo" and > "gdal_translate". > > zhongahi > > On 5/22/06, Zhonghai Wang wrote: > > > > Hi guys, > > > > I get some info again from the "Raster Dat Access" document, and it > > indicates that: > > > > **** > > GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer > > will also be able to read GIF files for raster layers. The only way to > > georeference GIF files is with a world file. > > > > If GD is not configured with GIF support, it may still be available in > > GDAL > > > > **** > > > > Is it true that GIF raster images can only be georeferenced with a > > worldfiles? TAB files are not supported? > > > > zhonghai > > On 5/22/06, Zhonghai Wang wrote: > > > > > > Hi guys, > > > > > > I've found a way to do that, like this: > > > > > > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt > > > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt > > > > > > and this works well. > > > > > > but georeferencing information in the TAB file can not be found by the > > > command, an error message is something like: > > > > > > >>>no georeferencing info is available, gdaltindex performance will be > > > skipped. > > > > > > actually there is georeferencing info in the TAB file, for each small > > > gif image there is a corresponding TAB, e.g.: > > > *** > > > !table > > > !version 300 > > > !charset WindowsLatin1 > > > > > > Definition Table > > > File "m_1_1_1000.gif" > > > Type "RASTER" > > > (5.290517,48.2308475) (1392,987) Label "Pt 1", > > > (5.25001439194036,48.25) (0,0) Label "Pt 2", > > > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3", > > > (5.33101960805964,48.25) (2784,0) Label "Pt 4", > > > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" > > > CoordSys Earth Projection 1, 104 > > > Units "degree" > > > *** > > > > > > why can it not be read by gdal? > > > > > > thanks a lot > > > zhonghai > > > > > > On 5/22/06, Mateusz Loskot wrote: > > > > > > > Rahkonen Jukka wrote: > > > > > Very first you can try giving the full path to your images, I mean > > > > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > > > > > > > It should not be the case. > > > > I've checked gdaltindex from latest FWTools on Windows and > > > > it works with relative and absolute paths. > > > > Also, you can use forward or back slash: > > > > > > > > gdaltindex test.shp data/*.tif > > > > > > > > gdaltindex test.shp data\*.tif > > > > > > > > Although, gdaltindex usage message suggests to use the former > > > > version > > > > with Unix-like forward slash. > > > > > > > > Cheers > > > > -- > > > > Mateusz ?oskot > > > > http://mateusz.loskot.net > > > > > > > > > > > > > From mauro_0211 at YAHOO.COM Tue May 23 05:50:33 2006 From: mauro_0211 at YAHOO.COM (Andres Mauricio Ramirez) Date: Tue, 23 May 2006 07:50:33 -0500 Subject: shapefile with z and m values Message-ID: Hi List I have a shapefile with z and m values, mapserver don't show me the map, can mapserver read that? Mauricio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Tue May 23 05:55:30 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 23 May 2006 14:55:30 +0200 Subject: gdaltindex raster files (MapInfo gif + tab format) {Scanned} {Scanned} In-Reply-To: Message-ID: Hi Zoltan, using external script code snippets to create worldfiles is sure an option for this case, but I do not know how to use awk script, I hear it for the first time. I realize that all my GIFs may be merged into one large TIF image using gdal_merge.py command, but unfortunately I can not use it under MS4W 4.8.1, because this command only can be performed under Python support. I am now trying to do it in this way, but I am not sure if it works. thanks for your ideas zhonghai On 5/23/06, Siki Zoltan wrote: > > Hi, > > You must create world files from mapinfo tabs. > I could do it by an awk script, but my case was special. > Nonearth coordinates and the four corners were given in the tab files and > no rotation. > ^ y > |3 4 > +----------+ > | | > | | > +----------+ ------> x > 1 2 > > tab file contains raster coordinates like (0,0) for point 3 and the world > coordinates. > > you can get the first row in the world file: > (x2 - x1) / (col2 - col1) called dx > The second and third rows are zeros if no rotation > fourth row > (y3 - y1) / (row3 - row1) called dy (it is always negative) > the last two rows are the x,y coordinates of the center of the top-left > pixel > x3 + dx / 2 > y3 + dy / 2 > > I hope this helps you > > Zoltan > > On Tue, 23 May 2006, Zhonghai Wang wrote: > > > Hi guys, > > any further ideas for this topic? > > l am really overwhelmed by it. > > since I have a amount of small GIF+TAB files, if I really need to create > worldfiles for all the GIFs, it will be a huge project and seems not be > possible. > > thanks a lot for any idea I can try. > > zhonghai > > On 5/22/06, Zhonghai Wang wrote: > > > > Hi, > > > > I've checked using "mapserv -v" and the GIF is supported. > > > > but it's strange that I can not performed "gdalinfo --formats" or > > "gdal-congif --formats" to check if the GIF format is supported. I am > using > > the precomplied MS4W on WinXP. Does this mean that my gdal utility is > not > > really working? but I still can use some commands such as "gdalinfo" and > > "gdal_translate". > > > > zhongahi > > > > On 5/22/06, Zhonghai Wang wrote: > > > > > > Hi guys, > > > > > > I get some info again from the "Raster Dat Access" document, and it > > > indicates that: > > > > > > **** > > > GIF: If GD is configured with GIF (OUTPUT=GIF) support, then MapServer > > > will also be able to read GIF files for raster layers. The only way to > > > georeference GIF files is with a world file. > > > > > > If GD is not configured with GIF support, it may still be available in > > > GDAL > > > > > > **** > > > > > > Is it true that GIF raster images can only be georeferenced with a > > > worldfiles? TAB files are not supported? > > > > > > zhonghai > > > On 5/22/06, Zhonghai Wang wrote: > > > > > > > > Hi guys, > > > > > > > > I've found a way to do that, like this: > > > > > > > > c:\.....rasterdata>dir /b /s tem\*.gif > index.txt > > > > c:\.....rasterdata>gdaltindex index.shp --optfile index.txt > > > > > > > > and this works well. > > > > > > > > but georeferencing information in the TAB file can not be found by > the > > > > command, an error message is something like: > > > > > > > > >>>no georeferencing info is available, gdaltindex performance will > be > > > > skipped. > > > > > > > > actually there is georeferencing info in the TAB file, for each > small > > > > gif image there is a corresponding TAB, e.g.: > > > > *** > > > > !table > > > > !version 300 > > > > !charset WindowsLatin1 > > > > > > > > Definition Table > > > > File "m_1_1_1000.gif" > > > > Type "RASTER" > > > > (5.290517,48.2308475) (1392,987) Label "Pt 1", > > > > (5.25001439194036,48.25) (0,0) Label "Pt 2", > > > > (5.25001439194036 ,48.211695) (0,1974) Label "Pt 3", > > > > (5.33101960805964,48.25) (2784,0) Label "Pt 4", > > > > (5.33101960805964,48.211695) (2784,1974) Label "Pt 5" > > > > CoordSys Earth Projection 1, 104 > > > > Units "degree" > > > > *** > > > > > > > > why can it not be read by gdal? > > > > > > > > thanks a lot > > > > zhonghai > > > > > > > > On 5/22/06, Mateusz Loskot wrote: > > > > > > > > > Rahkonen Jukka wrote: > > > > > > Very first you can try giving the full path to your images, I > mean > > > > > > c:\...\rasterdata\tem\*.gif. Let's see what happens. > > > > > > > > > > It should not be the case. > > > > > I've checked gdaltindex from latest FWTools on Windows and > > > > > it works with relative and absolute paths. > > > > > Also, you can use forward or back slash: > > > > > > > > > > gdaltindex test.shp data/*.tif > > > > > > > > > > gdaltindex test.shp data\*.tif > > > > > > > > > > Although, gdaltindex usage message suggests to use the former > > > > > version > > > > > with Unix-like forward slash. > > > > > > > > > > Cheers > > > > > -- > > > > > Mateusz ?oskot > > > > > http://mateusz.loskot.net > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuarteve at LPARCHAEOLOGY.COM Tue May 23 06:07:48 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Tue, 23 May 2006 14:07:48 +0100 Subject: shapefile with z and m values In-Reply-To: <20060523125033.9288.qmail@web36710.mail.mud.yahoo.com> Message-ID: Mauricio You can read in those shapefiles using the OGR driver: CONNECTION "/path/to/shapefile.shp" CONNECTIONTYPE OGR That should read in shapefiles with z and ms Stu Andres Mauricio Ramirez wrote: > Hi List > > I have a shapefile with z and m values, mapserver don't show me the > map, can mapserver read that? > > > Mauricio > > __________________________________________________ > Correo Yahoo! > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > Reg?strate ya - http://correo.espanol.yahoo.com/ > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From warmerdam at POBOX.COM Tue May 23 07:30:23 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 23 May 2006 10:30:23 -0400 Subject: shapefile with z and m values In-Reply-To: <44730924.7010003@lparchaeology.com> Message-ID: Stuart Eve wrote: > Mauricio > > You can read in those shapefiles using the OGR driver: > > CONNECTION "/path/to/shapefile.shp" > CONNECTIONTYPE OGR > > That should read in shapefiles with z and ms Andres, Stuart's suggestion should get you around such a problem. > Andres Mauricio Ramirez wrote: >> Hi List >> >> I have a shapefile with z and m values, mapserver don't show me the >> map, can mapserver read that? But in general, MapServer should be able to read shapefiles with z and m and just drop the extra portions of the coordinate if things are not configured for z/m support. If this is not the case, and you are using MapServer 4.8.3, then please submit a bug report with test data and a test map that we can use to easily reproduce the problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Steve.Lime at DNR.STATE.MN.US Tue May 23 07:42:59 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 23 May 2006 09:42:59 -0500 Subject: Dbox with other projections Message-ID: Matt: DBox is projection independent in that it treats everything as a plane. Basically it works like MapServer in that respect. You can change map units so that scale matches what MapServer is computing. I believe there is a setUnits method for the mapserv object. MapServer itself handles the WMS portion on the server so as long as things are setup correctly in the mapfile then you should be good. Steve >>> "Pritchard, MJ (Matt)" 05/23/06 3:28 AM >>> Any tips on how to use the new dbox example with layers that are in other projections (e.g. external WMS layers in epsg:4326) ? Thanks, Matt ------------------------------------------- NERC Earth Observation Data Centre Space Science & Technology Dept. CCLRC Rutherford Appleton Laboratory Chilton, Didcot OX11 0QX 01235 445645 (tel) / 445848 (fax) http://www.neodc.rl.ac.uk/ From toni at SIGTE.UDG.ES Tue May 23 07:47:52 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 23 May 2006 16:47:52 +0200 Subject: wms raster image changes symbols colors In-Reply-To: <2534c4120605220155ydec890fge0c269712d17774d@mail.gmail.com> Message-ID: hi, I have a wms layer. When is on, it changes the color (from red to green) of another layer of symbols. I have mapserver 4.6.1 this is my wms layer. Anyone know what's happening? LAYER NAME Ortofoto_5000 TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://galileo.icc.es/wms/servlet/icc_orto5m_r_r?REQUEST=map&LAYERS=Ortofoto_5000&STYLES=&FORMAT=png&version=1.1.1" MINSCALE 999 MAXSCALE 10000 METADATA "wms_name" "Ortofoto_5000" "wms_server_version" "1.1.1" "wms_srs" "epsg:23031" "wms_format" "image/png" END PROJECTION "init=epsg:23031" END END From jmckenna at DMSOLUTIONS.CA Tue May 23 07:47:23 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 23 May 2006 10:47:23 -0400 Subject: MapServer Itasca demo error In-Reply-To: <23c59e280605200456p3201a2c7ud2919019ec19a325@mail.gmail.com> Message-ID: Sorry this won't help now, but just letting everyone know that there is a pre-configured itasca demo available as a package for MS4W (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). jeff Sarah Parrott wrote: > Hi, > > I'm trying to get the itasca demo for mapserver working. I've changed > the parameters in the HTML file so I can get the initial screen up ok. > when I click 'Initialise' I get the following: > > getString(): Symbol definition error. Parsing error near (none):(line 44) > > The URL it is going to is: > > http://localhost/cgi-bin/mapserv.exe?map=c%3A%2Fms4w%2Fapache%2Fhtdocs%2Fitasca%2Fdemo.map&layer=lakespy2&layer=dlgstln2&zoomsize=2&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=C%3A%2Fms4w%2Ftmp&map_web_imageurl=%2Ftmp%2F > > > Does anyone know what might be going on? I haven't changed anything > except the paths in the html file. > > Cheers, > Sparrott -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From fsozzi at INTERCAD.CH Tue May 23 08:26:46 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Tue, 23 May 2006 17:26:46 +0200 Subject: troubles: QueryByAttributes on an ESRI Personal Geodatabase Message-ID: Anybody has any experience on using PHP mapscript queryByAttributes on an ESRI Personal Geodatabase connected via OGR? If I specify a field and a value it works, but if I try to specify a complex filter it fails: $layer->queryByAttributes("DESCR","Aerial railway",MS_MULTIPLE); //it works $layer->queryByAttributes("DESCR","DESCR = 'Aerial railway'",MS_MULTIPLE); //it fails $layer->queryByAttributes("DESCR","[DESCR] = 'Aerial railway'",MS_MULTIPLE); //it fails $layer->queryByAttributes("DESCR","'[DESCR]' = 'Aerial railway'",MS_MULTIPLE); //it fails Any suggestions?... Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhjr at HDDESIGN.COM Sun May 21 22:24:43 2006 From: dhjr at HDDESIGN.COM (David Huttleston Jr) Date: Mon, 22 May 2006 00:24:43 -0500 Subject: Enabling WMS server functions with Python Mapscript Message-ID: Myunghwa Hwang writes: > Hello! > > I developed a web map service by using Python Mapscript. > This application is based on CGI, that is, > basic CGI in Apache executes python script. > I didn't use mod_python. > Till now, I didn't include any tags for metadata in my map file, so now I want to include them. > I looked at how-to doc in MapServer homepage, and got a question. > The doc says for wms_onlineresource I have to use the url of mapserv cgi. > But if I do that, it means that I have to use mapserv cgi for distributing my data > and also use a simple cgi using python for my application, doesn't it? The mapserv cgi script has a bumpy record wrt security. And, you will bump into structural limitations soon after your app becomes non-trivial. IMHO the mapserv cgi is a useful tool early in a project's life, but not beyond. When you are using Mapscript, the python script takes the place of the mapserv cgi wrt crafting URLs and such. > And this structure seems to be wierd. > I found a python script for providing metadata and it used mod_python. > > So if I use mod_python, then don't I need to use mapserv? > Is there any way for WMS by using only python without any changes? I don't know WMS via mapserver well enough to comment. > The next question is if I use mod_python, can I improve the performance of my application? > I wonder if other people using python and mapserver prefer mod_python to simple cgi. Apache modules like mod_python and mod_perl have bumpy record as well. They greatly increase the complexity of maintaining the security and stability of apache. These issues can be moderated by segmenting different apache instances by their role in your server cluster. Segmenting is achieved using apache instances running on separate servers or as jailed processes. IMO this is a waste of time since better solutions are easier. For example, use mod_fastcgi (see www.fastcgi.com). It is a simple way to run your CGI programs as a persistent process, with all the efficiency mod_python provides, without the risks associated with mod_python and friends. Another way for pythonistas is cherrypy (see www.cherrypy.org) which is my personal favorite. You can run a python http server with about 10 lines of plumbing code. Use apache as the front door for access control and encryption, then expose the cherrypy server via ProxyPass. > Thanks for your answers ^^. > > from Myunghwa Hwang Your welcome, and good luck. David Huttleston Jr From ealpert at DIGITALGLOBE.COM Tue May 23 11:04:32 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 23 May 2006 12:04:32 -0600 Subject: shapefile with z and m values Message-ID: I submitted a bug, which FrankW fixed last week that was preventing Mapserver from display POLYGONZ shape types (15). Also I believe there is a compile option for building mapserver such that it will access the z and m values. ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andres Mauricio Ramirez Sent: Tuesday, May 23, 2006 6:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shapefile with z and m values Hi List I have a shapefile with z and m values, mapserver don't show me the map, can mapserver read that? Mauricio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcgrawj at AGR.GC.CA Tue May 23 11:46:49 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Tue, 23 May 2006 14:46:49 -0400 Subject: OGR failing on Linux with Premature end of script headers Message-ID: Thank you, Frank, Ethan and Steve for your responses regarding this problem. The issue has been solved thanks to your help!! It turned out that the libgdal library that was being used was one that was compiled with a previous version and never upgraded along with our upgrades to MapServer. That's been fixed. Our current version of MapServer is now finding its correct corresponding version of libgdal.so and all's right with the world (well my world anyway). Thanks again for your help!! jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG National Land and Water Information Service/Service national sur les terres et les eaux Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: McGraw, Joanne Sent: Thursday, May 18, 2006 4:46 PM To: 'Ethan Alpert'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Thanks for the script, Ethan. I'll keep it for the future. Frank's last suggestion allowed me to see that we are not pointing to the same library MapServer was compiled with. I'll need to talk to the system administrator tomorrow about this. Thanks everyone! I'll let you know how it goes... jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, May 18, 2006 4:39 PM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Here's a little PHP script you can put in your document root to see what the environment variables are for apache. If you don't have access to httpd.conf your going to have trouble unless you can install your shared libraries in a path apache already knows about. HTTP_{$vars[$i]}_VARS"; if(is_array(${"HTTP_{$vars[$i]}_VARS"})) { echo ''; foreach(${"HTTP_{$vars[$i]}_VARS"} as $var=>$val) { echo ""; if($php_version<410) { $GLOBALS["_{$vars[$i]}"][$var] = $val; } unset($$key); } echo '
$var$val
'; } unset(${"HTTP_{$vars[$i]}_VARS"}); } ?> -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Thursday, May 18, 2006 2:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers I did. There's about six of them. I don't have access to the Apache config files. Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca www.agr.gc.ca/nlwis-snite -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, May 18, 2006 4:17 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers Try "locate libgdal" which should show you where all copies of files with libgdal in the name are located on your system. -Steve McGraw, Joanne wrote: > Hi Frank, > Nice to hear from you! Hope all is well down your way. No gloating about the Senators loss. > > I tried your suggestion and didn't get any additional information: > > [mcgrawj at siswebdev temp]$/server/dev4.wms1/bin/shp2img -m /data/dev1.wms1.www/htdocs/gdas/temp/map1147200518.map -o junk.png > Segmentation fault > [mcgrawj at siswebdev temp]$ > > I'm trying to track down which version of libgdal.so we're actually pointing to, but will have to wait to talk to the configuration manager for that machine. I feel it is entirely possible (likely?) that old versions of the libraries are being used. > > Thanks for the suggestion. > jtm > > Joanne T. McGraw > GIS Data Analyst / Analyste des donn?es du SIG > Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada > Telephone/T?l?phone: 613 759-6103 > Facsimile/T?l?copieur: 613 759-1937 > 960 Carling Ave, Bldg. 20, Rm. 1136 > Ottawa, Ontario > K1A 0C6 > > mcgrawj at agr.gc.ca > www.agr.gc.ca/nlwis-snite > > > -----Original Message----- > From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam > Sent: Thursday, May 18, 2006 3:44 PM > To: McGraw, Joanne > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR failing on Linux with Premature end of script headers > > McGraw, Joanne wrote: > >>LAYER NAME "ecozones" DATA "ecozones" >> >># CONNECTION "/ms4w_1.4.0/Apache/htdocs/dev1/data/ecozones.shp" # >>CONNECTIONTYPE OGR # DATA "SELECT * FROM ecozones" >> >>: END >> >>In the browser, when I enter the following URL with the above definition, >>the image appears fine: >>http://host/cgi-bin/mapserv?map=/server_path/Apache/htdocs/map_nojoin.map&mode=map&layer=ecozones >> >> >>However, if I comment the 'DATA "ecozones"' line and uncomment the lines >>referring to OGR, the image displays correctly from a Windows server; so, >>I'm fairly confident the syntax in the file is fine. But, the same map file >>(with a different path to the ecozones.shp file obviously) gives the >>"Premature end of script headers" error. >> >>Any pointers as to how I can identify what is causing the error are greatly >>appreciated. I'm stuck! > > > Joanne, > > You might want to try "shp2img" on your map file as it will generally give > you better error messages. In fact, I usually see specific messages for > missing shared libraries in my Apache error_log, so I'm surprised you don't > see more details. Perhaps an old OGR (libgdal.so) is getting picked up > in your case and this is causing a crash without details. > > Good luck, From drewtimmins at GMAIL.COM Tue May 23 12:18:33 2006 From: drewtimmins at GMAIL.COM (Andrew Timmins) Date: Tue, 23 May 2006 15:18:33 -0400 Subject: is this possible (make file) Message-ID: Hello, I am wondering if this is possible. On my map I allow the user to click and add many points on the map. The page stores the the X and Y of where the user clicked. I would like to take that information and convert it to a polygon shape and store it in ANY readable GIS application format (i.e .shp...) Any ideas ? right now I can allow users to draw the polygon on the map (using flash......) but i need to convert these spatial points to be read later on my other users who browse the map Andrew Timmins -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Tue May 23 12:36:35 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Tue, 23 May 2006 21:36:35 +0200 Subject: is this possible (make file) In-Reply-To: Message-ID: Le Mardi 23 Mai 2006 21:18, Andrew Timmins a ?crit?: > Hello, > > I am wondering if this is possible. > > On my map I allow the user to click and add many points on the map. > The page stores the the X and Y of where the user clicked. > > I would like to take that information and convert it to a polygon shape and > store it in ANY readable GIS application format (i.e .shp...) > > Any ideas ? > > right now I can allow users to draw the polygon on the map (using > flash......) but i need to convert these spatial points to be read later on > my other users who browse the map > > > Andrew Timmins Hi Andrew, If using MapScript, no problem. Here is a piece of old php_mapscript code that read several points from a point layer ("ctmppoint") and create a new poly shape in the $sln layer (all layers are shapefiles). You may have to update it a bit, ie the id in the dbf file is always set to 0, which might not be what you want... but you have the basic mapscript functions, check for them in the doc. Hope it helps. Blaise //// $stype=3; //// for line layer ///// $stype=5; //// for poly layer ///// $sclose=1; //// put first point at the end to close poly //// $shapepath=$gpoMap->{shapepath}; $stmp="/ctmppoint"; $pointshpFileName="$shapepath"."$stmp"; $pointshpFile = ms_newShapeFileObj($pointshpFileName,-1); $numpoint=$pointshpFile->{numshapes}; if ( (($numpoint>1) and ($stype==3)) or (($numpoint>2) and ($stype=="5")) ) { $stmp="/$sln"; //// $sln=name of the line or poly layer //// $lineshpFileName="$shapepath"."$stmp"; $lineshpFile = ms_newShapefileObj($lineshpFileName,-2); $newShp = ms_newShapeObj(MS_SHP_LINE); $aLine = ms_newLineObj(); for ($ipoint=0; $ipoint<$numpoint;$ipoint++) { $pointshp=$pointshpFile->getShape($ipoint); $pointshpline=$pointshp->line(0); $pointshppoint=$pointshpline->point(0); $pt2x=$pointshppoint->{x}; $pt2y=$pointshppoint->{y}; $aLine->addXY($pt2x, $pt2y); } if ($sclose==1) { $pointshp=$pointshpFile->getShape(0); $pointshpline=$pointshp->line(0); $pointshppoint=$pointshpline->point(0); $pt2x=$pointshppoint->{x}; $pt2y=$pointshppoint->{y}; $aLine->addXY($pt2x, $pt2y); } $newShp->add($aLine); $lineshpFile->addShape($newShp); $aLine->free(); $newShp->free(); $dbFile = dbase_open($lineshpFileName,2); $c=0; ////// id=0 - may have to change that... //// dbase_add_record($dbFile,$c); dbase_close($dbFile); $lineshpFile->free(); } $pointshpFile->free(); From pcreso at PCRESO.COM Tue May 23 12:45:34 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 23 May 2006 12:45:34 -0700 Subject: Can mapserver (OGR) access data stored in Informix spatial datablade??? In-Reply-To: <4472316B.2000204@opengeo.com.br> Message-ID: We are looking at alternatives to ArcIMS to build web mapping applications which access data stored in Informix. Dies anyone know if mapsrver (or OGR) is able to read & plot such data? Thanks, Brent Wood From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Tue May 23 13:56:23 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Tue, 23 May 2006 16:56:23 -0400 Subject: WFS without geometry? Message-ID: Hello, Is it possible to get features from a WFS without the geometry being automatically included? There are cases (many, actually) where I want to query attributes, but am not interested in the geometry. In many cases there, it's a problem, because the feature are very big, and I suffer a big performance impact from the geometry being there, even though I don't need it. I tried: GML_EXCLUDE_ITEMS "msGeometry" And GML_GEOMETRIES "" Without any luck ... Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From Adam.Ratcliffe at GEOSMART.CO.NZ Tue May 23 17:21:36 2006 From: Adam.Ratcliffe at GEOSMART.CO.NZ (Adam Ratcliffe) Date: Wed, 24 May 2006 12:21:36 +1200 Subject: Routing Solution Message-ID: Hi, I?m interested in looking at any routing solutions that integrate with MapServer to provide the following features: - Shortest or quickest route calculation - Driving directions - Flexible API - Good performance Any suggestions? Cheers Adam From s.pashby at POSTGRAD.CURTIN.EDU.AU Tue May 23 18:05:56 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Wed, 24 May 2006 01:05:56 +0000 Subject: Routing Solution Message-ID: Adam Ratcliffe GEOSMART.CO.NZ> writes: > > Hi, > > I?m interested in looking at any routing solutions that integrate with > MapServer to provide the following features: > > - Shortest or quickest route calculation > - Driving directions > - Flexible API > - Good performance > > Any suggestions? > > Cheers > Adam > > Hi, You could try ... http://chris.narx.net/2005/12/14/build-your-own-routing-solution/ ... this might be of some help. Never tried it myself, but he seems to know what he's talking about ! Cheers, Steve. From Steve.Lime at DNR.STATE.MN.US Tue May 23 20:35:06 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 23 May 2006 22:35:06 -0500 Subject: WFS without geometry? Message-ID: J.F.: If you are using the development version then yes, just set: GML_GEOMETRIES "none" That modification is not part of 4.8.x... Steve >>> "Doyon, Jean-Francois" 05/23/06 3:56 PM >>> Hello, Is it possible to get features from a WFS without the geometry being automatically included? There are cases (many, actually) where I want to query attributes, but am not interested in the geometry. In many cases there, it's a problem, because the feature are very big, and I suffer a big performance impact from the geometry being there, even though I don't need it. I tried: GML_EXCLUDE_ITEMS "msGeometry" And GML_GEOMETRIES "" Without any luck ... Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From warmerdam at POBOX.COM Tue May 23 21:03:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 May 2006 00:03:58 -0400 Subject: Can mapserver (OGR) access data stored in Informix spatial datablade??? In-Reply-To: <20060523194535.44786.qmail@web33215.mail.mud.yahoo.com> Message-ID: Brent Wood wrote: > We are looking at alternatives to ArcIMS to build web mapping applications > which access data stored in Informix. > > Dies anyone know if mapsrver (or OGR) is able to read & plot such data? Brent, I am not aware of any code or effort to support informix spatial datablade in OGR. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From tom at MAPLINK.JP Wed May 24 00:41:24 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Wed, 24 May 2006 16:41:24 +0900 Subject: LABEL BACKGROUND COLOR Message-ID: Hi, I have a question I hope someone knows the answer to. I want to use the Label Background Color, but when I use it the text isn't centered, and it just looks bad. Is there a way to center the text on the backgroundcolor [billboard]? Also, I'm using Japanese text, so does that make a difference? Thank you, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Wilmes at GMX.DE Wed May 24 00:42:32 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 24 May 2006 09:42:32 +0200 Subject: EXTENSION in WMS-Mapfile using WFS Message-ID: Hi All, I'm writing a WMS-Mapscript. For one Layer I'm getting the data from a WFS, which is set up by me too. Now I want to set an Extension in the Mapscript of the WMS like that: LAYER NAME "WFS" TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wfs_typename" "myWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" END PROJECTION "init=EPSG:31467" END CLASS NAME test EXPRESSION ([test] > 1) SYMBOL "Punkt" SIZE 10 COLOR 255 0 0 END END Testing the WMS sends the following error: msDrawMap(): Image handling error. Failed to draw layer named 'RosoftWFS'. msOGRLayerInitItemInfo(): OGR error. Invalid Field name: len So what could be the reason of the error? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From zhonghaiw at GMAIL.COM Wed May 24 02:12:02 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 24 May 2006 11:12:02 +0200 Subject: mapfile configuration problem -- MapServer for IIS Message-ID: Hi guys, I am trying to install MapServer with IIS, and I've done all the things following this doc: http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS but there are some problems with the mapfile path configuration, I set the paths like this: 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" IMAGEURL "C:\ms4w\tmp\ms_tmp\" 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference map (in the Reference object) the IMAGEURL and IMAGE paths do not work, because the generated map images, scalebar and reference map are already there, and the browser can not find and display them. did I made some mistakes when I set the paths? P.S: in the Internet Services Manager I set the ms_tmp and tmp folder readable and writable. thanks for any tips zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Wed May 24 01:44:02 2006 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Wed, 24 May 2006 02:44:02 -0600 Subject: mscross developers? Message-ID: Hello folks, I stumbled across mscross (http://datacrossing.crs4.it/en_Documentation_Overlay_Example.html) and have been messing around with it. This ought to be a killer app replacement for Google Map. I have to admit, I tried ka-map! but I could never get it to work properly in IIS6. Here's what I managed to do in a brief afternoon: http://canadianarachnology.dyndns.org/mscross/test.asp?SpeciesCode=3860 (Warning: this is still very much in production and doesn't yet appear to work in IE7Beta2). I am writing to inquire if there are any javascript developers who might be interested in making something like a stripped-down Google-like API using this great tool. I have some ideas for this, but haven't got the time to implement all of them. I contacted the folks at Datacrossing about this but haven't yet heard from them. David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 Phone: 1-780-492-3080 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Wed May 24 02:26:22 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 24 May 2006 11:26:22 +0200 Subject: mapfile configuration problem -- MapServer for IIS In-Reply-To: <2534c4120605240212h56b84d80m1e635982cd0b4deb@mail.gmail.com> Message-ID: Zhongai, your imageurl should be an URL, not a path, e.g. http://localhost/ms_tmp Leave the last slash in your imagepath. It is also ok only to use forward slashes. Cheers, Till Zhonghai Wang schrieb: > Hi guys, > > I am trying to install MapServer with IIS, and I've done all the > things following this doc: > > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS > > but there are some problems with the mapfile path configuration, I set > the paths like this: > > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" > IMAGEURL "C:\ms4w\tmp\ms_tmp\" > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference > map (in the Reference object) > > the IMAGEURL and IMAGE paths do not work, because the generated map > images, scalebar and reference map are already there, > and the browser can not find and display them. did I made some > mistakes when I set the paths? > > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder > readable and writable. > > thanks for any tips > > zhonghai -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From fluyoz at HOTMAIL.COM Wed May 24 07:56:03 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Wed, 24 May 2006 09:56:03 -0500 Subject: EXTENSION in WMS-Mapfile using WFS Message-ID: Hi This can help you http://mapserver.gis.umn.edu/docs/howto/wfs_client GREETINGS Fernando Luyo Investigaci?n y Desarrollo Superintendencia de Bienes Nacionales - Per? www.sbn.gob.pe ----- Original Message ----- From: "Christian Wilmes" To: Sent: Wednesday, May 24, 2006 2:42 AM Subject: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS > Hi All, > > I'm writing a WMS-Mapscript. For one Layer I'm getting the data from a > WFS, which is set up by me too. Now I want to set an Extension in the > Mapscript of the WMS like that: > > > LAYER > NAME "WFS" > TYPE POINT > STATUS ON > DEBUG ON > CONNECTIONTYPE WFS > CONNECTION "http://localhost/cgi-bin/mapserv.exe?" > METADATA > "wfs_typename" "myWFS" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > END > > > PROJECTION > "init=EPSG:31467" > END > > > CLASS > NAME test > EXPRESSION ([test] > 1) > SYMBOL "Punkt" > SIZE 10 > COLOR 255 0 0 > END > END > > > Testing the WMS sends the following error: > > msDrawMap(): Image handling error. Failed to draw layer > named 'RosoftWFS'. msOGRLayerInitItemInfo(): OGR error. Invalid Field > name: len > > > So what could be the reason of the error? > > Best Regards > Christian > -- > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > From Tom.Kralidis at EC.GC.CA Wed May 24 08:04:32 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 24 May 2006 11:04:32 -0400 Subject: EXTENSION in WMS-Mapfile using WFS Message-ID: Sounds like a server issue. What happens if you try to access the server "by hand", i.e. http://URL-to-your-WFS?version=1.0.0&service=WFS&request=GetCapabilities http://URL-to-your-WFS?version=1.0.0&service=WFS&request=DescribeFeature Type Where URL-to-your-WFS is the CONNECTION directive. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes > Sent: Wednesday, May 24, 2006 3:43 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS > > > Hi All, > > I'm writing a WMS-Mapscript. For one Layer I'm getting the > data from a WFS, which is set up by me too. Now I want to set > an Extension in the Mapscript of the WMS like that: > > > LAYER > NAME "WFS" > TYPE POINT > STATUS ON > DEBUG ON > CONNECTIONTYPE WFS > CONNECTION "http://localhost/cgi-bin/mapserv.exe?" > METADATA > "wfs_typename" "myWFS" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > END > > > PROJECTION > "init=EPSG:31467" > END > > > CLASS > NAME test > EXPRESSION ([test] > 1) > SYMBOL "Punkt" > SIZE 10 > COLOR 255 0 0 > END > END > > > Testing the WMS sends the following error: > > msDrawMap(): Image handling error. Failed > to draw layer named 'RosoftWFS'. msOGRLayerInitItemInfo(): > OGR error. Invalid Field name: len > > > So what could be the reason of the error? > > Best Regards > Christian > -- > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > From zhonghaiw at GMAIL.COM Wed May 24 08:19:01 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 24 May 2006 17:19:01 +0200 Subject: mapfile configuration problem -- MapServer for IIS In-Reply-To: <447426BE.5090304@terrestris.de> Message-ID: thanks guys, after I set the imageurl as http://localhost/ms_tmp, MapServer works well again. URL should be a real URL, that's it. I am trying now to install MapServer with IIS 6 on Windows 2003, the same configurations as on WinXP do not work on Windows 2003 any more, and I can not even open the mapserver initial page. I've searched in our list achieves, somebody says that there may be some problems with IIS 6, but I still can not figure out where the problem is. could anyone give me clues? thanks for any tips. zhonghai On 5/24/06, Till Adams wrote: > > Zhongai, > > your imageurl should be an URL, not a path, e.g. > > http://localhost/ms_tmp > > Leave the last slash in your imagepath. It is also ok only to use > forward slashes. > > Cheers, Till > > Zhonghai Wang schrieb: > > > Hi guys, > > > > I am trying to install MapServer with IIS, and I've done all the > > things following this doc: > > > > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS > > > > but there are some problems with the mapfile path configuration, I set > > the paths like this: > > > > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" > > IMAGEURL "C:\ms4w\tmp\ms_tmp\" > > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" > > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. > > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference > > map (in the Reference object) > > > > the IMAGEURL and IMAGE paths do not work, because the generated map > > images, scalebar and reference map are already there, > > and the browser can not find and display them. did I made some > > mistakes when I set the paths? > > > > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder > > readable and writable. > > > > thanks for any tips > > > > zhonghai > > > -- > ****************************************** > * released: AmeiN! ArcMap-Export-2-UMN * > * LiveLinux 'WebGIS on CD' * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * http://www.terrestris.de > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Wed May 24 08:25:22 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 24 May 2006 11:25:22 -0400 Subject: [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS Message-ID: Hi Did you enabled CGI extensions in IIS? If not, you can do this in the IIS Manager under the Web Services Extensions folder. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Zhonghai Wang Envoy? : 24 mai 2006 11:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS thanks guys, after I set the imageurl as http://localhost/ms_tmp, MapServer works well again. URL should be a real URL, that's it. I am trying now to install MapServer with IIS 6 on Windows 2003, the same configurations as on WinXP do not work on Windows 2003 any more, and I can not even open the mapserver initial page. I've searched in our list achieves, somebody says that there may be some problems with IIS 6, but I still can not figure out where the problem is. could anyone give me clues? thanks for any tips. zhonghai On 5/24/06, Till Adams wrote: Zhongai, your imageurl should be an URL, not a path, e.g. http://localhost/ms_tmp Leave the last slash in your imagepath. It is also ok only to use forward slashes. Cheers, Till Zhonghai Wang schrieb: > Hi guys, > > I am trying to install MapServer with IIS, and I've done all the > things following this doc: > > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS > > but there are some problems with the mapfile path configuration, I set > the paths like this: > > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" > IMAGEURL "C:\ms4w\tmp\ms_tmp\" > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference > map (in the Reference object) > > the IMAGEURL and IMAGE paths do not work, because the generated map > images, scalebar and reference map are already there, > and the browser can not find and display them. did I made some > mistakes when I set the paths? > > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder > readable and writable. > > thanks for any tips > > zhonghai -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed May 24 08:55:55 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 24 May 2006 17:55:55 +0200 Subject: [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED52BE9D@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, thanks so much for your info. After I enabled the CGI extension, it works well. But if I tried to open the application using this url: http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map the application can not be opened, the following error message is returned instead: *** CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. **** I am a newbie in Windows server things, I very appreciate it if you light me a little bit more. zhonghai On 5/24/06, Fortin,Nicolas [SteFoy] wrote: > > Hi > > Did you enabled CGI extensions in IIS? If not, you can do this in the IIS > Manager under the Web Services Extensions folder. > > Nicolas > > -----Message d'origine----- > *De :* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *De > la part de* Zhonghai Wang > *Envoy? :* 24 mai 2006 11:19 > *? :* MAPSERVER-USERS at LISTS.UMN.EDU > *Objet :* Re: [UMN_MAPSERVER-USERS] mapfile configuration problem -- > MapServer for IIS > > thanks guys, after I set the imageurl as http://localhost/ms_tmp, > MapServer works well again. URL should be a real URL, that's it. > > I am trying now to install MapServer with IIS 6 on Windows 2003, the same > configurations as on WinXP do not work on Windows 2003 any more, and I can > not even open the mapserver initial page. > > I've searched in our list achieves, somebody says that there may be some > problems with IIS 6, but I still can not figure out where the problem is. > > could anyone give me clues? > > thanks for any tips. > > zhonghai > > On 5/24/06, Till Adams wrote: > > > > Zhongai, > > > > your imageurl should be an URL, not a path, e.g. > > > > http://localhost/ms_tmp > > > > Leave the last slash in your imagepath. It is also ok only to use > > forward slashes. > > > > Cheers, Till > > > > Zhonghai Wang schrieb: > > > > > Hi guys, > > > > > > I am trying to install MapServer with IIS, and I've done all the > > > things following this doc: > > > > > > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS > > > > > > but there are some problems with the mapfile path configuration, I set > > > > > the paths like this: > > > > > > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" > > > IMAGEURL "C:\ms4w\tmp\ms_tmp\" > > > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" > > > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. > > > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference > > > map (in the Reference object) > > > > > > the IMAGEURL and IMAGE paths do not work, because the generated map > > > images, scalebar and reference map are already there, > > > and the browser can not find and display them. did I made some > > > mistakes when I set the paths? > > > > > > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder > > > readable and writable. > > > > > > thanks for any tips > > > > > > zhonghai > > > > > > -- > > ****************************************** > > * released: AmeiN! ArcMap-Export-2-UMN * > > * LiveLinux 'WebGIS on CD' * > > * http://www.terrestris.de * > > ****************************************** > > > > ------------------------------------------ > > > > Dipl. Geogr. Till Adams > > terrestris, H. Paulsen& T. Adams GbR > > Siemensstr. 8 * 53121 Bonn > > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > > info at terrestris.de * http://www.terrestris.de > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Wed May 24 11:42:16 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 24 May 2006 14:42:16 -0400 Subject: SLD and ExternalGraphic formats Message-ID: Hi, We're using an SLD to custom symbolize some point data with an ExternalGraphic ref, and resulting behaviour is as expected, until we try to symbolize with ExternalGraphic. Snippet below: GIF ...however, when I change the Format element to "image/gif", the OGC:WMS server (powered by MapServer) does not symbolize based on the ExternalGraphic def. When looking at latest CVS, mapogcsld.c, line 2146, it looks like they take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG", "image/gif", "image/png"), but this is not evident in the GetMap output. Examples: Working SLD: http://devgeo.cciw.ca/ms_tmp/pw7.sld Working GetMap / SLD request: http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci w.ca/ms_tmp/pw7.sld Non-Working SLD (only difference is changing GIF to image/gif http://devgeo.cciw.ca/ms_tmp/pw8.sld Non-Working GetMap / SLD request: http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci w.ca/ms_tmp/pw8.sld ..Tom From Steve.Lime at DNR.STATE.MN.US Wed May 24 11:53:22 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 24 May 2006 13:53:22 -0500 Subject: LABEL BACKGROUND COLOR Message-ID: It's been awhile since I visited that code but I'm pretty sure the background box is computed from font metrics themselves so if those are flaky then the resulting background will be as well. It would help to see examples and the font. Steve >>> Thomas Hammerlund 5/24/2006 2:41:24 AM >>> Hi, I have a question I hope someone knows the answer to. I want to use the Label Background Color, but when I use it the text isn't centered, and it just looks bad. Is there a way to center the text on the backgroundcolor [billboard]? Also, I'm using Japanese text, so does that make a difference? Thank you, Tom From agrassic at GMAIL.COM Wed May 24 12:09:13 2006 From: agrassic at GMAIL.COM (Antonio Grassi) Date: Wed, 24 May 2006 16:09:13 -0300 Subject: Postgis column names and query size Message-ID: Hello, I would like to make a pair of questions. First, is there any reason for not sourrounding column names with double quotes when constructing the query to access a postgis layer? I've modified it because at work we have a lot of geometric tables with columns whose names are in uppercase, but it sounds strange to me that this has not changed in a lot of time. We are using mapserver since 2003 aprox, and as it hasn't changed, I just want to know if there is a technical reason for not doing this. Second, i've made a pair of functions to change the color and size of the query. I'm using 4.8.3 now. Last year somebody told me that functions to change those attributes of the query would be included in next releases, but i've not found them. Is there any way to change the color and size of the query to be drawn? And i've another question that maybe souldn't be posted in this list. At work we maintain a site that could be included in the gallery section, but I haven't seen who should I write to, does anyone know who should i contact? Well, thanks very much, Antonio Grassi PS: I'm sure somebody must have done the same questions before, but i searched in the archive and i couldn't find anything, sorry -------------- next part -------------- An HTML attachment was scrubbed... URL: From rockwell_001 at YAHOO.COM Wed May 24 12:21:54 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 24 May 2006 12:21:54 -0700 Subject: Help needed with compiling postgre sql with mapserver Message-ID: Hi all, i am trying to compile mapserver with postgre sql support. I found this documentation in the mapserver website http://mapserver.gis.umn.edu/docs/howto/win32_compiling I downloaded the MS platform sdk and installed it, when i try to run the win32.mak file in the libpq directory it still says LINK : fatal error LNK1181: cannot open input file "shfolder.lib" the shfolder.lib does exist in the the default MS platform sdk folder, do i have to change something or am i doing something wrong ... Thanks for your time .... kris --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed May 24 12:22:14 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 24 May 2006 15:22:14 -0400 Subject: SLD and ExternalGraphic formats In-Reply-To: <2576812186CDD411BF1500508B6DCE950E910BD8@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, This was a fixed before the 4.8 release ((Bug 1430). Could you confirm that the server is running that version at least ? Later, Kralidis,Tom [Burlington] wrote: > Hi, > > We're using an SLD to custom symbolize some point data with an > ExternalGraphic ref, and resulting behaviour is as expected, until we > try to symbolize with ExternalGraphic. > > Snippet below: > > > xlink:href="http://eman-rese.ca/logos/gif/EMAN_colour_black_text.gif"/> > GIF > > > ...however, when I change the Format element to "image/gif", the OGC:WMS > server (powered by MapServer) does not symbolize based on the > ExternalGraphic def. > > When looking at latest CVS, mapogcsld.c, line 2146, it looks like they > take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG", > "image/gif", "image/png"), but this is not evident in the GetMap output. > > Examples: > > Working SLD: > > http://devgeo.cciw.ca/ms_tmp/pw7.sld > > Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw7.sld > > Non-Working SLD (only difference is changing GIF to > image/gif > > http://devgeo.cciw.ca/ms_tmp/pw8.sld > > Non-Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw8.sld > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hfl at HOME.NL Wed May 24 13:31:08 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 24 May 2006 22:31:08 +0200 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <20060524192154.5615.qmail@web34205.mail.mud.yahoo.com> Message-ID: Hi Rock, i recently compiled postgreql-8.1.3 with vc6sp4 and 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img (install from virtual CD) first vcvars32 then setenv then nmake /f win32.mak after a failure you always do nmake /f win32.mak clean Regards, Huub rock well schreef: > Hi all, i am trying to compile mapserver with postgre sql support. I > found this documentation in the mapserver website > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > I downloaded the MS platform sdk and installed it, when i try to run > the win32.mak file in the libpq directory it still says > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > the shfolder.lib does exist in the the default MS platform sdk folder, > do i have to change something or am i doing something wrong ... > > Thanks for your time .... > kris > > ------------------------------------------------------------------------ > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > using Yahoo! Messenger with Voice. From rockwell_001 at YAHOO.COM Wed May 24 14:28:09 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 24 May 2006 14:28:09 -0700 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <4474C28C.3020301@home.nl> Message-ID: Thanks for your reply fleuren, yes i did the same way you told but still it give the following errors LINK : fatal error LNK1181: cannot open input file "shfolder.lib" NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' Do you know why we get these errors, or else all we need is i guess the libpqdll.lib and some dlls right, if anything doesnt work can you send me those dlls. Thanks verymuch for your help and time ... kris Huub Fleuren wrote: Hi Rock, i recently compiled postgreql-8.1.3 with vc6sp4 and 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img (install from virtual CD) first vcvars32 then setenv then nmake /f win32.mak after a failure you always do nmake /f win32.mak clean Regards, Huub rock well schreef: > Hi all, i am trying to compile mapserver with postgre sql support. I > found this documentation in the mapserver website > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > I downloaded the MS platform sdk and installed it, when i try to run > the win32.mak file in the libpq directory it still says > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > the shfolder.lib does exist in the the default MS platform sdk folder, > do i have to change something or am i doing something wrong ... > > Thanks for your time .... > kris > > ------------------------------------------------------------------------ > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > using Yahoo! Messenger with Voice. --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Wed May 24 14:39:59 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 24 May 2006 17:39:59 -0400 Subject: SLD and ExternalGraphic formats Message-ID: Assefa, I'm using latest CVS, so I'm guessing it should have the fix, but I get the behaviour as per below. ..Tom -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wed 24-May-06 15:22 To: Kralidis,Tom [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Tom, This was a fixed before the 4.8 release ((Bug 1430). Could you confirm that the server is running that version at least ? Later, Kralidis,Tom [Burlington] wrote: > Hi, > > We're using an SLD to custom symbolize some point data with an > ExternalGraphic ref, and resulting behaviour is as expected, until we > try to symbolize with ExternalGraphic. > > Snippet below: > > > xlink:href="http://eman-rese.ca/logos/gif/EMAN_colour_black_text.gif"/> > GIF > > > ...however, when I change the Format element to "image/gif", the OGC:WMS > server (powered by MapServer) does not symbolize based on the > ExternalGraphic def. > > When looking at latest CVS, mapogcsld.c, line 2146, it looks like they > take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG", > "image/gif", "image/png"), but this is not evident in the GetMap output. > > Examples: > > Working SLD: > > http://devgeo.cciw.ca/ms_tmp/pw7.sld > > Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw7.sld > > Non-Working SLD (only difference is changing GIF to > image/gif > > http://devgeo.cciw.ca/ms_tmp/pw8.sld > > Non-Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw8.sld > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Wed May 24 14:41:50 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 24 May 2006 17:41:50 -0400 Subject: SLD and ExternalGraphic formats Message-ID: Sorry about that. Wrong server I'm testing. The server in question is using 4.6.1, so I'll wait for an upgrade from them. Thanks ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Wed 24-May-06 17:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Assefa, I'm using latest CVS, so I'm guessing it should have the fix, but I get the behaviour as per below. ..Tom -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wed 24-May-06 15:22 To: Kralidis,Tom [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Tom, This was a fixed before the 4.8 release ((Bug 1430). Could you confirm that the server is running that version at least ? Later, Kralidis,Tom [Burlington] wrote: > Hi, > > We're using an SLD to custom symbolize some point data with an > ExternalGraphic ref, and resulting behaviour is as expected, until we > try to symbolize with ExternalGraphic. > > Snippet below: > > > xlink:href="http://eman-rese.ca/logos/gif/EMAN_colour_black_text.gif"/> > GIF > > > ...however, when I change the Format element to "image/gif", the OGC:WMS > server (powered by MapServer) does not symbolize based on the > ExternalGraphic def. > > When looking at latest CVS, mapogcsld.c, line 2146, it looks like they > take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG", > "image/gif", "image/png"), but this is not evident in the GetMap output. > > Examples: > > Working SLD: > > http://devgeo.cciw.ca/ms_tmp/pw7.sld > > Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw7.sld > > Non-Working SLD (only difference is changing GIF to > image/gif > > http://devgeo.cciw.ca/ms_tmp/pw8.sld > > Non-Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw8.sld > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From C.Wilmes at GMX.DE Wed May 24 08:28:01 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 24 May 2006 17:28:01 +0200 Subject: EXTENSION in WMS-Mapfile using WFS In-Reply-To: <2576812186CDD411BF1500508B6DCE950E910BA5@ecnwri1.ontario.int.ec.gc.ca> Message-ID: The getCapabilies Document: - - - MapServer WFS WFS Server http://127.0.0.1/cgi-bin/mapserv.exe? - - - - - - - - - - - - - - - - - - - - - - myWFS myWFS EPSG:31467 - - - - - The DescribeFeature Document: - - - - - Christian >?-------- Original-Nachricht -------- >?Datum: Wed, 24 May 2006 11:04:32 -0400 >?Von: Kralidis,Tom [Burlington] >?An: Christian Wilmes , >?Betreff: RE: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS >? > Sounds like a server issue. What happens if you try to access the > server "by hand", i.e. > > http://URL-to-your-WFS?version=1.0.0&service=WFS&request=GetCapabilities > > http://URL-to-your-WFS?version=1.0.0&service=WFS&request=DescribeFeature > Type > > Where URL-to-your-WFS is the CONNECTION directive. > > ..Tom > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes > > Sent: Wednesday, May 24, 2006 3:43 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS > > > > > Hi All, > > > > I'm writing a WMS-Mapscript. For one Layer I'm getting the > > data from a WFS, which is set up by me too. Now I want to set > > an Extension in the Mapscript of the WMS like that: > > > > > LAYER > > NAME "WFS" > > TYPE POINT > > STATUS ON > > DEBUG ON > > CONNECTIONTYPE WFS > > CONNECTION "http://localhost/cgi-bin/mapserv.exe?" > > METADATA > > "wfs_typename" "myWFS" > > "wfs_version" "1.0.0" > > "wfs_request_method" "GET" > > END > > > > > PROJECTION > > "init=EPSG:31467" > > END > > > > > CLASS > > NAME test > > EXPRESSION ([test] > 1) > > SYMBOL "Punkt" > > SIZE 10 > > COLOR 255 0 0 > > END > > END > > > > > Testing the WMS sends the following error: > > > > msDrawMap(): Image handling error. Failed > > to draw layer named 'RosoftWFS'. msOGRLayerInitItemInfo(): > > OGR error. Invalid Field name: len > > > > > So what could be the reason of the error? > > > > Best Regards > > Christian > > -- > > > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > > > > -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From rockwell_001 at YAHOO.COM Wed May 24 16:07:20 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Wed, 24 May 2006 16:07:20 -0700 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <4474D282.8010206@home.nl> Message-ID: Hi fleuren the reason i dont want to use hobus mapserver is i guess it doesnt have the support for mrsid format and also sde libraries which i already have configured using the conventional mapserver. i was able to get rid of these error and was able to create the libpadll.lib but i wasnt able to create the libpq.dll file as it gave me the following error libpq.lib(fe-connect.obj) : error LNK2001: unresolved external symbol _SHGetFolderpath .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals and the execution stopped ..... i guess someone might have encountered this problem, if so can you give me some tips to solve it ..... If you dont mind fleuren can you send me the libpq.dll as an attachment as thats the only file i need to get going .... Thanks a lot for your help .... kris Huub Fleuren wrote: Hi Kris, I did feel lucky that the compile did not end with the word Stop. I'm afraid experience problems like this now with the ECW library. Maybe try the very rich .\bin directory of http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip this is a set for msvc7, so probably, issues on vc6 Regards, Huub rock well schreef: > Thanks for your reply fleuren, yes i did the same way you told but > still it give the following errors > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' > > Do you know why we get these errors, or else all we need is i guess > the libpqdll.lib and some dlls right, if anything doesnt work can you > send me those dlls. > > Thanks verymuch for your help and time ... > kris > > */Huub Fleuren /* wrote: > > Hi Rock, > > i recently compiled postgreql-8.1.3 with vc6sp4 and > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img > (install from virtual CD) > > first vcvars32 > then setenv > then nmake /f win32.mak > > after a failure you always do nmake /f win32.mak clean > > Regards, Huub > > rock well schreef: > > Hi all, i am trying to compile mapserver with postgre sql > support. I > > found this documentation in the mapserver website > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > > > I downloaded the MS platform sdk and installed it, when i try to > run > > the win32.mak file in the libpq directory it still says > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > > > the shfolder.lib does exist in the the default MS platform sdk > folder, > > do i have to change something or am i doing something wrong ... > > > > Thanks for your time .... > > kris > > > > > ------------------------------------------------------------------------ > > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > > > using Yahoo! Messenger with Voice. > > > ------------------------------------------------------------------------ > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > > for just 2?/min with Yahoo! Messenger with Voice. --------------------------------- Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min with Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Wed May 24 18:25:55 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Thu, 25 May 2006 10:25:55 +0900 Subject: LABEL BACKGROUND COLOR Message-ID: I can send a screenshot, but where should I send it to? Thank you again. Tom ----- Original Message ----- From: "Steve Lime" To: Sent: Thursday, May 25, 2006 3:53 AM Subject: Re: [UMN_MAPSERVER-USERS] LABEL BACKGROUND COLOR > It's been awhile since I visited that code but I'm pretty sure the > background box is > computed from font metrics themselves so if those are flaky then the > resulting > background will be as well. It would help to see examples and the font. > > Steve > >>>> Thomas Hammerlund 5/24/2006 2:41:24 AM >>> > Hi, > > I have a question I hope someone knows the answer to. I want to use the > Label Background Color, but when I use it the text isn't centered, and it > just looks bad. Is there a way to center the text on the backgroundcolor > [billboard]? Also, I'm using Japanese text, so does that make a > difference? > > Thank you, > Tom > > From bartvde at XS4ALL.NL Thu May 25 00:07:09 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 25 May 2006 09:07:09 +0200 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <20060524230720.3363.qmail@web34204.mail.mud.yahoo.com> Message-ID: Did you install the Platform SDK form Microsoft? See also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251 Best regards, Bart rock well wrote: Hi fleuren the reason i dont want to use hobus mapserver is i guess it doesnt have the support for mrsid format and also sde libraries which i already have configured using the conventional mapserver. i was able to get rid of these error and was able to create the libpadll.lib but i wasnt able to create the libpq.dll file as it gave me the following error > > libpq.lib(fe-connect.obj) : error LNK2001: unresolved external symbol > _SHGetFolderpath > .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals > > and the execution stopped ..... > > i guess someone might have encountered this problem, if so can you > give me some tips to solve it ..... > > If you dont mind fleuren can you send me the libpq.dll as an > attachment as thats the only file i need to get going .... > > Thanks a lot for your help .... > kris > > */Huub Fleuren /* wrote: > > Hi Kris, > > I did feel lucky that the compile did not end with the word Stop. > I'm afraid experience problems like this now with the ECW library. > > Maybe try the very rich .\bin directory of > http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip > > > this is a set for msvc7, so probably, issues on vc6 > > Regards, Huub > > > rock well schreef: > > Thanks for your reply fleuren, yes i did the same way you told but > > still it give the following errors > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' > > > > Do you know why we get these errors, or else all we need is i guess > > the libpqdll.lib and some dlls right, if anything doesnt work > can you > > send me those dlls. > > > > Thanks verymuch for your help and time ... > > kris > > > > */Huub Fleuren /* wrote: > > > > Hi Rock, > > > > i recently compiled postgreql-8.1.3 with vc6sp4 and > > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img > > (install from virtual CD) > > > > first vcvars32 > > then setenv > > then nmake /f win32.mak > > > > after a failure you always do nmake /f win32.mak clean > > > > Regards, Huub > > > > rock well schreef: > > > Hi all, i am trying to compile mapserver with postgre sql > > support. I > > > found this documentation in the mapserver website > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > > > > > I downloaded the MS platform sdk and installed it, when i try to > > run > > > the win32.mak file in the libpq directory it still says > > > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > > > > > the shfolder.lib does exist in the the default MS platform sdk > > folder, > > > do i have to change something or am i doing something wrong ... > > > > > > Thanks for your time .... > > > kris > > > > > > > > > ------------------------------------------------------------------------ > > > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > > > > > using Yahoo! Messenger with Voice. > > > > > > > ------------------------------------------------------------------------ > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > > > > for just 2?/min with Yahoo! Messenger with Voice. > > > Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min > > with Yahoo! Messenger with Voice. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dananrg at YAHOO.COM Thu May 25 04:34:54 2006 From: dananrg at YAHOO.COM (dnrg) Date: Thu, 25 May 2006 04:34:54 -0700 Subject: Can Mapserver consume web services, e.g. geocoding and photography from Google Maps or elsewhere? Message-ID: For instance, suppose I have local vector data that I want to overlay upon aerial photography / satellite imagery from Google or any other web service. Is that possible? This isn't for analysis so much as mere visual inspection. For a project I'm working on, I don't think I'll have enough local storage for the raster imagery I require. Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dwija_dey at REDIFFMAIL.COM Thu May 25 06:07:27 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Thu, 25 May 2006 13:07:27 -0000 Subject: Help needed in ImageMap Mouseover Message-ID: ? Hi List and Steve Lime Plz. donot ignore this message. I have posted a message for a help in imagemap though, i have not get any reply. I am trying to imulate the mouseover in browser/mapserver from http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap also i am keen to know from steve how to implement the mouseover that i saw in Steve limes SHPXY example in http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true . My quries are given below(Specially to Steve for the example that he has implemented). Hope this time i will get solutions from Steve/List. Thanks in advance With Regards. Pratap On Fri, 12 May 2006 Pratap wrote : > >Hi >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > My Mapfile for imagemap is: > ......... > LAYER > NAME "city" > TYPE POINT > STATUS ON > DATA "city" > CLASSITEM "name" > CLASS > NAME "CITY NAME" > EXPRESSION /A*/ > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > TEMPLATE "bodytemplate.html" > HEADER "imapheader.html" > FOOTER "imapfooter.html" > END >............ > >The content of template file bodytemplate.html is. >[name] > >Q.1)What will be the exact value of href above? > >The content of template file imapheader.html is. > > >Q.2)What will be the value of id and name above? > >The content of template file imapheader.html is. > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should >place it ? and i am using Gmap's PHP/Mapscript engine. > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. >Thanks in advance for any help. >With regards. >Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffle80 at YAHOO.CO.UK Thu May 25 06:21:04 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Thu, 25 May 2006 14:21:04 +0100 Subject: How Query By Feature Message-ID: Hi Can anyone Plz. tell me how to make a query so that after clicking the query point (Say point feature) in the map, i will be able to get all the feature(Say all point features) within a radius of say 100m in map units with center at the query point or it should draw a rectangle(in some convenient units) and inside the rectangle all the point feature is displayed. Any help will be highly appreciated. Thanks in advance. Raffle --------------------------------- All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Thu May 25 06:35:34 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Thu, 25 May 2006 15:35:34 +0200 Subject: How Query By Feature In-Reply-To: <20060525132104.36177.qmail@web27411.mail.ukl.yahoo.com> Message-ID: Le Jeudi 25 Mai 2006 15:21, raffle peter a ?crit?: > Hi > Can anyone Plz. tell me how to make a query so that after clicking > the query point (Say point feature) in the map, i will be able to get all > the feature(Say all point features) within a radius of say 100m in map > units with center at the query point or it should draw a rectangle(in some > convenient units) and inside the rectangle all the point feature is > displayed. > > Any help will be highly appreciated. > Thanks in advance. > Raffle > Hi You should play with the "Tolerance" parameter in your map file; but I'm afraid the unit is pixel, not meter. Regards Blaise From mauro_0211 at YAHOO.COM Thu May 25 06:40:47 2006 From: mauro_0211 at YAHOO.COM (Andres Mauricio Ramirez) Date: Thu, 25 May 2006 08:40:47 -0500 Subject: shapefile with z and m values Message-ID: Hi, OGR driver works ok! I attach data and .map, here! Thank you, Mauricio __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hidrante.map Type: application/octet-stream Size: 3351 bytes Desc: 453913891-hidrante.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hidrante.zip Type: application/x-zip-compressed Size: 52254 bytes Desc: 10399958-hidrante.zip URL: From assefa at DMSOLUTIONS.CA Thu May 25 06:46:39 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 25 May 2006 09:46:39 -0400 Subject: SLD : using other symbol names than the wellknown symbol In-Reply-To: <2576812186CDD411BF1500508B6DCE950E910BD8@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi There, We were thinking about supporting other symbol names inside the WellKnownName tag ? It is not in the SLD spec but addresses a limitation we often get when applying an SLD. The idea is that a symbol name that is not a well know could be mapped to an existing symbol if that symbol exists in the map. If the symbol is not found, the default symbol (square) would be used. I have entered a bug on it with the initial discussions. (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1789). Thanks. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From punkish at EIDESIS.ORG Thu May 25 07:02:24 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 25 May 2006 09:02:24 -0500 Subject: Help needed in ImageMap Mouseover In-Reply-To: <20060525130727.31466.qmail@webmail47.rediffmail.com> Message-ID: This has nothing to do with your specific query, but contains a helpful hint -- On 5/25/06, Pratap wrote: > > Hi > List and Steve Lime > > Plz. donot ignore this message. No one "ignores" anyone's message (unless that person is obnoxious or a general pain in the you-know-where). But, do realize that this is a free email list, and all are asking and answering questions because of nothing but the love of the technology they are using. No other remuneration. Be patient, post again, and again, and again, if required. Someone will pick it up and answer. Asking folks to not ignore your message is the surest way to have it ignored. And, no one specific person (by name) from the list will answer -- basically, someone will see a question, know the answer or have a suggestion, and will try to help. That's it. No more to it. -- Puneet Kishor Nelson Inst. for Env. Studies, UW-Madison Open Source Geospatial Foundation From Steve.Lime at DNR.STATE.MN.US Thu May 25 07:17:26 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 25 May 2006 09:17:26 -0500 Subject: Help needed in ImageMap Mouseover Message-ID: It would be helpfull to see the output from MapServer in this case. Can you post the HTML result (as an attachment) or send a link? Steve >>> "Pratap" 05/25/06 8:07 AM >>> Hi List and Steve Lime Plz. donot ignore this message. I have posted a message for a help in imagemap though, i have not get any reply. I am trying to imulate the mouseover in browser/mapserver from http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap also i am keen to know from steve how to implement the mouseover that i saw in Steve limes SHPXY example in http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true . My quries are given below(Specially to Steve for the example that he has implemented). Hope this time i will get solutions from Steve/List. Thanks in advance With Regards. Pratap On Fri, 12 May 2006 Pratap wrote : > >Hi >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > My Mapfile for imagemap is: > ......... > LAYER > NAME "city" > TYPE POINT > STATUS ON > DATA "city" > CLASSITEM "name" > CLASS > NAME "CITY NAME" > EXPRESSION /A*/ > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > TEMPLATE "bodytemplate.html" > HEADER "imapheader.html" > FOOTER "imapfooter.html" > END >............ > >The content of template file bodytemplate.html is. >[name] > >Q.1)What will be the exact value of href above? > >The content of template file imapheader.html is. > > >Q.2)What will be the value of id and name above? > >The content of template file imapheader.html is. > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should >place it ? and i am using Gmap's PHP/Mapscript engine. > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. >Thanks in advance for any help. >With regards. >Pratap From rockwell_001 at YAHOO.COM Thu May 25 08:37:09 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Thu, 25 May 2006 08:37:09 -0700 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <4475579D.8020907@xs4all.nl> Message-ID: yes i did install the platform sdk and there is also an shfolder.lib file in the sdk folder, though it gives me an error ..... Thanks for your reply ..... "Bart van den Eijnden (OSGIS)" wrote: Did you install the Platform SDK form Microsoft? See also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251 Best regards, Bart rock well wrote: Hi fleuren the reason i dont want to use hobus mapserver is i guess it doesnt have the support for mrsid format and also sde libraries which i already have configured using the conventional mapserver. i was able to get rid of these error and was able to create the libpadll.lib but i wasnt able to create the libpq.dll file as it gave me the following error > > libpq.lib(fe-connect.obj) : error LNK2001: unresolved external symbol > _SHGetFolderpath > .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals > > and the execution stopped ..... > > i guess someone might have encountered this problem, if so can you > give me some tips to solve it ..... > > If you dont mind fleuren can you send me the libpq.dll as an > attachment as thats the only file i need to get going .... > > Thanks a lot for your help .... > kris > > */Huub Fleuren /* wrote: > > Hi Kris, > > I did feel lucky that the compile did not end with the word Stop. > I'm afraid experience problems like this now with the ECW library. > > Maybe try the very rich .\bin directory of > http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip > > > this is a set for msvc7, so probably, issues on vc6 > > Regards, Huub > > > rock well schreef: > > Thanks for your reply fleuren, yes i did the same way you told but > > still it give the following errors > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' > > > > Do you know why we get these errors, or else all we need is i guess > > the libpqdll.lib and some dlls right, if anything doesnt work > can you > > send me those dlls. > > > > Thanks verymuch for your help and time ... > > kris > > > > */Huub Fleuren /* wrote: > > > > Hi Rock, > > > > i recently compiled postgreql-8.1.3 with vc6sp4 and > > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img > > (install from virtual CD) > > > > first vcvars32 > > then setenv > > then nmake /f win32.mak > > > > after a failure you always do nmake /f win32.mak clean > > > > Regards, Huub > > > > rock well schreef: > > > Hi all, i am trying to compile mapserver with postgre sql > > support. I > > > found this documentation in the mapserver website > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > > > > > I downloaded the MS platform sdk and installed it, when i try to > > run > > > the win32.mak file in the libpq directory it still says > > > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > > > > > the shfolder.lib does exist in the the default MS platform sdk > > folder, > > > do i have to change something or am i doing something wrong ... > > > > > > Thanks for your time .... > > > kris > > > > > > > > > ------------------------------------------------------------------------ > > > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > > > > > using Yahoo! Messenger with Voice. > > > > > > > ------------------------------------------------------------------------ > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > > > > for just 2?/min with Yahoo! Messenger with Voice. > > > Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min > > with Yahoo! Messenger with Voice. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at RMTINC.COM Thu May 25 09:04:07 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Thu, 25 May 2006 11:04:07 -0500 Subject: CGI MapServer, Dynamic Points Message-ID: I'm trying to use CGI MapServer (ie NOT MapScript) to dynamically add points to a map based on X and Y fields in a database (currently MS Access). Can someone point me in the right direction? MapServer 4.8.3 Windows, IIS TIA - ---------------------------- Chip Hankley RMT, Inc. chip.hankley at rmtinc.com 608.662.5498 (Direct) ---------------------------- Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From jsievers at CO.LINN.OR.US Thu May 25 09:58:16 2006 From: jsievers at CO.LINN.OR.US (Sievers, Jason) Date: Thu, 25 May 2006 09:58:16 -0700 Subject: Cannot change DATA object Message-ID: I am using version 4.8.3 of MapServer's CGI program. I wish to change the DATA object in a map file on the fly (via JavaScript). I am able to change objects like MINSCALE, MAXSCALE, TYPE, etc. with the syntax &MAP_layername_object=myvalue. However I cannot change the DATA object and am not sure why. Please let me know your thoughts. Jason Sievers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu May 25 10:48:43 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 25 May 2006 12:48:43 -0500 Subject: Cannot change DATA object Message-ID: Jason: There's a security hobble that by default won't allow you to change the DATA parameter. However, you can set the DATAPATTERN (see docs) parameter in your mapfile to allow this. It's basically a regex of allowable files. Steve >>> "Sievers, Jason" 5/25/2006 11:58:16 AM >>> I am using version 4.8.3 of MapServer's CGI program. I wish to change the DATA object in a map file on the fly (via JavaScript). I am able to change objects like MINSCALE, MAXSCALE, TYPE, etc. with the syntax &MAP_layername_object=myvalue. However I cannot change the DATA object and am not sure why. Please let me know your thoughts. Jason Sievers From Steve.Lime at DNR.STATE.MN.US Thu May 25 13:33:51 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 25 May 2006 15:33:51 -0500 Subject: CGI MapServer, Dynamic Points Message-ID: You mean add points dynamically to a map via a URL call to the CGI? If so that's pretty easy. There are 2 steps: 1) add a layer to symbolize the points with e.g. LAYER NAME 'site' TYPE POINT STATUS OFF CLASS SYMBOL 'circle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END 2) define the point in the URL e.g. http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/www/docs_maps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=582248.23+4841497.11 You can also add text if you define a label and use map_site_feature_text to pass the text. Steve >>> Chip Hankley 5/25/2006 11:04:07 AM >>> I'm trying to use CGI MapServer (ie NOT MapScript) to dynamically add points to a map based on X and Y fields in a database (currently MS Access). Can someone point me in the right direction? MapServer 4.8.3 Windows, IIS TIA - ---------------------------- Chip Hankley RMT, Inc. chip.hankley at rmtinc.com 608.662.5498 (Direct) ---------------------------- Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From frottoli at TISCALI.IT Thu May 25 14:14:51 2006 From: frottoli at TISCALI.IT (frottoli@tiscali.it) Date: Thu, 25 May 2006 23:14:51 +0200 Subject: How to run the latest version of JavaMapscript on Tomcat? Message-ID: Hello to everybody. Can anyone suggest me how to set up Tomcat (on Windows!) to run the latest version of Java MapScript (the version contained in ms4w)? In particular I have "mapscript.jar" and "mapscript.dll", but I have no idea where to put them in the directory structure of Tomcat. Have I also to change some enviromental variable in the system settings? And what about calling JavaMapscript in a servlet? Have I to write "import edu.umn.gis.mapscript.*;" or I have to use the command System. loadLibrary("mapscript")? I'm a newbie both in mapserver and in Java programming, too: so, please, give me the more detailed explanations as possible. Thanks to all. Rot Tiscali ADSL 4 Mega Flat Naviga senza limiti a 19,95 Euro al mese con 4 Megabps di velocita'. Attiva subito: hai 2 MESI di canone adsl GRATIS! In piu', se sei raggiunto dalla rete Tiscali, telefoni senza pagare il canone Telecom. Scopri subito come risparmiare! http://abbonati.tiscali.it/prodotti/adsl/tc/4flat/ From bpicinbono at WORLDONLINE.FR Thu May 25 15:13:30 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 26 May 2006 00:13:30 +0200 Subject: Routing Solution In-Reply-To: Message-ID: Le Mercredi 24 Mai 2006 02:21, Adam Ratcliffe a ?crit?: > Hi, > > I?m interested in looking at any routing solutions that integrate with > MapServer to provide the following features: > > - Shortest or quickest route calculation > - Driving directions > - Flexible API > - Good performance > > Any suggestions? > > Cheers > Adam Hi Adam I'm nowadays working on this subject, very interesting by the way. Dijskstra's algorithm is a good solution, but maybe not the only one. It seems that Camptocamp has got a PostgreSQL module but I've not tryed it : http://www.camptocamp.com/article138.html (I don't know if they have an english version for this page). I've build my own engine with the help of these pages : http://en.wikipedia.org/wiki/Dijkstra's_algorithm http://en.wikisource.org/wiki/Dijkstra's_algorithm On the last link, you can find some C, ActionScript, Python, PHP and Visual Basic codes. I've worked with the PHP code. As it is object oriented, I had to use php5 for routing calculation, but I have MapServer configured with php4 so I had to do a maybe not that elegant trick to have the whole stuff synchronized. It's damned powerfull and gives great results (might take some time to calculate depending on the size of your network...) I searched for a while, but didn't find any ready-to-use solution for MapServer, except maybe the Camptocamp one. I'm afraid you'll have to go through some development work. Regards Blaise From Tom.Kralidis at EC.GC.CA Thu May 25 18:35:27 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 25 May 2006 21:35:27 -0400 Subject: SLD and ExternalGraphic formats Message-ID: Assefa, The server was upgraded to 4.8.1 and this behaviour still occurs (see test cases below). Any suggestions? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Wed 24-May-06 17:41 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Sorry about that. Wrong server I'm testing. The server in question is using 4.6.1, so I'll wait for an upgrade from them. Thanks ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Wed 24-May-06 17:39 To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Assefa, I'm using latest CVS, so I'm guessing it should have the fix, but I get the behaviour as per below. ..Tom -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Wed 24-May-06 15:22 To: Kralidis,Tom [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] SLD and ExternalGraphic formats Tom, This was a fixed before the 4.8 release ((Bug 1430). Could you confirm that the server is running that version at least ? Later, Kralidis,Tom [Burlington] wrote: > Hi, > > We're using an SLD to custom symbolize some point data with an > ExternalGraphic ref, and resulting behaviour is as expected, until we > try to symbolize with ExternalGraphic. > > Snippet below: > > > xlink:href="http://eman-rese.ca/logos/gif/EMAN_colour_black_text.gif"/> > GIF > > > ...however, when I change the Format element to "image/gif", the OGC:WMS > server (powered by MapServer) does not symbolize based on the > ExternalGraphic def. > > When looking at latest CVS, mapogcsld.c, line 2146, it looks like they > take OGC:WMS 1.0.0 and 1.1.+ style of format defs (i.e. "GIF", "PNG", > "image/gif", "image/png"), but this is not evident in the GetMap output. > > Examples: > > Working SLD: > > http://devgeo.cciw.ca/ms_tmp/pw7.sld > > Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw7.sld > > Non-Working SLD (only difference is changing GIF to > image/gif > > http://devgeo.cciw.ca/ms_tmp/pw8.sld > > Non-Working GetMap / SLD request: > > http://www.eman-rese.ca/cgi-bin/mapserver/naturewatch.asp?SERVICE=WMS&VE > RSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-125.2242339821858,20.95 > 844971963387,-36.22423397781418,76.58344972236614&WIDTH=560&HEIGHT=350&L > AYERS=plantwatch&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT > =FALSE&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&sld=http://devgeo.cci > w.ca/ms_tmp/pw8.sld > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From julian at MAPSOLUTIONS.COM.AU Thu May 25 19:30:21 2006 From: julian at MAPSOLUTIONS.COM.AU (Julian Parker) Date: Fri, 26 May 2006 10:30:21 +0800 Subject: Labeling a layer - MapInfo TAB via OGR Message-ID: Greetings all, This seemed like it would be a simple problem but I have not been able to figure out how to get it working. I am trying to label a layer that is referencing a MapInfo TAB file but the labels wont show up and I have not been able to track down any info on what I am doing wrong (or I am REALLY missing something!) Below is a snippet of my MAP file: LAYER NAME "Suburbs" STATUS ON CONNECTIONTYPE OGR CONNECTION "suburbs_bdry.TAB" TYPE LINE STYLEITEM "AUTO" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS LABELCACHE on LABELITEM "SUBURB" METADATA END CLASS NAME "Suburbs" LABEL COLOR 0 0 0 SIZE 20 END END CLASS END END I can get labelling working if I convert the TAB to SHP and not use OGR but this is not a workable solution for this particular project. Thanks in advance for your help. Regards Julian Parker Systems Analyst Digital Mapping Solutions Level 2, 2 Hardy Street SOUTH PERTH WA 6151 Ph: 08 9474 6311 Fax: 08 9474 6411 Mobile: 0438 844 079 www.mapsolutions.com.au MapInfo Training | IntraMaps | InterMaps | MobileMap | News Disclaimer This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. Although every effort has been made to ensure the correctness and integrity of attachments that may be included in this email, this can only apply to the unaltered/uncorrupted form. A copy of the original attachment is available from our office should you require it. Alternately, if further verification is required please request a hard copy version. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at MAPLINK.JP Thu May 25 23:16:33 2006 From: tom at MAPLINK.JP (Thomas Hammerlund) Date: Fri, 26 May 2006 15:16:33 +0900 Subject: Filter and Transparency Question Message-ID: Hi Everyone, I have a question about filtering. My style sheet looks like this for my building layer: stroke:SlateGray;stroke-width:0.5pt; fill:#c2a988;filter:url(#dropShadow);opacity:0.8; I read through the documentation about filtering on the mapserver site, but I'm a little confused by it. Can anyone help me figure out how to add the shadow to my buildings? I don't really get the transparency/opacity aspect of it either. Here is my layer: LAYER NAME g0014 STATUS ON TILEINDEX "g0014_ix" TILEITEM "location" TYPE POLYGON # FILTERITEM 'Code' #TRANSPARENCY 92 ### Z1 CLASS MAXSCALE 2500 MINSCALE 1 # FILTER 'dropshadow' STYLE COLOR 194 169 136 END STYLE OUTLINECOLOR 112 128 144 #WIDTH 2 #OFFSET 1 -1 #SHADOW 2 END END END Thank you in advance. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Fri May 26 05:07:39 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 26 May 2006 14:07:39 +0200 Subject: strange Log info! Message-ID: Hi guys, I've installed MapServer with IIS on Windows2003, and I set the DEBUG ON at the Map object level, and also specify a MapAccess.log file for it, but the log information is not written in the MapAccess.log file, but directly written in the map browser web page, which means the log info becomes automatically one part of my map web page. It's so weird, It seems to be a magic thing.^_^ Do you think it's magic? thanks for your clues. zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Fri May 26 05:16:32 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Fri, 26 May 2006 12:16:32 -0000 Subject: Help needed in ImageMap Message-ID: ? Hi Steve I am sending the html result of the output of mapserver as a attachement. Tnaks for reply & Thanks in advance. With Regards Pratap >>>It would be helpfull to see the output from MapServer in this >>case. Can >>you post the HTML result (as an attachment) or send a link? Steve >>> "Pratap" 05/25/06 8:07 AM >>> Hi List and Steve Lime Plz. donot ignore this message. I have posted a message for a help in imagemap though, i have not get any reply. I am trying to imulate the mouseover in browser/mapserver from http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap also i am keen to know from steve how to implement the mouseover that i saw in Steve limes SHPXY example in http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true . My quries are given below(Specially to Steve for the example that he has implemented). Hope this time i will get solutions from Steve/List. Thanks in advance With Regards. Pratap On Fri, 12 May 2006 Pratap wrote : > >Hi >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > My Mapfile for imagemap is: > ......... > LAYER > NAME "city" > TYPE POINT > STATUS ON > DATA "city" > CLASSITEM "name" > CLASS > NAME "CITY NAME" > EXPRESSION /A*/ > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > TEMPLATE "bodytemplate.html" > HEADER "imapheader.html" > FOOTER "imapfooter.html" > END >............ > >The content of template file bodytemplate.html is. >[name] > >Q.1)What will be the exact value of href above? > >The content of template file imapheader.html is. > > >Q.2)What will be the value of id and name above? > >The content of template file imapheader.html is. > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should >place it ? and i am using Gmap's PHP/Mapscript engine. > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. >Thanks in advance for any help. >With regards. >Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- MapServer Assam
  Legend  
 
  Layer
Assam Road
Villages
Neighbouring State
Redraw Map
 

Neighbouring State
Capital
State Name
Established
  ASSAM  
 
 
   
  Keymap  
   



Java Mode Enabled
Click to Disable
------
  Information  
     
 
 
From zhonghaiw at GMAIL.COM Fri May 26 05:24:37 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 26 May 2006 14:24:37 +0200 Subject: [UMN_MAPSERVER-USERS] mapfile configuration problem -- MapServer for IIS In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED05EFB2@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, I've fixed the CGI error, because I need another DLL for my system to run MapServer : MSVCR71.DLL, which is not available for every Windows system. thanks a lot. zhonghai On 5/24/06, Fortin,Nicolas [SteFoy] wrote: > > Hi Zhongai, > > First, open a command window type mapserver -v > You should get something like > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Second, try to use a complete windows path for your map parameter (ex: > http://192.168.252.20/cgi-bin/mapserv.exe?map=C:\ms4w\apps\Demo\demo.map&mode=browse) > > Third, most of the problems with IIS are permissions issues. Run filemon > (http://www.sysinternals.com/Utilities/Filemon.html) while trying to > access your map and search for ACCESS DENIED in the result column. > > Hope this helps, > Nicolas > > > -----Message d'origine----- > De : Zhonghai Wang [mailto:zhonghaiw at gmail.com] > Envoy? : 24 mai 2006 13:15 > ? : Fortin,Nicolas [SteFoy] > Objet : Re: RE : [UMN_MAPSERVER-USERS] mapfile configuration problem -- > MapServer for IIS > > > Hi guys, > > here is some info about my system: > > Windows 2003 > IIS 6 > MS4W 4.8.1 > > there is no problem to open the normal web page now, such as the index > page. But if I am trying to get a map from the server using the following > URL: > > > http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map&mode=browse > > then the CGI error comes. I've read the previously posted messages, and > the same CGI error occurred also for the old mapserver version. I am trying > to fix my problem in the same way as given in those messages, but this still > does not work. > > wondering how to fix it. Any ideas? > > thanks > > zhonghai > > On 5/24/06, Zhonghai Wang wrote: > Hi Nicolas, > > thanks so much for your info. After I enabled the CGI extension, it works > well. But if I tried to open the application using this url: > > http://192.168.252.20/cgi-bin/mapserv.exe?map=/ms4w/apps/Demo/demo.map > > the application can not be opened, the following error message is returned > instead: > > *** > CGI Error > The specified CGI application misbehaved by not returning a complete set > of HTTP headers. > **** > > I am a newbie in Windows server things, I very appreciate it if you light > me a little bit more. > > zhonghai > > On 5/24/06, Fortin,Nicolas [SteFoy] wrote: > Hi > > Did you enabled CGI extensions in IIS? If not, you can do this in the IIS > Manager under the Web Services Extensions folder. > > Nicolas > -----Message d'origine----- > De : UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] De > la part de Zhonghai Wang > Envoy? : 24 mai 2006 11:19 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] mapfile configuration problem -- > MapServer for IIS > > > thanks guys, after I set the imageurl as http://localhost/ms_tmp, > MapServer works well again. URL should be a real URL, that's it. > > I am trying now to install MapServer with IIS 6 on Windows 2003, the same > configurations as on WinXP do not work on Windows 2003 any more, and I can > not even open the mapserver initial page. > > I've searched in our list achieves, somebody says that there may be some > problems with IIS 6, but I still can not figure out where the problem is. > > could anyone give me clues? > > thanks for any tips. > > zhonghai > > On 5/24/06, Till Adams wrote: > Zhongai, > > your imageurl should be an URL, not a path, e.g. > > http://localhost/ms_tmp > > Leave the last slash in your imagepath. It is also ok only to use > forward slashes. > > Cheers, Till > > Zhonghai Wang schrieb: > > > Hi guys, > > > > I am trying to install MapServer with IIS, and I've done all the > > things following this doc: > > > > http://mapserver.gis.umn.edu/docs/howto/setupiis/?searchterm=IIS > > > > but there are some problems with the mapfile path configuration, I set > > the paths like this: > > > > 1. IMAGEPATH "C:\ms4w\tmp\ms_tmp\" > > IMAGEURL "C:\ms4w\tmp\ms_tmp\" > > 2. TEMPLATE "/ms4w/apps/Demo/tmps/demomap.html" > > 3. LOG "C:/ms4w/LogFiles/MapServer.log" -- this one works well. > > 4. IMAGE "C:/ms4w/apps/Demo/images/KeyMap.gif" -- for the reference > > map (in the Reference object) > > > > the IMAGEURL and IMAGE paths do not work, because the generated map > > images, scalebar and reference map are already there, > > and the browser can not find and display them. did I made some > > mistakes when I set the paths? > > > > P.S: in the Internet Services Manager I set the ms_tmp and tmp folder > > readable and writable. > > > > thanks for any tips > > > > zhonghai > > > -- > ****************************************** > * released: AmeiN! ArcMap-Export-2-UMN * > * LiveLinux 'WebGIS on CD' * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, H. Paulsen& T. Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * http://www.terrestris.de > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chip.Hankley at RMTINC.COM Fri May 26 05:43:07 2006 From: Chip.Hankley at RMTINC.COM (Chip Hankley) Date: Fri, 26 May 2006 07:43:07 -0500 Subject: CGI MapServer, Dynamic Points In-Reply-To: Message-ID: Thanks, but I don't think that's what I was looking for. I have a bunch of observations (2000+) in a database (MS Access) where I have X and Y coordinates for each observation. I want to be able to create a layer in the mapfile that reads the database directly and plots them on a map. In the ESRI world this would be an event theme. I'm assuming that in the example provided, I would end up with a *very* long URL to make all the points appear. I got one response that said I should use OGR VRT tables, so I'm going to try that. Thanks for the respone. Chip ---------------------------- Chip Hankley RMT, Inc. chip.hankley at rmtinc.com 608.662.5498 (Direct) ---------------------------- >>> Steve Lime 5/25/2006 3:33 PM >>> You mean add points dynamically to a map via a URL call to the CGI? If so that's pretty easy. There are 2 steps: 1) add a layer to symbolize the points with e.g. LAYER NAME 'site' TYPE POINT STATUS OFF CLASS SYMBOL 'circle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END 2) define the point in the URL e.g. http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/www/docs_maps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=582248.23+4841497.11 You can also add text if you define a label and use map_site_feature_text to pass the text. Steve Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From hfl at HOME.NL Fri May 26 06:17:36 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Fri, 26 May 2006 15:17:36 +0200 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <20060525153709.92750.qmail@web34208.mail.mud.yahoo.com> Message-ID: Hi Kris. Well, in my situation it still goes oke. we need : latest postgres Windows source, latest platform SDK, visualC servicepack 4. try a reinstall of vc and sdk here's what happens on my machine E:\projects\postgresql-8.1.3\src>cl 'cl' is not recognized as an internal or external command, operable program or batch file. E:\projects\postgresql-8.1.3\src>set include Environment variable include not defined E:\projects\postgresql-8.1.3\src>set lib Environment variable lib not defined so begin. E:\projects\postgresql-8.1.3\src>vcvars32 E:\projects\postgresql-8.1.3\src>path PATH=f:\PROGRA~1\MICROS~2\Common\msdev98\BIN; F:\PROGRA~1\MICROS~2\VC98\BIN; f:\PROGRA~1\MICROS~2\Common\TOOLS\WINNT; f:\PROGRA~1\MICROS~2\Common\TOOLS; C:\WINNT\system32; C:\WINNT;C:\WINNT\System32\Wbem; d:\myutilsandcopiedbatchfiles; E:\projects\postgresql-8.1.3\src>set lib LIB=F:\PROGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB; E:\projects\postgresql-8.1.3\src>set include INCLUDE=F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PROGRA~1\MICROS~2 \VC98\MFC\INCLUDE; E:\projects\postgresql-8.1.3\src>setenv Attempting to detect a Microsoft Visual Studio installation Targeting Windows XP 32 DEBUG E:\projects\postgresql-8.1.3\src>set lib LIB=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;F:\PR OGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB; E:\projects\postgresql-8.1.3\src>set include INCLUDE=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Inclu de;F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PR OGRA~1\MICROS~2\VC98\MFC\INCLUDE; E:\projects\postgresql-8.1.3\src>nmake /f win32.mak rattle... rattle (...) All Win32 parts have been built! it's not that we're supposed to understand why or how... Regards, Huub. rock well schreef: > yes i did install the platform sdk and there is also an shfolder.lib > file in the sdk folder, though it gives me an error ..... > > Thanks for your reply ..... > > */"Bart van den Eijnden (OSGIS)" /* wrote: > > Did you install the Platform SDK form Microsoft? See also: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251 > > Best regards, > Bart > > rock well wrote: Hi fleuren the reason i dont want to use hobus > mapserver is i guess it doesnt have the support for mrsid format and > also sde libraries which i already have configured using the > conventional mapserver. i was able to get rid of these error and was > able to create the libpadll.lib but i wasnt able to create the > libpq.dll > file as it gave me the following error > > > > > libpq.lib(fe-connect.obj) : error LNK2001: unresolved external > symbol > > _SHGetFolderpath > > .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals > > > > and the execution stopped ..... > > > > i guess someone might have encountered this problem, if so can you > > give me some tips to solve it ..... > > > > If you dont mind fleuren can you send me the libpq.dll as an > > attachment as thats the only file i need to get going .... > > > > Thanks a lot for your help .... > > kris > > > > */Huub Fleuren /* wrote: > > > > Hi Kris, > > > > I did feel lucky that the compile did not end with the word Stop. > > I'm afraid experience problems like this now with the ECW library. > > > > Maybe try the very rich .\bin directory of > > > http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip > > > > > > this is a set for msvc7, so probably, issues on vc6 > > > > Regards, Huub > > > > > > rock well schreef: > > > Thanks for your reply fleuren, yes i did the same way you told but > > > still it give the following errors > > > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' > > > > > > Do you know why we get these errors, or else all we need is i > guess > > > the libpqdll.lib and some dlls right, if anything doesnt work > > can you > > > send me those dlls. > > > > > > Thanks verymuch for your help and time ... > > > kris > > > > > > */Huub Fleuren /* wrote: > > > > > > Hi Rock, > > > > > > i recently compiled postgreql-8.1.3 with vc6sp4 and > > > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img > > > (install from virtual CD) > > > > > > first vcvars32 > > > then setenv > > > then nmake /f win32.mak > > > > > > after a failure you always do nmake /f win32.mak clean > > > > > > Regards, Huub > > > > > > rock well schreef: > > > > Hi all, i am trying to compile mapserver with postgre sql > > > support. I > > > > found this documentation in the mapserver website > > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > > > > > > > I downloaded the MS platform sdk and installed it, when i try to > > > run > > > > the win32.mak file in the libpq directory it still says > > > > > > > > LINK : fatal error LNK1181: cannot open input file > "shfolder.lib" > > > > > > > > the shfolder.lib does exist in the the default MS platform sdk > > > folder, > > > > do i have to change something or am i doing something wrong ... > > > > > > > > Thanks for your time .... > > > > kris > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > > > > > > > using Yahoo! Messenger with Voice. > > > > > > > > > > > > ------------------------------------------------------------------------ > > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > > > > > > for just 2?/min with Yahoo! Messenger with Voice. > > > > > > Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min > > > > with Yahoo! Messenger with Voice. > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > From stuarteve at LPARCHAEOLOGY.COM Fri May 26 07:23:17 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Fri, 26 May 2006 15:23:17 +0100 Subject: Rotating Symbols Message-ID: Dear All, We have been trying to get symbols to rotate along a line in mapserver (4.8.3). Basically we want to get a small triangle pointing either 45 degrees or 270 degrees to a line. We firstly tried using PIXMAPs - but I don;t think its possible to rotate these at all (is that true?) plus they do not seem to follow the line and always just point 'up'. So we then tried using some truetype symbols - these follow the line - but seem to be rather erratic as to which way they point. We are using a small triangle from the webdings.ttf set - and sometimes it will point up and sometimes it will point down (but even if its on the same section of the line). Does anyone have any pointers? Thanks in advance Stu -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From warmerdam at POBOX.COM Fri May 26 08:41:10 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 26 May 2006 11:41:10 -0400 Subject: Labeling a layer - MapInfo TAB via OGR In-Reply-To: <4080D064E282B94DAECD98FD0E4D2C14304463@mailserver.MAPS.local> Message-ID: Julian Parker wrote: > Greetings all, > > > > This seemed like it would be a simple problem but I have not been able > to figure out how to get it working. I am trying to label a layer that > is referencing a MapInfo TAB file but the labels wont show up and I have > not been able to track down any info on what I am doing wrong (or I am > REALLY missing something!) Below is a snippet of my MAP file: > STYLEITEM "AUTO" > CLASS > > NAME "Suburbs" > > LABEL > > COLOR 0 0 0 > > SIZE 20 > > END > Julian, My understanding is that your CLASS styling information will be ignored when using autostyling. I'm not sure why rendering of the labels isn't working though. Is it possible you are not properly mapping the font names? I think there is a bit in the howto explaining what the default font name is that needs to be mapped in your fonts.lst file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From stigmata at TECHNOMYSTIC.ORG Fri May 26 08:30:48 2006 From: stigmata at TECHNOMYSTIC.ORG (Gregor Mosheh) Date: Fri, 26 May 2006 09:30:48 -0600 Subject: Apache 2 / PHP DSO -- Status? Message-ID: Hi, folks. I've been off the list for a little while, but still loving Mapserver. I'm wondering whether there's been any new news in terms of ... * using PHP/Mapscript with Apache 2 * using PHP/Mapscript with PHP as a DSO instead of a CGI I saw in the 4.8.3 changelog some references to these topics, but nothing solid, so I wanted to ask specifically. From bpicinbono at WORLDONLINE.FR Fri May 26 09:14:47 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Fri, 26 May 2006 18:14:47 +0200 Subject: Rotating Symbols In-Reply-To: <447713AF.2090102@lparchaeology.com> Message-ID: Stu I don't know what output you want exactly, but yes, using mapscript, you can easily put an arrow on each segment of a polyline with a loop something like : for each polyline for each segment of polyline get start and stop point of segment calculate middle point of segment and angle create new annotation arrow The geometry calculation is pretty straight forward, it's basic 2d geometry. Ask more if you need help on the mapscript functions and/or the geometry calculation. But maybe someone else on this list has got a better/different idea. Regards Blaise Le Vendredi 26 Mai 2006 16:41, vous avez ?crit?: > Blaise > > Thanks for the reply. I presume that we could automatically create a > bunch of points along the line using mapscript or something - but then > how would we make sure that it was always at right angles to the line? I > guess we would have to do some fancy geometry to figure out what angle > that section of line was... sounds hard! > > Mind you it may be the only way - thanks for your help! > > Stu > > Blaise wrote: > > Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : > >> Dear All, > >> > >> We have been trying to get symbols to rotate along a line in mapserver > >> (4.8.3). Basically we want to get a small triangle pointing either 45 > >> degrees or 270 degrees to a line. > >> > >> We firstly tried using PIXMAPs - but I don;t think its possible to > >> rotate these at all (is that true?) plus they do not seem to follow the > >> line and always just point 'up'. > >> > >> So we then tried using some truetype symbols - these follow the line - > >> but seem to be rather erratic as to which way they point. We are using a > >> small triangle from the webdings.ttf set - and sometimes it will point > >> up and sometimes it will point down (but even if its on the same section > >> of the line). > >> > >> Does anyone have any pointers? > >> > >> Thanks in advance > >> > >> Stu > > > > Hi Stu > > Well, not sure about that, but sometimes it's hard to have the symbols > > exactly where you want. Perhaps you could create a special layer (point > > or annotation) to deal with your triangles. It should then be easier to > > manipulate. Of course it's extra data, extra code, extra mapfile parsing > > and so on but you'll have your symbols where you want and well rotated. > > Regards > > Blaise From rockwell_001 at YAHOO.COM Fri May 26 10:00:17 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Fri, 26 May 2006 10:00:17 -0700 Subject: Help needed with compiling postgre sql with mapserver In-Reply-To: <4476FFF0.20107@home.nl> Message-ID: Hi fleuren, thanks for all your help. I am able to solve the problem now, the lib or include paths are not the problem as they were already set in the environment variables on my machine. What i did was since i got an error with "shgetfolderpath" i saw that this function was being called in "fe-connect.c" but the relavant .h file was not included in this c file which is beyond my imagination. So i included the "shfolder.h" file which was in the MS platform sdk include folder and recompiled and it worked perfectly with no errors. I really appreciate your help and thanks ... Thanks for all you guys who helped me with this problem .... kris Huub Fleuren wrote: Hi Kris. Well, in my situation it still goes oke. we need : latest postgres Windows source, latest platform SDK, visualC servicepack 4. try a reinstall of vc and sdk here's what happens on my machine E:\projects\postgresql-8.1.3\src>cl 'cl' is not recognized as an internal or external command, operable program or batch file. E:\projects\postgresql-8.1.3\src>set include Environment variable include not defined E:\projects\postgresql-8.1.3\src>set lib Environment variable lib not defined so begin. E:\projects\postgresql-8.1.3\src>vcvars32 E:\projects\postgresql-8.1.3\src>path PATH=f:\PROGRA~1\MICROS~2\Common\msdev98\BIN; F:\PROGRA~1\MICROS~2\VC98\BIN; f:\PROGRA~1\MICROS~2\Common\TOOLS\WINNT; f:\PROGRA~1\MICROS~2\Common\TOOLS; C:\WINNT\system32; C:\WINNT;C:\WINNT\System32\Wbem; d:\myutilsandcopiedbatchfiles; E:\projects\postgresql-8.1.3\src>set lib LIB=F:\PROGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB; E:\projects\postgresql-8.1.3\src>set include INCLUDE=F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PROGRA~1\MICROS~2 \VC98\MFC\INCLUDE; E:\projects\postgresql-8.1.3\src>setenv Attempting to detect a Microsoft Visual Studio installation Targeting Windows XP 32 DEBUG E:\projects\postgresql-8.1.3\src>set lib LIB=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;F:\PR OGRA~1\MICROS~2\VC98\LIB;F:\PROGRA~1\MICROS~2\VC98\MFC\LIB; E:\projects\postgresql-8.1.3\src>set include INCLUDE=F:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Inclu de;F:\PROGRA~1\MICROS~2\VC98\ATL\INCLUDE;F:\PROGRA~1\MICROS~2\VC98\INCLUDE;F:\PR OGRA~1\MICROS~2\VC98\MFC\INCLUDE; E:\projects\postgresql-8.1.3\src>nmake /f win32.mak rattle... rattle (...) All Win32 parts have been built! it's not that we're supposed to understand why or how... Regards, Huub. rock well schreef: > yes i did install the platform sdk and there is also an shfolder.lib > file in the sdk folder, though it gives me an error ..... > > Thanks for your reply ..... > > */"Bart van den Eijnden (OSGIS)" /* wrote: > > Did you install the Platform SDK form Microsoft? See also: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1251 > > Best regards, > Bart > > rock well wrote: Hi fleuren the reason i dont want to use hobus > mapserver is i guess it doesnt have the support for mrsid format and > also sde libraries which i already have configured using the > conventional mapserver. i was able to get rid of these error and was > able to create the libpadll.lib but i wasnt able to create the > libpq.dll > file as it gave me the following error > > > > > libpq.lib(fe-connect.obj) : error LNK2001: unresolved external > symbol > > _SHGetFolderpath > > .\Release\libpq.dll : fatal error LNK1120: 1 unresolved externals > > > > and the execution stopped ..... > > > > i guess someone might have encountered this problem, if so can you > > give me some tips to solve it ..... > > > > If you dont mind fleuren can you send me the libpq.dll as an > > attachment as thats the only file i need to get going .... > > > > Thanks a lot for your help .... > > kris > > > > */Huub Fleuren /* wrote: > > > > Hi Kris, > > > > I did feel lucky that the compile did not end with the word Stop. > > I'm afraid experience problems like this now with the ECW library. > > > > Maybe try the very rich .\bin directory of > > > http://hobu.stat.iastate.edu/mapserver/build_output/mapserver-4.8.3-msvc71-build-kit.zip > > > > > > this is a set for msvc7, so probably, issues on vc6 > > > > Regards, Huub > > > > > > rock well schreef: > > > Thanks for your reply fleuren, yes i did the same way you told but > > > still it give the following errors > > > > > > LINK : fatal error LNK1181: cannot open input file "shfolder.lib" > > > NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' > > > > > > Do you know why we get these errors, or else all we need is i > guess > > > the libpqdll.lib and some dlls right, if anything doesnt work > > can you > > > send me those dlls. > > > > > > Thanks verymuch for your help and time ... > > > kris > > > > > > */Huub Fleuren /* wrote: > > > > > > Hi Rock, > > > > > > i recently compiled postgreql-8.1.3 with vc6sp4 and > > > 5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img > > > (install from virtual CD) > > > > > > first vcvars32 > > > then setenv > > > then nmake /f win32.mak > > > > > > after a failure you always do nmake /f win32.mak clean > > > > > > Regards, Huub > > > > > > rock well schreef: > > > > Hi all, i am trying to compile mapserver with postgre sql > > > support. I > > > > found this documentation in the mapserver website > > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling > > > > > > > > I downloaded the MS platform sdk and installed it, when i try to > > > run > > > > the win32.mak file in the libpq directory it still says > > > > > > > > LINK : fatal error LNK1181: cannot open input file > "shfolder.lib" > > > > > > > > the shfolder.lib does exist in the the default MS platform sdk > > > folder, > > > > do i have to change something or am i doing something wrong ... > > > > > > > > Thanks for your time .... > > > > kris > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > Blab-away for as little as 1?/min. Make PC-to-Phone Calls > > > > > > > > using Yahoo! Messenger with Voice. > > > > > > > > > > > > ------------------------------------------------------------------------ > > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries > > > > > > for just 2?/min with Yahoo! Messenger with Voice. > > > > > > Ring'em or ping'em. Make PC-to-phone calls as low as 1?/min > > > > with Yahoo! Messenger with Voice. > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > --------------------------------- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri May 26 10:19:57 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 26 May 2006 13:19:57 -0400 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <3344.70.58.0.48.1148657448.squirrel@webmail.technomystic.org> Message-ID: > * using PHP/Mapscript with Apache 2 > I can say that MS4W has been using Apache2, with PHP/MapScript for years now, and there are no issues that I am aware of. jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Fri May 26 12:18:29 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 26 May 2006 15:18:29 -0400 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <1106.70.58.0.48.1148667833.squirrel@webmail.technomystic.org> Message-ID: I'll defer that question to the people who know. I don't know of the DSO status (can someone else please answer?). jeff Gregor Mosheh wrote: >> I can say that MS4W has been using Apache2, with PHP/MapScript for years >> now, and there are no issues that I am aware of. > > Neat-o. How about PHP as a DSO? > I was told, as recently as 2 months ago, that PHP/DSO was unstable -- it > would seem to work, but under moderate load would start acting flaky. > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From iansgis at GMAIL.COM Fri May 26 15:40:38 2006 From: iansgis at GMAIL.COM (Me My) Date: Fri, 26 May 2006 15:40:38 -0700 Subject: Image Map and MS CGI controls Message-ID: Trying to make a basic image map from a layer of GPS points. However, I am getting the MS error message "msQueryByPoint(): Search returned no results. No matching record(s) found." when trying this. The actual map itself displays just fine, it is the image map that is the problem and passing arguments to the CGI. The MAXSCALE for the GPS layer is set to 7,000,000. The html form button being used to initiate the image map is:
Am I missing something? Map center, map size, etc? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rjames57 at YAHOO.COM Fri May 26 15:57:51 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 26 May 2006 15:57:51 -0700 Subject: Image Map and MS CGI controls In-Reply-To: <5b61c6c50605261540u26c78faauc55c771332bda143@mail.gmail.com> Message-ID: Hi me Have you tried adjusting the TOLERANCE and TOLERANCEUNITS parameters for your point layer in your mapfile? Randy --- Me My wrote: > Trying to make a basic image map from a layer of GPS points. > However, I am > getting the MS error message "msQueryByPoint(): Search returned no > results. > No matching record(s) found." when trying this. The actual map > itself > displays just fine, it is the image map that is the problem and > passing > arguments to the CGI. The MAXSCALE for the GPS layer is set to > 7,000,000. > > The html form button being used to initiate the image map is: > >
> value="/var/www/html/maps/imap.map"> > > > > > >
>
> > Am I missing something? Map center, map size, etc? > Thank you. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bfischer at HOUSTONENGINEERINGINC.COM Fri May 26 18:58:12 2006 From: bfischer at HOUSTONENGINEERINGINC.COM (Fischer, Brian) Date: Fri, 26 May 2006 20:58:12 -0500 Subject: CGI MapServer, Dynamic Points Message-ID: Chip, Check out ovf in ogr. http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData That is the way I am displaying points from a MS database. Works very well. I think I've posted the layer snippet and .ovf file a while back on the list, if you search the archives you might be able to find it. If not let me know and I get dig it up. Hope this helps, Brian ________________________________ From: UMN MapServer Users List on behalf of Chip Hankley Sent: Thu 5/25/2006 11:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI MapServer, Dynamic Points I'm trying to use CGI MapServer (ie NOT MapScript) to dynamically add points to a map based on X and Y fields in a database (currently MS Access). Can someone point me in the right direction? MapServer 4.8.3 Windows, IIS TIA - ---------------------------- Chip Hankley RMT, Inc. chip.hankley at rmtinc.com 608.662.5498 (Direct) ---------------------------- Outgoing messages, along with any attachments, are scanned for viruses prior to sending. ------------------------------------------------------------------------------ NOTICE--This email may contain confidential and privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and delete all copies. From dejan.gregor at GMAIL.COM Fri May 26 22:51:41 2006 From: dejan.gregor at GMAIL.COM (Dejan Gregor) Date: Sat, 27 May 2006 07:51:41 +0200 Subject: Need help Message-ID: Hi! I would like to ask for help with the installation of MapServer on Windows Server 2003, where apache is already running Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1 mod_perl/2.0.2 Perl/v5.8.7 We are going to use Mapserver for nonprofit use and testing purposes. I already tried to install Mapserver on the exisiting Apache version, but was not successful. I would be very happy, if someone could help me. Thanks! Dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwija_dey at REDIFFMAIL.COM Fri May 26 23:22:46 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Sat, 27 May 2006 06:22:46 -0000 Subject: Help needed in ImageMap Message-ID: ? Hi Steve I noticed that the html result of mapserver doesnot contain the mapid etc. part like this-> @ @ Lake of the Woods Why this part is not coming? Can u plz tell me the href part of the follwing, I am confused with this part. What exactly i should give here in href? [NAME] Another question, whether it is necessary to use separate imagemap.map file? On Fri, 26 May 2006 Pratap wrote : > > Hi > Steve > I am sending the html result of the output of mapserver as a >attachement. Tnaks for reply & >Thanks in advance. >With Regards >Pratap > > > >>>It would be helpfull to see the output from MapServer in this >>case. Can > >>you post the HTML result (as an attachment) or send a link? > >Steve > > >>> "Pratap" 05/25/06 8:07 AM >>> > > >Hi > List and Steve Lime > Plz. donot ignore this message. > I have posted a message for a help in imagemap though, i have not >get any reply. I am trying to imulate the mouseover in browser/mapserver > from >http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >also i am keen to know from steve how to implement the mouseover that i >saw in Steve limes SHPXY example in >http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true >. > > My quries are given below(Specially to Steve for the example that he >has implemented). Hope this time i will get solutions from Steve/List. >Thanks in advance >With Regards. >Pratap > > > >On Fri, 12 May 2006 Pratap wrote : > > > >Hi > >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap > >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > > > My Mapfile for imagemap is: > > ......... > > LAYER > > NAME "city" > > TYPE POINT > > STATUS ON > > DATA "city" > > CLASSITEM "name" > > CLASS > > NAME "CITY NAME" > > EXPRESSION /A*/ > > COLOR 255 0 0 > > OUTLINECOLOR 255 0 0 > > END > > TEMPLATE "bodytemplate.html" > > HEADER "imapheader.html" > > FOOTER "imapfooter.html" > > END > >............ > > > >The content of template file bodytemplate.html is. > >[name] > > > >Q.1)What will be the exact value of href above? > > > >The content of template file imapheader.html is. > > > > > >Q.2)What will be the value of id and name above? > > > >The content of template file imapheader.html is. > > > > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > > > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should > >place it ? and i am using Gmap's PHP/Mapscript engine. > > > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. > >Thanks in advance for any help. > >With regards. > >Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.pashby at POSTGRAD.CURTIN.EDU.AU Sat May 27 02:11:38 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Sat, 27 May 2006 09:11:38 +0000 Subject: Road symbology Message-ID: Hi, I've been searching around for (but can't find) any SYMBOL definitions for how to get a double dashed line, (ie, a dashed line for either side of the road). I'd like to represent a road this way with no fill color, but am at a loss of how to do it. Any help would be greatly appreciated. Cheers, Steve From bpicinbono at WORLDONLINE.FR Sat May 27 02:53:34 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Sat, 27 May 2006 11:53:34 +0200 Subject: Road symbology In-Reply-To: Message-ID: Le Samedi 27 Mai 2006 11:11, Steve Pashby a ?crit?: > Hi, > > I've been searching around for (but can't find) any SYMBOL definitions for > how to get a double dashed line, (ie, a dashed line for either side of the > road). I'd like to represent a road this way with no fill color, but am at > a loss of how to do it. > > Any help would be greatly appreciated. > > Cheers, > Steve Did you get through this doc ? : http://ms.gis.umn.edu/docs/howto/cartosymbols It seems that "Strasse in Planung" (close to the end) has got a double dashed line, isn't it what you are looking for ? Regards Blaise From bartvde at XS4ALL.NL Sat May 27 07:34:15 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 27 May 2006 16:34:15 +0200 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <44775485.8000109@dmsolutions.ca> Message-ID: We are using 48 now for a few months as an Apache DSO and haven't found any problems. But we only use connectiontype WMS layers so we don't cover much of the Mapscript code. Most of the data is still served with Mapserver CGI in our use case. Anyway, I think the motto is still please try it out and report issues. Best regards, Bart Jeff McKenna wrote: > I'll defer that question to the people who know. I don't know of the > DSO status (can someone else please answer?). > > jeff > > > > Gregor Mosheh wrote: > >>> I can say that MS4W has been using Apache2, with PHP/MapScript for >>> years >>> now, and there are no issues that I am aware of. >> >> >> Neat-o. How about PHP as a DSO? >> I was told, as recently as 2 months ago, that PHP/DSO was unstable -- it >> would seem to work, but under moderate load would start acting flaky. >> >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bpicinbono at WORLDONLINE.FR Sat May 27 08:29:37 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Sat, 27 May 2006 17:29:37 +0200 Subject: Rotating Symbols In-Reply-To: <4478690D.4040707@lparchaeology.com> Message-ID: Hi Stu What kind of layer do you use for your symbols, point or annotation ? I assume it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't remember exactly how annotation layers work but it must be the same as point. With point layers, you have to have an "angle" field (numeric, 3 digits without decimal, I believe, not sure) in your dbf file, or maybe better "ANGLE" to be able to set the angle. Do you have this field in the dbf and if not can you try adding it ? And do you have the right angle instructions in the layer section of your mapfile ? If not sure, post your mapfile layer section. Bravo for the work so far. Blaise Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit?: > Hi Blaise > > I have managed to get quite a long way down the road of extracting > points and placing them, etc.- and I think its all going to work - > however I have just been stumped by what seems to be to be a bug. > > I have managed to set up classes for each of the points that I wish to > draw - and now want to set their styles so that the symbol (a VECTOR) > symbol is rotated to the angle (which I have got from my geometry > function). However, whenever I try to access styleObj->set("angle",45) > it says that 'angle' doesn't exist in that object. However, I can dump > out the mapfile and it is there set as 360. > > Any ideas whats going on? > > Thanks > > Stu > > Blaise wrote: > > Stu > > I don't know what output you want exactly, but yes, using mapscript, you > > can easily put an arrow on each segment of a polyline with a loop > > something like : > > for each polyline > > for each segment of polyline > > get start and stop point of segment > > calculate middle point of segment and angle > > create new annotation arrow > > > > The geometry calculation is pretty straight forward, it's basic 2d > > geometry. Ask more if you need help on the mapscript functions and/or the > > geometry calculation. > > But maybe someone else on this list has got a better/different idea. > > Regards > > Blaise > > > > Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : > >> Blaise > >> > >> Thanks for the reply. I presume that we could automatically create a > >> bunch of points along the line using mapscript or something - but then > >> how would we make sure that it was always at right angles to the line? I > >> guess we would have to do some fancy geometry to figure out what angle > >> that section of line was... sounds hard! > >> > >> Mind you it may be the only way - thanks for your help! > >> > >> Stu > >> > >> Blaise wrote: > >>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : > >>>> Dear All, > >>>> > >>>> We have been trying to get symbols to rotate along a line in mapserver > >>>> (4.8.3). Basically we want to get a small triangle pointing either 45 > >>>> degrees or 270 degrees to a line. > >>>> > >>>> We firstly tried using PIXMAPs - but I don;t think its possible to > >>>> rotate these at all (is that true?) plus they do not seem to follow > >>>> the line and always just point 'up'. > >>>> > >>>> So we then tried using some truetype symbols - these follow the line - > >>>> but seem to be rather erratic as to which way they point. We are using > >>>> a small triangle from the webdings.ttf set - and sometimes it will > >>>> point up and sometimes it will point down (but even if its on the same > >>>> section of the line). > >>>> > >>>> Does anyone have any pointers? > >>>> > >>>> Thanks in advance > >>>> > >>>> Stu > >>> > >>> Hi Stu > >>> Well, not sure about that, but sometimes it's hard to have the symbols > >>> exactly where you want. Perhaps you could create a special layer (point > >>> or annotation) to deal with your triangles. It should then be easier to > >>> manipulate. Of course it's extra data, extra code, extra mapfile > >>> parsing and so on but you'll have your symbols where you want and well > >>> rotated. Regards > >>> Blaise From stuarteve at LPARCHAEOLOGY.COM Sat May 27 08:47:37 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Sat, 27 May 2006 16:47:37 +0100 Subject: Rotating Symbols In-Reply-To: <200605271729.37633.bpicinbono@worldonline.fr> Message-ID: Blaise I am working with shapefiles - but am going to need to do this with all different types of layers (trying to abstract it out). I have just added the 'angle' field to the dbf to try it out and I am still getting the same error. It seems that the styleObj thinks it doesn't have the member of 'angle' (or actualy 'angleitem') even though in my mapfile (which I automatically output by using $map->save) it has written it like this: STYLE ANGLE 360 COLOR 0 0 0 SIZE 8 SYMBOL "rot_tri" END I am now trying to go through the process of automatically creating the rotated symbol on the fly (but the logic of it makes my head hurt!). Thanks for your help so far! Stu Blaise wrote: > Hi Stu > What kind of layer do you use for your symbols, point or annotation ? I assume > it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't remember exactly > how annotation layers work but it must be the same as point. With point > layers, you have to have an "angle" field (numeric, 3 digits without decimal, > I believe, not sure) in your dbf file, or maybe better "ANGLE" to be able to > set the angle. Do you have this field in the dbf and if not can you try > adding it ? > And do you have the right angle instructions in the layer section of your > mapfile ? If not sure, post your mapfile layer section. > Bravo for the work so far. > Blaise > > Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit : > >> Hi Blaise >> >> I have managed to get quite a long way down the road of extracting >> points and placing them, etc.- and I think its all going to work - >> however I have just been stumped by what seems to be to be a bug. >> >> I have managed to set up classes for each of the points that I wish to >> draw - and now want to set their styles so that the symbol (a VECTOR) >> symbol is rotated to the angle (which I have got from my geometry >> function). However, whenever I try to access styleObj->set("angle",45) >> it says that 'angle' doesn't exist in that object. However, I can dump >> out the mapfile and it is there set as 360. >> >> Any ideas whats going on? >> >> Thanks >> >> Stu >> >> Blaise wrote: >> >>> Stu >>> I don't know what output you want exactly, but yes, using mapscript, you >>> can easily put an arrow on each segment of a polyline with a loop >>> something like : >>> for each polyline >>> for each segment of polyline >>> get start and stop point of segment >>> calculate middle point of segment and angle >>> create new annotation arrow >>> >>> The geometry calculation is pretty straight forward, it's basic 2d >>> geometry. Ask more if you need help on the mapscript functions and/or the >>> geometry calculation. >>> But maybe someone else on this list has got a better/different idea. >>> Regards >>> Blaise >>> >>> Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : >>> >>>> Blaise >>>> >>>> Thanks for the reply. I presume that we could automatically create a >>>> bunch of points along the line using mapscript or something - but then >>>> how would we make sure that it was always at right angles to the line? I >>>> guess we would have to do some fancy geometry to figure out what angle >>>> that section of line was... sounds hard! >>>> >>>> Mind you it may be the only way - thanks for your help! >>>> >>>> Stu >>>> >>>> Blaise wrote: >>>> >>>>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : >>>>> >>>>>> Dear All, >>>>>> >>>>>> We have been trying to get symbols to rotate along a line in mapserver >>>>>> (4.8.3). Basically we want to get a small triangle pointing either 45 >>>>>> degrees or 270 degrees to a line. >>>>>> >>>>>> We firstly tried using PIXMAPs - but I don;t think its possible to >>>>>> rotate these at all (is that true?) plus they do not seem to follow >>>>>> the line and always just point 'up'. >>>>>> >>>>>> So we then tried using some truetype symbols - these follow the line - >>>>>> but seem to be rather erratic as to which way they point. We are using >>>>>> a small triangle from the webdings.ttf set - and sometimes it will >>>>>> point up and sometimes it will point down (but even if its on the same >>>>>> section of the line). >>>>>> >>>>>> Does anyone have any pointers? >>>>>> >>>>>> Thanks in advance >>>>>> >>>>>> Stu >>>>>> >>>>> Hi Stu >>>>> Well, not sure about that, but sometimes it's hard to have the symbols >>>>> exactly where you want. Perhaps you could create a special layer (point >>>>> or annotation) to deal with your triangles. It should then be easier to >>>>> manipulate. Of course it's extra data, extra code, extra mapfile >>>>> parsing and so on but you'll have your symbols where you want and well >>>>> rotated. Regards >>>>> Blaise >>>>> > > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From stuarteve at LPARCHAEOLOGY.COM Sat May 27 07:58:21 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Sat, 27 May 2006 15:58:21 +0100 Subject: Rotating Symbols In-Reply-To: <200605261814.47834.bpicinbono@worldonline.fr> Message-ID: Hi Blaise I have managed to get quite a long way down the road of extracting points and placing them, etc.- and I think its all going to work - however I have just been stumped by what seems to be to be a bug. I have managed to set up classes for each of the points that I wish to draw - and now want to set their styles so that the symbol (a VECTOR) symbol is rotated to the angle (which I have got from my geometry function). However, whenever I try to access styleObj->set("angle",45) it says that 'angle' doesn't exist in that object. However, I can dump out the mapfile and it is there set as 360. Any ideas whats going on? Thanks Stu Blaise wrote: > Stu > I don't know what output you want exactly, but yes, using mapscript, you can > easily put an arrow on each segment of a polyline with a loop something > like : > for each polyline > for each segment of polyline > get start and stop point of segment > calculate middle point of segment and angle > create new annotation arrow > > The geometry calculation is pretty straight forward, it's basic 2d geometry. > Ask more if you need help on the mapscript functions and/or the geometry > calculation. > But maybe someone else on this list has got a better/different idea. > Regards > Blaise > > Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : > >> Blaise >> >> Thanks for the reply. I presume that we could automatically create a >> bunch of points along the line using mapscript or something - but then >> how would we make sure that it was always at right angles to the line? I >> guess we would have to do some fancy geometry to figure out what angle >> that section of line was... sounds hard! >> >> Mind you it may be the only way - thanks for your help! >> >> Stu >> >> Blaise wrote: >> >>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : >>> >>>> Dear All, >>>> >>>> We have been trying to get symbols to rotate along a line in mapserver >>>> (4.8.3). Basically we want to get a small triangle pointing either 45 >>>> degrees or 270 degrees to a line. >>>> >>>> We firstly tried using PIXMAPs - but I don;t think its possible to >>>> rotate these at all (is that true?) plus they do not seem to follow the >>>> line and always just point 'up'. >>>> >>>> So we then tried using some truetype symbols - these follow the line - >>>> but seem to be rather erratic as to which way they point. We are using a >>>> small triangle from the webdings.ttf set - and sometimes it will point >>>> up and sometimes it will point down (but even if its on the same section >>>> of the line). >>>> >>>> Does anyone have any pointers? >>>> >>>> Thanks in advance >>>> >>>> Stu >>>> >>> Hi Stu >>> Well, not sure about that, but sometimes it's hard to have the symbols >>> exactly where you want. Perhaps you could create a special layer (point >>> or annotation) to deal with your triangles. It should then be easier to >>> manipulate. Of course it's extra data, extra code, extra mapfile parsing >>> and so on but you'll have your symbols where you want and well rotated. >>> Regards >>> Blaise >>> > > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From etdube at GMAIL.COM Sat May 27 15:32:56 2006 From: etdube at GMAIL.COM (Etienne Dube) Date: Sat, 27 May 2006 18:32:56 -0400 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <44775485.8000109@dmsolutions.ca> Message-ID: I'm using MapServer 4.8.3 w/ Apache 2.0.55 and PHP 5.1.2 (loaded as a DSO, phpinfo() correctly reports the Server API as Apache 2.0 Handler), all under Debian testing (Etch). PHP/MapScript and Chameleon work fine. Etienne Jeff McKenna wrote: > I'll defer that question to the people who know. I don't know of the > DSO status (can someone else please answer?). > > jeff > > > > Gregor Mosheh wrote: >>> I can say that MS4W has been using Apache2, with PHP/MapScript for >>> years >>> now, and there are no issues that I am aware of. >> >> Neat-o. How about PHP as a DSO? >> I was told, as recently as 2 months ago, that PHP/DSO was unstable -- it >> would seem to work, but under moderate load would start acting flaky. >> >> >> > > From bpicinbono at WORLDONLINE.FR Sun May 28 06:44:10 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Sun, 28 May 2006 15:44:10 +0200 Subject: Rotating Symbols In-Reply-To: <44787499.5050306@lparchaeology.com> Message-ID: Stu I've got symbols rotated : mapserver 4.8.3, point shapefile:"rotlabel", dbf with 2 fields : "ID" and "rotation" field rotation is numeric, 3 digits, no decimal (0->359) Layer definition in mapfile : LAYER NAME rotlabel TYPE POINT STATUS ON DATA rotlabel CLASS NAME "rotlabel" STYLE SYMBOL 'triangle' ANGLEITEM "rotation" SIZE 15 COLOR 255 0 255 END END END Triangle definition in symbol file (symbols.sym) : Symbol Name 'triangle' Type VECTOR Filled TRUE Points 0 1 .5 0 1 1 0 1 END END No on-the-fly label drawing, just basic layer display. When updating data in the "rotation" field of the dbf, triangles are rotating... One strange thing is with angle 90 and 180 : triangles don't display. 89, 91, 179, 181 are ok, but not 90 and 180. 270 is ok as well. You should easily custom the triangle symbol into whatever you want (arrow or else). Better check that your symbol is displayed for any angle (0->359). There must be some kind of bug somewhere. Maybe you'll help discovering it. I hope this is what you were looking for. Regards Blaise Le Samedi 27 Mai 2006 17:47, Stuart Eve a ?crit?: > Blaise > > I am working with shapefiles - but am going to need to do this with all > different types of layers (trying to abstract it out). I have just added > the 'angle' field to the dbf to try it out and I am still getting the > same error. > > It seems that the styleObj thinks it doesn't have the member of 'angle' > (or actualy 'angleitem') even though in my mapfile (which I > automatically output by using $map->save) it has written it like this: > > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 8 > SYMBOL "rot_tri" > END > > I am now trying to go through the process of automatically creating the > rotated symbol on the fly (but the logic of it makes my head hurt!). > > Thanks for your help so far! > > Stu > > Blaise wrote: > > Hi Stu > > What kind of layer do you use for your symbols, point or annotation ? I > > assume it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't remember > > exactly how annotation layers work but it must be the same as point. With > > point layers, you have to have an "angle" field (numeric, 3 digits > > without decimal, I believe, not sure) in your dbf file, or maybe better > > "ANGLE" to be able to set the angle. Do you have this field in the dbf > > and if not can you try adding it ? > > And do you have the right angle instructions in the layer section of your > > mapfile ? If not sure, post your mapfile layer section. > > Bravo for the work so far. > > Blaise > > > > Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit : > >> Hi Blaise > >> > >> I have managed to get quite a long way down the road of extracting > >> points and placing them, etc.- and I think its all going to work - > >> however I have just been stumped by what seems to be to be a bug. > >> > >> I have managed to set up classes for each of the points that I wish to > >> draw - and now want to set their styles so that the symbol (a VECTOR) > >> symbol is rotated to the angle (which I have got from my geometry > >> function). However, whenever I try to access styleObj->set("angle",45) > >> it says that 'angle' doesn't exist in that object. However, I can dump > >> out the mapfile and it is there set as 360. > >> > >> Any ideas whats going on? > >> > >> Thanks > >> > >> Stu > >> > >> Blaise wrote: > >>> Stu > >>> I don't know what output you want exactly, but yes, using mapscript, > >>> you can easily put an arrow on each segment of a polyline with a loop > >>> something like : > >>> for each polyline > >>> for each segment of polyline > >>> get start and stop point of segment > >>> calculate middle point of segment and angle > >>> create new annotation arrow > >>> > >>> The geometry calculation is pretty straight forward, it's basic 2d > >>> geometry. Ask more if you need help on the mapscript functions and/or > >>> the geometry calculation. > >>> But maybe someone else on this list has got a better/different idea. > >>> Regards > >>> Blaise > >>> > >>> Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : > >>>> Blaise > >>>> > >>>> Thanks for the reply. I presume that we could automatically create a > >>>> bunch of points along the line using mapscript or something - but then > >>>> how would we make sure that it was always at right angles to the line? > >>>> I guess we would have to do some fancy geometry to figure out what > >>>> angle that section of line was... sounds hard! > >>>> > >>>> Mind you it may be the only way - thanks for your help! > >>>> > >>>> Stu > >>>> > >>>> Blaise wrote: > >>>>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : > >>>>>> Dear All, > >>>>>> > >>>>>> We have been trying to get symbols to rotate along a line in > >>>>>> mapserver (4.8.3). Basically we want to get a small triangle > >>>>>> pointing either 45 degrees or 270 degrees to a line. > >>>>>> > >>>>>> We firstly tried using PIXMAPs - but I don;t think its possible to > >>>>>> rotate these at all (is that true?) plus they do not seem to follow > >>>>>> the line and always just point 'up'. > >>>>>> > >>>>>> So we then tried using some truetype symbols - these follow the line > >>>>>> - but seem to be rather erratic as to which way they point. We are > >>>>>> using a small triangle from the webdings.ttf set - and sometimes it > >>>>>> will point up and sometimes it will point down (but even if its on > >>>>>> the same section of the line). > >>>>>> > >>>>>> Does anyone have any pointers? > >>>>>> > >>>>>> Thanks in advance > >>>>>> > >>>>>> Stu > >>>>> > >>>>> Hi Stu > >>>>> Well, not sure about that, but sometimes it's hard to have the > >>>>> symbols exactly where you want. Perhaps you could create a special > >>>>> layer (point or annotation) to deal with your triangles. It should > >>>>> then be easier to manipulate. Of course it's extra data, extra code, > >>>>> extra mapfile parsing and so on but you'll have your symbols where > >>>>> you want and well rotated. Regards > >>>>> Blaise From asachs at CLUE.CO.ZA Sun May 28 09:44:22 2006 From: asachs at CLUE.CO.ZA (Andre Sachs) Date: Sun, 28 May 2006 18:44:22 +0200 Subject: JavaMapscript SIGSEGV Message-ID: Hi Everyone, I have problem with the java Mapscript library. I have a servlet that displays a map without problems. When I go after any kind of shapeObj the trouble starts. The following short java program causes a SIGSEGV error : import edu.umn.gis.mapscript.*; public class Test { public static void main(String[] args) { shapeObj s = new shapeObj(mapscript.MS_SHAPE_LINE); } } The error that is produced : # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [libc.so.6+0x67d5b] # # An error report file with more information is saved as hs_err_pid23120.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Aborted And the environment that the error is occuring in is : Linux icarus 2.6.15-gentoo-r7 #1 Sat May 6 19:49:25 SAST 2006 x86_64 AMD Athlon(tm) 64 Processor 3800+ GNU/Linux java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) Has anyone else deployed on a 64 bit platform ? Is there some magic I am missing ? Kind regards, Andre Sachs -- Andre Sachs IT Architect, Clue Technologies PTY (LTD) email: andre at clue.co.za From jim at JIMDONAGHY.COM Sun May 28 11:13:48 2006 From: jim at JIMDONAGHY.COM (Jim Donaghy) Date: Sun, 28 May 2006 11:13:48 -0700 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <3344.70.58.0.48.1148657448.squirrel@webmail.technomystic.org> Message-ID: I've been using it with the prefork mpm on Linux with no problems. On Windows the CGI seems to work well, and the DSO appears to hang up. Perhaps it has concurrency issues in the threaded environment or perhaps it's unrelated; I haven't had time to debug and find out what the real problem is. Gregor Mosheh wrote: >Hi, folks. I've been off the list for a little while, but still loving >Mapserver. I'm wondering whether there's been any new news in terms of ... > >* using PHP/Mapscript with Apache 2 > >* using PHP/Mapscript with PHP as a DSO instead of a CGI > >I saw in the 4.8.3 changelog some references to these topics, but nothing >solid, so I wanted to ask specifically. > > > > > From lichte at ICBM.DE Sun May 28 12:22:58 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Sun, 28 May 2006 21:22:58 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <8E307D30-746C-469E-89B0-D29311D6E18A@clue.co.za> Message-ID: Hi Andre, is it possible that your native JavaMapserver binaries are not linked against 64-Bit libraries? Best regards, Oliver Am Sonntag, 28. Mai 2006 18:44 schrieb Andre Sachs: > Hi Everyone, > > I have problem with the java Mapscript library. I have a servlet that > displays a map without problems. When I go after any kind of shapeObj > the trouble starts. The following short java program causes a SIGSEGV > error : > > import edu.umn.gis.mapscript.*; > public class Test { > public static void main(String[] args) { > shapeObj s = new shapeObj(mapscript.MS_SHAPE_LINE); > } > } > > The error that is produced : > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode) > # Problematic frame: > # C [libc.so.6+0x67d5b] > # > # An error report file with more information is saved as > hs_err_pid23120.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > Aborted > > And the environment that the error is occuring in is : > > Linux icarus 2.6.15-gentoo-r7 #1 Sat May 6 19:49:25 SAST 2006 x86_64 > AMD Athlon(tm) 64 Processor 3800+ GNU/Linux > > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) > > > Has anyone else deployed on a 64 bit platform ? Is there some magic I > am missing ? > > Kind regards, > Andre Sachs > > > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za -- Oliver Lichte Nachwuchsforschergruppe IMPULSE Institut f?r Chemie und Biologie des Meeres (ICBM) Carl-von-Ossietzky-Stra?e 9-11 Postfach 2503 D-26129 Oldenburg www.icbm.de/impulse www.icbm.de/anemos Tel.: +49-441-798-3622 Fax : +49-441-798-3404 mailto:lichte at icbm.de IMPULSE is also involved in the European project POWER Pushing Offshore Wind Energy Regions See the POWER Website: www.offshore-power.net From umberto.nicoletti at GMAIL.COM Sun May 28 23:30:23 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 29 May 2006 08:30:23 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <8E307D30-746C-469E-89B0-D29311D6E18A@clue.co.za> Message-ID: Hi Andre, the sample program doesn't crash on my laptop (Linux friedrich 2.6.13-gentoo-r3 #5 SMP Fri Oct 14 22:38:56 CEST 2005 i686 AMD Athlon(tm) XP Processor 2800+ AuthenticAMD GNU/Linux). Did you build Java mapscript by yourself? Did you follow the instructions in the README? Umberto On 5/28/06, Andre Sachs wrote: > Hi Everyone, > > I have problem with the java Mapscript library. I have a servlet that > displays a map without problems. When I go after any kind of shapeObj > the trouble starts. The following short java program causes a SIGSEGV > error : > > import edu.umn.gis.mapscript.*; > public class Test { > public static void main(String[] args) { > shapeObj s = new shapeObj(mapscript.MS_SHAPE_LINE); > } > } > > The error that is produced : > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x00002aaaaae43d5b, pid=23120, tid=46912501734144 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode) > # Problematic frame: > # C [libc.so.6+0x67d5b] > # > # An error report file with more information is saved as > hs_err_pid23120.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > Aborted > > And the environment that the error is occuring in is : > > Linux icarus 2.6.15-gentoo-r7 #1 Sat May 6 19:49:25 SAST 2006 x86_64 > AMD Athlon(tm) 64 Processor 3800+ GNU/Linux > > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode) > > > Has anyone else deployed on a 64 bit platform ? Is there some magic I > am missing ? > > Kind regards, > Andre Sachs > > > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > From bartvde at XS4ALL.NL Mon May 29 00:18:00 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 May 2006 09:18:00 +0200 Subject: temp file names not unique Message-ID: Hi list, using Mapscript 4.8.3 we have encountered a problem with the uniqueness of the filenames of scalebar images saved to the ms_tmp directory (filenames are being reused, resulting in problems with the browser cache). We are running PHP 4.3.11 as an Apache module. What is the status of this problem? I do remember a bugzilla entry about this by Bill Binko and Daniel Morissette, but I am unable to find it. Best regards, Bart From lichte at ICBM.DE Mon May 29 00:25:23 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Mon, 29 May 2006 09:25:23 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: Message-ID: Hi Andre, is it really the case for libs in /usr/lib like libgd.so? file on libpng on my machine returns this differing file /usr/lib/libpng.so.3.1.2.8 /usr/lib/libpng.so.3.1.2.8: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped file /usr/lib64/libpng.so.3.1.2.8 /usr/lib64/libpng.so.3.1.2.8: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped architecture: Linux labrador 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux Afaik you will need the 64-bit version of libgd and others. Regards, Oliver Am Sonntag 28 Mai 2006 21:41 schrieben Sie: > On 28 May 2006, at 9:22 PM, Oliver Lichte wrote: > > Hi Andre, > > > > is it possible that your native JavaMapserver binaries are not > > linked against > > 64-Bit libraries? > > Hi again Oliver, > > Just checked all the linked libraries using the file utility and it > reports they are all 64 bit, including libmapscript.so itself. > > I suspect that this is not the answer that you wanted :) > > Thanks and regards > Andre > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za -- Nachwuchsforschergruppe IMPULSE Institut f?r Chemie und Biologie des Meeres (ICBM) Carl-von-Ossietzky-Stra?e 9-11 Postfach 2503 D-26129 Oldenburg www.icbm.de/impulse www.icbm.de/anemos Tel.: +49-441-798-3622 Fax : +49-441-798-3404 Mail:lichte at icbm.de IMPULSE is also involved in the European project POWER Pushing Offshore Wind Energy Regions See the POWER Website: www.offshore-power.net From dovidio at PLANETEK.IT Mon May 29 00:45:53 2006 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Mon, 29 May 2006 09:45:53 +0200 Subject: CONEECTIONTYPE via GDAL in MAPSERVER Message-ID: Hi all, is it possible to fetch raster data from a remote machine with CONNECTIONTYPE GDAL like CONNECTIONTYPE OGR ??? Thank u ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From umberto.nicoletti at GMAIL.COM Mon May 29 00:53:09 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 29 May 2006 09:53:09 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <5773D8EC-C9C7-46A4-A1BF-15D907BDFA63@clue.co.za> Message-ID: Please *always* add the list to your replies. Can you post the emerge log? Thanks, Umberto On 5/29/06, Andre Sachs wrote: > > On 29 May 2006, at 8:30 AM, Umberto Nicoletti wrote: > > > Hi Andre, > > the sample program doesn't crash on my laptop (Linux friedrich > > 2.6.13-gentoo-r3 #5 SMP Fri Oct 14 22:38:56 CEST 2005 i686 AMD > > Athlon(tm) XP Processor 2800+ AuthenticAMD GNU/Linux). > > > > Did you build Java mapscript by yourself? Did you follow the > > instructions in the README? > > Hi Umberto, > > I built mapserver using a candidate ebuild from http:// > bugs.gentoo.org/show_bug.cgi?id=69417. It took care of creating the > various mapscript libraries. > > I am using the resulting .jar (and .so ) in a servlet and can serve > maps, so long as I steer clear of trying to create any shapeObj > objects it works fine. I do however need to access shapeObj's to > complete the project that I am on. > > Just realized that I did not mention the version in previous mails, > it is 4.8.3. > > Please let me know if there is any more information I can provide. > > Kind regards, > Andre > > > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > > > From mizerkin at WIRZ-KOELN.DE Mon May 29 00:34:23 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Mon, 29 May 2006 09:34:23 +0200 Subject: Zooming to the selected object Message-ID: Hi all! I'm using MapServer in my project for displaying geographical objects (e.g. streets) selected by a user. Basically, I do it by calling 2 layers (one for all streets, the other for selected ones) in URL in the address bar, for Example: http://192.168.0.33/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenid a.map&layer=Street&layer=Sel_Street&oid=53&mode=browse Is it possible to add some parameter to this address line to zoom, say 3x, to the selected object? Thanks in advance! Dmitri -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon May 29 01:03:26 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 May 2006 10:03:26 +0200 Subject: CONEECTIONTYPE via GDAL in MAPSERVER In-Reply-To: <447AC2D1.19803.20E3FF@dovidio.planetek.it> Message-ID: There is no connectiontype GDAL, you just use DATA with the path to the raster file. And yes, this file can be on a remote machine. Best regards, Bart > Hi all, > is it possible to fetch raster data from a remote machine with > CONNECTIONTYPE GDAL > like CONNECTIONTYPE OGR ??? > > > Thank u > ******************************************************************************************** > > > Eng. Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** > The following section of this message contains a file attachment > prepared for transmission using the Internet MIME message format. > If you are using Pegasus Mail, or any other MIME-compliant system, > you should be able to save it or view it from within your mailer. > If you cannot, please ask your system administrator for assistance. > > ---- File information ----------- > File: planetek.gif > Date: 28 Feb 2006, 16:15 > Size: 1899 bytes. > Type: Unknown > From asachs at CLUE.CO.ZA Mon May 29 03:07:44 2006 From: asachs at CLUE.CO.ZA (Andre Sachs) Date: Mon, 29 May 2006 12:07:44 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <75b4b93e0605290053n226c4b8fh6de5b334b17cf107@mail.gmail.com> Message-ID: Hi Umberto, > Can you post the emerge log? Didn't want to spam the list with lots of output, please find the log at : http://crystalspace.net/~asachs/mapserver-4.8.3-emerge.log.txt Thanks and regards, Andre -- Andre Sachs IT Architect, Clue Technologies PTY (LTD) email: andre at clue.co.za From umberto.nicoletti at GMAIL.COM Mon May 29 03:14:57 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 29 May 2006 12:14:57 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <6D94A8AB-8896-46B6-8330-86220A4B7ABD@clue.co.za> Message-ID: Around line 314: the make step for java mapscript does not run the make interface target which is almost alway necessary (See the readme for explanations). I will comment on this on gentoo bugzilla. Try to build mapserver from source or hack the ebuild if you know how (I don't). Best Regards, Umberto On 5/29/06, Andre Sachs wrote: > Hi Umberto, > > > Can you post the emerge log? > > Didn't want to spam the list with lots of output, please find the log > at : > > http://crystalspace.net/~asachs/mapserver-4.8.3-emerge.log.txt > > Thanks and regards, > Andre > > -- > Andre Sachs > IT Architect, Clue Technologies PTY (LTD) > email: andre at clue.co.za > > > From dwija_dey at REDIFFMAIL.COM Mon May 29 03:43:31 2006 From: dwija_dey at REDIFFMAIL.COM (Pratap) Date: Mon, 29 May 2006 10:43:31 -0000 Subject: Help needed in ImageMap Message-ID: Hi List I am sending .php file, map file, imagemap file and all the template files for better understanding. With these files no imagemap.html files are generated in the desired place. Though only maps(GIF) files are generated. I have gone through the tutorilas of imagemap couple of times and everything seems to be correct. and really unable to debug donot know what to do. I am using Red Hat 9 and mapserver4.8/mapscript. I tried with both imagemap.map file & without.Though i have not used any javascript for tooltip feature. Anyway that feature i will add once imagemap.html files are generated. I think that it is not a problem here for generating atleast imagemap.html file by mapserver. Any help will be highly appreciated Thanks in advance. With regards Pratap ? On Fri, 26 May 2006 Pratap wrote : > > Hi > Steve > I am sending the html result of the output of mapserver as a >attachement. Tnaks for reply & >Thanks in advance. >With Regards >Pratap > > > >>>It would be helpfull to see the output from MapServer in this >>case. Can > >>you post the HTML result (as an attachment) or send a link? > >Steve > > >>> "Pratap" 05/25/06 8:07 AM >>> > > >Hi > List and Steve Lime > Plz. donot ignore this message. > I have posted a message for a help in imagemap though, i have not >get any reply. I am trying to imulate the mouseover in browser/mapserver > from >http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >also i am keen to know from steve how to implement the mouseover that i >saw in Steve limes SHPXY example in >http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true >. > > My quries are given below(Specially to Steve for the example that he >has implemented). Hope this time i will get solutions from Steve/List. >Thanks in advance >With Regards. >Pratap > > > >On Fri, 12 May 2006 Pratap wrote : > > > >Hi > >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap > >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > > > My Mapfile for imagemap is: > > ......... > > LAYER > > NAME "city" > > TYPE POINT > > STATUS ON > > DATA "city" > > CLASSITEM "name" > > CLASS > > NAME "CITY NAME" > > EXPRESSION /A*/ > > COLOR 255 0 0 > > OUTLINECOLOR 255 0 0 > > END > > TEMPLATE "bodytemplate.html" > > HEADER "imapheader.html" > > FOOTER "imapfooter.html" > > END > >............ > > > >The content of template file bodytemplate.html is. > >[name] > > > >Q.1)What will be the exact value of href above? > > > >The content of template file imapheader.html is. > > > > > >Q.2)What will be the value of id and name above? > > > >The content of template file imapheader.html is. > > > > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > > > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should > >place it ? and i am using Gmap's PHP/Mapscript engine. > > > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. > >Thanks in advance for any help. > >With regards. > >Pratap -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: imagemap.map Type: application/octet-stream Size: 893 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymap.map Type: application/octet-stream Size: 752 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymap.php.php Type: application/octet-stream Size: 3280 bytes Desc: not available URL: -------------- next part -------------- [latitude] -------------- next part -------------- -------------- next part -------------- From C.Wilmes at GMX.DE Mon May 29 05:05:10 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Mon, 29 May 2006 14:05:10 +0200 Subject: Create a TrueType Font Message-ID: Hi All, has anybody an Idea how I could create my own TrueType Font. I've got already some images which I would like to use for that. It's for using LABELANGLEITEM to rotate a symbol from point-data. Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From bpicinbono at WORLDONLINE.FR Mon May 29 07:02:13 2006 From: bpicinbono at WORLDONLINE.FR (Blaise) Date: Mon, 29 May 2006 16:02:13 +0200 Subject: Create a TrueType Font In-Reply-To: <20060529120510.64240@gmx.net> Message-ID: Hi Christian Have you had a little search with "true type font editor" on the web ? You should find a bunch of them. Also check my last message on the "Rotation Symbols" thread (yesterday). I put a way to rotate point symbols without using labels, it may be helpfull for you. Regards Blaise Le Lundi 29 Mai 2006 14:05, Christian Wilmes a ?crit?: > Hi All, > > has anybody an Idea how I could create my own TrueType Font. I've got > already some images which I would like to use for that. It's for using > LABELANGLEITEM to rotate a symbol from point-data. > > Best Regards > Christian From flavio at TYDAC.CH Mon May 29 07:13:55 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 29 May 2006 16:13:55 +0200 Subject: Create a TrueType Font In-Reply-To: <20060529120510.64240@gmx.net> Message-ID: Hi Christian see http://umn.mapserver.ch under TrueType Symbols. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Christian Wilmes To: MAPSERVER-USERS at lists.umn.edu Date: Mon, 29 May 2006 14:05:10 +0200 Subject: [UMN_MAPSERVER-USERS] Create a TrueType Font > Hi All, > > has anybody an Idea how I could create my own TrueType Font. I've got > already some images which I would like to use for that. It's for > using LABELANGLEITEM to rotate a symbol from point-data. > > Best Regards > Christian > -- > > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > From umberto.nicoletti at GMAIL.COM Mon May 29 07:43:02 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 29 May 2006 16:43:02 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <75b4b93e0605290314n7660f637n2c1965399f83ca78@mail.gmail.com> Message-ID: See my comment (and reply) on gentoo bugzilla and emerge mapserver again. https://bugs.gentoo.org/show_bug.cgi?id=69417 Let me and gentoo bugzilla know if it works. Umberto On 5/29/06, Umberto Nicoletti wrote: > Around line 314: the make step for java mapscript does not run the > make interface target which is almost alway necessary (See the readme > for explanations). > > I will comment on this on gentoo bugzilla. Try to build mapserver from > source or hack the ebuild if you know how (I don't). > > Best Regards, > Umberto > > On 5/29/06, Andre Sachs wrote: > > Hi Umberto, > > > > > Can you post the emerge log? > > > > Didn't want to spam the list with lots of output, please find the log > > at : > > > > http://crystalspace.net/~asachs/mapserver-4.8.3-emerge.log.txt > > > > Thanks and regards, > > Andre > > > > -- > > Andre Sachs > > IT Architect, Clue Technologies PTY (LTD) > > email: andre at clue.co.za > > > > > > > From warmerdam at POBOX.COM Mon May 29 07:48:43 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 29 May 2006 10:48:43 -0400 Subject: temp file names not unique In-Reply-To: <8538.145.50.39.8.1148887080.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Hi list, > > using Mapscript 4.8.3 we have encountered a problem with the uniqueness of > the filenames of scalebar images saved to the ms_tmp directory (filenames > are being reused, resulting in problems with the browser cache). We are > running PHP 4.3.11 as an Apache module. > > What is the status of this problem? I do remember a bugzilla entry about > this by Bill Binko and Daniel Morissette, but I am unable to find it. Bart, Based on an examination of the code, I don't see how this could be happening, but it has been reliably reported. Is it possible for you to construct a case PHP script that demonstrates the problem? What do the temp filenames look like? Looking at the maputil.c log messages, I suspect bug 1312 is the one in question. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1312 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From zhonghaiw at GMAIL.COM Mon May 29 08:31:31 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 29 May 2006 17:31:31 +0200 Subject: tiled raster image can not be displayed. Message-ID: Hi guys, I have a subfolder with GIFs and corresponding .wld files, after performing the gdaltindex command, a "thousand_tile.shp" shapefile and its related .dbf, .shx and .qix files are created, these seem to be fine in the FWTool shell, I defined the things in the mapfile like this: **** EXTENT 205564.586360688 5013961.36761585 672612.323291219 5346702.44618207 . . . SHAPEPATH "./RasterData" . . . LAYER NAME "Test" TYPE RASTER STATUS DEFAULT TILEINDEX "thousand_tile" TILEITEM "LOCATION" #PROJECTION # "init=epsg:4326" #END END ****** I've tried also with or without projection information, it still does not work. And the error info in the IE browser is: msDrawMap(): Image handling error. Failed to draw layer named 'Test'. msSHPOpenFile(): Unable to access file. (/ms4w/apps/Demo/thousand_tile) msSHPOpenFile(): Unable to access file. (/ms4w/apps/Demo/./RasterData/thousand_tile) I just wondered why there are two msSHPOpenFIle() error messages, the /Demo/ is the directory of the mapfile, and the thousand_tile.shp is in the subfolder Demo/RasterData. This path setting works for all the other vector shapefiles, if I delete the above defined raster layer, the map image is returned as normal, but with the raster layer the above given error messages are returned instead. there should be somewhere a stupid mistake I made, but I have no idea where it is. Can you find anything wrong in the above definition? I am using MapServer on WINXP with IIS, the backslash and forward slash make no differences, both work well on WINXP. thanks so much for lighting me. zhonghai 29.05.2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon May 29 08:31:42 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 29 May 2006 17:31:42 +0200 Subject: temp file names not unique In-Reply-To: <447B09CB.4020606@pobox.com> Message-ID: Hi Frank, apparently the php code does not use the tmp file name functions from maputil.c, at least that is what I could make up out of the following bug report: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1322 which was the one I was looking for earlier on. It is hard to make a testcase for this kind of behaviour. If someone is able to make a patch, I would be happy to test it in our environment ofcourse. Best regards, Bart Frank Warmerdam wrote: > Bart van den Eijnden (OSGIS) wrote: > >> Hi list, >> >> using Mapscript 4.8.3 we have encountered a problem with the >> uniqueness of >> the filenames of scalebar images saved to the ms_tmp directory >> (filenames >> are being reused, resulting in problems with the browser cache). We are >> running PHP 4.3.11 as an Apache module. >> >> What is the status of this problem? I do remember a bugzilla entry about >> this by Bill Binko and Daniel Morissette, but I am unable to find it. > > > Bart, > > Based on an examination of the code, I don't see how this could be > happening, > but it has been reliably reported. Is it possible for you to construct a > case PHP script that demonstrates the problem? What do the temp > filenames > look like? > > Looking at the maputil.c log messages, I suspect bug 1312 is the one in > question. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1312 > > Best regards, -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From stuarteve at LPARCHAEOLOGY.COM Mon May 29 08:33:07 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Mon, 29 May 2006 16:33:07 +0100 Subject: Rotating Symbols In-Reply-To: <200605281544.10971.bpicinbono@worldonline.fr> Message-ID: Blaise, Is it possible - do you think - to create these fields on the fly? I don;t really want to have to require people to create a 'fake' point shapefile - just to use these symbols - I would prefer somehow to make a new point layer from the old one (whose source isn't always a shapefile) - and then perhaps dynamically add those values to it. The Mapscript API says that the 'values' array is read-only? is it possible to add new fields to the attribute table - especially if I have created the layer using ms_newLayerObj? If not then I will definitely use your suggestion - and perhaps submit a bug report asking why the 'angle' property isn;t available - even tho in the API it says it should be! Stu Blaise wrote: > Stu > I've got symbols rotated : > mapserver 4.8.3, > point shapefile:"rotlabel", dbf with 2 fields : "ID" and "rotation" > field rotation is numeric, 3 digits, no decimal (0->359) > Layer definition in mapfile : > LAYER > NAME rotlabel > TYPE POINT > STATUS ON > DATA rotlabel > CLASS > NAME "rotlabel" > STYLE > SYMBOL 'triangle' > ANGLEITEM "rotation" > SIZE 15 > COLOR 255 0 255 > END > END > END > > Triangle definition in symbol file (symbols.sym) : > Symbol > Name 'triangle' > Type VECTOR > Filled TRUE > Points > 0 1 > .5 0 > 1 1 > 0 1 > END > END > > No on-the-fly label drawing, just basic layer display. When updating data in > the "rotation" field of the dbf, triangles are rotating... > One strange thing is with angle 90 and 180 : triangles don't display. 89, 91, > 179, 181 are ok, but not 90 and 180. 270 is ok as well. > You should easily custom the triangle symbol into whatever you want (arrow or > else). > Better check that your symbol is displayed for any angle (0->359). There must > be some kind of bug somewhere. Maybe you'll help discovering it. > I hope this is what you were looking for. > Regards > Blaise > > > Le Samedi 27 Mai 2006 17:47, Stuart Eve a ?crit : > >> Blaise >> >> I am working with shapefiles - but am going to need to do this with all >> different types of layers (trying to abstract it out). I have just added >> the 'angle' field to the dbf to try it out and I am still getting the >> same error. >> >> It seems that the styleObj thinks it doesn't have the member of 'angle' >> (or actualy 'angleitem') even though in my mapfile (which I >> automatically output by using $map->save) it has written it like this: >> >> STYLE >> ANGLE 360 >> COLOR 0 0 0 >> SIZE 8 >> SYMBOL "rot_tri" >> END >> >> I am now trying to go through the process of automatically creating the >> rotated symbol on the fly (but the logic of it makes my head hurt!). >> >> Thanks for your help so far! >> >> Stu >> >> Blaise wrote: >> >>> Hi Stu >>> What kind of layer do you use for your symbols, point or annotation ? I >>> assume it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't remember >>> exactly how annotation layers work but it must be the same as point. With >>> point layers, you have to have an "angle" field (numeric, 3 digits >>> without decimal, I believe, not sure) in your dbf file, or maybe better >>> "ANGLE" to be able to set the angle. Do you have this field in the dbf >>> and if not can you try adding it ? >>> And do you have the right angle instructions in the layer section of your >>> mapfile ? If not sure, post your mapfile layer section. >>> Bravo for the work so far. >>> Blaise >>> >>> Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit : >>> >>>> Hi Blaise >>>> >>>> I have managed to get quite a long way down the road of extracting >>>> points and placing them, etc.- and I think its all going to work - >>>> however I have just been stumped by what seems to be to be a bug. >>>> >>>> I have managed to set up classes for each of the points that I wish to >>>> draw - and now want to set their styles so that the symbol (a VECTOR) >>>> symbol is rotated to the angle (which I have got from my geometry >>>> function). However, whenever I try to access styleObj->set("angle",45) >>>> it says that 'angle' doesn't exist in that object. However, I can dump >>>> out the mapfile and it is there set as 360. >>>> >>>> Any ideas whats going on? >>>> >>>> Thanks >>>> >>>> Stu >>>> >>>> Blaise wrote: >>>> >>>>> Stu >>>>> I don't know what output you want exactly, but yes, using mapscript, >>>>> you can easily put an arrow on each segment of a polyline with a loop >>>>> something like : >>>>> for each polyline >>>>> for each segment of polyline >>>>> get start and stop point of segment >>>>> calculate middle point of segment and angle >>>>> create new annotation arrow >>>>> >>>>> The geometry calculation is pretty straight forward, it's basic 2d >>>>> geometry. Ask more if you need help on the mapscript functions and/or >>>>> the geometry calculation. >>>>> But maybe someone else on this list has got a better/different idea. >>>>> Regards >>>>> Blaise >>>>> >>>>> Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : >>>>> >>>>>> Blaise >>>>>> >>>>>> Thanks for the reply. I presume that we could automatically create a >>>>>> bunch of points along the line using mapscript or something - but then >>>>>> how would we make sure that it was always at right angles to the line? >>>>>> I guess we would have to do some fancy geometry to figure out what >>>>>> angle that section of line was... sounds hard! >>>>>> >>>>>> Mind you it may be the only way - thanks for your help! >>>>>> >>>>>> Stu >>>>>> >>>>>> Blaise wrote: >>>>>> >>>>>>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : >>>>>>> >>>>>>>> Dear All, >>>>>>>> >>>>>>>> We have been trying to get symbols to rotate along a line in >>>>>>>> mapserver (4.8.3). Basically we want to get a small triangle >>>>>>>> pointing either 45 degrees or 270 degrees to a line. >>>>>>>> >>>>>>>> We firstly tried using PIXMAPs - but I don;t think its possible to >>>>>>>> rotate these at all (is that true?) plus they do not seem to follow >>>>>>>> the line and always just point 'up'. >>>>>>>> >>>>>>>> So we then tried using some truetype symbols - these follow the line >>>>>>>> - but seem to be rather erratic as to which way they point. We are >>>>>>>> using a small triangle from the webdings.ttf set - and sometimes it >>>>>>>> will point up and sometimes it will point down (but even if its on >>>>>>>> the same section of the line). >>>>>>>> >>>>>>>> Does anyone have any pointers? >>>>>>>> >>>>>>>> Thanks in advance >>>>>>>> >>>>>>>> Stu >>>>>>>> >>>>>>> Hi Stu >>>>>>> Well, not sure about that, but sometimes it's hard to have the >>>>>>> symbols exactly where you want. Perhaps you could create a special >>>>>>> layer (point or annotation) to deal with your triangles. It should >>>>>>> then be easier to manipulate. Of course it's extra data, extra code, >>>>>>> extra mapfile parsing and so on but you'll have your symbols where >>>>>>> you want and well rotated. Regards >>>>>>> Blaise >>>>>>> > > > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From woodbri at SWOODBRIDGE.COM Mon May 29 09:15:17 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 29 May 2006 12:15:17 -0400 Subject: Rotating Symbols In-Reply-To: <447B1433.20804@lparchaeology.com> Message-ID: Stuart, You might want to consider using a PostGIS layer because you and dynamically define the SQL for the layer and that will allow you to dynamically define the attributes or how they are computed. I use a mix of shapefile data for static layers and PostGIS for dynamic layers and it works great. -Steve W. Stuart Eve wrote: > Blaise, > > Is it possible - do you think - to create these fields on the fly? I > don;t really want to have to require people to create a 'fake' point > shapefile - just to use these symbols - I would prefer somehow to make a > new point layer from the old one (whose source isn't always a shapefile) > - and then perhaps dynamically add those values to it. The Mapscript API > says that the 'values' array is read-only? is it possible to add new > fields to the attribute table - especially if I have created the layer > using ms_newLayerObj? > > If not then I will definitely use your suggestion - and perhaps submit a > bug report asking why the 'angle' property isn;t available - even tho in > the API it says it should be! > > Stu > > Blaise wrote: >> Stu >> I've got symbols rotated : >> mapserver 4.8.3, >> point shapefile:"rotlabel", dbf with 2 fields : "ID" and "rotation" >> field rotation is numeric, 3 digits, no decimal (0->359) >> Layer definition in mapfile : >> LAYER >> NAME rotlabel >> TYPE POINT >> STATUS ON >> DATA rotlabel >> CLASS >> NAME "rotlabel" >> STYLE >> SYMBOL 'triangle' >> ANGLEITEM "rotation" >> SIZE 15 >> COLOR 255 0 255 >> END >> END >> END >> Triangle definition in symbol file (symbols.sym) : >> Symbol >> Name 'triangle' >> Type VECTOR >> Filled TRUE >> Points >> 0 1 >> .5 0 >> 1 1 >> 0 1 >> END >> END >> No on-the-fly label drawing, just basic layer display. When updating >> data in the "rotation" field of the dbf, triangles are rotating... >> One strange thing is with angle 90 and 180 : triangles don't display. >> 89, 91, 179, 181 are ok, but not 90 and 180. 270 is ok as well. >> You should easily custom the triangle symbol into whatever you want >> (arrow or else). >> Better check that your symbol is displayed for any angle (0->359). >> There must be some kind of bug somewhere. Maybe you'll help >> discovering it. >> I hope this is what you were looking for. >> Regards >> Blaise >> >> >> Le Samedi 27 Mai 2006 17:47, Stuart Eve a ?crit : >> >>> Blaise >>> >>> I am working with shapefiles - but am going to need to do this with all >>> different types of layers (trying to abstract it out). I have just added >>> the 'angle' field to the dbf to try it out and I am still getting the >>> same error. >>> >>> It seems that the styleObj thinks it doesn't have the member of 'angle' >>> (or actualy 'angleitem') even though in my mapfile (which I >>> automatically output by using $map->save) it has written it like this: >>> >>> STYLE >>> ANGLE 360 >>> COLOR 0 0 0 >>> SIZE 8 >>> SYMBOL "rot_tri" >>> END >>> >>> I am now trying to go through the process of automatically creating the >>> rotated symbol on the fly (but the logic of it makes my head hurt!). >>> >>> Thanks for your help so far! >>> >>> Stu >>> >>> Blaise wrote: >>> >>>> Hi Stu >>>> What kind of layer do you use for your symbols, point or annotation ? I >>>> assume it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't >>>> remember >>>> exactly how annotation layers work but it must be the same as point. >>>> With >>>> point layers, you have to have an "angle" field (numeric, 3 digits >>>> without decimal, I believe, not sure) in your dbf file, or maybe better >>>> "ANGLE" to be able to set the angle. Do you have this field in the dbf >>>> and if not can you try adding it ? >>>> And do you have the right angle instructions in the layer section of >>>> your >>>> mapfile ? If not sure, post your mapfile layer section. >>>> Bravo for the work so far. >>>> Blaise >>>> >>>> Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit : >>>> >>>>> Hi Blaise >>>>> >>>>> I have managed to get quite a long way down the road of extracting >>>>> points and placing them, etc.- and I think its all going to work - >>>>> however I have just been stumped by what seems to be to be a bug. >>>>> >>>>> I have managed to set up classes for each of the points that I wish to >>>>> draw - and now want to set their styles so that the symbol (a VECTOR) >>>>> symbol is rotated to the angle (which I have got from my geometry >>>>> function). However, whenever I try to access styleObj->set("angle",45) >>>>> it says that 'angle' doesn't exist in that object. However, I can dump >>>>> out the mapfile and it is there set as 360. >>>>> >>>>> Any ideas whats going on? >>>>> >>>>> Thanks >>>>> >>>>> Stu >>>>> >>>>> Blaise wrote: >>>>> >>>>>> Stu >>>>>> I don't know what output you want exactly, but yes, using mapscript, >>>>>> you can easily put an arrow on each segment of a polyline with a loop >>>>>> something like : >>>>>> for each polyline >>>>>> for each segment of polyline >>>>>> get start and stop point of segment >>>>>> calculate middle point of segment and angle >>>>>> create new annotation arrow >>>>>> >>>>>> The geometry calculation is pretty straight forward, it's basic 2d >>>>>> geometry. Ask more if you need help on the mapscript functions and/or >>>>>> the geometry calculation. >>>>>> But maybe someone else on this list has got a better/different idea. >>>>>> Regards >>>>>> Blaise >>>>>> >>>>>> Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : >>>>>> >>>>>>> Blaise >>>>>>> >>>>>>> Thanks for the reply. I presume that we could automatically create a >>>>>>> bunch of points along the line using mapscript or something - but >>>>>>> then >>>>>>> how would we make sure that it was always at right angles to the >>>>>>> line? >>>>>>> I guess we would have to do some fancy geometry to figure out what >>>>>>> angle that section of line was... sounds hard! >>>>>>> >>>>>>> Mind you it may be the only way - thanks for your help! >>>>>>> >>>>>>> Stu >>>>>>> >>>>>>> Blaise wrote: >>>>>>> >>>>>>>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : >>>>>>>> >>>>>>>>> Dear All, >>>>>>>>> >>>>>>>>> We have been trying to get symbols to rotate along a line in >>>>>>>>> mapserver (4.8.3). Basically we want to get a small triangle >>>>>>>>> pointing either 45 degrees or 270 degrees to a line. >>>>>>>>> >>>>>>>>> We firstly tried using PIXMAPs - but I don;t think its possible to >>>>>>>>> rotate these at all (is that true?) plus they do not seem to >>>>>>>>> follow >>>>>>>>> the line and always just point 'up'. >>>>>>>>> >>>>>>>>> So we then tried using some truetype symbols - these follow the >>>>>>>>> line >>>>>>>>> - but seem to be rather erratic as to which way they point. We are >>>>>>>>> using a small triangle from the webdings.ttf set - and >>>>>>>>> sometimes it >>>>>>>>> will point up and sometimes it will point down (but even if its on >>>>>>>>> the same section of the line). >>>>>>>>> >>>>>>>>> Does anyone have any pointers? >>>>>>>>> >>>>>>>>> Thanks in advance >>>>>>>>> >>>>>>>>> Stu >>>>>>>>> >>>>>>>> Hi Stu >>>>>>>> Well, not sure about that, but sometimes it's hard to have the >>>>>>>> symbols exactly where you want. Perhaps you could create a special >>>>>>>> layer (point or annotation) to deal with your triangles. It should >>>>>>>> then be easier to manipulate. Of course it's extra data, extra >>>>>>>> code, >>>>>>>> extra mapfile parsing and so on but you'll have your symbols where >>>>>>>> you want and well rotated. Regards >>>>>>>> Blaise >>>>>>>> >> >> >> >> > > From stuarteve at LPARCHAEOLOGY.COM Mon May 29 09:16:20 2006 From: stuarteve at LPARCHAEOLOGY.COM (Stuart Eve) Date: Mon, 29 May 2006 17:16:20 +0100 Subject: Rotating Symbols In-Reply-To: <447B1433.20804@lparchaeology.com> Message-ID: Blaise Just a quick reply to myself and you! It seems (after checking thru Bugzilla - before submitting a bug) that the guys have added the styleObj set angle option in the CVS version (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1786) bug 1786. Haven't tried it yet - but if thats the case then all my problems are solved! Thanks guys! Stu Stuart Eve wrote: > Blaise, > > Is it possible - do you think - to create these fields on the fly? I > don;t really want to have to require people to create a 'fake' point > shapefile - just to use these symbols - I would prefer somehow to make > a new point layer from the old one (whose source isn't always a > shapefile) - and then perhaps dynamically add those values to it. The > Mapscript API says that the 'values' array is read-only? is it > possible to add new fields to the attribute table - especially if I > have created the layer using ms_newLayerObj? > > If not then I will definitely use your suggestion - and perhaps submit > a bug report asking why the 'angle' property isn;t available - even > tho in the API it says it should be! > > Stu > > Blaise wrote: >> Stu >> I've got symbols rotated : >> mapserver 4.8.3, >> point shapefile:"rotlabel", dbf with 2 fields : "ID" and "rotation" >> field rotation is numeric, 3 digits, no decimal (0->359) >> Layer definition in mapfile : >> LAYER >> NAME rotlabel >> TYPE POINT >> STATUS ON >> DATA rotlabel >> CLASS >> NAME "rotlabel" >> STYLE >> SYMBOL 'triangle' >> ANGLEITEM "rotation" >> SIZE 15 >> COLOR 255 0 255 >> END >> END >> END >> Triangle definition in symbol file (symbols.sym) : >> Symbol >> Name 'triangle' >> Type VECTOR >> Filled TRUE >> Points >> 0 1 >> .5 0 >> 1 1 >> 0 1 >> END >> END >> No on-the-fly label drawing, just basic layer display. When updating >> data in the "rotation" field of the dbf, triangles are rotating... >> One strange thing is with angle 90 and 180 : triangles don't display. >> 89, 91, 179, 181 are ok, but not 90 and 180. 270 is ok as well. >> You should easily custom the triangle symbol into whatever you want >> (arrow or else). >> Better check that your symbol is displayed for any angle (0->359). >> There must be some kind of bug somewhere. Maybe you'll help >> discovering it. >> I hope this is what you were looking for. >> Regards >> Blaise >> >> >> Le Samedi 27 Mai 2006 17:47, Stuart Eve a ?crit : >> >>> Blaise >>> >>> I am working with shapefiles - but am going to need to do this with all >>> different types of layers (trying to abstract it out). I have just >>> added >>> the 'angle' field to the dbf to try it out and I am still getting the >>> same error. >>> >>> It seems that the styleObj thinks it doesn't have the member of 'angle' >>> (or actualy 'angleitem') even though in my mapfile (which I >>> automatically output by using $map->save) it has written it like this: >>> >>> STYLE >>> ANGLE 360 >>> COLOR 0 0 0 >>> SIZE 8 >>> SYMBOL "rot_tri" >>> END >>> >>> I am now trying to go through the process of automatically creating the >>> rotated symbol on the fly (but the logic of it makes my head hurt!). >>> >>> Thanks for your help so far! >>> >>> Stu >>> >>> Blaise wrote: >>> >>>> Hi Stu >>>> What kind of layer do you use for your symbols, point or annotation >>>> ? I >>>> assume it's a shapefile (*.shp, *.shx, *.dbf) isn't it ? I don't >>>> remember >>>> exactly how annotation layers work but it must be the same as >>>> point. With >>>> point layers, you have to have an "angle" field (numeric, 3 digits >>>> without decimal, I believe, not sure) in your dbf file, or maybe >>>> better >>>> "ANGLE" to be able to set the angle. Do you have this field in the dbf >>>> and if not can you try adding it ? >>>> And do you have the right angle instructions in the layer section >>>> of your >>>> mapfile ? If not sure, post your mapfile layer section. >>>> Bravo for the work so far. >>>> Blaise >>>> >>>> Le Samedi 27 Mai 2006 16:58, Stuart Eve a ?crit : >>>> >>>>> Hi Blaise >>>>> >>>>> I have managed to get quite a long way down the road of extracting >>>>> points and placing them, etc.- and I think its all going to work - >>>>> however I have just been stumped by what seems to be to be a bug. >>>>> >>>>> I have managed to set up classes for each of the points that I >>>>> wish to >>>>> draw - and now want to set their styles so that the symbol (a VECTOR) >>>>> symbol is rotated to the angle (which I have got from my geometry >>>>> function). However, whenever I try to access >>>>> styleObj->set("angle",45) >>>>> it says that 'angle' doesn't exist in that object. However, I can >>>>> dump >>>>> out the mapfile and it is there set as 360. >>>>> >>>>> Any ideas whats going on? >>>>> >>>>> Thanks >>>>> >>>>> Stu >>>>> >>>>> Blaise wrote: >>>>> >>>>>> Stu >>>>>> I don't know what output you want exactly, but yes, using mapscript, >>>>>> you can easily put an arrow on each segment of a polyline with a >>>>>> loop >>>>>> something like : >>>>>> for each polyline >>>>>> for each segment of polyline >>>>>> get start and stop point of segment >>>>>> calculate middle point of segment and angle >>>>>> create new annotation arrow >>>>>> >>>>>> The geometry calculation is pretty straight forward, it's basic 2d >>>>>> geometry. Ask more if you need help on the mapscript functions >>>>>> and/or >>>>>> the geometry calculation. >>>>>> But maybe someone else on this list has got a better/different idea. >>>>>> Regards >>>>>> Blaise >>>>>> >>>>>> Le Vendredi 26 Mai 2006 16:41, vous avez ?crit : >>>>>> >>>>>>> Blaise >>>>>>> >>>>>>> Thanks for the reply. I presume that we could automatically >>>>>>> create a >>>>>>> bunch of points along the line using mapscript or something - >>>>>>> but then >>>>>>> how would we make sure that it was always at right angles to the >>>>>>> line? >>>>>>> I guess we would have to do some fancy geometry to figure out what >>>>>>> angle that section of line was... sounds hard! >>>>>>> >>>>>>> Mind you it may be the only way - thanks for your help! >>>>>>> >>>>>>> Stu >>>>>>> >>>>>>> Blaise wrote: >>>>>>> >>>>>>>> Le Vendredi 26 Mai 2006 16:23, Stuart Eve a ?crit : >>>>>>>> >>>>>>>>> Dear All, >>>>>>>>> >>>>>>>>> We have been trying to get symbols to rotate along a line in >>>>>>>>> mapserver (4.8.3). Basically we want to get a small triangle >>>>>>>>> pointing either 45 degrees or 270 degrees to a line. >>>>>>>>> >>>>>>>>> We firstly tried using PIXMAPs - but I don;t think its >>>>>>>>> possible to >>>>>>>>> rotate these at all (is that true?) plus they do not seem to >>>>>>>>> follow >>>>>>>>> the line and always just point 'up'. >>>>>>>>> >>>>>>>>> So we then tried using some truetype symbols - these follow >>>>>>>>> the line >>>>>>>>> - but seem to be rather erratic as to which way they point. We >>>>>>>>> are >>>>>>>>> using a small triangle from the webdings.ttf set - and >>>>>>>>> sometimes it >>>>>>>>> will point up and sometimes it will point down (but even if >>>>>>>>> its on >>>>>>>>> the same section of the line). >>>>>>>>> >>>>>>>>> Does anyone have any pointers? >>>>>>>>> >>>>>>>>> Thanks in advance >>>>>>>>> >>>>>>>>> Stu >>>>>>>>> >>>>>>>> Hi Stu >>>>>>>> Well, not sure about that, but sometimes it's hard to have the >>>>>>>> symbols exactly where you want. Perhaps you could create a special >>>>>>>> layer (point or annotation) to deal with your triangles. It should >>>>>>>> then be easier to manipulate. Of course it's extra data, extra >>>>>>>> code, >>>>>>>> extra mapfile parsing and so on but you'll have your symbols where >>>>>>>> you want and well rotated. Regards >>>>>>>> Blaise >>>>>>>> >> >> >> >> > > -- Stuart Eve L - P : Archaeology stuarteve at lparchaeology.com From trondmm-mapserver at CRUSADERS.NO Mon May 29 10:52:49 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Mon, 29 May 2006 19:52:49 +0200 Subject: Changing styles at different zoomlevels Message-ID: Hi. What's the preferred way of setting different styles to a layer at different zoom levels? I use a 6 pixels wide line to draw highways, but when you zoom far out, the roads just get too big. I know I can set maxlevel to turn the layer off, and I do turn off smaller roads at smaller scales, but I'd like to be able to show the highways with at different symbol (thinner line) as the user zooms out. Now, it's not very difficoult to do this with minscale/maxscale and extra classes for the highways, but the problem is that the legend will include all versions of the highway-symbols, regardless of the zoomlevel. Is there a way to tell mapserver not to draw legendsymbols for the classes that aren't drawn at a particular zoom level? My layer is defined somewhat like this: LAYER name "roads" data roads status on type vector minscale 200000 maxscale 10000000 classitem "type" CLASS name "Highway" expression "H" maxscale 4000000 STYLE symbol "point" size 6 color 0 0 0 END STYLE symbol "point" size 4 color 255 255 0 END END CLASS name "Highway" expression "H" minscale 4000000 STYLE symbol "point" size 2 color 0 0 0 END END END -- Trond Michelsen From szekerest at GMAIL.COM Mon May 29 12:23:44 2006 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 29 May 2006 21:23:44 +0200 Subject: Changing styles at different zoomlevels In-Reply-To: <20060529175249.GF1775@crusaders.no> Message-ID: Which mapserver version are you using? As far as i know this legend drawing problem was corrected according to http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1524 Best Regards, Tamas Szekeres -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Trond Michelsen Sent: Monday, May 29, 2006 7:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Changing styles at different zoomlevels Hi. What's the preferred way of setting different styles to a layer at different zoom levels? I use a 6 pixels wide line to draw highways, but when you zoom far out, the roads just get too big. I know I can set maxlevel to turn the layer off, and I do turn off smaller roads at smaller scales, but I'd like to be able to show the highways with at different symbol (thinner line) as the user zooms out. Now, it's not very difficoult to do this with minscale/maxscale and extra classes for the highways, but the problem is that the legend will include all versions of the highway-symbols, regardless of the zoomlevel. Is there a way to tell mapserver not to draw legendsymbols for the classes that aren't drawn at a particular zoom level? My layer is defined somewhat like this: LAYER name "roads" data roads status on type vector minscale 200000 maxscale 10000000 classitem "type" CLASS name "Highway" expression "H" maxscale 4000000 STYLE symbol "point" size 6 color 0 0 0 END STYLE symbol "point" size 4 color 255 255 0 END END CLASS name "Highway" expression "H" minscale 4000000 STYLE symbol "point" size 2 color 0 0 0 END END END -- Trond Michelsen -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 2006.05.29. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 2006.05.29. From trondmm-mapserver at CRUSADERS.NO Mon May 29 12:38:07 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Mon, 29 May 2006 21:38:07 +0200 Subject: Changing styles at different zoomlevels In-Reply-To: <447b4a1c.011b2a87.6887.20e4@mx.gmail.com> Message-ID: On Mon, May 29, 2006 at 09:23:44PM +0200, Tamas Szekeres wrote: > Which mapserver version are you using? As far as i know this legend drawing > problem was corrected according to > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1524 Ah. I'm still using 4.4, but this seems like a good opportunity to upgrade, I think :) Thanks. -- Trond Michelsen From perrygeo at GMAIL.COM Mon May 29 18:35:20 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 29 May 2006 18:35:20 -0700 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <44775485.8000109@dmsolutions.ca> Message-ID: On 5/26/06, Jeff McKenna wrote: > >> I can say that MS4W has been using Apache2, with PHP/MapScript for years > >> now, and there are no issues that I am aware of. > > > >Gregor Mosheh wrote: > > Neat-o. How about PHP as a DSO? > > I was told, as recently as 2 months ago, that PHP/DSO was unstable -- it > > would seem to work, but under moderate load would start acting flaky. > > > I'll defer that question to the people who know. I don't know of the > DSO status (can someone else please answer?). I followed the Verbose Linux Installation tutorial on the mapserver site to get PHP5 running as a DSO under Apache2. It works.. sort of. Under very light concurrent use, it would sporadically fail; usually refreshing the page in the browser 'fixed' it. And when I installed ka-map, it would drop tiles seemingly randomly (see attached screenshot). This lead me to believe that, as of release 4.8.3, running Mapscript under PHP5 as an Apache2 DSO is not stable for production use. Like most folks, I didn't have the time to debug this... I have reverted back to a PHP4-CGI/Apache2 setup with zero problems. -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.jpg Type: image/jpeg Size: 10291 bytes Desc: not available URL: From listuser at HERZSYS.DE Tue May 30 00:02:39 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 30 May 2006 09:02:39 +0200 Subject: Create a TrueType Font In-Reply-To: <20060529120510.64240@gmx.net> Message-ID: Christian Wilmes wrote: >Hi All, > >has anybody an Idea how I could create my own TrueType Font. I've got already some images which I would like to use for that. It's for using LABELANGLEITEM to rotate a symbol from point-data. > >Best Regards >Christian > > Hi, if you have corel draw you can use it to create true type fonts. I think this is possible since version 5 - if I remember correctly. I can give you a short documentation how to do this but I only have this in german. If you are interested let me know. Regards Norbert From micha at ARAVA.CO.IL Tue May 30 05:33:48 2006 From: micha at ARAVA.CO.IL (Micha Silver) Date: Tue, 30 May 2006 14:33:48 +0200 Subject: mapserver and selinux Message-ID: I've setup mapserver-4.8.3 on a CentOS-4.3 server. With SELinux enabled I can't get mapserv in /var/www/cgi-bin to work. It can't find libpq.so. Running ldd on the mapserv binary in the original compile location returns OK: [root at maps ~]# ldd /home/micha/download/mapserver-4.8.3/mapserv | grep libpq libpq.so.4 => /var/lib/pgsql/lib/libpq.so.4 (0x0072d000) But running ldd on the *same* binary copied to /var/www/cgi-bin: [root at maps ~]# cp /home/micha/download/mapserver-4.8.3/mapserv /var/www/cgi-bin/ [root at maps ~]# ldd /var/www/cgi-bin/mapserv | grep libpq libpq.so.4 => not found libpq.so.4 => not found The copy has selinux context: [root at maps ~]# ls -Z /var/www/cgi-bin/mapserv -rwxr-xr-x root root root:object_r:httpd_sys_script_exec_t /var/www/cgi-bin/mapserv and indeed in the messages log there are "audit:...avc: denied" errors for mapserv: May 30 14:11:11 maps kernel: audit(1148987471.254:2): avc: denied { read write } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:initrc_devpts_t tclass=chr_file May 30 14:11:11 maps kernel: audit(1148987471.254:3): avc: denied { use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 scontext=root:system_r:httpd_sys_script_t tcontext=user_u:system_r:initrc_t tclass=fd May 30 14:11:11 maps kernel: audit(1148987471.254:4): avc: denied { use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 scontext=root:system_r:httpd_sys_script_t tcontext=user_u:system_r:initrc_t tclass=fd May 30 14:11:11 maps kernel: audit(1148987471.255:5): avc: denied { read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 ino=1423567 scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t tclass=lnk_file May 30 14:11:11 maps kernel: audit(1148987471.331:6): avc: denied { read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 ino=1423567 scontext=root:system_r:httpd_sys_script_t tcontext=root:object_r:var_lib_t tclass=lnk_file If I drop the seliux level to "permissive" (logs error but doesn't deny) then mapserv works as expected. Can anyone suggest how to set this up, short of disabling selinux?? Thanks, Micha -- Micha Silver Arava Development Co +972-8-6592270 From listuser at HERZSYS.DE Tue May 30 06:06:59 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Tue, 30 May 2006 15:06:59 +0200 Subject: mapserver and selinux In-Reply-To: <447C3BAC.40502@arava.co.il> Message-ID: Micha Silver wrote: > I've setup mapserver-4.8.3 on a CentOS-4.3 server. With SELinux > enabled I can't get mapserv in /var/www/cgi-bin to work. It can't find > libpq.so. Running ldd on the mapserv binary in the original compile > location returns OK: > > [root at maps ~]# ldd /home/micha/download/mapserver-4.8.3/mapserv | grep > libpq > libpq.so.4 => /var/lib/pgsql/lib/libpq.so.4 (0x0072d000) > > But running ldd on the *same* binary copied to /var/www/cgi-bin: > [root at maps ~]# cp /home/micha/download/mapserver-4.8.3/mapserv > /var/www/cgi-bin/ > [root at maps ~]# ldd /var/www/cgi-bin/mapserv | grep libpq > libpq.so.4 => not found > libpq.so.4 => not found > > The copy has selinux context: > [root at maps ~]# ls -Z /var/www/cgi-bin/mapserv > -rwxr-xr-x root root root:object_r:httpd_sys_script_exec_t > /var/www/cgi-bin/mapserv > > and indeed in the messages log there are "audit:...avc: denied" errors > for mapserv: > May 30 14:11:11 maps kernel: audit(1148987471.254:2): avc: denied { > read write } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 > scontext=root:system_r:httpd_sys_script_t > tcontext=root:object_r:initrc_devpts_t tclass=chr_file > May 30 14:11:11 maps kernel: audit(1148987471.254:3): avc: denied { > use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 > scontext=root:system_r:httpd_sys_script_t > tcontext=user_u:system_r:initrc_t tclass=fd > May 30 14:11:11 maps kernel: audit(1148987471.254:4): avc: denied { > use } for pid=2662 comm="mapserv" name="0" dev=devpts ino=2 > scontext=root:system_r:httpd_sys_script_t > tcontext=user_u:system_r:initrc_t tclass=fd > May 30 14:11:11 maps kernel: audit(1148987471.255:5): avc: denied { > read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 > ino=1423567 scontext=root:system_r:httpd_sys_script_t > tcontext=root:object_r:var_lib_t tclass=lnk_file > May 30 14:11:11 maps kernel: audit(1148987471.331:6): avc: denied { > read } for pid=2662 comm="mapserv" name="libpq.so.4" dev=sda2 > ino=1423567 scontext=root:system_r:httpd_sys_script_t > tcontext=root:object_r:var_lib_t tclass=lnk_file > > If I drop the seliux level to "permissive" (logs error but doesn't > deny) then mapserv works as expected. > > Can anyone suggest how to set this up, short of disabling selinux?? > > Thanks, Micha > > Hi, I think you could use something like: chcon -c -v -R -u system_u -r object_r -t lib_t [path/to/lib/folder] I'm not familiar with SELinux so check the args in the man for chcon. Regards Norbert From C.Wilmes at GMX.DE Tue May 30 06:11:39 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 30 May 2006 15:11:39 +0200 Subject: Problem: ANGLEITEM and TRANSPARENT Message-ID: Hi All, I'm trying to visualize point-data with the mapserver. As symbol I'm using a transparent PIXMAP. Now I want to use ANGLEITEM in the STYLE-Object, ANGLEITEM itself is working fine, but using it causes the lost of the transperency. Instead of the parameter TRANSPARNZ in the SYMBOL-Object I also tried it with a gif and a png which has already a transparent background. The result is the same, without ANGLEITEM it works fine but without it doesn't. Does anybody have an idea how to fix that problem? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From dbadke at UVIC.CA Tue May 30 08:28:27 2006 From: dbadke at UVIC.CA (David Badke) Date: Tue, 30 May 2006 08:28:27 -0700 Subject: Apache 2 / PHP DSO -- Status? In-Reply-To: <5383fa5e0605291835x75bec59aq3477562e72066704@mail.gmail.com> Message-ID: We have Mapscript 4.8.1 running under Apache 2/PHP 5, and it seems stable, except that TrueType fonts don't work. They cause an immediate segmentation fault in MapScript; we have never figured out why. Everything else appears to be working OK. David Matthew Perry wrote: > I followed the Verbose Linux Installation tutorial > on the > mapserver site to get PHP5 running as a DSO under Apache2. > > It works.. sort of. Under very light concurrent use, it would > sporadically fail; usually refreshing the page in the browser 'fixed' > it. And when I installed ka-map, it would drop tiles seemingly > randomly (see attached screenshot). > > This lead me to believe that, as of release 4.8.3, running Mapscript > under PHP5 as an Apache2 DSO is not stable for production use. Like > most folks, I didn't have the time to debug this... I have reverted > back to a PHP4-CGI/Apache2 setup with zero problems. > -- David Badke Humanities Computing and Media Center University of Victoria, BC, Canada From toni at SIGTE.UDG.ES Tue May 30 08:50:40 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 30 May 2006 17:50:40 +0200 Subject: ZOOM TO A SELECTED OBJECT In-Reply-To: <5383fa5e0605291835x75bec59aq3477562e72066704@mail.gmail.com> Message-ID: Hi, I have a layer of municipalities boundaries (SHP file with polygons) How can I zoom to a municipality selected for the user from an HTML form? Ex. Zoom to a municpality called "SALT". Maybe changing the map file dynamically? I have been reading about filter and fitleritem but I do not see how can make a zoom to a particular municpality. thanks From siki at AGT.BME.HU Tue May 30 12:28:42 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 30 May 2006 18:28:42 -0100 Subject: ZOOM TO A SELECTED OBJECT {Scanned} In-Reply-To: <447C69D0.6030102@sigte.udg.es> Message-ID: Hi, Check itemquery and itemnquery modes, qstring, qlayer, qitem in map file reference and mapext=shapes. Bye Zoltan On Tue, 30 May 2006, [ISO-8859-1] toni hern?ndez wrote: > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks > From parrott.sarah at GOOGLEMAIL.COM Tue May 30 09:24:48 2006 From: parrott.sarah at GOOGLEMAIL.COM (Sarah Parrott) Date: Tue, 30 May 2006 17:24:48 +0100 Subject: Make points on a map clickable + use criteria from MySQL Message-ID: Hi, Is there a way to make points on a map clickable? Basically I want the user to be able to look at the map and then select a subset of the points on it by clicking on them and then use this 'list' of points somewhere else. The points are stored in a shapefile which is displayed on top of a raster layer. Also, with the same points in the shapefile, can I display them differently depending on a value in a mysql database? Each user will have their own data about that point - mainly whether or not they have been there - and I want to be able to show points they have visited in a different way to points they haven't. Thanks! Sparrott :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at GMAIL.COM Tue May 30 09:26:49 2006 From: iansgis at GMAIL.COM (Ian) Date: Tue, 30 May 2006 09:26:49 -0700 Subject: Image Map and MS CGI controls In-Reply-To: <20060526225751.57108.qmail@web30308.mail.mud.yahoo.com> Message-ID: Hi Randy that helped, thank you! Now I have a new problem though. MapServer is treating my unique identifiers (SITE_ID) as numbers when they are actually strings, and I'm getting this error: Content-type: text/html msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-01722: invalid number . Query statement: SELECT SITE_ID, SITE_CODE, SHAPE FROM (select site_id,site_code,shape from site where site_id in (select cm.monument_id from campaign_monument cm, geodetic_campaign gc where gc.code = 'YOLO2005' and gc.id = cm.geodetic_campaign_id)) WHERE SITE_ID = 3080000 .Check your data statement. How can I get MS to see these UIDs as strings instead? Thank you, Ian On 5/26/06, Randy James wrote: > > Hi me > > Have you tried adjusting the TOLERANCE and TOLERANCEUNITS parameters > for your point layer in your mapfile? > Randy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue May 30 09:51:21 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 30 May 2006 12:51:21 -0400 Subject: Make points on a map clickable + use criteria from MySQL In-Reply-To: <23c59e280605300924v2c584ac1kc431e52202f12737@mail.gmail.com> Message-ID: One way to do this is with an imagemap that calls a javascript function it add the item to an array. Then you can fetch and use the array of items for whatever later. -Steve W Sarah Parrott wrote: > Hi, > > Is there a way to make points on a map clickable? Basically I want the > user to be able to look at the map and then select a subset of the > points on it by clicking on them and then use this 'list' of points > somewhere else. The points are stored in a shapefile which is displayed > on top of a raster layer. > > Also, with the same points in the shapefile, can I display them > differently depending on a value in a mysql database? Each user will > have their own data about that point - mainly whether or not they have > been there - and I want to be able to show points they have visited in a > different way to points they haven't. > > Thanks! > > Sparrott :) From miked at JAMAGINATION.COM Tue May 30 10:17:22 2006 From: miked at JAMAGINATION.COM (Mike D'Ambrogia) Date: Tue, 30 May 2006 10:17:22 -0700 Subject: Make points on a map clickable + use criteria from MySQL In-Reply-To: <447C7809.1020405@swoodbridge.com> Message-ID: How would you determine which point you were looking at off the imagemap? -----Original Message----- One way to do this is with an imagemap that calls a javascript function it add the item to an array. Then you can fetch and use the array of items for whatever later. -Steve W Sarah Parrott wrote: > Hi, > > Is there a way to make points on a map clickable? Basically I want > the > user to be able to look at the map and then select a subset of the > points on it by clicking on them and then use this 'list' of points > somewhere else. The points are stored in a shapefile which is displayed > on top of a raster layer. > > Also, with the same points in the shapefile, can I display them > differently depending on a value in a mysql database? Each user will > have their own data about that point - mainly whether or not they have > been there - and I want to be able to show points they have visited in a > different way to points they haven't. > > Thanks! > > Sparrott :) From David.Fawcett at STATE.MN.US Tue May 30 10:03:56 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 30 May 2006 12:03:56 -0500 Subject: Make points on a map clickable + use criteria from MySQL Message-ID: Sarah, You can accomplish the 'clickable-ness' in one of two ways. You can do a point query to return attribute information about a point or points within the tolerance distance. The other way to do it is with imagemaps. Take a look at the imagemap Howto: http://mapserver.gis.umn.edu/docs/howto/imagemaps I think that you are actually looking for more than just a simple imagemap though. It sounds like you want to a 'sticky' selector so you can select multiple points before running the query. This is going to most likely require some client-side javascript. Luckily for you, Steve Lime has done something similar with polygons. Take a look at his example at: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_ma ps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap =true As for querying based on attributes in a joined MySQL database, I am not sure of the status of the join functionality. It it is possible, it would be done using MapServer compiled with OGR. If your attribute data is already in MySQL, and you are just plotting points, you not just store your point locations in MySQL as well? That way, you could just query the points that you want. Take a look at: http://mapserver.gis.umn.edu/docs/howto/ogrmysql You need a relatively recent MapServer/OGR compile to do this. Probably within the past year on Windows, but last month or two on 'nix. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sarah Parrott Sent: Tuesday, May 30, 2006 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Make points on a map clickable + use criteria from MySQL Hi, Is there a way to make points on a map clickable? Basically I want the user to be able to look at the map and then select a subset of the points on it by clicking on them and then use this 'list' of points somewhere else. The points are stored in a shapefile which is displayed on top of a raster layer. Also, with the same points in the shapefile, can I display them differently depending on a value in a mysql database? Each user will have their own data about that point - mainly whether or not they have been there - and I want to be able to show points they have visited in a different way to points they haven't. Thanks! Sparrott :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue May 30 11:01:18 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 30 May 2006 13:01:18 -0500 Subject: Problem: ANGLEITEM and TRANSPARENT Message-ID: Christian: The problem seems to be in GD. Transparency is lost after rotation and I've tried a variety of methods to rebuild it post rotation and it simply doesn't work. That said, the folks have MapMedia have submitted a new image rotation function that should fix the issue and some others with resampling method. I need to integrate that into the development version for testing. I will do that tonite... Steve >>> Christian Wilmes 5/30/2006 8:11:39 AM >>> Hi All, I'm trying to visualize point-data with the mapserver. As symbol I'm using a transparent PIXMAP. Now I want to use ANGLEITEM in the STYLE-Object, ANGLEITEM itself is working fine, but using it causes the lost of the transperency. Instead of the parameter TRANSPARNZ in the SYMBOL-Object I also tried it with a gif and a png which has already a transparent background. The result is the same, without ANGLEITEM it works fine but without it doesn't. Does anybody have an idea how to fix that problem? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From fredlucca at GMAIL.COM Tue May 30 12:08:01 2006 From: fredlucca at GMAIL.COM (Frederico Lucca) Date: Tue, 30 May 2006 16:08:01 -0300 Subject: Problems with querybypoint Message-ID: Hello list, After a couple of request at same time my Tomcat broke with this error: # Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [libc.so.6+0x6c91c] mempcpy+0x1c # --------------- T H R E A D --------------- Current thread (0x6d049348): JavaThread "http-8080-Processor23" daemon [_thread_in_native, id=11434] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000 Stack: [0x6c06d000,0x6c0ee000), sp=0x6c0ebad4, free space=506k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x6c91c] mempcpy+0x1c C [libc.so.6+0x60b08] _IO_sgetn+0x28 C [libc.so.6+0x5548e] _IO_fread+0x8e C [libmapscript.so+0x6b968] msSHPOpen+0x478 C [libmapscript.so+0x6bba5] msSHPOpenFile+0x55 C [libmapscript.so+0x6bdce] msShapeFileLayerOpen+0x8e C [libmapscript.so+0x95341] msLayerOpen+0x61 C [libmapscript.so+0x86362] msQueryByPoint+0x172 C [libmapscript.so+0x57f4d] layerObj_queryByPoint+0x4d C [libmapscript.so+0x57fc1] Java_edu_umn_gis_mapscript_mapscriptJNI_layerObj_1queryByPoint+0x61 j edu.umn.gis.mapscript.mapscriptJNI.layerObj_queryByPoint(JJJID)I+0 --------------- S Y S T E M --------------- OS:Mandriva Linux release 2007.0 (Cooker) for i586 uname:Linux 2.6.16-1mdksmp #1 SMP Fri May 19 19:16:59 CEST 2006 i686 libc:glibc 2.4 NPTL 2.4 Could somebody help me? Thanks in advance, Fred -- "Everything under the sun is in tune But the sun is eclipsed by the moon" -------------- next part -------------- An HTML attachment was scrubbed... URL: From listario at GMAIL.COM Tue May 30 12:09:17 2006 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 30 May 2006 21:09:17 +0200 Subject: ZOOM TO A SELECTED OBJECT In-Reply-To: <447C69D0.6030102@sigte.udg.es> Message-ID: Hi Toni You can use the itemquery mode to select the municipality and the mapxy parameter to set the map extent, mapxy=shape set map extent to the extent of the selected shape. See also the buffer and scale parameters. Hope this helps. Best regards, Jorge 2006/5/30, toni hern?ndez : > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks > From Steve.Lime at DNR.STATE.MN.US Tue May 30 13:39:38 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 30 May 2006 15:39:38 -0500 Subject: Help needed in ImageMap Message-ID: There is no image map in that output??? Steve >>> "Pratap" 5/26/2006 7:16:32 AM >>> Hi Steve I am sending the html result of the output of mapserver as a attachement. Tnaks for reply & Thanks in advance. With Regards Pratap >>>It would be helpfull to see the output from MapServer in this >>case. Can >>you post the HTML result (as an attachment) or send a link? Steve >>> "Pratap" 05/25/06 8:07 AM >>> Hi List and Steve Lime Plz. donot ignore this message. I have posted a message for a help in imagemap though, i have not get any reply. I am trying to imulate the mouseover in browser/mapserver from http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap also i am keen to know from steve how to implement the mouseover that i saw in Steve limes SHPXY example in http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true . My quries are given below(Specially to Steve for the example that he has implemented). Hope this time i will get solutions from Steve/List. Thanks in advance With Regards. Pratap On Fri, 12 May 2006 Pratap wrote : > >Hi >I am trying to emulate imagemap with mapserver from the example given in http://mapserver.gis.umn.edu/docs/howto/imagemaps/?searchterm=imagemap >I am tring to display a field from my shapefile.dbf on mouseover tooltip using the functionality of the above URL. But neither i am getting any error nor tooltip/mouseover functionality. > > My Mapfile for imagemap is: > ......... > LAYER > NAME "city" > TYPE POINT > STATUS ON > DATA "city" > CLASSITEM "name" > CLASS > NAME "CITY NAME" > EXPRESSION /A*/ > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > TEMPLATE "bodytemplate.html" > HEADER "imapheader.html" > FOOTER "imapfooter.html" > END >............ > >The content of template file bodytemplate.html is. >[name] > >Q.1)What will be the exact value of href above? > >The content of template file imapheader.html is. > > >Q.2)What will be the value of id and name above? > >The content of template file imapheader.html is. > > >I am also passing layer=city mode=nquery and searchmap=true from my .phtml file to mapserver > >Q.3) I am not using separate imagemap mapfile. Whether it is needed? what will be its contents, where i should >place it ? and i am using Gmap's PHP/Mapscript engine. > >Can anyone please tell me where is the problem? Also any info on this topic will highly appreciated. >Thanks in advance for any help. >With regards. >Pratap From rockwell_001 at YAHOO.COM Tue May 30 13:55:56 2006 From: rockwell_001 at YAHOO.COM (rock well) Date: Tue, 30 May 2006 13:55:56 -0700 Subject: Mapfile connection string for postgis Message-ID: Hello all i was trying to connect postgis remote database from mapserver, so i included a connection string in the mapfile as CONNECTIONTYPE POSTGIS CONNECTION "host=remoteserverhostname user=postgres password=random1 dbname=tes port=5432" DATA "* from tablename" but this gives me the following errors Warning: [MapServer Error]: msPOSTGISLayerOpen(): couldnt make connection to DB with connect string Error reported was 'FATAL: Ident authentication failed for user "postgres" '. This error occured when trying to make a connection to the specified postgresql server. I dont know if the connection string is right or not, or do we have to change anything in the configuration file for postgresql ..... Thanks for your time and appreciate it ....... kris --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fluyoz at HOTMAIL.COM Tue May 30 14:42:19 2006 From: fluyoz at HOTMAIL.COM (Fernando Luyo) Date: Tue, 30 May 2006 16:42:19 -0500 Subject: Mapfile connection string for postgis Message-ID: The item DATA this badly written: DATA " from " Example : DATA "The_geom from ag_sinabip_18" CONNECTION "user=postgres password=password dbname=mapas host=elcaro port=5432" CONNECTIONTYPE postgis These safe of the user? Fernado Luyo ----- Original Message ----- From: rock well To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, May 30, 2006 3:55 PM Subject: [UMN_MAPSERVER-USERS] Mapfile connection string for postgis Hello all i was trying to connect postgis remote database from mapserver, so i included a connection string in the mapfile as CONNECTIONTYPE POSTGIS CONNECTION "host=remoteserverhostname user=postgres password=random1 dbname=tes port=5432" DATA "* from tablename" but this gives me the following errors Warning: [MapServer Error]: msPOSTGISLayerOpen(): couldnt make connection to DB with connect string Error reported was 'FATAL: Ident authentication failed for user "postgres" '. This error occured when trying to make a connection to the specified postgresql server. I dont know if the connection string is right or not, or do we have to change anything in the configuration file for postgresql ..... Thanks for your time and appreciate it ....... kris ------------------------------------------------------------------------------ Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jim.Dickerson at STATE.MN.US Tue May 30 14:36:58 2006 From: Jim.Dickerson at STATE.MN.US (Jim Dickerson) Date: Tue, 30 May 2006 16:36:58 -0500 Subject: WFS GetFeature works, WFS GetCapabilities doesn't Message-ID: I'm using Mapserver 4.8.3 on Linux to serve WFS, and while I've gotten it to deliver GML, I get a 500 Internal Server Error when I try a GetCapabilities. The same mapfile, when run against MS4W 4.8.3 delivers a GetCapabilities just fine. Has anyone else experienced this? Jim Dickerson Data Coordinator Land Management Information Center Office of Geographic and Demographic Analysis Department of Administration 651-201-2484 National Grid Coordinates: 15T VK 92174 77737 From rhow at I3.COM Tue May 30 17:35:23 2006 From: rhow at I3.COM (Randy How) Date: Tue, 30 May 2006 18:35:23 -0600 Subject: MapServer - single URL map layer filter In-Reply-To: <20060206005706.375DEA45DE@mail.frii.com> Message-ID: I'm still having issues with MapServer and the inline map_layer_filter's. I'm using MapServer 4.9 and something has changed since 4.7 that make these not function properly. You can see below the examples that work and don't work. Thanks, Randy _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy How Sent: Sunday, February 05, 2006 5:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8-beta - single URL map layer filter I sent this before realizing that Mapserver had been released. When I acquire the 4.8 version I be sure to check this functionality. Randy _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy How Sent: Sunday, February 05, 2006 2:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer 4.8-beta - single URL map layer filter To whom it may concern, I don't know how to refer to these filters in the URL's query string, there's very little to no documentation on them, as far as I can find. These are the filters in the URL with the syntax of &map__filter="where=clause". I installed the latest of FWTools1.0.0a7 with Mapserver 4.8-beta and finally determined a functionality discrepancy with FWTools1.0.0.a3 with Mapserver 4.7 regarding multiple inline URL map layer filters. The below URL is the desired request, but returns an invalid response with no exception. Additionally nothing is added to the mapserver debug log file either. http://localhost:90/DataDoors/Mapserver/mapserv.exe?mapext=11.857884924 41.3013689999999 13.298207236 42.5011910000002&mode=browse&map=C:\vp\www.DataDoors.net\ms_data\req_tiles.m ap &map_aoi_filter="request_id=2181"&map_tiles_filter="request_id=2181"&map_pro dcov_filter="request_id=2181" &map_aoi_filter="request_id=2181" - works by itself. &map_tiles_filter="request_id=2181" - does not work added on, works by itself &map_prodcov_filter="request_id=2181" - does not work added on, works by itself I pointed the URL at Mapserver 4.7 and it works perfectly. I hope this is not a planned feature of Mapserver 4.8. Randy How rhow [at] i3 [dot] com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue May 30 17:39:40 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 30 May 2006 19:39:40 -0500 Subject: Create a TrueType Font Message-ID: Search Google for a package called FontCreator. It's shareware and reasonably priced considering what it does (under $100.00). I was screwing around with it today and really liked it. Steve >>> listuser HH 05/30/06 2:02 AM >>> Christian Wilmes wrote: >Hi All, > >has anybody an Idea how I could create my own TrueType Font. I've got already some images which I would like to use for that. It's for using LABELANGLEITEM to rotate a symbol from point-data. > >Best Regards >Christian > > Hi, if you have corel draw you can use it to create true type fonts. I think this is possible since version 5 - if I remember correctly. I can give you a short documentation how to do this but I only have this in german. If you are interested let me know. Regards Norbert From bluecarto at GMAIL.COM Wed May 31 00:08:08 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Wed, 31 May 2006 09:08:08 +0200 Subject: Routing Solution In-Reply-To: <200605260013.30326.bpicinbono@worldonline.fr> Message-ID: Here is a english written page to get information on pg_dijkstra (PostgreSQL module by camptocamp). http://cartoweb.org/contribs.html On 5/26/06, Blaise wrote: > Le Mercredi 24 Mai 2006 02:21, Adam Ratcliffe a ?crit: > > Hi, > > > > I?m interested in looking at any routing solutions that integrate with > > MapServer to provide the following features: > > > > - Shortest or quickest route calculation > > - Driving directions > > - Flexible API > > - Good performance > > > > Any suggestions? > > > > Cheers > > Adam > > Hi Adam > I'm nowadays working on this subject, very interesting by the way. Dijskstra's > algorithm is a good solution, but maybe not the only one. It seems that > Camptocamp has got a PostgreSQL module but I've not tryed it : > http://www.camptocamp.com/article138.html > (I don't know if they have an english version for this page). > > I've build my own engine with the help of these pages : > http://en.wikipedia.org/wiki/Dijkstra's_algorithm > http://en.wikisource.org/wiki/Dijkstra's_algorithm > On the last link, you can find some C, ActionScript, Python, PHP and Visual > Basic codes. > I've worked with the PHP code. As it is object oriented, I had to use php5 for > routing calculation, but I have MapServer configured with php4 so I had to do > a maybe not that elegant trick to have the whole stuff synchronized. > It's damned powerfull and gives great results (might take some time to > calculate depending on the size of your network...) > > I searched for a while, but didn't find any ready-to-use solution for > MapServer, except maybe the Camptocamp one. I'm afraid you'll have to go > through some development work. > Regards > Blaise > From raffle80 at YAHOO.CO.UK Wed May 31 00:34:28 2006 From: raffle80 at YAHOO.CO.UK (raffle peter) Date: Wed, 31 May 2006 08:34:28 +0100 Subject: Error + msSHPopenFile() + msBuildPath() Message-ID: Hi I am trying query by point in PHP/Mapscript, but i am getting an error, msSHPopenFile: No(NULL) file name provided in /usr/local/apache/test/my.inc.php in line number 488 and msBuildPath: in /usr/local/apache/test/my.inc.php. I am using mapserver 4.8. Can any one point me why is the error? Thanks Raffle --------------------------------- All New Yahoo! Mail ? Tired of Vi at gr@! come-ons? Let our SpamGuard protect you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From asachs at CLUE.CO.ZA Wed May 31 01:16:28 2006 From: asachs at CLUE.CO.ZA (Andre Sachs) Date: Wed, 31 May 2006 10:16:28 +0200 Subject: JavaMapscript SIGSEGV In-Reply-To: <75b4b93e0605302337j3dc08242jf750e0d801102063@mail.gmail.com> Message-ID: On 31 May 2006, at 8:37 AM, Umberto Nicoletti wrote: > Andre, could you report whether the patch attached to gentoo bugzilla > works or not? Hi Umberto, Sorry for not replying earlier. The patch works in a 32 intel environment, thanks ! Due to time constraints on my current project I ditched my AMD 64, Java 1.5 64 bit environment in favour of Intel 32 bit and this has resolved my problem. The problems I experienced are somewhere in the application stack, either in : - Sun's 64 bit 1.5 jdk - Gentoo's glibc 2.3.5-r2 - Linux kernel 2.6.16 Once my current project is over (+- 3 weeks) I will be have some spare time to hunt down the culprit. Regards, Andre -- Andre Sachs IT Architect, Clue Technologies PTY (LTD) email: andre at clue.co.za From zhonghaiw at GMAIL.COM Wed May 31 01:18:26 2006 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 31 May 2006 10:18:26 +0200 Subject: ratser map based on CGI Message-ID: Hi guys, trying to develop a small demo using scanned paper maps, these are some historical maps and scanned as GIF or JPEG format. I am wondering if I can do it only using HTML tags and CGI parameters, without client side script languages. the problem for these paper maps is: I can not use the zoom[number] parameter to set the zoom control, since each paper map can only be displayed in a certain map scale, e.g 1:1000000, otherwise it's not readable because of the image resolution. I have about 9 different levels. I appreciate your info. zhonghai 31.05.2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gail.Millin at MANCHESTER.AC.UK Wed May 31 05:11:00 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 31 May 2006 13:11:00 +0100 Subject: gdaltindex problem Message-ID: An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed May 31 05:49:20 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 31 May 2006 14:49:20 +0200 Subject: gdaltindex problem In-Reply-To: <20060531131100421.00000000524@D5B33W1J> Message-ID: Shouldn't you use a DOS for loop, eg: for %i in (path_to_data\*.ecw) do gdaltindex name_of_shapefile %i ? Best regards, Bart > Dear MapServer Users, I am trying to create an > index for a mosaic of ERS images, when I submit the > command a shapefile and dbf file are generated but > when I open the dbf file there are no pathways to the > ERS images specified even though I specify this is > the command e.g. gdaltindex.exe > name_of_shapefile path_to_data\*.ecw I have > checked that ecw is supported by using the gdalinfo > command and mapser.exe –v command. I have > also tried the gdaltindex command for just one image > in the directory to see if it was a corrupt file that > was causing the issue but even for one file the > shapefile index is not being generated correctly with > no pathway in the dbf specified. If anyone has > any suggestions for why this might be happening I > would really appreciate the advice. This > functionality worked fine on the previous server but > now I have installed GDAL on a new windows server > this issue has arisen?? Gail Millin Geodata > Interoperability Support Officer The University of > Manchester Kilburn Building Oxford Road M13 9PL > Tel: +44 (0) 161 275 0581 E-mail: > Gail.Millin at manchester.ac.uk Website: > http://www.landmap.ac.uk From C.Wilmes at GMX.DE Wed May 31 05:11:42 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 31 May 2006 14:11:42 +0200 Subject: Problem with wfs_filter Message-ID: Hi All, I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer. In the log-file I found the following: [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to prepare HTTP requests.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r My mapfile for the WFS: MAP NAME WFS_Server STATUS ON WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:31467" END END PROJECTION "init=EPSG:31467" END CONFIG "PGSQL_OGR_FID" "id" DEBUG ON LAYER NAME myWFS DUMP TRUE DEBUG ON METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "PostgreSQL.ovf" PROJECTION "init=EPSG:31467" END END END The WMS-Layer: LAYER NAME "RosoftWFS" TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wfs_typename" "myWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_service" "WFS" "wfs_filter" "typREFERENCE" END PROJECTION "init=EPSG:31467" END CLASS NAME test SYMBOL "Punkt" SIZE 10 COLOR 255 0 0 END END I would be very thankful for any help! Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From Steve.Lime at DNR.STATE.MN.US Wed May 31 06:59:04 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 May 2006 08:59:04 -0500 Subject: ratser map based on CGI Message-ID: Zhonghai: That should be doable. The CGI does accept a point (only in map coordinates I think) and a scale. You'd probably want to allow panning in the the main map display (no zooming) and then control scale with a seperate form. A skeleton browse template might look like (this is off the top of my head):
You'd have to maintain the scale select list state with a bit of javascript but otherwise something like this should work. Since the forms are pretty well self contained you should be able to use most any design/page layout. Steve >>> Zhonghai Wang 05/31/06 3:18 AM >>> Hi guys, trying to develop a small demo using scanned paper maps, these are some historical maps and scanned as GIF or JPEG format. I am wondering if I can do it only using HTML tags and CGI parameters, without client side script languages. the problem for these paper maps is: I can not use the zoom[number] parameter to set the zoom control, since each paper map can only be displayed in a certain map scale, e.g 1:1000000, otherwise it's not readable because of the image resolution. I have about 9 different levels. I appreciate your info. zhonghai 31.05.2005 From Steve.Lime at DNR.STATE.MN.US Wed May 31 07:02:55 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 May 2006 09:02:55 -0500 Subject: MapServer - single URL map layer filter Message-ID: What type of layers (e.g. PostGIS, shapefiles, other...) are you talking about? What happens if you remove the quotes? Steve >>> Randy How 05/30/06 7:35 PM >>> I'm still having issues with MapServer and the inline map_layer_filter's. I'm using MapServer 4.9 and something has changed since 4.7 that make these not function properly. You can see below the examples that work and don't work. Thanks, Randy _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy How Sent: Sunday, February 05, 2006 5:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8-beta - single URL map layer filter I sent this before realizing that Mapserver had been released. When I acquire the 4.8 version I be sure to check this functionality. Randy _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy How Sent: Sunday, February 05, 2006 2:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer 4.8-beta - single URL map layer filter To whom it may concern, I don't know how to refer to these filters in the URL's query string, there's very little to no documentation on them, as far as I can find. These are the filters in the URL with the syntax of &map__filter="where=clause". I installed the latest of FWTools1.0.0a7 with Mapserver 4.8-beta and finally determined a functionality discrepancy with FWTools1.0.0.a3 with Mapserver 4.7 regarding multiple inline URL map layer filters. The below URL is the desired request, but returns an invalid response with no exception. Additionally nothing is added to the mapserver debug log file either. http://localhost:90/DataDoors/Mapserver/mapserv.exe?mapext=11.857884924 41.3013689999999 13.298207236 42.5011910000002&mode=browse&map=C:\vp\www.DataDoors.net\ms_data\req_tiles.m ap &map_aoi_filter="request_id=2181"&map_tiles_filter="request_id=2181"&map_pro dcov_filter="request_id=2181" &map_aoi_filter="request_id=2181" - works by itself. &map_tiles_filter="request_id=2181" - does not work added on, works by itself &map_prodcov_filter="request_id=2181" - does not work added on, works by itself I pointed the URL at Mapserver 4.7 and it works perfectly. I hope this is not a planned feature of Mapserver 4.8. Randy How rhow [at] i3 [dot] com From Steve.Lime at DNR.STATE.MN.US Wed May 31 07:04:56 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 May 2006 09:04:56 -0500 Subject: Problem: ANGLEITEM and TRANSPARENT Message-ID: As a follow up. The patch was not as complete as I hoped. I worked on the problem until late last night but did not end up committing anything- still working on it though. Steve >>> Steve Lime 05/30/06 1:01 PM >>> Christian: The problem seems to be in GD. Transparency is lost after rotation and I've tried a variety of methods to rebuild it post rotation and it simply doesn't work. That said, the folks have MapMedia have submitted a new image rotation function that should fix the issue and some others with resampling method. I need to integrate that into the development version for testing. I will do that tonite... Steve >>> Christian Wilmes 5/30/2006 8:11:39 AM >>> Hi All, I'm trying to visualize point-data with the mapserver. As symbol I'm using a transparent PIXMAP. Now I want to use ANGLEITEM in the STYLE-Object, ANGLEITEM itself is working fine, but using it causes the lost of the transperency. Instead of the parameter TRANSPARNZ in the SYMBOL-Object I also tried it with a gif and a png which has already a transparent background. The result is the same, without ANGLEITEM it works fine but without it doesn't. Does anybody have an idea how to fix that problem? Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From warmerdam at POBOX.COM Wed May 31 07:20:04 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 31 May 2006 10:20:04 -0400 Subject: gdaltindex problem In-Reply-To: <21106.145.50.39.8.1149079760.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden (OSGIS) wrote: > Shouldn't you use a DOS for loop, eg: > > for %i in (path_to_data\*.ecw) do gdaltindex name_of_shapefile %i > > ? > > Best regards, > Bart Gail, When you say there are no pathways to the ERS images, do you mean there are no records at all in the .dbf file, or that there are but the filename is just the basic filename with no path? If the problem is that there are no entries in the .dbf at all then Bart's workaround should take care of the problem. Alternatively use a build of gdaltindex that includes the "setargv.obj" option so that gdaltindex can resolve wildcards. The FWTools build should include this. If the problem is that the path_to_data portion is missing from the filename then ... well, then I'm a bit flumoxed. I don't know how that would happen. You could still try Bart's for loop in case it is the wildcard expansion that is somehow doing away with the path. If that doesn't help contact me with clear details and a way for me to try and reproduce the problem. Best regards, Frank >> Dear MapServer Users, I am trying to create an >> index for a mosaic of ERS images, when I submit the >> command a shapefile and dbf file are generated but >> when I open the dbf file there are no pathways to the >> ERS images specified even though I specify this is >> the command e.g. gdaltindex.exe >> name_of_shapefile path_to_data\*.ecw I have >> checked that ecw is supported by using the gdalinfo >> command and mapser.exe –v command. I have >> also tried the gdaltindex command for just one image >> in the directory to see if it was a corrupt file that >> was causing the issue but even for one file the >> shapefile index is not being generated correctly with >> no pathway in the dbf specified. If anyone has >> any suggestions for why this might be happening I >> would really appreciate the advice. This >> functionality worked fine on the previous server but >> now I have installed GDAL on a new windows server >> this issue has arisen?? Gail Millin Geodata >> Interoperability Support Officer The University of >> Manchester Kilburn Building Oxford Road M13 9PL >> Tel: +44 (0) 161 275 0581 E-mail: >> Gail.Millin at manchester.ac.uk Website: >> http://www.landmap.ac.uk > > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From Gail.Millin at MANCHESTER.AC.UK Wed May 31 07:51:36 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 31 May 2006 15:51:36 +0100 Subject: gdaltindex problem In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From shsavage at ASU.EDU Wed May 31 07:59:13 2006 From: shsavage at ASU.EDU (Stephen H. Savage) Date: Wed, 31 May 2006 07:59:13 -0700 Subject: Raster image won't reload after map query Message-ID: Greetings, I have a MapServer application that uses aWMS raster image for the background. When I perform a map query the map redraws and hilites features in the query rectangle, but the background raster doesn't redraw. If I then hit the zoom to full extent (ROSA) button, the image redraws. Any thoughts on what's stopping the redraw after a query? Here's the .map file: MAP NAME "Iraq Archaeological Sites" STATUS ON EXTENT 38.5 28.5 49.0 37.5 SIZE 400 343 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS DD WEB MINSCALE 1000 MAXSCALE 10000000 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" TEMPLATE "../htdocs/header.htm" METADATA END END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 255 0 STYLE HILITE END LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 500 5 STYLE 0 POSITION LC LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END LAYER NAME "LandSat" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://onearth.jpl.nasa.gov/wms.cgi?" UNITS DD SIZEUNITS KILOMETERS MINSCALE 1000000 DEBUG ON METADATA "wms_name" "BMNG" "wms_height" "514" "wms_width" "600" "wms_styles" "visual Nov" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_server_version" "1.1.1" "wms_latlonboundingbox" "38.5 28.5 49.0 37.5" "wms_connectiontimeout" "60" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_server" "wms.cgi" "wms_force_separate_request" "1" END END LAYER NAME "Borders" STATUS ON DATA "data/borders" TYPE POLYGON UNITS DD SIZEUNITS KILOMETERS TOLERANCEUNITS PIXELS METADATA END CLASS STYLE SYMBOL 11 OUTLINECOLOR 203 59 204 END END END LAYER NAME "LandSat 14" STATUS ON TYPE RASTER TILEINDEX "data/ls14key" TILEITEM "FileName" UNITS DD SIZEUNITS KILOMETERS MINSCALE 1000 MAXSCALE 1000000 TOLERANCEUNITS PIXELS METADATA END END LAYER NAME "30 min. grid" STATUS ON DATA "data/ls14key" TYPE POLYGON UNITS DD SIZEUNITS KILOMETERS TOLERANCEUNITS PIXELS METADATA END CLASS STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME "Pre-inventory Sites" STATUS ON DATA "data/PreInv" TYPE POINT UNITS DD SIZEUNITS KILOMETERS TEMPLATE "ttt" CLASS STYLE SYMBOL 7 COLOR 177 0 0 OUTLINECOLOR 0 0 0 SIZE 6 MAXSIZE 6 END END END END Thanks, -Steve Stephen H. Savage, Affiliate Professor and Director Geo-Archaeological Information Applications (GAIA) Lab School of Human Evolution and Social Change Box 872402 Arizona State University Tempe, AZ 85287-2402 shsavage at asu.edu http://gaialab.asu.edu/home - The GAIA Lab's home page http://archaeology.asu.edu/Jordan - Personal home page From Jim.Dickerson at STATE.MN.US Wed May 31 08:21:46 2006 From: Jim.Dickerson at STATE.MN.US (Jim Dickerson) Date: Wed, 31 May 2006 10:21:46 -0500 Subject: WFS GetFeature works, WFS GetCapabilities doesn't Message-ID: I've solved my own problem by adding wfs_extent to the layer. Now GetCapabilities and GetFeature works. The documentation I have says that wfs_extent is optional, maybe that's only true in MS4W. Jim -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Jim Dickerson Sent: Tuesday, May 30, 2006 4:37 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] WFS GetFeature works, WFS GetCapabilities doesn't I'm using Mapserver 4.8.3 on Linux to serve WFS, and while I've gotten it to deliver GML, I get a 500 Internal Server Error when I try a GetCapabilities. The same mapfile, when run against MS4W 4.8.3 delivers a GetCapabilities just fine. Has anyone else experienced this? Jim Dickerson Data Coordinator Land Management Information Center Office of Geographic and Demographic Analysis Department of Administration 651-201-2484 National Grid Coordinates: 15T VK 92174 77737 From mizerkin at WIRZ-KOELN.DE Wed May 31 08:54:28 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Wed, 31 May 2006 17:54:28 +0200 Subject: AW: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT In-Reply-To: <4ac992660605301209q563dae70lf14fd86b297a3c19@mail.gmail.com> Message-ID: Dear all, I'm trying to solve a similar problem. My situation is like this: Say I have two layers on the map - "Achse" for showing all items and "Sel_Achse" only for selected ones. The map is shown in the browse-mode. I call the picture with the following line in the address-bar: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11 , where "oid" is the ObjectID of the item to be shown in the "selected-item-layer". I have been playing with zooming for some time and got to the conclusion, that it is only possible to manipulate it adding 3 additional parameters (imgxy, imgext and zoom) to the address line. Here's a line implementing a 5x zoom to the centre of the map: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11&imgxy=290+149.5&imgext=257 4985.815002+5646056.028076+2587295.900005+5655288.591828&zoom=5 Is it possible to get one of the parameters (imgxy or imgext) at run-time so that it would be possible to zoom to the right area of the map not waiting for a user-click? Is there any way to do that using mapxy=shape and mapext=shape instead? In this case, which parameter could identify the shape to zoom to? Many thanks in advance! ________________________________ Dmitri -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von J. Parapar Gesendet: Dienstag, 30. Mai 2006 21:09 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Hi Toni You can use the itemquery mode to select the municipality and the mapxy parameter to set the map extent, mapxy=shape set map extent to the extent of the selected shape. See also the buffer and scale parameters. Hope this helps. Best regards, Jorge 2006/5/30, toni hern?ndez : > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks > From john.cole at UAI.COM Wed May 31 09:13:40 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 31 May 2006 11:13:40 -0500 Subject: debug info with 4.9 Message-ID: I'm using mapserv 4.9 from the latest FWtools for linux and I would like to see the debugging info. I've copied over a map file from a w2k3 server with mapserver 4.8.0 that prints out the timing information at the bottom of the web page, but this doesn't appear with 4.9. What do I need to set in order to get the same information in 4.9? I have DEBUG on and have tried it with and without a LOG file set in the WEB section (no logfile is ever created either, as it is in 4.8). Thanks, John Cole This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From clemens.bertschler at GMAIL.COM Wed May 31 09:21:55 2006 From: clemens.bertschler at GMAIL.COM (Bertsch) Date: Wed, 31 May 2006 09:21:55 -0700 Subject: ShapefileObj Message-ID: I have some troubles with mapscript 4.8 i have a point object $point and i want add this point to a new shapefileObj $new_shape = &ms_newShapefileObj("tmp_shape",MS_SHP_POINT); $new_shape->addPoint($point); $new_shape->free(); So but i do not find any shape-file with the defined name and neither it throws an error? So what do mistakes i make? -- View this message in context: http://www.nabble.com/ShapefileObj-t1711529.html#a4646977 Sent from the Mapserver - User forum at Nabble.com. From warmerdam at POBOX.COM Wed May 31 09:22:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 31 May 2006 12:22:38 -0400 Subject: Raster image won't reload after map query In-Reply-To: <1149087553.447daf4164692@webmail.asu.edu> Message-ID: Stephen H. Savage wrote: > Greetings, > > I have a MapServer application that uses aWMS raster image for the > background. When I perform a map query the map redraws and hilites features in > the query rectangle, but the background raster doesn't redraw. If I then hit > the zoom to full extent (ROSA) button, the image redraws. Any thoughts on > what's stopping the redraw after a query? Here's the .map file: Stephen, Sorry, it isn't at all obvious to me. Is it possible you could reduce this to a single call reproducable sort of thing? In theory, if you are using the cgi version of mapserver directly then things are essentially stateless. Well, that is, all state is carried in the url. So if you can capture the url of the request where the raster does not redraw properly, and test it against a reduced mapfile with just the WMS layer, perhaps we can boil this down to something easily reproduced by a developer. If you can, then please submit as a bug also indicating the version of mapserver being used. Of course, looking at the "neatness" off your mapfile, it is also possible that it is saved from mapscript and your application is built using mapscript and that the query is in the same process as the improperly renderered raster. If that is the case, isolating it may be harder, but at least you could provide more detail. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From bartvde at XS4ALL.NL Wed May 31 09:36:23 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 31 May 2006 18:36:23 +0200 Subject: WFS GetFeature works, WFS GetCapabilities doesn't In-Reply-To: Message-ID: Hi Jim, what's your datastore (PostGIS, Oracle, ....)? If wfs_extent is provided, Mapserver won't try to calculate the extent itself. It might still be useful to file a bug though with some more details if this is reproduceable. Best regards, Bart Jim Dickerson wrote: >I've solved my own problem by adding wfs_extent to the layer. Now >GetCapabilities and GetFeature works. The documentation I have says >that wfs_extent is optional, maybe that's only true in MS4W. > > >Jim > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >Behalf Of Jim Dickerson >Sent: Tuesday, May 30, 2006 4:37 PM >To: MAPSERVER-USERS at lists.umn.edu >Subject: [UMN_MAPSERVER-USERS] WFS GetFeature works, WFS GetCapabilities >doesn't > >I'm using Mapserver 4.8.3 on Linux to serve WFS, and while I've gotten >it to deliver GML, I get a 500 Internal Server Error when I try a >GetCapabilities. The same mapfile, when run against MS4W 4.8.3 delivers >a GetCapabilities just fine. > >Has anyone else experienced this? > >Jim Dickerson >Data Coordinator >Land Management Information Center >Office of Geographic and Demographic Analysis Department of >Administration >651-201-2484 >National Grid Coordinates: 15T VK 92174 77737 > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Steve.Lime at DNR.STATE.MN.US Wed May 31 09:50:15 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 May 2006 11:50:15 -0500 Subject: AW: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Message-ID: Say that again, I'm not sure exactly what you're after. Do you want to populate a map extent based on the properties of a particular feature? Steve >>> Dmitri Mizerkin 5/31/2006 10:54:28 AM >>> Dear all, I'm trying to solve a similar problem. My situation is like this: Say I have two layers on the map - "Achse" for showing all items and "Sel_Achse" only for selected ones. The map is shown in the browse-mode. I call the picture with the following line in the address-bar: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11 , where "oid" is the ObjectID of the item to be shown in the "selected-item-layer". I have been playing with zooming for some time and got to the conclusion, that it is only possible to manipulate it adding 3 additional parameters (imgxy, imgext and zoom) to the address line. Here's a line implementing a 5x zoom to the centre of the map: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/Avenida/htdocs/Avenida.m ap&mode=browse&layer=Achse&layer=Sel_Achse&oid=11&imgxy=290+149.5&imgext=257 4985.815002+5646056.028076+2587295.900005+5655288.591828&zoom=5 Is it possible to get one of the parameters (imgxy or imgext) at run-time so that it would be possible to zoom to the right area of the map not waiting for a user-click? Is there any way to do that using mapxy=shape and mapext=shape instead? In this case, which parameter could identify the shape to zoom to? Many thanks in advance! ________________________________ Dmitri -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von J. Parapar Gesendet: Dienstag, 30. Mai 2006 21:09 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] ZOOM TO A SELECTED OBJECT Hi Toni You can use the itemquery mode to select the municipality and the mapxy parameter to set the map extent, mapxy=shape set map extent to the extent of the selected shape. See also the buffer and scale parameters. Hope this helps. Best regards, Jorge 2006/5/30, toni hern?ndez : > Hi, > > I have a layer of municipalities boundaries (SHP file with polygons) > > How can I zoom to a municipality selected for the user from an HTML form? > Ex. Zoom to a municpality called "SALT". > > Maybe changing the map file dynamically? > I have been reading about filter and fitleritem but I do not see how can > make a zoom to a particular municpality. > > > > thanks > From assefa at DMSOLUTIONS.CA Wed May 31 09:59:05 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 31 May 2006 12:59:05 -0400 Subject: Problem with wfs_filter In-Reply-To: <20060531121142.72060@gmx.net> Message-ID: Christian, if you do the GetFeature request inside your browser do you get any result ? If the filter is not set, do you get results back ? Christian Wilmes wrote: > Hi All, > > I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer. > > In the log-file I found the following: > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to prepare HTTP requests.\r > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r > [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r > > > My mapfile for the WFS: > MAP > NAME WFS_Server > STATUS ON > WEB > IMAGEPATH "c:/ms4w/tmp/ms_tmp" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "WFS Server" > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" > "wfs_srs" "EPSG:31467" > END > END > > PROJECTION > "init=EPSG:31467" > END > > CONFIG "PGSQL_OGR_FID" "id" > DEBUG ON > > LAYER > NAME myWFS > DUMP TRUE > DEBUG ON > METADATA > "wfs_title" "myWFS" > "gml_include_items" "all" > END > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "PostgreSQL.ovf" > PROJECTION > "init=EPSG:31467" > END > END > END > > > The WMS-Layer: > LAYER > NAME "RosoftWFS" > TYPE POINT > STATUS ON > DEBUG ON > CONNECTIONTYPE WFS > CONNECTION "http://localhost/cgi-bin/mapserv.exe?" > METADATA > "wfs_typename" "myWFS" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > "wfs_service" "WFS" > > "wfs_filter" "typREFERENCE" > > END > > > PROJECTION > "init=EPSG:31467" > END > > > CLASS > NAME test > SYMBOL "Punkt" > SIZE 10 > COLOR 255 0 0 > END > END > > > > I would be very thankful for any help! > > Best Regards > Christian -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From tkirstine at JDBARNES.COM Wed May 31 10:06:58 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Wed, 31 May 2006 13:06:58 -0400 Subject: Restricting map draws WMS Message-ID: Hi All, Is there a easy way to control minscale/maxscale draws server side for a wms? We are testing a wms that serves out high res. ortho for a large area (30,000km2). We were hoping that we could control the draw with the minscale maxcale options in the layer definition in the server side mapfile. However, when testing the wms using ArcGIS 8.3, ArcGIS 9.1, uDig and ArcExplorer Web we are finding that the minscale maxscale are not consistently recognized on the client side, and if the minscale/maxscale definitions are omitted the draw times are extreme. Any ideas would be great. Travis From Steve.Lime at DNR.STATE.MN.US Wed May 31 15:09:26 2006 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 May 2006 17:09:26 -0500 Subject: Restricting map draws WMS Message-ID: Travis: Did you try setting MINSCALE/MAXSCALE for each layer? The underlying drawing code will respect (or at least I think it does) those values regardless of the what the client asks for. Steve >>> Travis Kirstine GIS Tech 05/31/06 12:06 PM >>> Hi All, Is there a easy way to control minscale/maxscale draws server side for a wms? We are testing a wms that serves out high res. ortho for a large area (30,000km2). We were hoping that we could control the draw with the minscale maxcale options in the layer definition in the server side mapfile. However, when testing the wms using ArcGIS 8.3, ArcGIS 9.1, uDig and ArcExplorer Web we are finding that the minscale maxscale are not consistently recognized on the client side, and if the minscale/maxscale definitions are omitted the draw times are extreme. Any ideas would be great. Travis From C.Wilmes at GMX.DE Wed May 31 00:38:58 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 31 May 2006 09:38:58 +0200 Subject: wfs_filter doesn't work Message-ID: Hi All, I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer. In the log-file I found the following: [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to prepare HTTP requests.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r My mapfile for the WFS: MAP NAME WFS_Server STATUS ON WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:31467" END END PROJECTION "init=EPSG:31467" END CONFIG "PGSQL_OGR_FID" "id" DEBUG ON LAYER NAME myWFS DUMP TRUE DEBUG ON METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "PostgreSQL.ovf" PROJECTION "init=EPSG:31467" END END END The WMS-Layer: LAYER NAME "RosoftWFS" TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wfs_typename" "myWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_service" "WFS" "wfs_filter" "typREFERENCE" END PROJECTION "init=EPSG:31467" END CLASS NAME test SYMBOL "Punkt" SIZE 10 COLOR 255 0 0 END END I would be very thankful for any help! Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From porath at WEB.DE Tue May 30 23:21:12 2006 From: porath at WEB.DE (H. Porath) Date: Wed, 31 May 2006 08:21:12 +0200 Subject: WFS GetFeature works, WFS GetCapabilities doesn't Message-ID: Hi Jim, Maybe you have an syntax error in your wfs_onlineresource, which is only needed for the getcapabilities-request. You might find more information about your error in the web server error log file. Regards, Holger -----Urspr?ngliche Nachricht----- Von: Jim Dickerson Gesendet: 30.05.06 23:52:07 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] WFS GetFeature works, WFS GetCapabilities doesn't I'm using Mapserver 4.8.3 on Linux to serve WFS, and while I've gotten it to deliver GML, I get a 500 Internal Server Error when I try a GetCapabilities. The same mapfile, when run against MS4W 4.8.3 delivers a GetCapabilities just fine. Has anyone else experienced this? Jim Dickerson Data Coordinator Land Management Information Center Office of Geographic and Demographic Analysis Department of Administration 651-201-2484 National Grid Coordinates: 15T VK 92174 77737 _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000071 From C.Wilmes at GMX.DE Tue May 30 05:58:58 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Tue, 30 May 2006 14:58:58 +0200 Subject: wfs_filter doesn't work Message-ID: Hi All, I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer. In the log-file I found the following: [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to prepare HTTP requests.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r My mapfile for the WFS: MAP NAME WFS_Server STATUS ON WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:31467" END END PROJECTION "init=EPSG:31467" END CONFIG "PGSQL_OGR_FID" "id" DEBUG ON LAYER NAME myWFS DUMP TRUE DEBUG ON METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "PostgreSQL.ovf" PROJECTION "init=EPSG:31467" END END END The WMS-Layer: LAYER NAME "RosoftWFS" TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wfs_typename" "myWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_service" "WFS" "wfs_filter" "typREFERENCE" END PROJECTION "init=EPSG:31467" END CLASS NAME test SYMBOL "Punkt" SIZE 10 COLOR 255 0 0 END END I would be very thankful for any help! Best Regards Christian -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer -- Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer From C.Wilmes at GMX.DE Wed May 31 04:19:43 2006 From: C.Wilmes at GMX.DE (Christian Wilmes) Date: Wed, 31 May 2006 13:19:43 +0200 Subject: wfs_filter doesn't work Message-ID: Hi All, I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer. In the log-file I found the following: [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r [Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r My mapfile for the WFS: MAP NAME WFS_Server STATUS ON WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "WFS Server" "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" "wfs_srs" "EPSG:31467" END END PROJECTION "init=EPSG:31467" END CONFIG "PGSQL_OGR_FID" "id" DEBUG ON LAYER NAME myWFS DUMP TRUE DEBUG ON METADATA "wfs_title" "myWFS" "gml_include_items" "all" END TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "PostgreSQL.ovf" PROJECTION "init=EPSG:31467" END END END The WMS-Layer: LAYER NAME "RosoftWFS" TYPE POINT STATUS ON DEBUG ON CONNECTIONTYPE WFS CONNECTION "http://localhost/cgi-bin/mapserv.exe?" METADATA "wfs_typename" "myWFS" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_service" "WFS" "wfs_filter" "typREFERENCE" END PROJECTION "init=EPSG:31467" END CLASS NAME test SYMBOL "Punkt" SIZE 10 COLOR 255 0 0 END END I would be very thankful for any help! Best Regards Christian -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer